tiny_dyno 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/config/locales/en.yml +8 -0
- data/lib/tiny_dyno/expected.rb +1 -1
- data/lib/tiny_dyno/hash_key.rb +2 -2
- data/lib/tiny_dyno/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: e6c51f73b3830d1d472ab2c6da11e8b6532bc857
|
4
|
+
data.tar.gz: be5582ec23ebb3eafec3eae6541003368e5909d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faae8ca498939f8e40b74ab27b1c2b1a60b94c6232da00224aa44895dee8dd115ae2c4c8bf2ca025152b5747acd5deba700cdcb44d832354ae24789d5f3ea685
|
7
|
+
data.tar.gz: d409daa43abcbeff6dd22cdccc2419cb96ef7ea90441adc38dcc967b92c05345ad506bfea2e32adf84310b94509a23fe5146eee6cbe18e1aca65ddfb7604e58f
|
data/CHANGES.md
CHANGED
data/lib/config/locales/en.yml
CHANGED
@@ -4,6 +4,14 @@ en:
|
|
4
4
|
messages:
|
5
5
|
blank_in_locale:
|
6
6
|
"can't be blank in %{location}"
|
7
|
+
can_not_coerce_transparently:
|
8
|
+
message: "Storing and retrieving value: %{value} as type: %{name} would
|
9
|
+
result in loss of information."
|
10
|
+
summary: "DynamoDB stores AttributeValues as a key value representation.
|
11
|
+
Your combination of intented field type and the actual value representation
|
12
|
+
can not be stored and retrieved from DynamoDB without loosing information."
|
13
|
+
resolution: "Either choose a different field type, or coerce the value manually
|
14
|
+
into the target type, when assigning it to the field."
|
7
15
|
callbacks:
|
8
16
|
message: "Calling %{method} on %{klass} resulted in a false return
|
9
17
|
from a callback."
|
data/lib/tiny_dyno/expected.rb
CHANGED
data/lib/tiny_dyno/hash_key.rb
CHANGED
@@ -17,7 +17,7 @@ module TinyDyno
|
|
17
17
|
#
|
18
18
|
def keys_as_selector
|
19
19
|
selector = {}
|
20
|
-
primary_key_field = self.class.primary_key[:
|
20
|
+
primary_key_field = self.class.primary_key[:attribute_name]
|
21
21
|
selector[primary_key_field.to_sym] = TinyDyno::Adapter.aws_attribute(field_type: fields[primary_key_field].options[:type], value: attributes[primary_key_field])
|
22
22
|
unless range_key.empty?
|
23
23
|
range_key_field = self.class.range_key[:attribute_name]
|
@@ -55,7 +55,7 @@ module TinyDyno
|
|
55
55
|
self.attribute_definitions << attribute_definition
|
56
56
|
self.key_schema << key_schema
|
57
57
|
self.primary_key = {
|
58
|
-
|
58
|
+
attribute_name: attribute_definition[:attribute_name],
|
59
59
|
attr_type: attribute_definition[:attribute_type],
|
60
60
|
key_type: key_schema[:key_type],
|
61
61
|
}
|
data/lib/tiny_dyno/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_dyno
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Gerschner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|