greased-rails 3.2.2 → 3.2.3
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 +4 -6
- metadata +3 -3
data/lib/greased/setting.rb
CHANGED
@@ -41,7 +41,7 @@ module Greased
|
|
41
41
|
def from_config(app, property_name, property_values, env)
|
42
42
|
app_target = app.send(property_name.to_sym)
|
43
43
|
|
44
|
-
property_values.
|
44
|
+
property_values.map do |setting_name, setting_values|
|
45
45
|
parents = Array.wrap(property_name)
|
46
46
|
|
47
47
|
begin
|
@@ -52,13 +52,11 @@ module Greased
|
|
52
52
|
target = app_target
|
53
53
|
end
|
54
54
|
|
55
|
-
setting_values.
|
55
|
+
setting_values.map{ |key, value| new(app, target, key, value, env, parents) }
|
56
56
|
rescue NoMethodError => ex
|
57
|
-
puts "
|
58
|
-
|
59
|
-
[]
|
57
|
+
puts "WARNING: Configuration section #{setting_name} doesn't exist: #{ex}"
|
60
58
|
end
|
61
|
-
end.flatten
|
59
|
+
end.flatten.compact
|
62
60
|
end
|
63
61
|
|
64
62
|
end
|
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.3
|
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: 2340121733539967068
|
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: 2340121733539967068
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.25
|