sandyw-active_configuration 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module ActiveConfiguration
|
|
16
16
|
# After the :validate callback, execute the #validate! method.
|
17
17
|
set_callback :validate, :after, :validate!
|
18
18
|
|
19
|
-
attr_accessor :key, :default_value, :allowed_format, :allowed_values, :allowed_modifiers, :allow_multiple
|
19
|
+
attr_accessor :key, :default_value, :allowed_format, :allowed_values, :allowed_modifiers, :allow_multiple, :option_namespace
|
20
20
|
|
21
21
|
alias :allow_multiple? :allow_multiple
|
22
22
|
|
@@ -32,6 +32,7 @@ module ActiveConfiguration
|
|
32
32
|
@allowed_values = nil
|
33
33
|
@allowed_modifiers = nil
|
34
34
|
@allow_multiple = false
|
35
|
+
@option_namespace = nil
|
35
36
|
end
|
36
37
|
|
37
38
|
# Sets the default value for this option. This cannot be used in
|
@@ -93,6 +94,10 @@ module ActiveConfiguration
|
|
93
94
|
end
|
94
95
|
end
|
95
96
|
|
97
|
+
def namespace(space)
|
98
|
+
@option_namespace = space
|
99
|
+
end
|
100
|
+
|
96
101
|
# Validates how the specified configuration options are used with one
|
97
102
|
# another. If an invalid configuration is detected, such as using both
|
98
103
|
# the #default method and setting #multiple to true, an exception of
|
@@ -126,4 +131,4 @@ module ActiveConfiguration
|
|
126
131
|
end
|
127
132
|
end
|
128
133
|
end
|
129
|
-
end
|
134
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sandyw-active_configuration
|
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:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-06-
|
13
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -108,6 +108,22 @@ dependencies:
|
|
108
108
|
- - ! '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
111
127
|
- !ruby/object:Gem::Dependency
|
112
128
|
name: activerecord
|
113
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +194,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
194
|
- - ! '>='
|
179
195
|
- !ruby/object:Gem::Version
|
180
196
|
version: '0'
|
197
|
+
segments:
|
198
|
+
- 0
|
199
|
+
hash: 50292813157852160
|
181
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
201
|
none: false
|
183
202
|
requirements:
|