tiny_dyno 0.1.2 → 0.1.3

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: ef4d75cca6797401b81b120bb8fc5f95f5583888
4
- data.tar.gz: 275eefbb9c451bcc9223bec49b92df77ed437de7
3
+ metadata.gz: 4c28225700e74215ab38264798338459a755b819
4
+ data.tar.gz: 7a9a91dd03e2cc1e2f444d1f3546f6d1b11732e2
5
5
  SHA512:
6
- metadata.gz: 3898844cb7d41c522d62c42b24f66f755bb579d717fd4cbbe29c710648e18720e5a4fabf1bc9df94dbf2e675325f26cb91b932ee7e7d3a7fec4a19b203199453
7
- data.tar.gz: 98586e23cbdee19f40036fa10462306b584f237224c73b274832dd022926e77e3352e04674b3fd8d961f01a56315da2d07557d8d32f5389d0aee7bccb2f8f080
6
+ metadata.gz: 76fe2cb0803f904f02af620ba3e6a8d01654319e5ae9b50d1eb5206f1688ec3530cdc8522e454c427722821d0377e7c474fdd8b2df2f6ad75fecc530907be389
7
+ data.tar.gz: 6482ffb737d0fb35580f2277ac68f20304fefa9eb01ab31e8849b71bc3608652761129c634fa3c761c80948dd93495e85ba70b10e627cfd0e99d0268b30833de
@@ -43,6 +43,11 @@ en:
43
43
  allowed, and don't use these names. These include names that also
44
44
  conflict with core Ruby methods on Object, Module, Enumerable, or
45
45
  included gems that inject methods into these or Mongoid internals."
46
+ invalid_hash_key:
47
+ message: "Your hash key definition of '%{name} is invalid."
48
+ summary: "It does not meet the criteria as outlined for hash key definition
49
+ as described in the aws-sdk v2 for ruby"
50
+ resolution: "Look at the examples folder to see valid hash key definitions."
46
51
  hash_keys_only:
47
52
  message: "You can only search by defined hash_keys"
48
53
  summary: 'Only searches which use a hash key are permitted.
@@ -17,7 +17,7 @@ module TinyDyno
17
17
  # @since 3.0.0
18
18
  def initialize(klass:, name:)
19
19
  super(
20
- compose_message("invalid hash_key", { klass: klass.name, name: name })
20
+ compose_message("invalid_hash_key", { klass: klass.name, name: name })
21
21
  )
22
22
  end
23
23
  end
@@ -1,4 +1,3 @@
1
1
  require 'tiny_dyno/errors/tiny_dyno_error'
2
-
3
2
  require 'tiny_dyno/errors/attribute_errors'
4
3
  require 'tiny_dyno/errors/hash_key_errors'
@@ -61,7 +61,7 @@ module TinyDyno
61
61
  attribute_definition = build_attribute_definition(named,options[:type])
62
62
  key_schema = build_key_schema(named)
63
63
  unless attribute_definition_meets_spec?(attribute_definition)
64
- raise InvalidHashKey.new(self.class, name)
64
+ raise TinyDyno::Errors::InvalidHashKey.new(klass: self.class, name: name)
65
65
  end
66
66
  # we need the accessors as well
67
67
  add_field(named, options)
@@ -1,3 +1,3 @@
1
1
  module TinyDyno
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_dyno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gerschner