greased-rails 3.2.0 → 3.2.1

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.0"
4
+ VERSION = "3.2.1"
5
5
  end
6
6
  end
@@ -44,11 +44,15 @@ module Greased
44
44
  property_values.collect do |setting_name, setting_values|
45
45
  parents = Array.wrap(property_name)
46
46
 
47
- if (target = app_target.send(setting_name.to_sym)).is_a? ActiveSupport::OrderedOptions
48
- parents << setting_name
47
+ if app_target.respond_to? setting_name.to_sym
48
+ if (target = app_target.send(setting_name.to_sym)).is_a? ActiveSupport::OrderedOptions
49
+ parents << setting_name
50
+ else
51
+ setting_values = { setting_name => setting_values }
52
+ target = app_target
53
+ end
49
54
  else
50
- setting_values = { setting_name => setting_values }
51
- target = app_target
55
+ puts "Warning: #{setting_name} doesn't exist"
52
56
  end
53
57
 
54
58
  setting_values.collect{ |key, value| new(app, target, key, value, env, parents) }
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.0
4
+ version: 3.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-04 00:00:00.000000000 Z
12
+ date: 2013-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: -477538115061915942
93
+ hash: -3085245065495355836
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: -477538115061915942
102
+ hash: -3085245065495355836
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.25