duck_record 0.0.20 → 0.0.21
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/duck_record/associations.rb +41 -347
- data/lib/duck_record/associations/association.rb +267 -0
- data/lib/duck_record/associations/belongs_to_association.rb +71 -0
- data/lib/duck_record/associations/builder/{embeds_association.rb → association.rb} +37 -9
- data/lib/duck_record/associations/builder/belongs_to.rb +44 -0
- data/lib/duck_record/associations/builder/collection_association.rb +45 -0
- data/lib/duck_record/associations/builder/embeds_many.rb +1 -44
- data/lib/duck_record/associations/builder/embeds_one.rb +1 -26
- data/lib/duck_record/associations/builder/has_many.rb +11 -0
- data/lib/duck_record/associations/builder/has_one.rb +20 -0
- data/lib/duck_record/associations/builder/singular_association.rb +33 -0
- data/lib/duck_record/associations/collection_association.rb +476 -0
- data/lib/duck_record/associations/collection_proxy.rb +1160 -0
- data/lib/duck_record/associations/foreign_association.rb +11 -0
- data/lib/duck_record/associations/has_many_association.rb +17 -0
- data/lib/duck_record/associations/has_one_association.rb +39 -0
- data/lib/duck_record/associations/singular_association.rb +73 -0
- data/lib/duck_record/nested_validate_association.rb +1 -1
- data/lib/duck_record/reflection.rb +345 -8
- data/lib/duck_record/version.rb +1 -1
- metadata +17 -4
data/lib/duck_record/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duck_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jasl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -83,13 +83,26 @@ files:
|
|
83
83
|
- lib/core_ext/array_without_blank.rb
|
84
84
|
- lib/duck_record.rb
|
85
85
|
- lib/duck_record/associations.rb
|
86
|
-
- lib/duck_record/associations/
|
86
|
+
- lib/duck_record/associations/association.rb
|
87
|
+
- lib/duck_record/associations/belongs_to_association.rb
|
88
|
+
- lib/duck_record/associations/builder/association.rb
|
89
|
+
- lib/duck_record/associations/builder/belongs_to.rb
|
90
|
+
- lib/duck_record/associations/builder/collection_association.rb
|
87
91
|
- lib/duck_record/associations/builder/embeds_many.rb
|
88
92
|
- lib/duck_record/associations/builder/embeds_one.rb
|
93
|
+
- lib/duck_record/associations/builder/has_many.rb
|
94
|
+
- lib/duck_record/associations/builder/has_one.rb
|
95
|
+
- lib/duck_record/associations/builder/singular_association.rb
|
96
|
+
- lib/duck_record/associations/collection_association.rb
|
97
|
+
- lib/duck_record/associations/collection_proxy.rb
|
89
98
|
- lib/duck_record/associations/embeds_association.rb
|
90
99
|
- lib/duck_record/associations/embeds_many_association.rb
|
91
100
|
- lib/duck_record/associations/embeds_many_proxy.rb
|
92
101
|
- lib/duck_record/associations/embeds_one_association.rb
|
102
|
+
- lib/duck_record/associations/foreign_association.rb
|
103
|
+
- lib/duck_record/associations/has_many_association.rb
|
104
|
+
- lib/duck_record/associations/has_one_association.rb
|
105
|
+
- lib/duck_record/associations/singular_association.rb
|
93
106
|
- lib/duck_record/attribute.rb
|
94
107
|
- lib/duck_record/attribute/user_provided_default.rb
|
95
108
|
- lib/duck_record/attribute_assignment.rb
|
@@ -160,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
173
|
version: '0'
|
161
174
|
requirements: []
|
162
175
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.6.
|
176
|
+
rubygems_version: 2.6.12
|
164
177
|
signing_key:
|
165
178
|
specification_version: 4
|
166
179
|
summary: Used for creating virtual models like ActiveType or ModelAttribute does
|