greased-rails 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/greased/rails/version.rb +1 -1
- data/lib/greased/setting.rb +7 -5
- metadata +3 -3
data/lib/greased/setting.rb
CHANGED
@@ -44,18 +44,20 @@ module Greased
|
|
44
44
|
property_values.collect do |setting_name, setting_values|
|
45
45
|
parents = Array.wrap(property_name)
|
46
46
|
|
47
|
-
|
47
|
+
begin
|
48
48
|
if (target = app_target.send(setting_name.to_sym)).is_a? ActiveSupport::OrderedOptions
|
49
49
|
parents << setting_name
|
50
50
|
else
|
51
51
|
setting_values = { setting_name => setting_values }
|
52
52
|
target = app_target
|
53
53
|
end
|
54
|
-
|
55
|
-
|
54
|
+
|
55
|
+
setting_values.collect{ |key, value| new(app, target, key, value, env, parents) }
|
56
|
+
rescue NoMethodError => ex
|
57
|
+
puts "Warning! Configuration section #{app_target} doesn't exist: #{ex}"
|
58
|
+
|
59
|
+
[]
|
56
60
|
end
|
57
|
-
|
58
|
-
setting_values.collect{ |key, value| new(app, target, key, value, env, parents) }
|
59
61
|
end.flatten
|
60
62
|
end
|
61
63
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greased-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: 2114426110625253645
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash:
|
102
|
+
hash: 2114426110625253645
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.25
|