nifty_settings 1.1.2 → 1.1.3

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: 7a143277f1670d5debed33a59d126dae419530f6
4
- data.tar.gz: 7c317bc41fbd3d43eb88fbaf73beb427a0d667bb
3
+ metadata.gz: 027269b16af0f027d079732f8d1c367e4b9b6290
4
+ data.tar.gz: 086be73a4982fc80b6b62d4d5e65303a86458e2a
5
5
  SHA512:
6
- metadata.gz: e7840e35d4abddc375876f5b22dab4ef583701643266b69708bcee282d7f4f007fc0186c4f3e33c6587540607d1fb1f549f083b1da3df198242bcfdc8dbedd2a
7
- data.tar.gz: 7617b66466b64c74c78b6bc60fc8247fcb100c0f0d0cdaf698eb76c8c047a901deee2c2f3d25b08f9c214e494508542e6e1987c06486ce4185b54389c38efb0e
6
+ metadata.gz: 97bf3f6f449614dc71b5986d89b3271ae89484e0839206f875aa2ea3e91750780e20c06b7d59a05854429fe8ba23ec4d19c405c3bd8806b1530961f9a71d3481
7
+ data.tar.gz: 5e6e851acd5d6cbf49695ea9da486023d2ee410d34288b6c715ef9ed7a4918c5b0f57042dab0671bf6d0a682b86ba9bfe9cea031adb9a23d33e37cb73bd28400
@@ -10,7 +10,7 @@ module NiftySettings
10
10
  end
11
11
 
12
12
  def ==(other)
13
- self.to_hash == other.to_hash
13
+ self.to_s == other.to_s
14
14
  end
15
15
 
16
16
  def to_hash
@@ -1,3 +1,3 @@
1
1
  module NiftySettings
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.test_files = gem.files.grep(%r(^(test|spec|features)/))
20
20
  gem.require_paths = ['lib']
21
21
 
22
- gem.add_development_dependency 'rake', '>= 0.9.0'
22
+ gem.add_development_dependency 'rake'
23
23
  gem.add_development_dependency 'rspec', '~> 2.14.0'
24
24
  gem.add_development_dependency 'rb-fsevent', '~> 0.9.0'
25
25
  if RUBY_VERSION < '1.9.3'
@@ -7,9 +7,10 @@ describe NiftySettings::Settings do
7
7
  let(:empty_settings) { NiftySettings::Settings.new }
8
8
 
9
9
  context 'comparing two settings' do
10
- it 'uses the hash to determine whether they are the same' do
11
- expect(NiftySettings::Settings.new(settings_hash)).to eq(NiftySettings::Settings.new(settings_hash))
12
- expect(NiftySettings::Settings.new(settings_hash)).to_not eq(NiftySettings::Settings.new(nested_settings_hash))
10
+ it 'works as expected' do
11
+ expect(NiftySettings::Settings.new(settings_hash)).to be == NiftySettings::Settings.new(settings_hash)
12
+ expect(NiftySettings::Settings.new(settings_hash)).to_not be == NiftySettings::Settings.new(nested_settings_hash)
13
+ expect(NiftySettings::Settings.new(settings_hash)).to_not be == 'random string'
13
14
  end
14
15
  end
15
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-20 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement