fe_core_ext 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fe_core_ext/core_ext/string.rb +5 -0
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb0a50372302a289ee91048d7bf2f469bba4eab
|
4
|
+
data.tar.gz: 89a7e47565c1e239da941a6c04ae8f8142de0797
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 075693a4d6ce7f2c5cb1dd17d8ca4176e97f0c0eabe0ccd12a2598e7c76c58fb630abda8052b1b004f928321a7d4574fa6918ac3da2712d4543784ad4f473c7d
|
7
|
+
data.tar.gz: b8dbcc07fd2bea88e4b3d2dc75ffa6cd88c504ac9eba6be58e30aa3914ca8766a0b9f6ed516d4f552b7c43b0341074c134baaba4938b4e1aac3d9471ed616806
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bigdecimal'
|
2
2
|
require 'bigdecimal/util'
|
3
|
+
require 'pathname'
|
3
4
|
|
4
5
|
module FeCoreExt::CoreExt
|
5
6
|
end
|
@@ -15,6 +16,10 @@ module FeCoreExt::CoreExt::String
|
|
15
16
|
delete(',').to_d
|
16
17
|
end
|
17
18
|
|
19
|
+
def to_pathname
|
20
|
+
Pathname(self)
|
21
|
+
end
|
22
|
+
|
18
23
|
def not_number?
|
19
24
|
to_i == 0 && match('0').nil?
|
20
25
|
end
|
data/lib/fe_core_ext/version.rb
CHANGED