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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2e21432dbacae4075129580826237c03f84aeab
4
- data.tar.gz: 8766968d2d59d607e8e1f94da100ccb65d49d479
3
+ metadata.gz: d7544069964657f861944630dc2c8e04bec27c02
4
+ data.tar.gz: 48c7137fa2c5c5bb385dfc536eb4ae5e4fdd4c1b
5
5
  SHA512:
6
- metadata.gz: dee6865e7b9465eb51891e990c11a8922478260a483771b5c6e98d08ee808c0f2af6aa229deeb97bfdd0e067b657d6ec8f0d42fa4b77da61fc4d722d8e2510a7
7
- data.tar.gz: 46f993eaf9d8418687d66617b3ce9db934a287c3671780088556ab34d8b21204541b203f7157f8349440c09d5c232a8b15747ebac8511530e5f6a4019ae12757
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
@@ -1,3 +1,3 @@
1
1
  module Dynamosaurus
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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: 2015-08-19 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler