dynamini 2.7.7 → 2.7.8

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: fc45db65ca08ec3c36c0485faabc78d4efd5766f
4
- data.tar.gz: 29d247ea3e84fe1d2ea19af3afc8e609bbc546a9
3
+ metadata.gz: 01ea8a754a012517d0bf7afbee76a77a450b9ac0
4
+ data.tar.gz: c1c776b9840febccb67de36ed21488ba2f870c1d
5
5
  SHA512:
6
- metadata.gz: 5ef34036274fb4aeba5e220164226ef768d867ba312538de25de2e330d1f3c8d0a52be94a991b60d1f7e50bd4894e22610c9fbcd25b3fdfe42f60cad9f8f7e32
7
- data.tar.gz: 07673908634f958be4dc8c21168f15ee75c85c078ed7ee08ca943c93e138a932613de341225e2c01f54bb26073ea74096005b8fcbd84f15c18961e8d7b856998
6
+ metadata.gz: 2536bae8f8bac94a056275c7a2bc342f8eddab779f1b72181f23dca5b6f31601d71f7ebe2fb3c2be546c77c284963ae39cd531370db7a59890e43537f569071f
7
+ data.tar.gz: 0d1f7f169d57f53d86fe248e6ecd8aea99f0206f0dc0caf5df717e8a2898db06eb3313db97a55dffb6b743f381bbcae78e28fc4c7cbde66b3c2c6fe11374e45d
@@ -1,31 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamini (2.7.6)
4
+ dynamini (2.7.8)
5
5
  activemodel (>= 3, < 5.0)
6
6
  aws-sdk (~> 2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.2.7.1)
12
- activesupport (= 4.2.7.1)
11
+ activemodel (4.2.8)
12
+ activesupport (= 4.2.8)
13
13
  builder (~> 3.1)
14
- activesupport (4.2.7.1)
14
+ activesupport (4.2.8)
15
15
  i18n (~> 0.7)
16
- json (~> 1.7, >= 1.7.7)
17
16
  minitest (~> 5.1)
18
17
  thread_safe (~> 0.3, >= 0.3.4)
19
18
  tzinfo (~> 1.1)
20
- aws-sdk (2.6.28)
21
- aws-sdk-resources (= 2.6.28)
22
- aws-sdk-core (2.6.28)
19
+ aws-sdk (2.7.15)
20
+ aws-sdk-resources (= 2.7.15)
21
+ aws-sdk-core (2.7.15)
23
22
  aws-sigv4 (~> 1.0)
24
23
  jmespath (~> 1.0)
25
- aws-sdk-resources (2.6.28)
26
- aws-sdk-core (= 2.6.28)
24
+ aws-sdk-resources (2.7.15)
25
+ aws-sdk-core (= 2.7.15)
27
26
  aws-sigv4 (1.0.0)
28
- builder (3.2.2)
27
+ builder (3.2.3)
29
28
  coderay (1.1.0)
30
29
  diff-lcs (1.2.5)
31
30
  ffi (1.9.10)
@@ -50,9 +49,8 @@ GEM
50
49
  guard-shell (0.7.1)
51
50
  guard (>= 2.0.0)
52
51
  guard-compat (~> 1.0)
53
- i18n (0.7.0)
52
+ i18n (0.8.1)
54
53
  jmespath (1.3.1)
55
- json (1.8.3)
56
54
  listen (3.0.3)
57
55
  rb-fsevent (>= 0.9.3)
58
56
  rb-inotify (>= 0.9)
@@ -87,7 +85,7 @@ GEM
87
85
  shellany (0.0.1)
88
86
  slop (3.6.0)
89
87
  thor (0.19.1)
90
- thread_safe (0.3.5)
88
+ thread_safe (0.3.6)
91
89
  tzinfo (1.2.2)
92
90
  thread_safe (~> 0.1)
93
91
 
@@ -103,4 +101,4 @@ DEPENDENCIES
103
101
  rspec (~> 3)
104
102
 
105
103
  BUNDLED WITH
106
- 1.13.6
104
+ 1.14.5
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dynamini'
3
- s.version = '2.7.7'
3
+ s.version = '2.7.8'
4
4
  s.summary = 'DynamoDB interface'
5
5
  s.description = 'Lightweight DynamoDB interface gem designed as
6
6
  a drop-in replacement for ActiveRecord.
@@ -34,6 +34,7 @@ module Dynamini
34
34
 
35
35
  def clear_changes
36
36
  @changes = Hash.new { |hash, key| hash[key] = Array.new(2) }
37
+ @original_values = {}
37
38
  end
38
39
 
39
40
  def was_method?(name)
@@ -360,6 +360,14 @@ describe Dynamini::Base do
360
360
  expect(existing_model.created_at.to_s).to_not eq(time.to_s)
361
361
  end
362
362
  end
363
+
364
+ context 'a record with changes present' do
365
+ it 'should reset @original_values' do
366
+ model = Dynamini::Base.create(id: '6789')
367
+ model.save
368
+ expect(model.instance_variable_get(:@original_values)).to be_empty
369
+ end
370
+ end
363
371
  end
364
372
 
365
373
  describe 'table config' 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.7
4
+ version: 2.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Ward
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-02-22 00:00:00.000000000 Z
18
+ date: 2017-02-27 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activemodel