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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/simple-config.rb +5 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdef70f00ae3dc572520f8f55d09364585849154
|
4
|
+
data.tar.gz: 66df40b3efc93c9c72ee30c5de718fef4dfcbd42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
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
|