fe_core_ext 0.16.1 → 0.17.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: 24210816b8a1376ab6234ec60570a056d2b7887501f8f9311e8a810bd7fa3212
4
- data.tar.gz: 4d455281c1f2c002286d9825b9fa4577288d2fe220219b0a0e0544765b1335a0
3
+ metadata.gz: 4bd6c456622dbc9f2ae9d73d4ad9033aa03610cc31efde9c47ba4747dd5bf874
4
+ data.tar.gz: 0bf9ca9a07942ff77b87c6445c83f5388017ba60c88274009c3dc57620ae39d6
5
5
  SHA512:
6
- metadata.gz: 534d9a1092afe7b3b7c40b9ed5da04a034ea5e0fac0fec76eab168d5c08512ed95415dac80c8ff12fc5742337251164413732d6c7e1a165064d7ee33201423ea
7
- data.tar.gz: 36a0671916faccc840804b6dc157cca33416f47b9bdaacf1ae13c5759f45719ab25a5f769f757003db19867a4aab60aa3575ce60010d6da033136ad2123ba2f9
6
+ metadata.gz: 68ce9bac873d5fd5eed65bb27e91064604cb4c717d5d9a68be370be02ceeaed674ede61fda4bda7411dc5f884fc18817917ff8c6c371d68ee2b4f0e2c0f08246
7
+ data.tar.gz: 2c9ae0703ae6205d45f17314ba091cdb08e2577e5f98e54669e95b0d711c34e8ccd0a45a79662f1ae31c90bed20cd9b42f8229a784cc340def158606c0ef6df1
@@ -31,6 +31,11 @@ module FeCoreExt::CoreExt::String
31
31
  delete(',').to_d
32
32
  end
33
33
 
34
+ def to_float
35
+ return unless valid_number?
36
+ delete(',').to_f
37
+ end
38
+
34
39
  def to_pathname
35
40
  Pathname(self)
36
41
  end
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.16.1'
2
+ VERSION = '0.17.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fe_core_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsu