ocean-dynamo 1.0.6 → 1.0.7

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: 3fd0b46e1770667264ecd54d8758bd5fb66305fa
4
- data.tar.gz: c546e103e8193936f32e57fda8d1f8752b50b09a
3
+ metadata.gz: f47c84e16690a9e6d9cc8ce347a4efaef40598db
4
+ data.tar.gz: da9becfcb7f846de88cd3bfbc18790ee9880ab86
5
5
  SHA512:
6
- metadata.gz: 7e9c9903accadc4fe5022cfa34f070fcc1041fc6a653ef87378ea4dd13e80b410e284782309e45baf86452decde88918ffa345b56073c1dc1a5464cd8a61a5c3
7
- data.tar.gz: c1199c689b1a7e7c003d01a33f439eab32133ab666ac2522350b39a7ab43c0fff94c344e4f3fe2b0d5a72e4b0397448c6003c62ab090001e97bdfa174f73550a
6
+ metadata.gz: 8ada716f3b882be636aadec0dae83dd951390271eb3a42ea85df5d82d262fe1851f5d60a4928584608386bb9c1e01ae2f09c76c084f289a13fa003e6da72e5a6
7
+ data.tar.gz: 83e2e1f504b457436693a10d6da162cc0078ddc3a76c36f53d05c1fa04a78d70970e675de20936c8a8c348bd546c96a9af43a9ce93a98a04d7a5a7e05f96b2fb
@@ -49,6 +49,7 @@ module OceanDynamo
49
49
  # Deletes all records without instantiating them first.
50
50
  #
51
51
  def delete_all
52
+ _late_connect?
52
53
  ean = { "#H" => table_hash_key.to_s }
53
54
  ean["#R"] = table_range_key.to_s if table_range_key
54
55
  options = {
@@ -71,6 +72,7 @@ module OceanDynamo
71
72
  # Destroys all records after first instantiating them.
72
73
  #
73
74
  def destroy_all
75
+ _late_connect?
74
76
  in_batches :scan, { consistent_read: true } do |attrs|
75
77
  new._setup_from_dynamo(attrs).destroy
76
78
  end
@@ -60,6 +60,7 @@ module OceanDynamo
60
60
  # +options+ is the hash of options to pass to the scan or query operation.
61
61
  #
62
62
  def in_batches(message, options, &block)
63
+ _late_connect?
63
64
  loop do
64
65
  result = dynamo_table.send message, options
65
66
  result.items.each do |hash|
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson