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 +4 -4
- data/lib/config/locales/en.yml +5 -0
- data/lib/tiny_dyno/errors/hash_key_errors.rb +1 -1
- data/lib/tiny_dyno/errors.rb +0 -1
- data/lib/tiny_dyno/hash_keys.rb +1 -1
- data/lib/tiny_dyno/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c28225700e74215ab38264798338459a755b819
|
4
|
+
data.tar.gz: 7a9a91dd03e2cc1e2f444d1f3546f6d1b11732e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76fe2cb0803f904f02af620ba3e6a8d01654319e5ae9b50d1eb5206f1688ec3530cdc8522e454c427722821d0377e7c474fdd8b2df2f6ad75fecc530907be389
|
7
|
+
data.tar.gz: 6482ffb737d0fb35580f2277ac68f20304fefa9eb01ab31e8849b71bc3608652761129c634fa3c761c80948dd93495e85ba70b10e627cfd0e99d0268b30833de
|
data/lib/config/locales/en.yml
CHANGED
@@ -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.
|
data/lib/tiny_dyno/errors.rb
CHANGED
data/lib/tiny_dyno/hash_keys.rb
CHANGED
@@ -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)
|
data/lib/tiny_dyno/version.rb
CHANGED