simple-config 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 5a78543561276bf2a41b0ad0f97b3b8ed32b6266
4
- data.tar.gz: dd4b63f6b51fe383ff2ef343398fd1b5c0e7760c
3
+ metadata.gz: cdef70f00ae3dc572520f8f55d09364585849154
4
+ data.tar.gz: 66df40b3efc93c9c72ee30c5de718fef4dfcbd42
5
5
  SHA512:
6
- metadata.gz: bd003abc4c71a4224ba05ca577439f18978d7811355b74a9fe51bed4713e20d8eab68ad0914ff397596b74e7a37f6d0f41199b3cfd561d8a668df68f17571adc
7
- data.tar.gz: 8be658647026bfc25ccdec334dd4a043869f22a9e90698ff2c629b7cd9932130469bc92326741d25db4c54245b64dfe2fc93358a2a236be67c1efcfc321c23b6
6
+ metadata.gz: 3f18e5408fd8702f5d7ca1f9932a37117e0103efdfc19b8c7b6fc116f6bf8cdfafa27760f103694832487e80c5d7168b524a713e7777d0b9fbcdd0395452843f
7
+ data.tar.gz: dce055c1e6c26b5f66db3b5fd7b48ba29a27ff7a7b6f5b7c423638254177f1b57e28cf92efd290fa55d037c446e3283a4639148db71ec5c1b88e685a5a7ce9d1
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/simple-config.rb CHANGED
@@ -58,10 +58,11 @@ class SimpleConfig
58
58
 
59
59
 
60
60
  @to_h = a.inject({}) do |r, line|
61
-
61
+
62
62
  s = line.shift
63
+
63
64
 
64
- if line.any? then
65
+ if line.join.length > 0 then
65
66
 
66
67
  r2 = if line[0][0][/^\w+: /] then
67
68
 
@@ -72,7 +73,7 @@ class SimpleConfig
72
73
  desc = pretty_print(line).split(/\n(?=\w+: )/)
73
74
 
74
75
  txt2, remaining = desc
75
-
76
+
76
77
  h = txt2.lines.inject([]) do |r, x|
77
78
  x.chomp!
78
79
  x.length > 0 ? r << x : r
@@ -97,7 +98,7 @@ class SimpleConfig
97
98
  r.merge({name.to_sym => value.to_s})
98
99
  end
99
100
 
100
- end
101
+ end
101
102
 
102
103
  end
103
104
 
data.tar.gz.sig CHANGED
Binary file
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  GOyi72Dr1XTvfW8Vje543EzUeJP4EjrtsoS0tbx5hs2J8Ey8zv39aU4aNyM1h0Fv
32
32
  1BzvTQ2PY7IAEQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-12-29 00:00:00.000000000 Z
34
+ date: 2014-12-30 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
metadata.gz.sig CHANGED
Binary file