fe_core_ext 0.1.42 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52ba4c206c1b8ee35f6b6c96b305017d990e2a41
4
- data.tar.gz: 46f9285c8e8510aa746ce87933bcdcdfe6e31a3b
3
+ metadata.gz: fe96d4b513e4b2953af62e4ffe9b934bd99217cb
4
+ data.tar.gz: b136e6e2caa31692d3ec0b8d1979b3395a34184c
5
5
  SHA512:
6
- metadata.gz: be9e24a902c76b281033e1cb07ae0d52681cb6d665a8fd62cf4b3c112b3cda659e7835273ae6432bc9a96b461c1292d7109dc3fbef5d461a59a0b320f34dd66d
7
- data.tar.gz: f4cdc78a7b583d3ee8a6cd9cd2b3481386ad88b47d18ebd754ca882ef9f9d681e087a642698418c7118fc5f9d40d1f1126a3bc48b1d5e24746d6d508fda95eb4
6
+ metadata.gz: 580fe30e1815ac88d7d778bb20c8a9099ef666e416e9de7e16f6320274c79e1d234b95afb7154db4915c7b8b97837628fc9825d8d68ba909f4623aa11137c9d2
7
+ data.tar.gz: 70dbb2ee863a7300655f94e03f3ea3acd0228c38c37eabca841ca5443771c0f5a3cd83519854bde2e69ff6d21e5d79adaa0f8f1f3819eb0870cf7362c210bb3b
@@ -49,6 +49,10 @@ module FeCoreExt::CoreExt::String
49
49
  return if self.nil?
50
50
  NKF.nkf('-wX',self)
51
51
  end
52
+
53
+ def to_date_in_ja
54
+ match(/(\d{4})年(\d{2})月(\d{2})日/){ Date.new($1.to_i, $2.to_i, $3.to_i) }
55
+ end
52
56
  end
53
57
 
54
58
  class String
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.42'
2
+ VERSION = '0.1.43'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fe_core_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.42
4
+ version: 0.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport