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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b2d8e043d622bfb78abda999e982036170a52e7
4
- data.tar.gz: 5163d83682df800346302dbd35d8ba7e797a551d
3
+ metadata.gz: fdbc3b0adc2e88b922493804893d2cf1bc43aa75
4
+ data.tar.gz: c0079c73e27e464f02a3c47316ea11584b2f3c6e
5
5
  SHA512:
6
- metadata.gz: 13a62a6670d52e45fb14a9bc13b9bda31212101925f8f12c7e29e6a09f3437c7176059cce22f8ceae172ac7d52c1cf3e2056e1965fb05d15aec806bc8aaedc4c
7
- data.tar.gz: ab6e5d35e35e697f39345367af8199b4003c8ca10c67ce4435781867b96d4eff73ff380d1b544fa3550b142e4ae82d211bc3a6f9602ba4244b09b143863a0e3e
6
+ metadata.gz: c50f21ee70824b1c6483c876d30aade676aca18ffa8b1948046e9386bdc96dfa739cc6be98d4c833500cd2e755086ae50108a5b820c59be533d60860d2eef3b9
7
+ data.tar.gz: c1700cf301da89024143b26ba1c0e482afcf4edfb9c0e51d52662e7e0c765910c649e2c6c2b98b4ab5285f65d49ab99151d8d1a9189c42dfbae5432a52f80535
data/README.md CHANGED
@@ -164,5 +164,6 @@ names as keys like `object_id`.
164
164
  ## Release
165
165
 
166
166
  edit lib/nested_config/version.rb
167
+ git commit -am "Release X.Y.Z"
167
168
  rake release
168
169
 
@@ -76,8 +76,10 @@ class NestedConfig
76
76
  if block_given?
77
77
  _(name, &Proc.new)
78
78
  else
79
- key = name.to_s.gsub(/=$/, '')
80
- if $& == '='
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]
@@ -1,3 +1,3 @@
1
1
  class NestedConfig
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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: 2016-03-09 00:00:00.000000000 Z
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.4.8
96
+ rubygems_version: 2.6.11
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Simple, static, nested config