smooth_operator 1.22.2 → 1.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/smooth_operator/attribute_assignment.rb +4 -2
- data/lib/smooth_operator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDUyOWVhNTJiZTBhZGEwODhkZjhhY2RiMDAzZDFmMmFlODU2NjBmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGMzMjdiMDU1ODY1MGU1MmRiYjhjZjM1ZGNiNjRiYjg3YmEwNTIzYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzU1YWQyYTQwOTExMGMzZmU2YWJkZGY3ZTc0N2VmNThhMWE1ZjgzNDI5ZDVi
|
10
|
+
OTIwZGFmOGMyZmViZTdkODliY2Y3ZmU0YzdiMjBkNTFkYmQwNjg2MzhhMjBk
|
11
|
+
MDkxYjM0NzFhOTM5YTliOTMxZmE4N2UwZmJkZGRiMTYyODAzN2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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)
|
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.
|
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-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|