superstore 1.0.8 → 1.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fe6973f647264cf2466b44f2630bfb186762db5
4
- data.tar.gz: b0442b3f406f97813d766272017f4128b53ade72
3
+ metadata.gz: 14e6e854d00b71d3adc4c90c9a22a2ad037804f7
4
+ data.tar.gz: b93c4c751c9878bf0ffd5f9ad820318c7a4b516e
5
5
  SHA512:
6
- metadata.gz: 834b8f51e93b41128b19328160ad0836024424974679b60ba15eb65a1cd186674f80266074cfe697fc9871894ad22309823b698c53194c7c59af249e3552accf
7
- data.tar.gz: 8df635187a94bc4fc22416f5bffa77271f78c38c21fa70e6bfc6c8770f30a91b9a17cb790979f4c93b1dd522a0d03a9f7d6aca48fa71a56d11684542c1b4487a
6
+ metadata.gz: ffcc9039341bf692f33ace4bb30da758a24dc39c3f41037a794ae7a3ebe289a7136b7bcb604377bd99b74aa9f50e000c154166d574b784b33d68ad48d26631b3
7
+ data.tar.gz: a697096203de501f04f73fa73194ccf8c2e0b09f03e139dfd4a9152c1cfab47be90fd265cc064c45ae7b61430631ab3cf64b77a9c2ed4746ece148607ba84ee5
@@ -42,7 +42,7 @@ module Superstore
42
42
  object.instance_variable_set("@id", id) if id
43
43
  object.instance_variable_set("@new_record", false)
44
44
  object.instance_variable_set("@destroyed", false)
45
- object.instance_variable_set("@attributes", typecast_persisted_attributes(object, attributes))
45
+ object.instance_variable_set("@attributes", typecast_persisted_attributes(attributes))
46
46
  end
47
47
  end
48
48
 
@@ -64,7 +64,13 @@ module Superstore
64
64
  column_names.map { |name| "'#{name}'" }
65
65
  end
66
66
 
67
- def typecast_persisted_attributes(object, attributes)
67
+ def typecast_persisted_attributes(attributes)
68
+ typecast_persisted_attributes! attributes.dup
69
+ end
70
+
71
+ def typecast_persisted_attributes!(attributes)
72
+ attributes = attributes.dup
73
+
68
74
  attributes.each do |key, value|
69
75
  if definition = attribute_definitions[key]
70
76
  attributes[key] = definition.instantiate(value)
data/superstore.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'superstore'
5
- s.version = '1.0.8'
5
+ s.version = '1.0.9'
6
6
  s.description = 'ActiveModel for many attributes'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ["Michael Koziarski", "gotime"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Koziarski
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-19 00:00:00.000000000 Z
12
+ date: 2014-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel