fe_core_ext 0.20.0 → 0.21.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: 99a359ad78833a8c9dbabba2d613224cfccd2f6fccc6930a0e55d15dd5ca23bd
4
- data.tar.gz: 5823113f42e75ef36d704c1d11b42d90e15ac122b88c4cec2d83b8b8eed89482
3
+ metadata.gz: ef6b3f2b4feddc41d15a33f24b3cc758ec46d80b80f1fe96f193a94e88d5fd2c
4
+ data.tar.gz: a9c3f947886aedfa34c5fbf4da55ac3b481a0b2e97ee031706317e04ba5b7a69
5
5
  SHA512:
6
- metadata.gz: c53ff871a962b4b8fc36840ab581a1d2c311b5bc9dab29a13c9f3e62c951ed295c6eb74094bb7f5bba0382287aceaaf04071a7c647b20e918e0f76843c50660e
7
- data.tar.gz: 7c49d12b359118d9d601cc26c7e71e8812eb9473e2f79a1552dd37842e8c966295afdf9648b235342f980b2a38bf68b97c65dad0395977cbe0b19faca5059d27
6
+ metadata.gz: 8307fd7f008f9b864d394b8cb954fd957e88ab5236c32aaea05561f394dfb92c11c08ec541425f12b3c8afab23479f602ddf1e78ca2c4b6181e5e3ad76ca706f
7
+ data.tar.gz: 7bf2701a91ebb4e8d8c86545733fa19d44420e732e488d1a76a4ae9da87a315fbe5e201a1cba7fa7f98b4c0f931a21b060bf46dea58e7441c063cb5d24a26877
@@ -15,6 +15,10 @@ module FeCoreExt::CoreExt::Pathname
15
15
  Pathname.glob(join(pattern), &block)
16
16
  end
17
17
 
18
+ def existence
19
+ self if exist?
20
+ end
21
+
18
22
  def touch(options={})
19
23
  FileUtils.touch(@path, options)
20
24
  end
@@ -23,11 +27,6 @@ module FeCoreExt::CoreExt::Pathname
23
27
  FileUtils.rm(self, options)
24
28
  end
25
29
 
26
- def existence
27
- return self if self.exist?
28
- nil
29
- end
30
-
31
30
  def mkdir_p
32
31
  mkpath
33
32
  self
@@ -17,7 +17,7 @@ module FeCoreExt::CoreExt::String
17
17
  end
18
18
 
19
19
  def to_decimal
20
- return if not_number?
20
+ return unless valid_number?
21
21
  delete(',').to_d
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module FeCoreExt
2
- VERSION = '0.20.0'
2
+ VERSION = '0.21.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.20.0
4
+ version: 0.21.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-05-19 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport