interactor_with_steroids 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: d16db7c2aa725346ef74ec5025bf6a3997e977c1d270b58db4041aa1ddd1b3c8
4
- data.tar.gz: 3cd4d95ed845f5529dcedb0df3b7f3e74c87e8fd5811619434a81e690243715d
3
+ metadata.gz: 0ecd9b8161803b5a16814d6b05d200a3107b0febfe13e2a82cd0d4a05e963b81
4
+ data.tar.gz: 7e316f28acccbaa9f67dbc49d45cc1e5b47faafc5e2d5dfd4ba92f5be381f8d5
5
5
  SHA512:
6
- metadata.gz: d1a785d1bf09cbdc6c11dd36503d1396cdc88f32f05c11c7888324562fd5e62a6303dda64de8df7730200646bd8d3c8d3eadc832af68be5ce7f687e813812bf6
7
- data.tar.gz: 2e14390b06e5efaad86ffcffcee498e681175f5fbbd192fb5de37e3a6401f799d1555a8a6ab9351714af44912733549261dd536c3db7c4e253bbbead4f8ac715
6
+ metadata.gz: 8b1eb706406fcbd856c2d23a3f43d19faed8cbed8478ee1a71fcf602ea773f6a259bfbf10ac987efdaaa54fb847d67aca710212706c630fbb655f0c9fc49312b
7
+ data.tar.gz: d2676226b5ce8c0605d303a59fd30e3982d9da381d1020b18ffe826fe35fcb637eeef2ce01af9d0ad1945c3c7ed1ee5880c61790f0c8da4de75a38d31624257c
data/interactor.gemspec CHANGED
@@ -2,7 +2,7 @@ require "English"
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "interactor_with_steroids"
5
- spec.version = "1.1.0"
5
+ spec.version = "1.1.1"
6
6
 
7
7
  spec.author = "Collective Idea/Sorare Team"
8
8
  spec.email = "hello@sorare.com"
@@ -133,7 +133,7 @@ module Interactor
133
133
 
134
134
  def assign_attributes(params)
135
135
  params.each do |attribute, value|
136
- self.send("#{attribute}=", value)
136
+ self.send("#{attribute}=", value) if respond_to?(attribute)
137
137
  end
138
138
  end
139
139
 
@@ -36,6 +36,11 @@ module Interactor
36
36
  hash[:foo]
37
37
  }
38
38
  end
39
+
40
+ it "ignores any additional argument" do
41
+ hash = { foo: 'bar', bar: "baz" }
42
+ expect { interactor.context_class.build(hash) }.not_to raise_error
43
+ end
39
44
  end
40
45
 
41
46
  describe "#success?" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interactor_with_steroids
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collective Idea/Sorare Team