dynamosaurus 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/dynamosaurus/dynamo_class.rb +5 -1
- data/lib/dynamosaurus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7544069964657f861944630dc2c8e04bec27c02
|
|
4
|
+
data.tar.gz: 48c7137fa2c5c5bb385dfc536eb4ae5e4fdd4c1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85da6a8fd3bc46a7137ee563b7852f29332bb05caa0b251e3188335449c5ea2ea5e3793635959a62b91ac6c640bbe79a8b2c47e607f7410a550584e0a702c21f
|
|
7
|
+
data.tar.gz: cda89d6f18c179500a3e4afe462cf92d6b9337829c6713981a6dbc2ec6fc44367f6602711c975703bb102df877f88dc021217717d93177895ce8647933b34919
|
|
@@ -32,7 +32,7 @@ module Dynamosaurus
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def table_name
|
|
35
|
-
name.downcase + (ENV['DYNAMODB_SUFFIX'] || "_local")
|
|
35
|
+
(@table_prefix || name.downcase.split("::").last) + (ENV['DYNAMODB_SUFFIX'] || "_local")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def dynamo_db
|
|
@@ -185,6 +185,10 @@ module Dynamosaurus
|
|
|
185
185
|
}
|
|
186
186
|
nil
|
|
187
187
|
end
|
|
188
|
+
|
|
189
|
+
def table_prefix name
|
|
190
|
+
@table_prefix = name
|
|
191
|
+
end
|
|
188
192
|
|
|
189
193
|
def key_list
|
|
190
194
|
keys = get_key + get_secondary_indexes.values.flatten
|
data/lib/dynamosaurus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynamosaurus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Isamu Arimoto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|