autoconfig 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autoconfig.rb +1 -1
- 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".gsub
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- tjbladez
|