fe_core_ext 0.23.0 → 0.25.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: dbd7f5022a6194ca9872af74bbbacf19bebb63e7f80c27b1d996788d5492a94b
4
- data.tar.gz: 9c7eaf275074df65ad8e0b685b9915a4c9423be5d48db993a22de9ef20b2ac76
3
+ metadata.gz: 8d998bdd8ef167a99dd070c92a4ecd4274060e78678aa6f8c4960127d8733993
4
+ data.tar.gz: 7e328ffc2d16c7e33518f18cd892f8995e9f5f97b0fcfe2dda2908ab351c3081
5
5
  SHA512:
6
- metadata.gz: fb55370838547d87b47cabeee9d1503d561fc339dae0761769be512695511431172e77ddb294b7edd72ff9f715e590d3fe8ff997c61c55567d193cb932337374
7
- data.tar.gz: fbf118ee0a268f7d06b528bb9df74031f905cfde6f1a055cde06472fc78a0e7ad45a85a7ff101f1305ed54125b1f2f933a6651ec4c28d95457b0ab7bce5f3c60
6
+ metadata.gz: f9b696b70388b2784625a019132d7408d850f9a0427c36cb1fde8d6c7cb318cd3604a41fd1e5bd3fefd98b127233be1fa7a284d80d1e715a972729e65dce3e29
7
+ data.tar.gz: 3f0d3de9784893f88f97863cb4f6b0d55ce64c94024d20553b442db119a7ef7552d165d1e45bb44aef8805ac2b51fd0738039caeda8f1ec81bb7452b0a02e860
@@ -27,12 +27,9 @@ end
27
27
 
28
28
  module FeCoreExt::CoreExt::DateClassMethods
29
29
  def parsable?(string)
30
- begin
31
- parse(string)
32
- true
33
- rescue ArgumentError
34
- false
35
- end
30
+ parsed_hash = _parse(string)
31
+ return true if parsed_hash.has_key?(:year) && parsed_hash.has_key?(:mon)
32
+ false
36
33
  end
37
34
 
38
35
  def parse_as_future(string)
@@ -49,7 +49,7 @@ module FeCoreExt::CoreExt::String
49
49
  end
50
50
 
51
51
  def alphanumeric_zen_to_han
52
- tr('0-9A-Za-z &・-()', '0-9A-Za-z &・\-()')
52
+ tr('0-9A-Za-z &・.-()', '0-9A-Za-z &・.\-()')
53
53
  end
54
54
 
55
55
  def to_katakana
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.23.0'
2
+ VERSION = '0.25.0'
3
3
  end
data/lib/fe_core_ext.rb CHANGED
@@ -1,14 +1,14 @@
1
- require 'fe_core_ext/version'
2
- require 'fe_core_ext/core_ext/array'
3
- require 'fe_core_ext/core_ext/csv'
4
- require 'fe_core_ext/core_ext/date'
5
- require 'fe_core_ext/core_ext/hash'
6
- require 'fe_core_ext/core_ext/integer'
7
- require 'fe_core_ext/core_ext/numeric'
8
- require 'fe_core_ext/core_ext/pathname'
9
- require 'fe_core_ext/core_ext/string'
10
- require 'fe_core_ext/core_ext/time'
11
- require 'fe_core_ext/core_ext/uri'
1
+ require_relative 'fe_core_ext/version'
2
+ require_relative 'fe_core_ext/core_ext/array'
3
+ require_relative 'fe_core_ext/core_ext/csv'
4
+ require_relative 'fe_core_ext/core_ext/date'
5
+ require_relative 'fe_core_ext/core_ext/hash'
6
+ require_relative 'fe_core_ext/core_ext/integer'
7
+ require_relative 'fe_core_ext/core_ext/numeric'
8
+ require_relative 'fe_core_ext/core_ext/pathname'
9
+ require_relative 'fe_core_ext/core_ext/string'
10
+ require_relative 'fe_core_ext/core_ext/time'
11
+ require_relative 'fe_core_ext/core_ext/uri'
12
12
 
13
13
  module FeCoreExt
14
14
  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.23.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport