appfuel 0.5.11 → 0.5.12

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: 22cbcbfd9ed2ff47484cd6a44be32cf3345f2a29
4
- data.tar.gz: cba0345aabce2a856f7ea4444b9c1c8afbbf777f
3
+ metadata.gz: c0364e623e6f2573b4c821a242437a15b6085718
4
+ data.tar.gz: b9231f2ba15988e210b61a68fcd60eeff9c7e631
5
5
  SHA512:
6
- metadata.gz: 37ba16885e0f1bbd0c567782721df1de3ba3b88115e8686b36ba52e5b731b4b60c4dbb8e136836542fd79d9b75654162dcac0d725de7d36042a50371fd099ba3
7
- data.tar.gz: fbfcbacc0a11f94d09f18417ae4c358d25569b3362ef466cedece8655910fe03f681979f617dbeb71391dcc1e707b368df043b1222810025962c67dade287d95
6
+ metadata.gz: f211340b01ed7b283b2d0999822021f85689a0c92bce670c2340238b7ea9f8e159913aaded2c258253c41b5c17bcb0a4ab229dbe395c5ee63cda7f1fdbe12057
7
+ data.tar.gz: 42fdce54686c9a8f11e7a791a4f0db2935d24bd8a52690f6270b19874122eda216f9013d1e8c30214907dab97ce0771b7d7a962550878fbd8f36a1e25d4473fc
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
5
5
 
6
6
 
7
7
  # Releases
8
+ ## [[0.5.12]](https://github.com/rsb/appfuel/releases/tag/0.5.12) 2017-07-31
9
+ ### Fixed
10
+ - `dynamodb adapter` `index` does not check for existing prefix
11
+
8
12
  ## [[0.5.11]](https://github.com/rsb/appfuel/releases/tag/0.5.11) 2017-07-31
9
13
  ### Fixed
10
14
  - `dynamodb adapter` primary_key dsl suppose to be a getter and a setter
@@ -57,7 +57,11 @@ module Appfuel
57
57
  end
58
58
 
59
59
  def index(index_key, index_name)
60
- indexes[index_key.to_sym] = "#{table_prefix}#{index_name}"
60
+ unless index_name.start_with?(table_prefix)
61
+ index_name = "#{table_prefix}#{index_name}"
62
+ end
63
+
64
+ indexes[index_key.to_sym] = index_name
61
65
  end
62
66
 
63
67
  def inherited(klass)
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.5.11"
2
+ VERSION = "0.5.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch