toy-dynamo 0.0.5 → 0.0.6
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/lib/toy/dynamo/schema.rb +1 -1
- data/lib/toy/dynamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5d8387f139d7bb7a5482897fd890b4313f2c3b8
|
|
4
|
+
data.tar.gz: 5c51caec159188855d0280b5e99b8bb0ca56e167
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1666bd47f3ea19b098720387c59411eb15ef7a4c31202724ff1bdb6c02c3671cb16edaf5617c46b0a415408b885e4ad4feeee0dd186e92796cdcd51e1c7bb9f
|
|
7
|
+
data.tar.gz: 31ae6e655e45998dfe43279dc46a710d30ef65f5274bc52d91a3716ae580344b6dd71a0457c81080f9487f485af44db0bfbc434f3b2858821d870c0b79650d78
|
data/lib/toy/dynamo/schema.rb
CHANGED
|
@@ -162,7 +162,7 @@ module Toy
|
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
def validate_key_schema
|
|
165
|
-
if @dynamo_table.schema_loaded_from_dynamo[:table][:key_schema].sort_by { |k| k[:key_type] } != table_schema[:key_schema].sort_by { |k| k[:key_type] }
|
|
165
|
+
if @dynamo_table.schema_loaded_from_dynamo[:table][:key_schema].sort_by { |k| k[:key_type] } != table_schema[:key_schema].sort_by { |k| k[:key_type] }
|
|
166
166
|
raise ArgumentError, "It appears your key schema (Hash Key/Range Key) have changed from the table definition. Rebuilding the table is necessary."
|
|
167
167
|
end
|
|
168
168
|
|
data/lib/toy/dynamo/version.rb
CHANGED