simple-config 0.7.0 → 0.7.1

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: 3f7ed9d6359d2460dc59bf8c847eb4b9731a9656c0fc2ac87d7103c65e7b786d
4
- data.tar.gz: 59d4967df759f4f3930963d59357b870f0f53423fe5ecd6cc42d08f3b29ac98c
3
+ metadata.gz: ba6ef9849b7b1d1730cb9e94d51722ec5c022138468af71b093cfd6b3782a545
4
+ data.tar.gz: 916568cf979853cd2164f4aac8a82e364f54550535f3d0534ed0d31724e7a05c
5
5
  SHA512:
6
- metadata.gz: 370f0e40b6b4f36ab45549312a180c6e86c4e8f7df3eea1db01468ac486afa6697550c04bf4e911ec287ca37605aedc45afd3c2eb879b93a1656de07b35cf697
7
- data.tar.gz: accf6be123b22dd9c9b8bc8551f6a10a1a59d915e44417a96cda05020be5e7e45a65c6121223fc9027927bf064152020985c41f21a5cdcc388842bb52f4c6da2
6
+ metadata.gz: '08c0ecc225a43e162ebbdd04933a4c83e0154dca71ec833c73dca7f4b0a9675d86a218a9ceab4fcdbe078a44acd133fa4fe5ab9a12c7ed56f97cd80154bf5f36'
7
+ data.tar.gz: 85d8b774825660ac5d3961d221a1ffb7e21082e96fbea8f849c8be1c93434a729a6af443f6d9e607b5eca2c25cbc6414444484fa94c448f0f639c3b1188c3ce3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.0
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-06 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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