configurability 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +101 -58
- data/History.rdoc +11 -0
- data/Manifest.txt +1 -1
- data/README.rdoc +1 -1
- data/Rakefile +3 -3
- data/lib/configurability.rb +16 -15
- data/lib/configurability/behavior.rb +3 -8
- data/lib/configurability/config.rb +1 -1
- data/spec/configurability/config_spec.rb +87 -94
- data/spec/configurability/deferredconfig_spec.rb +3 -13
- data/spec/configurability_spec.rb +121 -85
- data/spec/{lib/helpers.rb → helpers.rb} +4 -1
- metadata +30 -30
- metadata.gz.sig +0 -0
@@ -1,22 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
require 'pathname'
|
5
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent.parent
|
6
|
-
|
7
|
-
libdir = basedir + "lib"
|
8
|
-
|
9
|
-
$LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir )
|
10
|
-
$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
|
11
|
-
}
|
3
|
+
require 'helpers'
|
12
4
|
|
13
5
|
require 'tempfile'
|
14
6
|
require 'logger'
|
15
7
|
require 'fileutils'
|
16
8
|
require 'rspec'
|
17
9
|
|
18
|
-
require 'spec/lib/helpers'
|
19
|
-
|
20
10
|
require 'configurability'
|
21
11
|
require 'configurability/deferredconfig'
|
22
12
|
|
@@ -48,7 +38,7 @@ describe Configurability::DeferredConfig do
|
|
48
38
|
end
|
49
39
|
end
|
50
40
|
|
51
|
-
a_class.config_object.
|
41
|
+
expect( a_class.config_object ).to be( :testing_config )
|
52
42
|
end
|
53
43
|
|
54
44
|
|
@@ -65,7 +55,7 @@ describe Configurability::DeferredConfig do
|
|
65
55
|
end
|
66
56
|
end
|
67
57
|
|
68
|
-
a_class.config_object.
|
58
|
+
expect( a_class.config_object ).to be( :testing_config )
|
69
59
|
end
|
70
60
|
|
71
61
|
end
|
@@ -1,19 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
require 'pathname'
|
5
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent
|
6
|
-
|
7
|
-
libdir = basedir + "lib"
|
8
|
-
|
9
|
-
$LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir )
|
10
|
-
$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
|
11
|
-
}
|
3
|
+
require 'helpers'
|
12
4
|
|
13
5
|
require 'rspec'
|
14
6
|
|
15
|
-
require 'spec/lib/helpers'
|
16
|
-
|
17
7
|
require 'configurability'
|
18
8
|
require 'configurability/config'
|
19
9
|
|
@@ -40,7 +30,7 @@ describe Configurability do
|
|
40
30
|
config_key :testconfig
|
41
31
|
end
|
42
32
|
|
43
|
-
klass.config_key.
|
33
|
+
expect( klass.config_key ).to be( :testconfig )
|
44
34
|
end
|
45
35
|
|
46
36
|
it "fetches config sections via a method with the config key name if the config " +
|
@@ -50,11 +40,11 @@ describe Configurability do
|
|
50
40
|
config_key :testconfig
|
51
41
|
end
|
52
42
|
|
53
|
-
config =
|
54
|
-
config.
|
55
|
-
config.
|
43
|
+
config = double( "configuration object" )
|
44
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( true )
|
45
|
+
expect( config ).to receive( :testconfig ).and_return( :a_config_section )
|
56
46
|
|
57
|
-
klass.
|
47
|
+
expect( klass ).to receive( :configure ).with( :a_config_section )
|
58
48
|
Configurability.configure_objects( config )
|
59
49
|
end
|
60
50
|
|
@@ -64,11 +54,11 @@ describe Configurability do
|
|
64
54
|
config_key :testconfig
|
65
55
|
end
|
66
56
|
|
67
|
-
config =
|
68
|
-
config.
|
69
|
-
config.
|
57
|
+
config = double( "configuration object" )
|
58
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( true )
|
59
|
+
expect( config ).to receive( :testconfig ).and_return( :a_config_section )
|
70
60
|
|
71
|
-
klass.
|
61
|
+
expect( klass ).to receive( :configure ).with( :a_config_section )
|
72
62
|
Configurability.configure_objects( config )
|
73
63
|
end
|
74
64
|
|
@@ -79,14 +69,14 @@ describe Configurability do
|
|
79
69
|
config_key :testconfig
|
80
70
|
end
|
81
71
|
|
82
|
-
config =
|
83
|
-
config.
|
84
|
-
config.
|
85
|
-
config.
|
86
|
-
config.
|
87
|
-
config.
|
72
|
+
config = double( "configuration object" )
|
73
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( false )
|
74
|
+
expect( config ).to receive( :respond_to? ).with( :key? ).and_return( true )
|
75
|
+
expect( config ).to receive( :respond_to? ).with( :[] ).and_return( true )
|
76
|
+
expect( config ).to receive( :key? ).with( :testconfig ).and_return( true )
|
77
|
+
expect( config ).to receive( :[] ).with( :testconfig ).and_return( :a_config_section )
|
88
78
|
|
89
|
-
klass.
|
79
|
+
expect( klass ).to receive( :configure ).with( :a_config_section )
|
90
80
|
Configurability.configure_objects( config )
|
91
81
|
end
|
92
82
|
|
@@ -97,11 +87,11 @@ describe Configurability do
|
|
97
87
|
config_key :testconfig
|
98
88
|
end
|
99
89
|
|
100
|
-
config =
|
101
|
-
config.
|
102
|
-
config.
|
90
|
+
config = double( "configuration object" )
|
91
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( false )
|
92
|
+
expect( config ).to receive( :respond_to? ).with( :[] ).and_return( false )
|
103
93
|
|
104
|
-
klass.
|
94
|
+
expect( klass ).to receive( :configure ).with( nil )
|
105
95
|
|
106
96
|
Configurability.configure_objects( config )
|
107
97
|
end
|
@@ -112,16 +102,16 @@ describe Configurability do
|
|
112
102
|
config_key :testconfig
|
113
103
|
end
|
114
104
|
|
115
|
-
config =
|
116
|
-
config.
|
117
|
-
config.
|
118
|
-
config.
|
119
|
-
config.
|
120
|
-
config.
|
121
|
-
config.
|
122
|
-
config.
|
105
|
+
config = double( "configuration object" )
|
106
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( false )
|
107
|
+
expect( config ).to receive( :respond_to? ).with( :key? ).and_return( true )
|
108
|
+
expect( config ).to receive( :respond_to? ).with( :[] ).and_return( true )
|
109
|
+
expect( config ).to receive( :key? ).with( :testconfig ).and_return( false )
|
110
|
+
expect( config ).to receive( :key? ).with( 'testconfig' ).and_return( true )
|
111
|
+
expect( config ).to receive( :[] ).with( :testconfig ).and_return( nil )
|
112
|
+
expect( config ).to receive( :[] ).with( 'testconfig' ).and_return( :a_config_section )
|
123
113
|
|
124
|
-
klass.
|
114
|
+
expect( klass ).to receive( :configure ).with( :a_config_section )
|
125
115
|
|
126
116
|
Configurability.configure_objects( config )
|
127
117
|
end
|
@@ -131,11 +121,31 @@ describe Configurability do
|
|
131
121
|
object.extend( Configurability )
|
132
122
|
object.config_key = :testobjconfig
|
133
123
|
|
134
|
-
config =
|
135
|
-
config.
|
136
|
-
config.
|
124
|
+
config = double( "configuration object" )
|
125
|
+
expect( config ).to receive( :respond_to? ).with( :testobjconfig ).and_return( true )
|
126
|
+
expect( config ).to receive( :testobjconfig ).and_return( :a_config_section )
|
127
|
+
|
128
|
+
expect( object ).to receive( :configure ).with( :a_config_section )
|
129
|
+
|
130
|
+
Configurability.configure_objects( config )
|
131
|
+
end
|
132
|
+
|
133
|
+
it "configures classes that have inherited Configurability and set a different config_key" do
|
134
|
+
klass = Class.new do
|
135
|
+
extend Configurability
|
136
|
+
config_key :testconfig
|
137
|
+
end
|
138
|
+
subclass = Class.new( klass ) do
|
139
|
+
config_key :subconfig
|
140
|
+
end
|
141
|
+
|
142
|
+
config = double( "configuration object" )
|
143
|
+
expect( config ).to receive( :respond_to? ).with( :testconfig ).and_return( true )
|
144
|
+
expect( config ).to receive( :testconfig ).and_return( :a_config_section )
|
145
|
+
expect( config ).to receive( :respond_to? ).with( :subconfig ).and_return( true )
|
146
|
+
expect( config ).to receive( :subconfig ).and_return( :a_sub_config_section )
|
137
147
|
|
138
|
-
|
148
|
+
expect( subclass ).to receive( :configure ).with( :a_sub_config_section )
|
139
149
|
|
140
150
|
Configurability.configure_objects( config )
|
141
151
|
end
|
@@ -146,11 +156,11 @@ describe Configurability do
|
|
146
156
|
def object.name; "testobjconfig"; end
|
147
157
|
object.extend( Configurability )
|
148
158
|
|
149
|
-
config =
|
150
|
-
config.
|
151
|
-
config.
|
159
|
+
config = double( "configuration object" )
|
160
|
+
expect( config ).to receive( :respond_to? ).with( :testobjconfig ).and_return( true )
|
161
|
+
expect( config ).to receive( :testobjconfig ).and_return( :a_config_section )
|
152
162
|
|
153
|
-
object.
|
163
|
+
expect( object ).to receive( :configure ).with( :a_config_section )
|
154
164
|
|
155
165
|
Configurability.configure_objects( config )
|
156
166
|
end
|
@@ -160,11 +170,11 @@ describe Configurability do
|
|
160
170
|
def object.name; "Test Obj-Config"; end
|
161
171
|
object.extend( Configurability )
|
162
172
|
|
163
|
-
config =
|
164
|
-
config.
|
165
|
-
config.
|
173
|
+
config = double( "configuration object" )
|
174
|
+
expect( config ).to receive( :respond_to? ).with( :test_obj_config ).and_return( true )
|
175
|
+
expect( config ).to receive( :test_obj_config ).and_return( :a_config_section )
|
166
176
|
|
167
|
-
object.
|
177
|
+
expect( object ).to receive( :configure ).with( :a_config_section )
|
168
178
|
|
169
179
|
Configurability.configure_objects( config )
|
170
180
|
end
|
@@ -174,11 +184,11 @@ describe Configurability do
|
|
174
184
|
object = Object.new
|
175
185
|
object.extend( Configurability )
|
176
186
|
|
177
|
-
config =
|
178
|
-
config.
|
179
|
-
config.
|
187
|
+
config = double( "configuration object" )
|
188
|
+
expect( config ).to receive( :respond_to? ).with( :object ).and_return( true )
|
189
|
+
expect( config ).to receive( :object ).and_return( :a_config_section )
|
180
190
|
|
181
|
-
object.
|
191
|
+
expect( object ).to receive( :configure ).with( :a_config_section )
|
182
192
|
|
183
193
|
Configurability.configure_objects( config )
|
184
194
|
end
|
@@ -190,11 +200,11 @@ describe Configurability do
|
|
190
200
|
end
|
191
201
|
end
|
192
202
|
|
193
|
-
config =
|
194
|
-
config.
|
195
|
-
config.
|
203
|
+
config = double( "configuration object" )
|
204
|
+
expect( config ).to receive( :respond_to? ).with( :dbobject ).and_return( true )
|
205
|
+
expect( config ).to receive( :dbobject ).and_return( :a_config_section )
|
196
206
|
|
197
|
-
My::DbObject.
|
207
|
+
expect( My::DbObject ).to receive( :configure ).with( :a_config_section )
|
198
208
|
|
199
209
|
Configurability.configure_objects( config )
|
200
210
|
end
|
@@ -205,11 +215,11 @@ describe Configurability do
|
|
205
215
|
object = objectclass.new
|
206
216
|
object.extend( Configurability )
|
207
217
|
|
208
|
-
config =
|
209
|
-
config.
|
210
|
-
config.
|
218
|
+
config = double( "configuration object" )
|
219
|
+
expect( config ).to receive( :respond_to? ).with( :anonymous ).and_return( true )
|
220
|
+
expect( config ).to receive( :anonymous ).and_return( :a_config_section )
|
211
221
|
|
212
|
-
object.
|
222
|
+
expect( object ).to receive( :configure ).with( :a_config_section )
|
213
223
|
|
214
224
|
Configurability.configure_objects( config )
|
215
225
|
end
|
@@ -229,7 +239,7 @@ describe Configurability do
|
|
229
239
|
|
230
240
|
|
231
241
|
it "should know what the currently-installed configuration is" do
|
232
|
-
Configurability.loaded_config.
|
242
|
+
expect( Configurability.loaded_config ).to equal( @config )
|
233
243
|
end
|
234
244
|
|
235
245
|
it "propagates the installed configuration to any objects which add Configurability" do
|
@@ -242,7 +252,8 @@ describe Configurability do
|
|
242
252
|
|
243
253
|
object = objectclass.new
|
244
254
|
object.extend( Configurability )
|
245
|
-
|
255
|
+
|
256
|
+
expect( object.config ).to eq( :yes )
|
246
257
|
end
|
247
258
|
|
248
259
|
it "defers configuration until after an object has defined a #configure method if " +
|
@@ -254,7 +265,7 @@ describe Configurability do
|
|
254
265
|
class << self; attr_reader :config; end
|
255
266
|
end
|
256
267
|
|
257
|
-
objectclass.config.
|
268
|
+
expect( objectclass.config ).to eq( :yes )
|
258
269
|
end
|
259
270
|
|
260
271
|
it "doesn't reconfigure objects that have already been configured unless the config changes" do
|
@@ -278,9 +289,9 @@ describe Configurability do
|
|
278
289
|
def self::configure( config ); @configs ||= []; @configs << config; end
|
279
290
|
end
|
280
291
|
|
281
|
-
first_objectclass.configs.
|
282
|
-
second_objectclass.configs.
|
283
|
-
third_objectclass.configs.
|
292
|
+
expect( first_objectclass.configs ).to eq([ @config[:postconfig] ])
|
293
|
+
expect( second_objectclass.configs ).to eq([ nil, @config[:postconfig] ])
|
294
|
+
expect( third_objectclass.configs ).to eq([ nil, @config[:postconfig] ])
|
284
295
|
end
|
285
296
|
|
286
297
|
end
|
@@ -300,9 +311,11 @@ describe Configurability do
|
|
300
311
|
Configurability.log.debug "Defaults: %p" % [ self.defaults ]
|
301
312
|
end
|
302
313
|
|
303
|
-
Configurability.gather_defaults
|
304
|
-
|
305
|
-
|
314
|
+
defaults = Configurability.gather_defaults
|
315
|
+
|
316
|
+
expect( defaults ).to include( :testconfig )
|
317
|
+
expect( defaults[:testconfig] ).to eq( klass.const_get(:CONFIG_DEFAULTS) )
|
318
|
+
expect( defaults[:testconfig] ).to_not be( klass.const_get(:CONFIG_DEFAULTS) )
|
306
319
|
end
|
307
320
|
|
308
321
|
it "fetches defaults from a DEFAULT_CONFIG constant if the object defines one" do
|
@@ -312,9 +325,11 @@ describe Configurability do
|
|
312
325
|
self::DEFAULT_CONFIG = { :two => 2, :types => {:two => true} }
|
313
326
|
end
|
314
327
|
|
315
|
-
Configurability.gather_defaults
|
316
|
-
|
317
|
-
|
328
|
+
defaults = Configurability.gather_defaults
|
329
|
+
|
330
|
+
expect( defaults ).to include( :testconfig )
|
331
|
+
expect( defaults[:testconfig] ).to eq( klass.const_get(:DEFAULT_CONFIG) )
|
332
|
+
expect( defaults[:testconfig] ).to_not be( klass.const_get(:DEFAULT_CONFIG) )
|
318
333
|
end
|
319
334
|
|
320
335
|
it "fetches defaults from a #defaults method if the object implements one" do
|
@@ -324,9 +339,11 @@ describe Configurability do
|
|
324
339
|
def self::defaults; { :other => true }; end
|
325
340
|
end
|
326
341
|
|
327
|
-
Configurability.gather_defaults
|
328
|
-
|
329
|
-
|
342
|
+
defaults = Configurability.gather_defaults
|
343
|
+
|
344
|
+
expect( defaults ).to include( :otherconfig )
|
345
|
+
expect( defaults[:otherconfig] ).to eq( klass.defaults )
|
346
|
+
expect( defaults[:otherconfig] ).to_not be( klass.defaults )
|
330
347
|
end
|
331
348
|
|
332
349
|
it "can return a Configurability::Config object with defaults, too" do
|
@@ -348,12 +365,31 @@ describe Configurability do
|
|
348
365
|
|
349
366
|
config = Configurability.default_config
|
350
367
|
|
351
|
-
config.
|
352
|
-
config.testconfig.one.
|
353
|
-
config.testconfig.two.
|
354
|
-
config.testconfig.types.one.
|
355
|
-
config.testconfig.types.two.
|
356
|
-
config.otherconfig.other.
|
368
|
+
expect( config ).to be_a( Configurability::Config )
|
369
|
+
expect( config.testconfig.one ).to eq( 1 )
|
370
|
+
expect( config.testconfig.two ).to eq( 2 )
|
371
|
+
expect( config.testconfig.types.one ).to be_true()
|
372
|
+
expect( config.testconfig.types.two ).to be_true()
|
373
|
+
expect( config.otherconfig.other ).to be_true()
|
374
|
+
end
|
375
|
+
|
376
|
+
it "returns defaults for an object that inherits from a class with Configurability" do
|
377
|
+
klass = Class.new do
|
378
|
+
extend Configurability
|
379
|
+
config_key :testconfig
|
380
|
+
self::CONFIG_DEFAULTS = { :one => 1, :types => {:one => true} }
|
381
|
+
Configurability.log.debug "Defaults: %p" % [ self.defaults ]
|
382
|
+
end
|
383
|
+
subclass = Class.new( klass ) do
|
384
|
+
config_key :spanishconfig
|
385
|
+
self::CONFIG_DEFAULTS = { :uno => 1 }
|
386
|
+
end
|
387
|
+
|
388
|
+
config = Configurability.default_config
|
389
|
+
|
390
|
+
expect( config ).to respond_to( :spanishconfig )
|
391
|
+
expect( config.spanishconfig.uno ).to eq( 1 )
|
392
|
+
|
357
393
|
end
|
358
394
|
|
359
395
|
end
|
@@ -28,7 +28,10 @@ require 'configurability'
|
|
28
28
|
|
29
29
|
|
30
30
|
RSpec.configure do |config|
|
31
|
-
config.mock_with( :rspec )
|
31
|
+
config.mock_with( :rspec ) do |config|
|
32
|
+
config.syntax = :expect
|
33
|
+
end
|
34
|
+
|
32
35
|
config.include( Loggability::SpecHelpers )
|
33
36
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
34
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configurability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -10,27 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
14
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
15
|
+
HhcNMTMwMjI3MTY0ODU4WhcNMTQwMjI3MTY0ODU4WjA+MQwwCgYDVQQDDANnZWQx
|
16
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
17
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb92mkyYwuGBg1oRxt2tkH
|
18
|
+
+Uo3LAsaL/APBfSLzy8o3+B3AUHKCjMUaVeBoZdWtMHB75X3VQlvXfZMyBxj59Vo
|
19
|
+
cDthr3zdao4HnyrzAIQf7BO5Y8KBwVD+yyXCD/N65TTwqsQnO3ie7U5/9ut1rnNr
|
20
|
+
OkOzAscMwkfQxBkXDzjvAWa6UF4c5c9kR/T79iA21kDx9+bUMentU59aCJtUcbxa
|
21
|
+
7kcKJhPEYsk4OdxR9q2dphNMFDQsIdRO8rywX5FRHvcb+qnXC17RvxLHtOjysPtp
|
22
|
+
EWsYoZMxyCDJpUqbwoeiM+tAHoz2ABMv3Ahie3Qeb6+MZNAtMmaWfBx3dg2u+/WN
|
23
|
+
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSZ0hCV
|
24
|
+
qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
|
25
|
+
BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
Vlcfyq6GwyE8i0QuFPCeVOwJaneSvcwx316DApjy9/tt2YD2HomLbtpXtji5QXor
|
27
|
+
ON6oln4tWBIB3Klbr3szq5oR3Rc1D02SaBTalxSndp4M6UkW9hRFu5jn98pDB4fq
|
28
|
+
5l8wMMU0Xdmqx1VYvysVAjVFVC/W4NNvlmg+2mEgSVZP5K6Tc9qDh3eMQInoYw6h
|
29
|
+
t1YA6RsUJHp5vGQyhP1x34YpLAaly8icbns/8PqOf7Osn9ztmg8bOMJCeb32eQLj
|
30
|
+
6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
|
31
|
+
/YSusaiDXHKU2O3Akc3htA==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2013-
|
33
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: loggability
|
@@ -94,42 +94,42 @@ dependencies:
|
|
94
94
|
requirements:
|
95
95
|
- - ~>
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2.
|
97
|
+
version: '2.14'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '2.
|
104
|
+
version: '2.14'
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: simplecov
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0.
|
111
|
+
version: '0.5'
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - ~>
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '0.
|
118
|
+
version: '0.5'
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: hoe
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '3.
|
125
|
+
version: '3.7'
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - ~>
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '3.
|
132
|
+
version: '3.7'
|
133
133
|
description: |-
|
134
134
|
Configurability is a unified, unintrusive, assume-nothing configuration system
|
135
135
|
for Ruby. It lets you keep the configuration for multiple objects in a single
|
@@ -162,7 +162,7 @@ files:
|
|
162
162
|
- spec/configurability/config_spec.rb
|
163
163
|
- spec/configurability/deferredconfig_spec.rb
|
164
164
|
- spec/configurability_spec.rb
|
165
|
-
- spec/
|
165
|
+
- spec/helpers.rb
|
166
166
|
- .gemtest
|
167
167
|
homepage: https://bitbucket.org/ged/configurability
|
168
168
|
licenses:
|
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
180
|
requirements:
|
181
181
|
- - '>='
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version: 1.
|
183
|
+
version: 1.9.2
|
184
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
186
|
- - '>='
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project: configurability
|
191
|
-
rubygems_version: 2.0.
|
191
|
+
rubygems_version: 2.0.5
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Configurability is a unified, unintrusive, assume-nothing configuration system
|