ocean-dynamo 0.5.1 → 0.5.2
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/README.rdoc +3 -3
- data/lib/ocean-dynamo/active_record_stuff/association.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/collection_association.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/collection_proxy.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/has_and_belongs_to_many_association.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/has_many_association.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/reflection.rb +2 -2
- data/lib/ocean-dynamo/active_record_stuff/relation.rb +2 -2
- 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: 7e299974a601887f0a573b9a4a12c4cf08b69d6d
|
4
|
+
data.tar.gz: 73070f1718fcd7fc53510c6b2b744aff233ea71f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6d1be7adc334cd4ad80129d5aebb95ab6d55a527218b6b6b91fac09ba15a44a873a9b07d02b06a8af480345040f6f9852235ab64d23f0399c74a6071ecb3f0b
|
7
|
+
data.tar.gz: 7da307a679b562a36c63e1cedf1d63308fcb69464eeda03a7f5b37e9398c4ce54255dae6f5791fbcba5f831fec528ff216678da51c138a9ed6262e0fc0be63e2
|
data/README.rdoc
CHANGED
@@ -149,8 +149,8 @@ all children have their parent UUID as their hash key, and their own UUID in the
|
|
149
149
|
range key.
|
150
150
|
|
151
151
|
This type of relation is even more efficient than its ActiveRecord counterpart as
|
152
|
-
it uses only
|
153
|
-
|
152
|
+
it uses only primary indices in both directions of the +has_many+ / +belongs_to+
|
153
|
+
association. No scans.
|
154
154
|
|
155
155
|
Furthermore, since DynamoDB has powerful primary index searches involving substrings
|
156
156
|
and matching, the fact that the range key is a string can be used to implement
|
@@ -170,7 +170,7 @@ controllers. OceanDynamo implements much of the infrastructure of ActiveRecord;
|
|
170
170
|
for instance, +read_attribute+, +write_attribute+, and much of the control logic and
|
171
171
|
internal organisation.
|
172
172
|
|
173
|
-
* <tt>belongs_to :thingy now defines <tt>.build_thingy</tt> and <tt>.create_thingy</tt>.
|
173
|
+
* <tt>belongs_to :thingy</tt> now defines <tt>.build_thingy</tt> and <tt>.create_thingy</tt>.
|
174
174
|
* Work begun on collection proxies, etc.
|
175
175
|
|
176
176
|
=== Future milestones
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'active_support/core_ext/array/wrap'
|
2
2
|
|
3
|
-
module ActiveRecord #:nodoc:
|
4
|
-
module Associations
|
3
|
+
module ActiveRecord #:nodoc: all
|
4
|
+
module Associations
|
5
5
|
# = Active Record Associations
|
6
6
|
#
|
7
7
|
# This is the root class of all associations ('+ Foo' signifies an included module Foo):
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module OceanDynamo
|
2
|
-
module Associations
|
1
|
+
module OceanDynamo #:nodoc: all
|
2
|
+
module Associations
|
3
3
|
#
|
4
4
|
# Association proxies in OceanDynamo are middlemen between the object that
|
5
5
|
# holds the association, known as the <tt>@owner</tt>, and the actual associated
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module ActiveRecord #:nodoc:
|
1
|
+
module ActiveRecord #:nodoc: all
|
2
2
|
# = Active Record Has And Belongs To Many Association
|
3
|
-
module Associations
|
3
|
+
module Associations
|
4
4
|
class HasAndBelongsToManyAssociation < CollectionAssociation #:nodoc:
|
5
5
|
attr_reader :join_table
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module ActiveRecord #:nodoc:
|
1
|
+
module ActiveRecord #:nodoc: all
|
2
2
|
# = Active Record Has Many Association
|
3
|
-
module Associations
|
3
|
+
module Associations
|
4
4
|
# This is the proxy that handles a has many association.
|
5
5
|
#
|
6
6
|
# If the association has a <tt>:through</tt> option further specialization
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module ActiveRecord
|
1
|
+
module ActiveRecord #:nodoc: all
|
2
2
|
# = Active Record Relation
|
3
|
-
class Relation
|
3
|
+
class Relation
|
4
4
|
JoinOperation = Struct.new(:relation, :join_class, :on)
|
5
5
|
|
6
6
|
MULTI_VALUE_METHODS = [:includes, :eager_load, :preload, :select, :group,
|
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.5.
|
4
|
+
version: 0.5.2
|
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-10-
|
11
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|