ocean-dynamo 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e299974a601887f0a573b9a4a12c4cf08b69d6d
4
- data.tar.gz: 73070f1718fcd7fc53510c6b2b744aff233ea71f
3
+ metadata.gz: 2db27622c231e1acb60ff447a2c09e03b5296f8b
4
+ data.tar.gz: d52b739be71641641dcc3692beec600b140de494
5
5
  SHA512:
6
- metadata.gz: c6d1be7adc334cd4ad80129d5aebb95ab6d55a527218b6b6b91fac09ba15a44a873a9b07d02b06a8af480345040f6f9852235ab64d23f0399c74a6071ecb3f0b
7
- data.tar.gz: 7da307a679b562a36c63e1cedf1d63308fcb69464eeda03a7f5b37e9398c4ce54255dae6f5791fbcba5f831fec528ff216678da51c138a9ed6262e0fc0be63e2
6
+ metadata.gz: 1ee704329bb3acc6ab272e262450af7100a276d2dc71807ede59defbd39a7407c282b327b2be252096df55d2b2638b6d6e5c14cfe5fdc70067dfe97f461abc82
7
+ data.tar.gz: 0f12b591db93660a40edc51e47d56e35d406265e1bf1ada58dc62588b742de29ca7b2ab890e18755637af828685f2fd9bbb4d768fb606207a1bea10f573c9bbc
@@ -1,7 +1,7 @@
1
1
  require 'active_support/core_ext/array/wrap'
2
2
 
3
3
  module ActiveRecord #:nodoc: all
4
- module Associations
4
+ module Associations #:nodoc: all
5
5
  # = Active Record Associations
6
6
  #
7
7
  # This is the root class of all associations ('+ Foo' signifies an included module Foo):
@@ -16,7 +16,7 @@ module ActiveRecord #:nodoc: all
16
16
  # HasAndBelongsToManyAssociation
17
17
  # HasManyAssociation
18
18
  # HasManyThroughAssociation + ThroughAssociation
19
- class Association #:nodoc:
19
+ class Association #:nodoc: all
20
20
  attr_reader :owner, :target, :reflection
21
21
 
22
22
  delegate :options, :to => :reflection
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord #:nodoc: all
2
- module Associations
2
+ module Associations #:nodoc: all
3
3
  # = Active Record Association Collection
4
4
  #
5
5
  # CollectionAssociation is an abstract class that provides common stuff to
@@ -24,7 +24,7 @@ module ActiveRecord #:nodoc: all
24
24
  #
25
25
  # If you need to work on all current children, new and existing records,
26
26
  # +load_target+ and the +loaded+ flag are your friends.
27
- class CollectionAssociation < Association #:nodoc:
27
+ class CollectionAssociation < Association #:nodoc: all
28
28
 
29
29
  # Implements the reader method, e.g. foo.items for Foo.has_many :items
30
30
  def reader(force_reload = false)
@@ -1,5 +1,5 @@
1
- module OceanDynamo #:nodoc: all
2
- module Associations
1
+ module ActiveRecord #:nodoc: all
2
+ module Associations #:nodoc: all
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
@@ -24,10 +24,10 @@ module OceanDynamo #:nodoc: all
24
24
  #
25
25
  # The <tt>@target</tt> object is not \loaded until needed.
26
26
  #
27
- class CollectionProxy < Relation
27
+ class CollectionProxy < Relation #:nodoc: all
28
28
  #delegate(*(ActiveRecord::Calculations.public_instance_methods - [:count]), to: :scope)
29
29
 
30
- def initialize(klass, association) #:nodoc:
30
+ def initialize(klass, association)
31
31
  @association = association
32
32
  super klass, klass.arel_table
33
33
  self.default_scoped = true
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord #:nodoc: all
2
2
  # = Active Record Has And Belongs To Many Association
3
- module Associations
4
- class HasAndBelongsToManyAssociation < CollectionAssociation #:nodoc:
3
+ module Associations #:nodoc: all
4
+ class HasAndBelongsToManyAssociation < CollectionAssociation #:nodoc: all
5
5
  attr_reader :join_table
