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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70bbda18ddd44e600dff1229f0372a9c130a5f69
4
- data.tar.gz: 8e8d541dcc26084314b0426ef4f8a1a8b3b33f19
3
+ metadata.gz: e6c51f73b3830d1d472ab2c6da11e8b6532bc857
4
+ data.tar.gz: be5582ec23ebb3eafec3eae6541003368e5909d6
5
5
  SHA512:
6
- metadata.gz: 0d2ea804ada4339457b6b1e2c0a94c8bc90d1d3f15f51abed3edcb1d3d05c4054d17bc054a704b3308da70b5e6e255b8b5d446b6656a2623247bbc9a50bc547e
7
- data.tar.gz: 960bc0007d4e60b4ae4ab6c95cf07c99ad1b08492b3f263a277254004441cec8f57f8cb7aa0307704e82806f112c7ef9f5b0a31a2f78d94b335f9b28083e52e7
6
+ metadata.gz: faae8ca498939f8e40b74ab27b1c2b1a60b94c6232da00224aa44895dee8dd115ae2c4c8bf2ca025152b5747acd5deba700cdcb44d832354ae24789d5f3ea685
7
+ data.tar.gz: d409daa43abcbeff6dd22cdccc2419cb96ef7ea90441adc38dcc967b92c05345ad506bfea2e32adf84310b94509a23fe5146eee6cbe18e1aca65ddfb7604e58f
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.1.24 (2015-09-11)
2
+ -------------------
3
+
4
+ * Add missing translations
5
+
1
6
  0.1.23 (2015-09-09)
2
7
  -------------------
3
8
 
@@ -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."
@@ -8,7 +8,7 @@ module TinyDyno
8
8
  def request_as_new_record(request)
9
9
  request.merge({
10
10
  expected: {
11
- "#{ primary_key[:attr] }": {
11
+ "#{ primary_key[:attribute_name] }": {
12
12
  comparison_operator: 'NULL'
13
13
  }
14
14
  }})
@@ -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[:attr]
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
- attr: attribute_definition[:attribute_name],
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
  }
@@ -1,3 +1,3 @@
1
1
  module TinyDyno
2
- VERSION = '0.1.23'
2
+ VERSION = '0.1.24'
3
3
  end
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.23
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-09 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler