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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e20c53d95f82bf536b091f4076ecb2500e86f50a
4
- data.tar.gz: 88cd57ee350ff322fa6aab8681c8c1568348c4ed
3
+ metadata.gz: a84771c13524bc56cd8ff1e4ee93dfcf0e65bc54
4
+ data.tar.gz: 2e3836e6cde941510b3bec4bdafcedd6cdc69776
5
5
  SHA512:
6
- metadata.gz: 7977fc61c2a3cd943e8cc762b5b94751b55cb267bd8be482001acea0736cf318fc2d9c3f12df1811741e597c1f63ebf6c299c6a88b338373657a94b38158dce8
7
- data.tar.gz: 659341e2d540ed698d704537b60b28d213430b0ad962dec659b30f55e3a001b682ebb8afe919ebb99fa68306783bd89c8594bd941910481cf9ab0c376cd8a8ba
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
@@ -1,3 +1,8 @@
1
+ == v2.2.1 [2014-06-04] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Update shared behavior to work under RSpec 3.0.0.
4
+
5
+
1
6
  == v2.2.0 [2014-05-19] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Add a .default_config method to objects with Configurability.
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.4'
28
+ spec.dependency 'loggability', '~> 0.11'
29
29
 
30
- spec.dependency 'hoe-deveiate', '~> 0.3', :developer
31
- spec.dependency 'simplecov', '~> 0.5', :developer
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.0.beta2', :developer
33
+ spec.dependency 'rspec', '~> 3.0', :developer
34
34
 
35
35
  spec.require_ruby_version( '>= 1.9.2' )
36
36
 
@@ -18,10 +18,10 @@ module Configurability
18
18
 
19
19
 
20
20
  # Library version constant
21
- VERSION = '2.2.0'
21
+ VERSION = '2.2.1'
22
22
 
23
23
  # Version-control revision constant
24
- REVISION = %q$Revision: 7ecaadfcf254 $
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
- share_examples_for "an object with Configurability" do
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
- after( :each ) do
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.should be_a( Hash )
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.mock_with( :rspec ) do |config|
32
- config.syntax = :expect
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.0
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-19 00:00:00.000000000 Z
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.4'
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.4'
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.5'
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.5'
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.0.beta2
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.0.beta2
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