6
6
 
7
7
  def initialize(owner, reflection)
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord #:nodoc: all
2
2
  # = Active Record Has Many Association
3
- module Associations
3
+ module Associations #:nodoc: all
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
1
  module ActiveRecord #:nodoc: all
2
2
  # = Active Record Reflection
3
- module Reflection
3
+ module Reflection #:nodoc: all
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
@@ -16,7 +16,7 @@ module ActiveRecord #:nodoc: all
16
16
  #
17
17
  # MacroReflection class has info for AggregateReflection and AssociationReflection
18
18
  # classes.
19
- module ClassMethods #:nodoc:
19
+ module ClassMethods #:nodoc: all
20
20
  def create_reflection(macro, name, scope, options, active_record)
21
21
  case macro
22
22
  when :has_many, :belongs_to, :has_one, :has_and_belongs_to_many
@@ -82,7 +82,7 @@ module ActiveRecord #:nodoc: all
82
82
  # AggregateReflection
83
83
  # AssociationReflection
84
84
  # ThroughReflection
85
- class MacroReflection
85
+ class MacroReflection #:nodoc: all
86
86
  # Returns the name of the macro.
87
87
  #
88
88
  # <tt>composed_of :balance, class_name: 'Money'</tt> returns <tt>:balance</tt>
@@ -152,7 +152,7 @@ module ActiveRecord #:nodoc: all
152
152
 
153
153
  # Holds all the meta-data about an aggregation as it was specified in the
154
154
  # Active Record class.
155
- class AggregateReflection < MacroReflection #:nodoc:
155
+ class AggregateReflection < MacroReflection #:nodoc: all
156
156
  def mapping
157
157
  mapping = options[:mapping] || [name, name]
158
158
  mapping.first.is_a?(Array) ? mapping : [mapping]
@@ -161,7 +161,7 @@ module ActiveRecord #:nodoc: all
161
161
 
162
162
  # Holds all the meta-data about an association as it was specified in the
163
163
  # Active Record class.
164
- class AssociationReflection < MacroReflection #:nodoc:
164
+ class AssociationReflection < MacroReflection #:nodoc: all
165
165
  # Returns the target association's class.
166
166
  #
167
167
  # class Author < ActiveRecord::Base
@@ -394,7 +394,7 @@ module ActiveRecord #:nodoc: all
394
394
 
395
395
  # Holds all the meta-data about a :through association as it was specified
396
396
  # in the Active Record class.
397
- class ThroughReflection < AssociationReflection #:nodoc:
397
+ class ThroughReflection < AssociationReflection #:nodoc: all
398
398
  delegate :foreign_key, :foreign_type, :association_foreign_key,
399
399
  :active_record_primary_key, :type, :to => :source_reflection
400
400
 
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord #:nodoc: all
2
2
  # = Active Record Relation
3
- class Relation
3
+ class Relation #:nodoc: all
4
4
  JoinOperation = Struct.new(:relation, :join_class, :on)
5
5
 
6
6
  MULTI_VALUE_METHODS = [:includes, :eager_load, :preload, :select, :group,
@@ -1,5 +1,5 @@
1
- module OceanDynamo #:nodoc:
2
- module Associations #:nodoc:
1
+ module OceanDynamo
2
+ module Associations
3
3
  #
4
4
  # CollectionAssociation is an abstract class that provides common stuff to
5
5
  # ease the implementation of association proxies that represent
@@ -24,7 +24,7 @@ module OceanDynamo #:nodoc:
24
24
  # If you need to work on all current children, new and existing records,
25
25
  # +load_target+ and the +loaded+ flag are your friends.
26
26
  #
27
- class CollectionAssociation < Association #:nodoc:
27
+ class CollectionAssociation < Association
28
28
 
29
29
  #
30
30
  # Resets the collection to the empty array.
@@ -1,3 +1,3 @@
1
1
  module OceanDynamo
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
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.2
4
+ version: 0.5.3
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-06 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk