autoconfig 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/autoconfig.rb +1 -1
  2. metadata +3 -3
data/lib/autoconfig.rb CHANGED
@@ -44,7 +44,7 @@ module AutoConfig
44
44
  app_config.update(config['defaults'] || {})
45
45
  app_config.update(config[environment] || {})
46
46
 
47
- Object::const_set("#{name}Config".camelize.intern, OpenStruct.new(app_config))
47
+ Object::const_set("#{name}Config".gsub!('-','_').camelize.intern, OpenStruct.new(app_config))
48
48
  end
49
49
  ensure
50
50
  $VERBOSE = old_verbose
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoconfig
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - tjbladez