gaston 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gaston/store.rb CHANGED
@@ -11,7 +11,11 @@ class Gaston
11
11
  def initialize(hash)
12
12
  hash ||= {}
13
13
  hash.each do |key, value|
14
- value.is_a?(Hash) ? self[key] = Gaston::Store.new(value) : self[key] = value
14
+ if hash.respond_to? key
15
+ warn "#{key} method already exists on Hash, value: #{value}"
16
+ else
17
+ value.is_a?(Hash) ? self[key] = Gaston::Store.new(value) : self[key] = value
18
+ end
15
19
  end
16
20
  end
17
21
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  class Gaston
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaston
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-29 00:00:00.000000000 Z
12
+ date: 2012-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &21579540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '2.8'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *21579540
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.8'
25
30
  description: ! '[Dead simple Ruby config store.]'
26
31
  email: jboyer@af83.com
27
32
  executables: []
@@ -53,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
58
  version: '0'
54
59
  requirements: []
55
60
  rubyforge_project:
56
- rubygems_version: 1.8.10
61
+ rubygems_version: 1.8.24
57
62
  signing_key:
58
63
  specification_version: 3
59
64
  summary: ! '[Dead simple Ruby config store.]'