fe_core_ext 0.17.0 → 0.17.3

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: 4bd6c456622dbc9f2ae9d73d4ad9033aa03610cc31efde9c47ba4747dd5bf874
4
- data.tar.gz: 0bf9ca9a07942ff77b87c6445c83f5388017ba60c88274009c3dc57620ae39d6
3
+ metadata.gz: 29238eb6899fe0b75c4e55f3fffe08f09c30d4eabc950c0686004374b74dccca
4
+ data.tar.gz: 22475148d16f90f28db97222596b076fdb9a756bea06f9def8ae9422310d9dce
5
5
  SHA512:
6
- metadata.gz: 68ce9bac873d5fd5eed65bb27e91064604cb4c717d5d9a68be370be02ceeaed674ede61fda4bda7411dc5f884fc18817917ff8c6c371d68ee2b4f0e2c0f08246
7
- data.tar.gz: 2c9ae0703ae6205d45f17314ba091cdb08e2577e5f98e54669e95b0d711c34e8ccd0a45a79662f1ae31c90bed20cd9b42f8229a784cc340def158606c0ef6df1
6
+ metadata.gz: 3d492c2ddcd97a873b297e4e37f8e20a70d591b50df121c5c4bc5bb1e578aeb09ee5498a286aef4568f8491b4ac11a316d8a4d1755c7b442d09011aa73731a75
7
+ data.tar.gz: 507edc619216a8c09bf82e1a9732899c1c31bfff99f282bdb50648fc14d5df2dbb8dfc56796f5c9551234a6cae10295cf202c56afa885e22ac7c5c1565211c23
@@ -8,11 +8,6 @@ end
8
8
 
9
9
  module FeCoreExt::CoreExt::String
10
10
  def to_integer
11
- return if not_number?
12
- delete(',').to_i
13
- end
14
-
15
- def to_integer_new
16
11
  return unless valid_number?
17
12
  delete(',').to_i
18
13
  end
@@ -45,7 +40,7 @@ module FeCoreExt::CoreExt::String
45
40
  end
46
41
 
47
42
  def valid_number?
48
- match?(/^[\d\,\.]+$/)
43
+ match?(/^-?([0-9][\d\,\.]*)$/)
49
44
  end
50
45
 
51
46
  ## deprecated
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.17.0'
2
+ VERSION = '0.17.3'
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.17.0
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-07 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport