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.
@@ -1,6 +1,6 @@
1
1
  module Greased
2
2
  module Rails
3
3
  # keep the major and minor version consistent with Rails
4
- VERSION = "3.2.1"
4
+ VERSION = "3.2.2"
5
5
  end
6
6
  end
@@ -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
- if app_target.respond_to? setting_name.to_sym
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
- else
55
- puts "Warning: #{setting_name} doesn't exist"
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.1
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: -3085245065495355836
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: -3085245065495355836
102
+ hash: 2114426110625253645
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.25