nested_config 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/nested_config.rb +4 -2
- data/lib/nested_config/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdbc3b0adc2e88b922493804893d2cf1bc43aa75
|
4
|
+
data.tar.gz: c0079c73e27e464f02a3c47316ea11584b2f3c6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50f21ee70824b1c6483c876d30aade676aca18ffa8b1948046e9386bdc96dfa739cc6be98d4c833500cd2e755086ae50108a5b820c59be533d60860d2eef3b9
|
7
|
+
data.tar.gz: c1700cf301da89024143b26ba1c0e482afcf4edfb9c0e51d52662e7e0c765910c649e2c6c2b98b4ab5285f65d49ab99151d8d1a9189c42dfbae5432a52f80535
|
data/README.md
CHANGED
data/lib/nested_config.rb
CHANGED
@@ -76,8 +76,10 @@ class NestedConfig
|
|
76
76
|
if block_given?
|
77
77
|
_(name, &Proc.new)
|
78
78
|
else
|
79
|
-
key = name.to_s
|
80
|
-
|
79
|
+
key = name.to_s
|
80
|
+
index = key.rindex('='.freeze)
|
81
|
+
if index
|
82
|
+
key = key[0, index]
|
81
83
|
self[key] = args.first
|
82
84
|
else
|
83
85
|
self[key, *args]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nested_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Suschlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.6.11
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Simple, static, nested config
|