configdsl 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/test.cdsl.rb +4 -0
- data/lib/configdsl/version.rb +1 -1
- data/lib/configdsl.rb +5 -0
- metadata +10 -5
data/examples/test.cdsl.rb
CHANGED
data/lib/configdsl/version.rb
CHANGED
data/lib/configdsl.rb
CHANGED
@@ -117,6 +117,11 @@ module ConfigDSL
|
|
117
117
|
LazyValue.new(block, args)
|
118
118
|
end
|
119
119
|
|
120
|
+
def assign!(sym, value = nil, &block)
|
121
|
+
return sym.each { |key, val| assign!(key, val) } if sym.kind_of? Hash
|
122
|
+
varibales_hook(sym, value, &block)
|
123
|
+
end
|
124
|
+
|
120
125
|
def varibales_hook(meth, *args, &block)
|
121
126
|
debug "Hooked #{meth}"
|
122
127
|
debug "Context is #{context}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configdsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: A convinient Ruby-based DSL for your app configuration!
|
26
31
|
email:
|
27
32
|
- mike-n@narod.ru
|
@@ -60,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
65
|
version: '0'
|
61
66
|
requirements: []
|
62
67
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.24
|
64
69
|
signing_key:
|
65
70
|
specification_version: 3
|
66
71
|
summary: A convinient Ruby-based DSL for your app configuration!
|