reaction 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64ad0f7a9f6a3fa83bbd51d76d4e4130fd6c5382
4
- data.tar.gz: 22aeb6e68e7c4c15f7edb8258e279e52a67558da
3
+ metadata.gz: e9a60d89e61486f6efad35627c71414e6d928e31
4
+ data.tar.gz: b54420b3e1f347d7ce9311c33863f0470df8c6cb
5
5
  SHA512:
6
- metadata.gz: 1bbd8dc85d2b1f876180869f69cdea55aaa93e5cb4f627e11b09b98dfcd2369474de98114bdf6109e6e39b500cee322545a31ef92f35077dbb9940e7d089e37e
7
- data.tar.gz: 9512c210af9da68f92c6d4875c0793f516b10becef907e0d81dd05f7ef4d051d475055810aaf1d0519a6e75e0fc314fb0aff0089a73cf183e314be55f9db5a0f
6
+ metadata.gz: 5a1efc95c948da004d4bac324554efa5dd19282c3b324f3c288db0391b92fd28a004de3c77513a9aa00cad900825d0a23d0dc4ea3f4333a9bea209cc60b5d7f5
7
+ data.tar.gz: 61324a1ffb2456472c6d60c22027c811072d1e869981dd1889c6a63d8e6dd81698ede48d770fea6fef459d2a18b50e25752c30489786b51e5b05af397e0e9aa5
@@ -57,8 +57,10 @@ module Reaction
57
57
  end
58
58
 
59
59
  def set_params(param_values = {})
60
+ provided_keys = param_values.keys.map(&:to_sym)
61
+
60
62
  self.class.param_builders.each do |name, pb|
61
- provided = param_values.keys.include?(name)
63
+ provided = provided_keys.include?(name)
62
64
  _params[name] = pb.build(self, param_values[name], provided)
63
65
  end
64
66
  end
data/reaction.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'reaction'
7
- gem.version = '1.0.2'
7
+ gem.version = '1.0.3'
8
8
  gem.authors = ["Jon Calhoun", "Jon Calhoun", "Ryan Jackson"]
9
9
  gem.email = ["joncalhoun@gmail.com", "jon@paidlabs.com", "ryan@paidlabs.com"]
10
10
  gem.description = 'Reaction makes it easy to build reusable controller actions along with reusable validators and param type converters.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Calhoun