dynamini 2.7.4 → 2.7.6
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 +4 -4
- data/Gemfile.lock +9 -7
- data/dynamini.gemspec +1 -1
- data/lib/dynamini/attributes.rb +2 -1
- data/spec/dynamini/attributes_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db2d21499fb1ae5bac1a91248f14ccc8c0adbda
|
4
|
+
data.tar.gz: 6b9c2f937622394c1c1c0ec41da703dd973beadd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a17edab0369bf6a35504b47b71b573f852ecd2f670845c2c13c8b5235c58bdb25f90aa907d93aab3e416b0e7039d527895fd802161f613ace8837c35f4fbe5
|
7
|
+
data.tar.gz: b4e085cd274edb7b9071cc5a7bedcb49498dfd9df0006bd302d80eaebaa2cbb3bb953ecbeb0886b98d8a2208e36b4cd3f5aba38cb642c8c46c34f887067b9a00
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dynamini (2.7.
|
4
|
+
dynamini (2.7.5)
|
5
5
|
activemodel (>= 3, < 5.0)
|
6
6
|
aws-sdk (~> 2)
|
7
7
|
|
@@ -17,12 +17,14 @@ GEM
|
|
17
17
|
minitest (~> 5.1)
|
18
18
|
thread_safe (~> 0.3, >= 0.3.4)
|
19
19
|
tzinfo (~> 1.1)
|
20
|
-
aws-sdk (2.6.
|
21
|
-
aws-sdk-resources (= 2.6.
|
22
|
-
aws-sdk-core (2.6.
|
20
|
+
aws-sdk (2.6.28)
|
21
|
+
aws-sdk-resources (= 2.6.28)
|
22
|
+
aws-sdk-core (2.6.28)
|
23
|
+
aws-sigv4 (~> 1.0)
|
23
24
|
jmespath (~> 1.0)
|
24
|
-
aws-sdk-resources (2.6.
|
25
|
-
aws-sdk-core (= 2.6.
|
25
|
+
aws-sdk-resources (2.6.28)
|
26
|
+
aws-sdk-core (= 2.6.28)
|
27
|
+
aws-sigv4 (1.0.0)
|
26
28
|
builder (3.2.2)
|
27
29
|
coderay (1.1.0)
|
28
30
|
diff-lcs (1.2.5)
|
@@ -56,7 +58,7 @@ GEM
|
|
56
58
|
rb-inotify (>= 0.9)
|
57
59
|
lumberjack (1.0.9)
|
58
60
|
method_source (0.8.2)
|
59
|
-
minitest (5.
|
61
|
+
minitest (5.10.1)
|
60
62
|
nenv (0.2.0)
|
61
63
|
notiffany (0.0.8)
|
62
64
|
nenv (~> 0.1)
|
data/dynamini.gemspec
CHANGED
data/lib/dynamini/attributes.rb
CHANGED
@@ -54,7 +54,8 @@ module Dynamini
|
|
54
54
|
def attribute_updates
|
55
55
|
changes.reduce({}) do |updates, (key, value)|
|
56
56
|
current_value = value[1]
|
57
|
-
updates[key] = {
|
57
|
+
updates[key] = { action: value[2] || 'PUT' }
|
58
|
+
updates[key][:value] = current_value unless current_value == DELETED_TOKEN
|
58
59
|
updates
|
59
60
|
end
|
60
61
|
end
|
@@ -136,6 +136,7 @@ describe Dynamini::Attributes do
|
|
136
136
|
it 'should enqueue a DELETE change for that attribute' do
|
137
137
|
model.delete_attribute(:stuff)
|
138
138
|
expect(model.changes['stuff']).to eq([model_attributes[:stuff], Dynamini::Attributes::DELETED_TOKEN, 'DELETE'])
|
139
|
+
expect(model.send(:attribute_updates)['stuff'].keys).to_not include(:value)
|
139
140
|
end
|
140
141
|
|
141
142
|
it 'should remove the attribute from the in-memory attributes' do
|