dynamodb-api 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: b0e493a4832d1843b505d76d08b9830d2e919e123b2ccf02407ebeff1da90880
4
- data.tar.gz: cec7bb6630629e0384e9195583e9e4ecf375d07df609ce7abe0da8fda63c8085
3
+ metadata.gz: 103a1c31346382c94e09bf2a72b6f19a4beaa332f4ec67f977fcf82096a13af7
4
+ data.tar.gz: c814beb0514fd79802b3a8dd72e126ede9c1757ced0a6f04d0792ede7d1b1c0a
5
5
  SHA512:
6
- metadata.gz: 9b7e74a28b06b41b5bcc394028c812b2d979e411b09e7140a14bd0abcbeccea9af0db69ea9281d00a82ab4dde46fb4909b76d858484e229e3856766557f90f0c
7
- data.tar.gz: 7cac1cd51d923ccf69d72718cd1cd8a684327c16c718d37d7dcace0aefa56ef982ca28160b79ea76782f4ac04c3ca2ea344b5e636dd8dc6ed919367975f6dec6
6
+ metadata.gz: '05700607855a33c9628b615bd57320fe93bba3ad22963bf1657e7282ecac039400e3f79f53f896a56f0d2aae3a8760c44aca66fa04f5715dc99bf0b0bb1ac706'
7
+ data.tar.gz: fd9c9124466bb97054cfa2671cb89375ce81e66a109dee79bfb9a06694ea3aa28505ad511d5775b1f0507dc9fd221944740610cdf8c9db744f7bee39dd557eea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamodb-api (0.3.0)
4
+ dynamodb-api (0.3.1)
5
5
  activesupport (>= 4)
6
6
  aws-sdk (~> 2)
7
7
 
data/README.md CHANGED
@@ -29,6 +29,8 @@ Dynamodb::Api.config do |config|
29
29
  config.access_key = ''
30
30
  config.secret_key = ''
31
31
  config.region = ''
32
+ config.table_name_prefix = ''
33
+ config.index_name_prefix = ''
32
34
  end
33
35
  ```
34
36
 
@@ -10,6 +10,8 @@ module Dynamodb
10
10
  option :secret_key, default: nil
11
11
  option :region, default: nil
12
12
  option :endpoint, default: nil
13
+ option :table_name_prefix, default: ''
14
+ option :index_name_prefix, default: ''
13
15
  end
14
16
  end
15
17
  end
@@ -7,6 +7,9 @@ module Dynamodb
7
7
  attr_reader :name
8
8
 
9
9
  def initialize(name)
10
+ if Dynamodb::Api::Config.table_name_prefix?
11
+ name = Dynamodb::Api::Config.table_name_prefix + name
12
+ end
10
13
  @name = name
11
14
  end
12
15
  end
@@ -7,6 +7,9 @@ module Dynamodb
7
7
  attr_reader :name
8
8
 
9
9
  def initialize(name)
10
+ if Dynamodb::Api::Config.index_name_prefix?
11
+ name = Dynamodb::Api::Config.index_name_prefix + name
12
+ end
10
13
  @name = name
11
14
  end
12
15
  end
@@ -1,5 +1,5 @@
1
1
  module Dynamodb
2
2
  module Api
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamodb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - WalkerSumida