dynamini 2.7.4 → 2.7.6

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
  SHA1:
3
- metadata.gz: 145853bc6f09042cd135919cb52a8f9c096f7e29
4
- data.tar.gz: a1887a7aaf02775dee6a909d59f48fdf269ccb15
3
+ metadata.gz: 1db2d21499fb1ae5bac1a91248f14ccc8c0adbda
4
+ data.tar.gz: 6b9c2f937622394c1c1c0ec41da703dd973beadd
5
5
  SHA512:
6
- metadata.gz: 5767ba0bf1bf20f674782f208a27e78c7d3dbdcbd17fff55ee3c086c1173362782d90dbe0ddf56f222c80c271bb9b5c1472f916b7f7ba1cc7f62b7cd84924dd6
7
- data.tar.gz: fb39fb5e7692b117608059020523de9174945897e4555db2b90d5b90591ea056380ea126bedef554073db14a6a73cd9ad6f75ae0bc059161cf6d327c45a542c4
6
+ metadata.gz: c7a17edab0369bf6a35504b47b71b573f852ecd2f670845c2c13c8b5235c58bdb25f90aa907d93aab3e416b0e7039d527895fd802161f613ace8837c35f4fbe5
7
+ data.tar.gz: b4e085cd274edb7b9071cc5a7bedcb49498dfd9df0006bd302d80eaebaa2cbb3bb953ecbeb0886b98d8a2208e36b4cd3f5aba38cb642c8c46c34f887067b9a00
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamini (2.7.3)
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.6)
21
- aws-sdk-resources (= 2.6.6)
22
- aws-sdk-core (2.6.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.6)
25
- aws-sdk-core (= 2.6.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.9.1)
61
+ minitest (5.10.1)
60
62
  nenv (0.2.0)
61
63
  notiffany (0.0.8)
62
64
  nenv (~> 0.1)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dynamini'
3
- s.version = '2.7.4'
3
+ s.version = '2.7.6'
4
4
  s.summary = 'DynamoDB interface'
5
5
  s.description = 'Lightweight DynamoDB interface gem designed as
6
6
  a drop-in replacement for ActiveRecord.
@@ -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] = { value: current_value, action: value[2] || 'PUT' }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamini
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.4
4
+ version: 2.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Ward