active_cabinet 0.2.1 → 0.2.2

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: b61d0603a2ee6d70ca64a73cdf0081d869190d37b7bc3ba4795f79eb69389021
4
- data.tar.gz: fefcaba2831cdc000efbed76754714af54b71b06221bcd2818e81acf78d12c2b
3
+ metadata.gz: 2bb7b25b6bcdc051746be14b1fae78903def36a69aa9682a32ef101dd327a170
4
+ data.tar.gz: 563e0fbc9af54cf6f07bf7a8fa46036e36312389986fc3b9b6fafb11f535befa
5
5
  SHA512:
6
- metadata.gz: 4ff91224eabf6843fd471864fbcf235cae80970f689392ca4ee07936d5a4708489c2e3e3eec7c11407d6dee615faf341ee38196781e7989cbc731bc8c3240b85
7
- data.tar.gz: a6ba9e9921e5b11701489d75f786a09759ad39a76dba75fcd135745305a853ff46d487016e6c640640700259b99b138a528122e2197d39a37f25c15b7f490994
6
+ metadata.gz: 714556c68763e4e48f9760dbcb77147c21106e70643087ddebf86e726f00fc13888542214b89bd1cac30c26ec4f5287999440d685fde3d5121ddf5182370644e
7
+ data.tar.gz: 2a511fa52992ee68169fb224002b5b0500c7a3ae8f21af7571d2115c62388b10c70e560a2315972146ca58e2c1f879f485430c54349538fcfaea9a3eddd08070
@@ -159,7 +159,7 @@ class ActiveCabinet
159
159
  #
160
160
  # @param [Hash] new_attributes record attributes
161
161
  def update(new_attributes)
162
- @attributes = attributes.merge new_attributes
162
+ @attributes = attributes.merge(new_attributes.transform_keys &:to_sym)
163
163
  end
164
164
 
165
165
  # Update the record with new or modified attributes, and save.
@@ -1,3 +1,3 @@
1
1
  class ActiveCabinet
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_cabinet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_cabinet