nifty_settings 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6651dcfe4c7f6e0c28276f172219dc97e5ab1651
4
- data.tar.gz: 632811ea407d4a49ec3202db60b7a5524909ec3f
3
+ metadata.gz: 7a143277f1670d5debed33a59d126dae419530f6
4
+ data.tar.gz: 7c317bc41fbd3d43eb88fbaf73beb427a0d667bb
5
5
  SHA512:
6
- metadata.gz: e7592769ffcce4853ebeea1bd67ce70d63672c4baafc39d9204a9a22ff97c178d1c70bc0f94b58e49228244c681892fe7311f109d943f350b9465610c7bff3a7
7
- data.tar.gz: 8c34282af452aa6462d5f85815eb3701ae347782124fe2152256ad7359ddb221f6c6108552c89e02416a18b3531fc02348e3e70415319d26b1c23a7432071012
6
+ metadata.gz: e7840e35d4abddc375876f5b22dab4ef583701643266b69708bcee282d7f4f007fc0186c4f3e33c6587540607d1fb1f549f083b1da3df198242bcfdc8dbedd2a
7
+ data.tar.gz: 7617b66466b64c74c78b6bc60fc8247fcb100c0f0d0cdaf698eb76c8c047a901deee2c2f3d25b08f9c214e494508542e6e1987c06486ce4185b54389c38efb0e
@@ -23,13 +23,14 @@ module NiftySettings
23
23
  end
24
24
  alias_method :to_a, :to_ary
25
25
 
26
- def to_s
26
+ def to_str
27
27
  if self.nil?
28
28
  nil
29
29
  else
30
30
  self.to_hash
31
31
  end.to_s
32
32
  end
33
+ alias_method :to_s, :to_str
33
34
 
34
35
  def []=(k, v)
35
36
  @hash[k.to_sym] = normalize_attr(v)
@@ -1,3 +1,3 @@
1
1
  module NiftySettings
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.1
4
+ version: 1.1.2
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-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -112,3 +112,4 @@ summary: Settings
112
112
  test_files:
113
113
  - spec/nifty_settings/settings_spec.rb
114
114
  - spec/spec_helper.rb
115
+ has_rdoc: