simple-config 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/simple-config.rb +3 -1
- metadata +4 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6ef9849b7b1d1730cb9e94d51722ec5c022138468af71b093cfd6b3782a545
|
4
|
+
data.tar.gz: 916568cf979853cd2164f4aac8a82e364f54550535f3d0534ed0d31724e7a05c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08c0ecc225a43e162ebbdd04933a4c83e0154dca71ec833c73dca7f4b0a9675d86a218a9ceab4fcdbe078a44acd133fa4fe5ab9a12c7ed56f97cd80154bf5f36'
|
7
|
+
data.tar.gz: 85d8b774825660ac5d3961d221a1ffb7e21082e96fbea8f849c8be1c93434a729a6af443f6d9e607b5eca2c25cbc6414444484fa94c448f0f639c3b1188c3ce3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/simple-config.rb
CHANGED
@@ -33,6 +33,8 @@ class SimpleConfig < Kvx
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def find_type(v)
|
36
|
+
|
37
|
+
puts 'v: ' + v.inspect if @debug
|
36
38
|
|
37
39
|
if v[/^\d+$/] and v.to_i.to_s.length == v.length then v.to_i
|
38
40
|
elsif v[/^\d+\.\d+$/] and v.to_f.to_s.length == v.length then v.to_f
|
@@ -49,10 +51,10 @@ class SimpleConfig < Kvx
|
|
49
51
|
def scan2type(h)
|
50
52
|
|
51
53
|
h.each do |key, value|
|
54
|
+
next if value.is_a? Array
|
52
55
|
h[key] = value.is_a?(Hash) ? scan2type(value) : find_type(value)
|
53
56
|
end
|
54
57
|
|
55
58
|
end
|
56
59
|
|
57
|
-
|
58
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
Mzs6McLVLKfpmpQsVuAPGjmpZkmsEwtaMZNmkAcKL/6ocO2LqzGp92Ndx3NhaMGa
|
36
36
|
hlH4OINi4m+y+z0VAPAag4KQ
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-07-
|
38
|
+
date: 2020-07-18 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: kvx
|
@@ -83,7 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.7.10
|
87
88
|
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Simple-config makes it convenient to read or write a config file as simple
|
metadata.gz.sig
CHANGED
Binary file
|