ocean-dynamo 0.6.2 → 0.6.4

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: 1c3c5f3325f4d3a75a5f8aac76f298770ccb716c
4
- data.tar.gz: b51d04d8abd29c0f5a2aeeb3c910a3471b57321a
3
+ metadata.gz: 4f5dffe6dc00e94b77dec7aff11382bc0f512d54
4
+ data.tar.gz: 18f6e9969b2611b910b161d5725c11b35b20541e
5
5
  SHA512:
6
- metadata.gz: e274efd97dd8993e2dc4c1a51ccc77aeebba419f9eab54c35c65142bd6ee14705e5749d0079a178106fb7fc29fe80e9390679d8b0f1b3617ea5c8638f1b14ede
7
- data.tar.gz: 4fc67d2184d99707cfe118fb5fe305251e1d5ad84f0e05997182dbcb260eae14f6f9d7bd7b9296df79f32b152cfd203634f67fb616501e58c5292ce41cf15d90
6
+ metadata.gz: 97b663d694875c923082fdd8034c531d60b9dbb1208f4de6104bf9b54bbb153149858e03593f86be65f390fb86f82caf51a7329a91af82a5ed13400fede3b3f4
7
+ data.tar.gz: caa5a6da3f41e9bbd81c824303ebe3fb1ef4f9eeb2c9a447e85b646061661bea3c1eee8e56d105962d89489f3885ab144ebe3d1cc5ed0f3842037385dd8db13d
@@ -40,11 +40,11 @@ module OceanDynamo
40
40
  #
41
41
  # Returns all records in the table.
42
42
  #
43
- def all(**options)
43
+ def all(consistent: false, **options)
44
44
  _late_connect?
45
45
  result = []
46
46
  dynamo_items.select(options) do |item_data|
47
- result << new._setup_from_dynamo(item_data)
47
+ result << new._setup_from_dynamo(item_data, consistent: consistent)
48
48
  end
49
49
  result
50
50
  end
@@ -57,9 +57,9 @@ module OceanDynamo
57
57
  # In that case, batch processing methods allow you to work with the records in batches,
58
58
  # thereby greatly reducing memory consumption.
59
59
  #
60
- def find_each(limit: nil, batch_size: 1000)
61
- dynamo_items.select(limit: limit, batch_size: 1000) do |item_data|
62
- yield new._setup_from_dynamo(item_data)
60
+ def find_each(limit: nil, batch_size: 1000, consistent: false)
61
+ dynamo_items.select(limit: limit, batch_size: batch_size) do |item_data|
62
+ yield new._setup_from_dynamo(item_data, consistent: consistent)
63
63
  end
64
64
  true
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk