smooth_operator 1.22.2 → 1.22.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDIzN2MyYjYyZjgxODA1Y2I4OWFmYjQzMTUxNTY5YjAwY2UzYzgwZQ==
4
+ MDUyOWVhNTJiZTBhZGEwODhkZjhhY2RiMDAzZDFmMmFlODU2NjBmMA==
5
5
  data.tar.gz: !binary |-
6
- OGNhYTkwN2QwMWUxOTY2YTBlZGVlOTg4YTYwNWQ5MWQzYWJlMzNkNw==
6
+ MGMzMjdiMDU1ODY1MGU1MmRiYjhjZjM1ZGNiNjRiYjg3YmEwNTIzYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTgxMzMwZDVlYjc2MmUzZmJhYjFhNGUxZWU4MGIwYjIwMmEzYjczMWNhMDZi
10
- NjA3NTExMDI4OGM5ZTE4MjIyNmQzYjc0YjhlYmJiN2QyY2NkMGU3NGIyZWEy
11
- MmZmYzU1MjMwZDhiNTlkYTNiYjIzZDJmZDJkZjczMzE5MzYwYzY=
9
+ YzU1YWQyYTQwOTExMGMzZmU2YWJkZGY3ZTc0N2VmNThhMWE1ZjgzNDI5ZDVi
10
+ OTIwZGFmOGMyZmViZTdkODliY2Y3ZmU0YzdiMjBkNTFkYmQwNjg2MzhhMjBk
11
+ MDkxYjM0NzFhOTM5YTliOTMxZmE4N2UwZmJkZGRiMTYyODAzN2E=
12
12
  data.tar.gz: !binary |-
13
- MGMyOWJjYzkxMzFkMzQxYjBlMzBkZGMyNDA0MjFiMTNiOTliYWI4YmFiZjMx
14
- ZjE4YzFjZTZhNWEzYjc4NjAxZTcwYTllNTQ0NmY3Yzg0NzZmM2M4NzEyZWYy
15
- MjIzNzkxNzkzMmYyZWJmZGRiNDEyMjlhYzFlNzRhZjUzMzU2ZGY=
13
+ NjczZjVlNzEwZWQ2YTUwYWZjZmI1ZTNhNjJmOTVjMjU1ZmM5YjkyNzY0NWJi
14
+ MzNlZjFlNTk1ZGYzZmI5MTAxMGUwNWZkMjFhMjNlNTM5ZTFkOTAwN2M2NGY4
15
+ NzZlZjk1YjA4MzVlMmFhZjAxMjJiMTQxOTUxZmNhYTY4NTI0ODM=
@@ -14,10 +14,10 @@ module SmoothOperator
14
14
  attr_reader :_options, :_meta_data
15
15
 
16
16
  def assign_attributes(attributes = {}, options = {})
17
- return nil unless attributes.is_a?(Hash)
18
-
19
17
  attributes = _extract_attributes(attributes)
20
18
 
19
+ return nil unless attributes.is_a?(Hash)
20
+
21
21
  induce_errors(attributes.delete(self.class.errors_key))
22
22
 
23
23
  @_options.merge!(options) if options.is_a? Hash
@@ -32,6 +32,8 @@ module SmoothOperator
32
32
  protected ################# PROTECTED METHODS DOWN BELOW ###################
33
33
 
34
34
  def _extract_attributes(attributes)
35
+ return nil unless attributes.is_a?(Hash)
36
+
35
37
  _attributes = Helpers.stringify_keys(attributes)
36
38
 
37
39
  if _attributes.include?(self.class.resource_name)
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = "1.22.2"
2
+ VERSION = "1.22.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooth_operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.2
4
+ version: 1.22.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-04 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler