edge 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/edge/forest.rb +3 -3
- data/lib/edge/version.rb +1 -1
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ee55cbc8cd29fcd367b1423df3ecef782eb3ab3f6cc054f86373e35518fbbea
|
4
|
+
data.tar.gz: a8565592a8020190a13a04291252508b459c63deb270f220a91f54333a244779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8afdfdadae80f8e073a3ce094d2361dc5f47de9ed540b3ff309d40a8b9a9c12cc60c6beb2946a752a7938c7246e4841b66374d111b910ffa8f2e523c7b4cde
|
7
|
+
data.tar.gz: c540a358d7cb3c4424472a4b1c80354855673d262622cc3813c3cde9fab12c1c685638fa2083cfefed51658f2ec7917de0e993b0587a7797f57bb8f6fa397333
|
data/CHANGELOG.md
CHANGED
data/lib/edge/forest.rb
CHANGED
@@ -26,12 +26,12 @@ module Edge
|
|
26
26
|
|
27
27
|
optional_options = options[:optional] ? { optional: options[:optional] } : {}
|
28
28
|
|
29
|
-
belongs_to :parent, common_options.merge(inverse_of: :children).merge(optional_options)
|
29
|
+
belongs_to :parent, **common_options.merge(inverse_of: :children).merge(optional_options)
|
30
30
|
|
31
31
|
if forest_order
|
32
|
-
has_many :children, -> { order(forest_order) }, common_options.merge(inverse_of: :parent).merge(dependent_options)
|
32
|
+
has_many :children, -> { order(forest_order) }, **common_options.merge(inverse_of: :parent).merge(dependent_options)
|
33
33
|
else
|
34
|
-
has_many :children, common_options.merge(inverse_of: :parent).merge(dependent_options)
|
34
|
+
has_many :children, **common_options.merge(inverse_of: :parent).merge(dependent_options)
|
35
35
|
end
|
36
36
|
|
37
37
|
scope :root, -> { where(forest_foreign_key => nil) }
|
data/lib/edge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Christensen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -113,7 +113,7 @@ files:
|
|
113
113
|
homepage: https://github.com/JackC/edge
|
114
114
|
licenses: []
|
115
115
|
metadata: {}
|
116
|
-
post_install_message:
|
116
|
+
post_install_message:
|
117
117
|
rdoc_options: []
|
118
118
|
require_paths:
|
119
119
|
- lib
|
@@ -128,10 +128,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
|
132
|
-
|
133
|
-
signing_key:
|
131
|
+
rubygems_version: 3.0.6
|
132
|
+
signing_key:
|
134
133
|
specification_version: 4
|
135
134
|
summary: Graph functionality for ActiveRecord. Provides tree/forest modeling structure
|
136
135
|
that can load entire trees in a single query.
|
137
|
-
test_files:
|
136
|
+
test_files:
|
137
|
+
- spec/database.yml
|
138
|
+
- spec/database.yml.travis
|
139
|
+
- spec/database_structure.sql
|
140
|
+
- spec/forest_spec.rb
|
141
|
+
- spec/spec_helper.rb
|