adaptiveconfiguration 1.0.0.beta03 → 1.0.0.beta04
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adaptiveconfiguration.gemspec +1 -1
- data/lib/adaptive_configuration/context.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11fad3ccce7d331a27190c743c44688ad95900a7cc8f168a4fdcb824b625bce
|
4
|
+
data.tar.gz: aa7ed25488d182dcaf59ec3f2f0a6442c9004660d9c22b8b1ba73b0e730b190c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82df20c8476433d0cec6cb10df0242b5b2b9acfe426741727871f67bde4b46b1bff4e3ab56c1bd8553284d5336074f48abad92ba30f3cc4ef2f27ca41e5b2429
|
7
|
+
data.tar.gz: c83a76b55815d78ddc19cce6a118ce6ce26f4c3a4288837e40ee9b565db1d13c329d8dfed04ef1f42923d76b703d20742b73de652a4857fd2f9b0f158e64c850
|
@@ -116,8 +116,11 @@ module AdaptiveConfiguration
|
|
116
116
|
unless definition[ :array ]
|
117
117
|
if definition[ :type ] == :group
|
118
118
|
context =
|
119
|
-
@values[ name ] ||
|
120
|
-
|
119
|
+
@values[ name ] || Context.new(
|
120
|
+
args.first,
|
121
|
+
converters: @converters,
|
122
|
+
definitions: definition[ :definitions ]
|
123
|
+
)
|
121
124
|
context.instance_eval( &block ) if block
|
122
125
|
@values[ name ] = context
|
123
126
|
else
|
@@ -130,7 +133,11 @@ module AdaptiveConfiguration
|
|
130
133
|
::Array.new :
|
131
134
|
@values[ name ] || ::Array.new
|
132
135
|
if definition[ :type ] == :group
|
133
|
-
context = Context.new(
|
136
|
+
context = Context.new(
|
137
|
+
args.first,
|
138
|
+
converters: @converters,
|
139
|
+
definitions: definition[ :definitions ]
|
140
|
+
)
|
134
141
|
context.instance_eval( &block ) if block
|
135
142
|
@values[ name ] << context
|
136
143
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adaptiveconfiguration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta04
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristoph Cichocki-Romanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|