configurability 2.2.0 → 2.2.1
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/History.rdoc +5 -0
- data/Rakefile +4 -4
- data/lib/configurability.rb +2 -2
- data/lib/configurability/behavior.rb +1 -1
- data/spec/configurability_spec.rb +7 -2
- data/spec/helpers.rb +6 -6
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84771c13524bc56cd8ff1e4ee93dfcf0e65bc54
|
4
|
+
data.tar.gz: 2e3836e6cde941510b3bec4bdafcedd6cdc69776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6192cdf8f1781553b3fd958caf95a65066004538b24553b29a168e20b1bf80610642c160dcf192b40e98d41fb2cf90fdd94f93d9439a7a2f95e0c4275141a7b
|
7
|
+
data.tar.gz: 26b772522c9f2ff5b0726689d7b3b02914cad77e0b24ee04f2e91bff40f052539610d2e48bbbb5f41f664aa8ee1a92c32923d0b2c5f77616d4e85999831fb9d8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -25,12 +25,12 @@ hoespec = Hoe.spec 'configurability' do |spec|
|
|
25
25
|
|
26
26
|
spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
27
27
|
|
28
|
-
spec.dependency 'loggability', '~> 0.
|
28
|
+
spec.dependency 'loggability', '~> 0.11'
|
29
29
|
|
30
|
-
spec.dependency 'hoe-deveiate', '~> 0.
|
31
|
-
spec.dependency 'simplecov', '~> 0.
|
30
|
+
spec.dependency 'hoe-deveiate', '~> 0.5', :developer
|
31
|
+
spec.dependency 'simplecov', '~> 0.8', :developer
|
32
32
|
spec.dependency 'hoe-bundler', '~> 1.2', :developer
|
33
|
-
spec.dependency 'rspec', '3.0
|
33
|
+
spec.dependency 'rspec', '~> 3.0', :developer
|
34
34
|
|
35
35
|
spec.require_ruby_version( '>= 1.9.2' )
|
36
36
|
|
data/lib/configurability.rb
CHANGED
@@ -18,10 +18,10 @@ module Configurability
|
|
18
18
|
|
19
19
|
|
20
20
|
# Library version constant
|
21
|
-
VERSION = '2.2.
|
21
|
+
VERSION = '2.2.1'
|
22
22
|
|
23
23
|
# Version-control revision constant
|
24
|
-
REVISION = %q$Revision:
|
24
|
+
REVISION = %q$Revision: ead70de30aea $
|
25
25
|
|
26
26
|
require 'configurability/deferredconfig'
|
27
27
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'configurability'
|
4
4
|
require 'rspec'
|
5
5
|
|
6
|
-
|
6
|
+
RSpec.shared_examples "an object with Configurability" do
|
7
7
|
|
8
8
|
it "is extended with Configurability" do
|
9
9
|
expect( Configurability.configurable_objects ).to include( described_class )
|
@@ -18,7 +18,12 @@ describe Configurability do
|
|
18
18
|
setup_logging( :fatal )
|
19
19
|
end
|
20
20
|
|
21
|
-
|
21
|
+
before( :each ) do
|
22
|
+
Configurability.configurable_objects.clear
|
23
|
+
Configurability.reset
|
24
|
+
end
|
25
|
+
|
26
|
+
after( :all ) do
|
22
27
|
Configurability.configurable_objects.clear
|
23
28
|
Configurability.reset
|
24
29
|
end
|
@@ -300,7 +305,7 @@ describe Configurability do
|
|
300
305
|
describe "defaults hash" do
|
301
306
|
|
302
307
|
it "can generate a Hash of defaults for all objects with Configurability" do
|
303
|
-
Configurability.gather_defaults.
|
308
|
+
expect(Configurability.gather_defaults).to be_a( Hash )
|
304
309
|
end
|
305
310
|
|
306
311
|
it "fetches defaults from a CONFIG_DEFAULTS constant if the object defines one" do
|
data/spec/helpers.rb
CHANGED
@@ -22,21 +22,21 @@ require 'logger'
|
|
22
22
|
require 'erb'
|
23
23
|
require 'yaml'
|
24
24
|
|
25
|
+
require 'configurability/behavior'
|
25
26
|
require 'loggability/spechelpers'
|
26
27
|
|
27
28
|
require 'configurability'
|
28
29
|
|
29
30
|
|
30
31
|
RSpec.configure do |config|
|
31
|
-
config.
|
32
|
-
|
32
|
+
config.run_all_when_everything_filtered = true
|
33
|
+
config.filter_run :focus
|
34
|
+
config.order = 'random'
|
35
|
+
config.mock_with( :rspec ) do |mock|
|
36
|
+
mock.syntax = :expect
|
33
37
|
end
|
34
38
|
|
35
39
|
config.include( Loggability::SpecHelpers )
|
36
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
37
|
-
|
38
|
-
config.filter_run_excluding :only_ruby_19 if RUBY_VERSION < '1.9.2'
|
39
|
-
|
40
40
|
end
|
41
41
|
|
42
42
|
# vim: set nosta noet ts=4 sw=4:
|
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.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
|
31
31
|
ggcrPfcYeTwWlfZPu2LrBg==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-05
|
33
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: loggability
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.11'
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0.
|
48
|
+
version: '0.11'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: hoe-mercurial
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +108,14 @@ dependencies:
|
|
108
108
|
requirements:
|
109
109
|
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0.
|
111
|
+
version: '0.8'
|
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.8'
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: hoe-bundler
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,16 +134,16 @@ dependencies:
|
|
134
134
|
name: rspec
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ~>
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 3.0
|
139
|
+
version: '3.0'
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ~>
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 3.0
|
146
|
+
version: '3.0'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: hoe
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|