ocean-dynamo 0.7.4 → 0.7.5

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: 1d8cb43670b0a2cb8ece82990e32f69a7cba4a0c
4
- data.tar.gz: b8bd1b152271301e668e0afd757f42c7cf7fd707
3
+ metadata.gz: 4f8f15f518a6ebd5f2641813c0dbdca6a2e08c22
4
+ data.tar.gz: 6cd1649181ef94bd8be00c988e7c54313d893721
5
5
  SHA512:
6
- metadata.gz: dc8d6bcfb5ae2629e6f26b0fa9724c2e13f968ac961e1ccb7b18446c9e893f48dcadeab505d91349407b51fdf08fa04f5a9eee7d06f099e5d0817d6554b64101
7
- data.tar.gz: 89b36f8c68311ede6a11c35ce94bfb634c310b1653f3fb5a6ddab81eabaef721d3facddddb933a6c9257c14154fd40de0187425f24e51e86a4060afb71ffef5e
6
+ metadata.gz: 348414c9d1533da6e0615f90ee510ef72c913b58b4eadc6696a74137189173b7e9a4cd77315563304c8ccbab220b5a9b254b93ad7da7474865f081627174ffd5
7
+ data.tar.gz: 5c4c8da288dacad52aeccf9cda01d4448a10f11fbad95234df98623a02ce75e3a72103ce4812da62f78857d59213e2a88f845cda159c6722de8b4905cc8ff165
@@ -147,6 +147,7 @@ module OceanDynamo
147
147
  def map_children(child_class)
148
148
  return if new_record?
149
149
  child_items = child_class.dynamo_items
150
+ return if child_items.blank?
150
151
  child_items.query(hash_value: id, range_gte: "0",
151
152
  batch_size: 1000, select: :all) do |item_data|
152
153
  yield child_class.new._setup_from_dynamo(item_data)
@@ -160,6 +161,7 @@ module OceanDynamo
160
161
  def delete_children(child_class)
161
162
  return if new_record?
162
163
  child_items = child_class.dynamo_items
164
+ return if child_items.blank?
163
165
  child_items.query(hash_value: id, range_gte: "0",
164
166
  batch_size: 1000) do |item|
165
167
  item.delete
@@ -175,6 +177,7 @@ module OceanDynamo
175
177
  def nullify_children(child_class)
176
178
  return if new_record?
177
179
  child_items = child_class.dynamo_items
180
+ return if child_items.blank?
178
181
  child_items.query(hash_value: id, range_gte: "0",
179
182
  batch_size: 1000, select: :all) do |item_data|
180
183
  attrs = item_data.attributes
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
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.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 4.2.0
75
+ version: '4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 4.2.0
82
+ version: '4'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sqlite3
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  requirements: []
209
209
  rubyforge_project:
210
- rubygems_version: 2.4.6
210
+ rubygems_version: 2.4.5.1
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: OceanDynamo is a massively scalable Amazon DynamoDB near drop-in replacement