fe_core_ext 0.9.2 → 0.10.0

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
  SHA256:
3
- metadata.gz: 7ca8f17df0dcf49e2f8b32d9234c1270e68367765ff3541372854db1d66ba4da
4
- data.tar.gz: cf4fcaf231e09ecf0917c6206e06f048cd5520466ee268cab5fd7a0c399880ed
3
+ metadata.gz: 40b519ce325b9711586cd33f7324e4e068d949dd93ef2c40e0a8ec04615713d4
4
+ data.tar.gz: c16597805695e7be2e1fad3cdadf6a0ae2f30f037ee5cf2ae62c1bd1ba4ff93d
5
5
  SHA512:
6
- metadata.gz: c84142def740ad243c1aac7a702aba5d206aad8927935219baaf1d87da695b006dc8a0104db20afb798df88bc7d0794d87b5dbd4b585b372c521ccd4d408802c
7
- data.tar.gz: 7462ed608dc968cb8d550b4c2d1901a6652331f9a34b9cea1890563513f64ce2cc6a44acabf20701738e999690d8f3162781e0eaf405c730fac3a8557297a91e
6
+ metadata.gz: 0db3ebb133683b04cd4db4094fe3492e2b0683e181ff91a773f0264c77463cfcea42b84015015d7c26a37d1348d45252f9d405aa997ae16f2b93893c4d8377e3
7
+ data.tar.gz: 969c9fa85db24c907d96dec57072a11bd37ba8e65134703be7e4f32d0012dfa486ca49edd85885419a71a5fe59fe5adb96532d36cb4ab82f474fe5720b6d206f
@@ -19,6 +19,15 @@ module FeCoreExt::CoreExt::Date
19
19
  end
20
20
 
21
21
  module FeCoreExt::CoreExt::DateClassMethods
22
+ def parsable?(string)
23
+ begin
24
+ parse(string)
25
+ true
26
+ rescue ArgumentError
27
+ false
28
+ end
29
+ end
30
+
22
31
  def parse_as_future(string)
23
32
  date = parse(string)
24
33
  date > current ? date : date + 1.year
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.9.2'
2
+ VERSION = '0.10.0'
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.9.2
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-15 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport