tainbox 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tainbox/instance_methods.rb +4 -2
- data/lib/tainbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39d0af0651b569f4cf39ab09ff548bed085d5f8e
|
4
|
+
data.tar.gz: 5e4489e525acb6aacf0e556a9aacc3d10b728ff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b75710793915d64186e2ab032c01fa9565beb6d3f61c8dc51ceec0bb2be6226af41bea9dc8cb59d3ebb241462e07a87caaeee89c6262dc827facb93db7345dc
|
7
|
+
data.tar.gz: 8ee07e46b06606b418373d54d296514136ac8147d34ae264f6d6241a85165c5ac2af9628a06329b7750bf631522e61cf8f103245fa11c8c57e3836be16bafe9e
|
data/CHANGELOG.md
CHANGED
@@ -21,8 +21,10 @@ module Tainbox::InstanceMethods
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def attributes=(attributes)
|
24
|
-
|
25
|
-
|
24
|
+
if attributes.respond_to?(:to_h)
|
25
|
+
attributes = attributes.to_h
|
26
|
+
else
|
27
|
+
raise ArgumentError, 'Attributes can only be assigned via objects which respond to #to_h'
|
26
28
|
end
|
27
29
|
|
28
30
|
attributes = attributes.symbolize_keys
|
data/lib/tainbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tainbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Gubitskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|