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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 729c11baf5b9739910af25ee6d00b58661e2c675733a18d8d10909c9174241f7
4
- data.tar.gz: b6ad48c8651a2fbdc12e2adc10e829278c74038fde5ee8eeef0a4067da4c278f
3
+ metadata.gz: 9ee55cbc8cd29fcd367b1423df3ecef782eb3ab3f6cc054f86373e35518fbbea
4
+ data.tar.gz: a8565592a8020190a13a04291252508b459c63deb270f220a91f54333a244779
5
5
  SHA512:
6
- metadata.gz: e3dbff0036285efea182ae5b755039ab4a5b0a765944276ac25e32abb118579d988c3f4b0454340249f1e5ebfa7e4d3baf69e0b17502bb9e6659a8139eea7562
7
- data.tar.gz: 2cecda8332cbde5c580834ea3b43c15e75994e9a4d86385208f2f2deec40c01b9deb4c92e7660b01aa73371d59330cce7aad52734d6900c4b07d5d6db6dad06e
6
+ metadata.gz: cb8afdfdadae80f8e073a3ce094d2361dc5f47de9ed540b3ff309d40a8b9a9c12cc60c6beb2946a752a7938c7246e4841b66374d111b910ffa8f2e523c7b4cde
7
+ data.tar.gz: c540a358d7cb3c4424472a4b1c80354855673d262622cc3813c3cde9fab12c1c685638fa2083cfefed51658f2ec7917de0e993b0587a7797f57bb8f6fa397333
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.1 (February 20, 2021)
2
+
3
+ * Add Ruby 3 compatibility (Martins Polakovs)
4
+
1
5
  # 0.6.0 (December 13, 2018)
2
6
 
3
7
  * Fix usage when table name includes schema
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
@@ -1,3 +1,3 @@
1
1
  module Edge
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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: 2018-12-13 00:00:00.000000000 Z
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
- rubyforge_project:
132
- rubygems_version: 2.7.6
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