ocean-dynamo 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +14 -6
- data/lib/ocean-dynamo/schema.rb +0 -28
- data/lib/ocean-dynamo/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: c1d14c8cad14fe20abd48a743d192899d015e88f
|
4
|
+
data.tar.gz: 931402dbece516985faaede7388447e3d656bc9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 572e3087a3b6e2ab6767838dd896386c2f8c66c8f6d111da6d4baf4e2d492120da79699c4bd372a961a452adedcfd7bbe81287fd5716440189fe749556e2e2ef
|
7
|
+
data.tar.gz: 80d7a0713f3c6bf3d41b057977936df937c617a577845ae450fa7d38b0913a65cf8ace523fefe00367e578b3858676e209daf9b8d7e41dc00391e8bb34792034
|
data/README.rdoc
CHANGED
@@ -83,15 +83,15 @@ Relations are not yet implemented, but are underway. Relations will use secondar
|
|
83
83
|
indices, up to the DynamoDB maximum of 5 secondary keys per table. At the moment,
|
84
84
|
only find with a single uuid is implemented. Collections can not yet be obtained.
|
85
85
|
|
86
|
-
OceanDynamo is currently used in
|
86
|
+
OceanDynamo is currently used in the Ocean framework (http://wiki.oceanframework.net)
|
87
87
|
e.g. to implement critical job queues. It will be used increasingly as features are
|
88
|
-
added to OceanDynamo and will eventually replace all
|
88
|
+
added to OceanDynamo and will eventually replace all ActiveRecord tables.
|
89
89
|
|
90
90
|
|
91
|
-
|
91
|
+
== Documentation
|
92
92
|
|
93
|
-
* Ocean-dynamo gem API: http://rdoc.info/github/OceanDev/ocean-dynamo/frames
|
94
93
|
* Ocean-dynamo gem on Rubygems: https://rubygems.org/gems/ocean-dynamo
|
94
|
+
* Ocean-dynamo gem API: http://rubydoc.info/gems/ocean-dynamo/frames
|
95
95
|
* Ocean-dynamo source and wiki: https://github.org/OceanDev/ocean-dynamo
|
96
96
|
|
97
97
|
See also Ocean, a Rails framework for creating highly scalable SOAs in the cloud, in which
|
@@ -99,7 +99,15 @@ OceanDynamo is used as a central component:
|
|
99
99
|
* http://wiki.oceanframework.net
|
100
100
|
|
101
101
|
|
102
|
-
|
102
|
+
== Contributing
|
103
|
+
|
104
|
+
Contributions are welcome. Fork in the usual way. OceanDynamo is developed using
|
105
|
+
TDD: the specs are extensive and test coverage is very near to 100 percent. Pull requests
|
106
|
+
will not be considered unless all tests pass and coverage is equally high or higher.
|
107
|
+
All contributed code must therefore also be exhaustively tested.
|
108
|
+
|
109
|
+
|
110
|
+
== Running the specs
|
103
111
|
|
104
112
|
To run the specs for the OceanDynamo gem, you must first install the bundle. It will download
|
105
113
|
a gem called +fake_dynamo+, which runs a local, in-memory functional clone of Amazon DynamoDB.
|
@@ -143,7 +151,7 @@ With +fake_dynamo+ running, you should now be able to do
|
|
143
151
|
All tests should pass.
|
144
152
|
|
145
153
|
|
146
|
-
|
154
|
+
== Rails console
|
147
155
|
|
148
156
|
The Rails console is available from the built-in dummy application:
|
149
157
|
|
data/lib/ocean-dynamo/schema.rb
CHANGED
@@ -33,24 +33,6 @@ module OceanDynamo
|
|
33
33
|
end
|
34
34
|
|
35
35
|
|
36
|
-
def self.set_table_name(name)
|
37
|
-
self.table_name = name
|
38
|
-
true
|
39
|
-
end
|
40
|
-
|
41
|
-
|
42
|
-
def self.set_table_name_prefix(prefix)
|
43
|
-
self.table_name_prefix = prefix
|
44
|
-
true
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
def self.set_table_name_suffix(suffix)
|
49
|
-
self.table_name_suffix = suffix
|
50
|
-
true
|
51
|
-
end
|
52
|
-
|
53
|
-
|
54
36
|
def self.compute_table_name
|
55
37
|
name.pluralize.underscore
|
56
38
|
end
|
@@ -61,16 +43,6 @@ module OceanDynamo
|
|
61
43
|
end
|
62
44
|
|
63
45
|
|
64
|
-
def self.read_capacity_units(units)
|
65
|
-
self.table_read_capacity_units = units
|
66
|
-
end
|
67
|
-
|
68
|
-
|
69
|
-
def self.write_capacity_units(units)
|
70
|
-
self.table_write_capacity_units = units
|
71
|
-
end
|
72
|
-
|
73
|
-
|
74
46
|
def self.attribute(name, type=:string, **pairs)
|
75
47
|
attr_accessor name
|
76
48
|
fields[name.to_s] = {type: type, default: pairs[:default]}
|
data/lib/ocean-dynamo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|