dynamini 2.6.6 → 2.6.8
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 +6 -6
- data/dynamini.gemspec +1 -1
- data/lib/dynamini/test_client.rb +2 -0
- data/spec/dynamini/batch_operations_spec.rb +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdfc84fe329dae011f69a61ac1af6b0c22f7a009
|
4
|
+
data.tar.gz: 85dae7d4ed4e50e863c6717e6beff8ae5bc84ff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc9700d794a7c660bdf1090a9774326945bbc7a6f74e5fcb8658c9b453c53578207f0d8116f63c2f5fe62ade2d0e98efcc0a294dca31b81ec588a48a0cf7530
|
7
|
+
data.tar.gz: d62dad577c5100725d13fe9658a13c0784dda7d24d0717e422b01d83d206b06aeba0fa24a09a7859f1b7d6970f82fb879f26a05d15c29ef26c15954174f57c38
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dynamini (2.6.
|
4
|
+
dynamini (2.6.8)
|
5
5
|
activemodel (>= 3, < 5.0)
|
6
6
|
aws-sdk (~> 2)
|
7
7
|
|
@@ -17,12 +17,12 @@ 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.6)
|
21
|
+
aws-sdk-resources (= 2.6.6)
|
22
|
+
aws-sdk-core (2.6.6)
|
23
23
|
jmespath (~> 1.0)
|
24
|
-
aws-sdk-resources (2.6.
|
25
|
-
aws-sdk-core (= 2.6.
|
24
|
+
aws-sdk-resources (2.6.6)
|
25
|
+
aws-sdk-core (= 2.6.6)
|
26
26
|
builder (3.2.2)
|
27
27
|
coderay (1.1.0)
|
28
28
|
diff-lcs (1.2.5)
|
data/dynamini.gemspec
CHANGED
data/lib/dynamini/test_client.rb
CHANGED
@@ -73,6 +73,8 @@ module Dynamini
|
|
73
73
|
|
74
74
|
args[:request_items].each do |table_name, get_request|
|
75
75
|
responses[table_name] = []
|
76
|
+
ids = get_request[:keys].flat_map(&:values)
|
77
|
+
raise 'Aws::DynamoDB::Errors::ValidationException: Provided list of item keys contains duplicates' if ids.length != ids.uniq.length
|
76
78
|
get_request[:keys].each do |key_hash|
|
77
79
|
item = get_table(table_name)[key_hash.values.first]
|
78
80
|
responses[table_name] << item unless item.nil?
|
@@ -75,9 +75,14 @@ describe Dynamini::BatchOperations do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
context 'when requesting over 100 items' do
|
78
|
-
let(:ids)
|
78
|
+
let(:ids) do
|
79
|
+
i =* (1..101)
|
80
|
+
i.map(&:to_s)
|
81
|
+
end
|
82
|
+
|
79
83
|
before do
|
80
|
-
|
84
|
+
i =* (1..51)
|
85
|
+
i.each { |id| Dynamini::Base.create(id: id.to_s) }
|
81
86
|
end
|
82
87
|
|
83
88
|
it 'should call dynamo once for each 100 items' 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.6.
|
4
|
+
version: 2.6.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: 2016-10-
|
18
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activemodel
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.6.4
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: DynamoDB interface
|