adaptiveconfiguration 1.0.0.beta02 → 1.0.0.beta04

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
  SHA256:
3
- metadata.gz: 1c9efb51c751d9e2d5ed9f13cde645e6ad67eb33e657bb5a9942d8bc32ec09da
4
- data.tar.gz: 4bb48b03dcecf0ccc32a4a5c107ea149cf006d1d7bf7d9d10fec7e585eb00d6d
3
+ metadata.gz: a11fad3ccce7d331a27190c743c44688ad95900a7cc8f168a4fdcb824b625bce
4
+ data.tar.gz: aa7ed25488d182dcaf59ec3f2f0a6442c9004660d9c22b8b1ba73b0e730b190c
5
5
  SHA512:
6
- metadata.gz: dadebc70156e871f0986e1858080de3c67e411b3a39dae3328962642d39157be221615b9811d7170e6f3c8fbc2f198d4037a14f109015b8cfc17cd6e139c69bf
7
- data.tar.gz: 501f930713ec9f0ce6396d5bcb308065c3448b34f845225c20c57e6152306ba7a930a7a67868616394fd0f620d36e988e454aa4d7a89fce2ac88c1e383bebe70
6
+ metadata.gz: 82df20c8476433d0cec6cb10df0242b5b2b9acfe426741727871f67bde4b46b1bff4e3ab56c1bd8553284d5336074f48abad92ba30f3cc4ef2f27ca41e5b2429
7
+ data.tar.gz: c83a76b55815d78ddc19cce6a118ce6ce26f4c3a4288837e40ee9b565db1d13c329d8dfed04ef1f42923d76b703d20742b73de652a4857fd2f9b0f158e64c850
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do | spec |
2
2
 
3
3
  spec.name = 'adaptiveconfiguration'
4
- spec.version = '1.0.0.beta02'
4
+ spec.version = '1.0.0.beta04'
5
5
  spec.authors = [ 'Kristoph Cichocki-Romanov' ]
6
6
  spec.email = [ 'rubygems.org@kristoph.net' ]
7
7
 
@@ -34,4 +34,4 @@ Gem::Specification.new do | spec |
34
34
  spec.add_development_dependency 'rspec', '~> 3.13'
35
35
  spec.add_development_dependency 'debug', '~> 1.9'
36
36
 
37
- end
37
+ end
@@ -116,8 +116,11 @@ module AdaptiveConfiguration
116
116
  unless definition[ :array ]
117
117
  if definition[ :type ] == :group
118
118
  context =
119
- @values[ name ] ||
120
- Context.new( converters: @converters, definitions: definition[ :definitions ] )
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( converters: @converters, definitions: definition[ :definitions ] )
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
@@ -1,5 +1,3 @@
1
- require 'debug'
2
-
3
1
  module AdaptiveConfiguration
4
2
 
5
3
  class Error < StandardError; end
@@ -38,4 +36,4 @@ module AdaptiveConfiguration
38
36
 
39
37
  end
40
38
 
41
- end
39
+ end
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.beta02
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-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec