fe_core_ext 0.1.18 → 0.1.19

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: fb2c2639d64ebf22cb15ed03220d25b6da759671
4
- data.tar.gz: 9169b0e3514b5e6265c59db3585ca86a67dc2cc4
3
+ metadata.gz: 249b09dcecf83d524950df8542579dc4550a7b96
4
+ data.tar.gz: ef8803909071a43fd1a68a70ca0fdb86d24ed845
5
5
  SHA512:
6
- metadata.gz: f7b79608f5bc14c72aee742dc62b6a84a394c09ce4d929f425bff40e1dbe967cee1c253050e5b72dc55b08cd5eef313c26337e4ac8b20ed0e9e84ae71f35ae9c
7
- data.tar.gz: dfa8a4aa20bcd69211866310d12d2a9253e6e303de090ecdcf22e70ab6edc6dd72b018fd88f13b9bf940194c9c79419d40a6a899012c0440c67a92a32e5d77da
6
+ metadata.gz: 638cd392368859d56fdadfccd8fc4a37d82ad37ef576b1320c2eb0e52917f0e6fdaccb6b2f8719e2fe111bbc5364aa818005264f6056c01ab7b88fd70bb221a5
7
+ data.tar.gz: a7213fbd808f50e80aeeea6d9bf69521a471b19975ba12b04dbe7008cddbf185e823f471c84c5f9c96d4fae03c9fd688ac40da42fc468bfa5dd3745cf41c04aa
@@ -9,6 +9,12 @@ module FeCoreExt::CoreExt::Date
9
9
  date = parse(string)
10
10
  date > current ? date : date + 1.year
11
11
  end
12
+
13
+ def parse_heisei(string)
14
+ string.match('平成(\d+)年(\d+)月(\d+)日') {
15
+ Date.new($1.to_i + 1988, $2.to_i, $3.to_i)
16
+ }
17
+ end
12
18
  end
13
19
 
14
20
  class Date
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport