simply_configurable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,8 @@
1
1
  = Simply Configurable
2
2
 
3
+ == Version 0.0.2
4
+ * Allowing nested hash values (before, "MyClass.config :foo => {}" threw an error)
5
+
3
6
  == Version 0.0.1
4
7
  * Initial release
5
8
  * Supports indifferent access of config values (string or symbol)
@@ -1,3 +1,3 @@
1
1
  module SimplyConfigurable
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,4 +1,4 @@
1
- require 'active_support/hash_with_indifferent_access'
1
+ require 'active_support/core_ext/hash'
2
2
 
3
3
  module SimplyConfigurable
4
4
 
@@ -15,7 +15,7 @@ module SimplyConfigurable
15
15
  module ClassMethods
16
16
 
17
17
  def config(options = {})
18
- @config ||= HashWithIndifferentAccess.new({})
18
+ @config ||= {}.with_indifferent_access
19
19
 
20
20
  if options
21
21
  @config.merge!(options || {})
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_configurable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Dawson