toy-dynamo 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/toy/dynamo/store.rb +15 -0
- data/lib/toy/dynamo/version.rb +1 -1
- data/lib/toy/dynamo.rb +8 -5
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7095663348fee70d8b0e1d75f96c7a916f84dca
|
4
|
+
data.tar.gz: e63a6a0c664fb02283cab38057a45a1f3f1aebab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f9f1d6b844d7f29e4baa88ad2a454068dd9090faa7c4f4e2e404527cfdfbc13d309e95ed2ceb80e462a2bef262f7710454af93d4a2086cfa4a24ed62382eb9
|
7
|
+
data.tar.gz: a2e48dca0f1d94ac3873fc09d9e64ac393d0e2ed2ed91c5d140f01ba171f60d159922e44045f63ce8df57a1a3efdd7e1742e7118c0b7ef0bf1e8972cca6db5b3
|
data/README.md
CHANGED
data/lib/toy/dynamo/version.rb
CHANGED
data/lib/toy/dynamo.rb
CHANGED
@@ -9,6 +9,7 @@ require "toy/dynamo/persistence"
|
|
9
9
|
# Override 'write_attribute' for hash_key == id
|
10
10
|
require "toy/dynamo/attributes"
|
11
11
|
require "toy/dynamo/config"
|
12
|
+
require "toy/dynamo/store"
|
12
13
|
require "toy/dynamo/extensions/array"
|
13
14
|
require "toy/dynamo/extensions/boolean"
|
14
15
|
require "toy/dynamo/extensions/date"
|
@@ -20,12 +21,14 @@ require "toy/dynamo/extensions/symbol"
|
|
20
21
|
module Toy
|
21
22
|
module Dynamo
|
22
23
|
|
23
|
-
|
24
|
+
def configure
|
25
|
+
block_given? ? yield(Toy::Dynamo::Config) : Toy::Dynamo::Config
|
26
|
+
end
|
27
|
+
alias :config :configure
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
def logger
|
30
|
+
Toy::Dynamo::Config.logger
|
31
|
+
end
|
27
32
|
|
28
|
-
include Schema
|
29
|
-
include Querying
|
30
33
|
end
|
31
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toy-dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cary Dunn
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- lib/toy/dynamo/querying.rb
|
96
96
|
- lib/toy/dynamo/response.rb
|
97
97
|
- lib/toy/dynamo/schema.rb
|
98
|
+
- lib/toy/dynamo/store.rb
|
98
99
|
- lib/toy/dynamo/table.rb
|
99
100
|
- lib/toy/dynamo/tasks.rb
|
100
101
|
- lib/toy/dynamo/version.rb
|