acts_as_recursive_tree 3.5.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -21
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/rubygem.yml +2 -2
- data/.rubocop.yml +7 -1
- data/Appraisals +12 -12
- data/CHANGELOG.md +8 -0
- data/README.md +3 -7
- data/Rakefile +1 -1
- data/acts_as_recursive_tree.gemspec +11 -12
- data/gemfiles/{ar_52.gemfile → ar_71.gemfile} +2 -2
- data/gemfiles/{ar_60.gemfile → ar_72.gemfile} +2 -2
- data/gemfiles/{ar_61.gemfile → ar_80.gemfile} +2 -2
- data/lib/acts_as_recursive_tree/acts_macro.rb +1 -1
- data/lib/acts_as_recursive_tree/builders/ancestors.rb +1 -1
- data/lib/acts_as_recursive_tree/builders/leaves.rb +1 -1
- data/lib/acts_as_recursive_tree/builders/relation_builder.rb +3 -3
- data/lib/acts_as_recursive_tree/model.rb +20 -20
- data/lib/acts_as_recursive_tree/version.rb +1 -1
- data/spec/db/database.rb +1 -1
- data/spec/db/models.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/shared_examples/builders.rb +1 -1
- data/spec/support/tree_methods.rb +2 -2
- metadata +30 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ba038495cfe75b3fe4fbcd93352cab82f6e644773131bb9964c516abcfa5f27
|
4
|
+
data.tar.gz: f4a6a3e5a6954a8efddd02b654be4e247db11d336d805688000e5bee035ea1c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e3bbc761abb8d48146d52223d8f989c9e2a5e6d01cbea3b6f49c8a540bf73bb524d161c5de8d1151212268a30875ac063f459074eda0afc2e11338c446bfde7
|
7
|
+
data.tar.gz: 944cd971a85ce0d19c181e7f774dd291bff8f97033ce8d3dc5980ac0a57e031b557675a68566843392dd9ce01bd66ed85c931977b9f3537f2b48eaa0665b9b05
|
data/.github/workflows/ci.yml
CHANGED
@@ -19,31 +19,13 @@ jobs:
|
|
19
19
|
runs-on: ubuntu-latest
|
20
20
|
strategy:
|
21
21
|
matrix:
|
22
|
-
ruby-version: ['
|
23
|
-
gemfile: [
|
22
|
+
ruby-version: ['3.1', '3.2', '3.3']
|
23
|
+
gemfile: [ar_70, ar_71, ar_72, ar_80, ar_next]
|
24
24
|
exclude:
|
25
|
-
- ruby-version: '3.2'
|
26
|
-
gemfile: ar_52
|
27
|
-
- ruby-version: '3.2'
|
28
|
-
gemfile: ar_60
|
29
|
-
- ruby-version: '3.2'
|
30
|
-
gemfile: ar_61
|
31
25
|
- ruby-version: '3.1'
|
32
|
-
gemfile:
|
26
|
+
gemfile: ar_80
|
33
27
|
- ruby-version: '3.1'
|
34
|
-
gemfile: ar_60
|
35
|
-
- ruby-version: '3.1'
|
36
|
-
gemfile: ar_61
|
37
|
-
- ruby-version: '3.0'
|
38
|
-
gemfile: ar_52
|
39
|
-
- ruby-version: '2.6'
|
40
|
-
gemfile: ar_next
|
41
|
-
- ruby-version: '2.6'
|
42
|
-
gemfile: ar_70
|
43
|
-
- ruby-version: '2.5'
|
44
28
|
gemfile: ar_next
|
45
|
-
- ruby-version: '2.5'
|
46
|
-
gemfile: ar_70
|
47
29
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
48
30
|
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
49
31
|
steps:
|
data/.github/workflows/lint.yml
CHANGED
@@ -18,14 +18,14 @@ jobs:
|
|
18
18
|
|
19
19
|
runs-on: ubuntu-latest
|
20
20
|
steps:
|
21
|
-
- uses: actions/checkout@
|
21
|
+
- uses: actions/checkout@v3
|
22
22
|
- name: Set up Ruby
|
23
23
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
24
24
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
25
25
|
uses: ruby/setup-ruby@v1
|
26
26
|
# uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
27
27
|
with:
|
28
|
-
ruby-version:
|
28
|
+
ruby-version: 3.1
|
29
29
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
30
30
|
- name: Run rubocop
|
31
31
|
run: bundle exec rubocop
|
@@ -18,11 +18,11 @@ jobs:
|
|
18
18
|
contents: read
|
19
19
|
|
20
20
|
steps:
|
21
|
-
- uses: actions/checkout@
|
21
|
+
- uses: actions/checkout@v3
|
22
22
|
- name: Set up Ruby
|
23
23
|
uses: ruby/setup-ruby@v1
|
24
24
|
with:
|
25
|
-
ruby-version:
|
25
|
+
ruby-version: 3.1
|
26
26
|
- run: bundle install
|
27
27
|
- name: Publish to RubyGems
|
28
28
|
env:
|
data/.rubocop.yml
CHANGED
@@ -5,10 +5,13 @@ require:
|
|
5
5
|
inherit_from: .rubocop_todo.yml
|
6
6
|
|
7
7
|
AllCops:
|
8
|
-
TargetRubyVersion:
|
8
|
+
TargetRubyVersion: 3.1
|
9
9
|
NewCops: enable
|
10
10
|
SuggestExtensions: false
|
11
11
|
|
12
|
+
Gemspec/DevelopmentDependencies:
|
13
|
+
EnforcedStyle: gemspec
|
14
|
+
|
12
15
|
Gemspec/RequireMFA:
|
13
16
|
Enabled: false
|
14
17
|
|
@@ -24,6 +27,9 @@ RSpec/NestedGroups:
|
|
24
27
|
Style/Alias:
|
25
28
|
EnforcedStyle: prefer_alias
|
26
29
|
|
30
|
+
Style/Documentation:
|
31
|
+
Enabled: false
|
32
|
+
|
27
33
|
Style/FrozenStringLiteralComment:
|
28
34
|
Exclude:
|
29
35
|
- 'gemfiles/**/*'
|
data/Appraisals
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'ar-
|
4
|
-
gem 'activerecord', '~>
|
5
|
-
gem 'activesupport', '~>
|
3
|
+
appraise 'ar-70' do
|
4
|
+
gem 'activerecord', '~> 7.0'
|
5
|
+
gem 'activesupport', '~> 7.0'
|
6
6
|
end
|
7
7
|
|
8
|
-
appraise 'ar-
|
9
|
-
gem 'activerecord', '~>
|
10
|
-
gem 'activesupport', '~>
|
8
|
+
appraise 'ar-71' do
|
9
|
+
gem 'activerecord', '~> 7.1'
|
10
|
+
gem 'activesupport', '~> 7.1'
|
11
11
|
end
|
12
12
|
|
13
|
-
appraise 'ar-
|
14
|
-
gem 'activerecord', '~>
|
15
|
-
gem 'activesupport', '~>
|
13
|
+
appraise 'ar-72' do
|
14
|
+
gem 'activerecord', '~> 7.2'
|
15
|
+
gem 'activesupport', '~> 7.2'
|
16
16
|
end
|
17
17
|
|
18
|
-
appraise 'ar-
|
19
|
-
gem 'activerecord', '~>
|
20
|
-
gem 'activesupport', '~>
|
18
|
+
appraise 'ar-80' do
|
19
|
+
gem 'activerecord', '~> 8.0'
|
20
|
+
gem 'activesupport', '~> 8.0'
|
21
21
|
end
|
22
22
|
|
23
23
|
appraise 'ar-next' do
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### Version 4.1.0
|
2
|
+
- ADD: Support for Rails 8.0
|
3
|
+
|
4
|
+
### Version 4.0.0
|
5
|
+
- ADD: Support for Rails 7.2
|
6
|
+
- BREAKING: Dropped support for Rails < 7
|
7
|
+
- BREAKING: Dropped support old Rubies < 3.1
|
8
|
+
|
1
9
|
### Version 3.5.0
|
2
10
|
- Added :dependent option for setting explicit deletion behaviour (issue #31)
|
3
11
|
- Added automatic cycle detection when supported (currently only PostgresSQL 14+) (issue #22)
|
data/README.md
CHANGED
@@ -14,20 +14,16 @@ Luckily, there is already a SQL standard that makes it very easy to retrieve dat
|
|
14
14
|
|
15
15
|
## Supported environments
|
16
16
|
ActsAsRecursiveTree currently supports following ActiveRecord versions and is tested for compatibility:
|
17
|
-
* ActiveRecord 5.2.x
|
18
|
-
* ActiveRecord 6.0.x
|
19
|
-
* ActiveRecord 6.1.x
|
20
17
|
* ActiveRecord 7.0.x
|
21
18
|
* ActiveRecord 7.1.x
|
19
|
+
* ActiveRecord 7.2.x
|
20
|
+
* ActiveRecord NEXT (from git)
|
22
21
|
|
23
22
|
## Supported Rubies
|
24
23
|
ActsAsRecursiveTree is tested with following rubies:
|
25
|
-
* MRuby 2.5
|
26
|
-
* MRuby 2.6
|
27
|
-
* MRuby 2.7
|
28
|
-
* MRuby 3.0
|
29
24
|
* MRuby 3.1
|
30
25
|
* MRuby 3.2
|
26
|
+
* MRuby 3.3
|
31
27
|
|
32
28
|
Other Ruby implementations are not tested, but should also work.
|
33
29
|
|
data/Rakefile
CHANGED
@@ -18,22 +18,21 @@ Gem::Specification.new do |spec|
|
|
18
18
|
'bug_tracker_uri' => 'https://github.com/1and1/acts_as_recursive_tree/issues',
|
19
19
|
'changelog_uri' => 'https://github.com/1and1/acts_as_recursive_tree/blob/main/CHANGELOG.md'
|
20
20
|
}
|
21
|
-
spec.required_ruby_version = '>=
|
21
|
+
spec.required_ruby_version = '>= 3.1.0'
|
22
22
|
spec.files = `git ls-files -z`.split("\x0")
|
23
|
-
spec.test_files = spec.files.grep(%r{^spec/})
|
24
23
|
spec.require_paths = ['lib']
|
25
24
|
|
26
|
-
spec.
|
27
|
-
spec.
|
28
|
-
spec.
|
25
|
+
spec.add_dependency 'activerecord', '>= 7.0.0', '< 9'
|
26
|
+
spec.add_dependency 'activesupport', '>= 7.0.0', '< 9'
|
27
|
+
spec.add_dependency 'zeitwerk', '>= 2.4'
|
29
28
|
|
30
|
-
spec.add_development_dependency 'appraisal', '~> 2.
|
31
|
-
spec.add_development_dependency 'database_cleaner-active_record', '~> 2.
|
29
|
+
spec.add_development_dependency 'appraisal', '~> 2.5'
|
30
|
+
spec.add_development_dependency 'database_cleaner-active_record', '~> 2.2'
|
32
31
|
spec.add_development_dependency 'rake'
|
33
|
-
spec.add_development_dependency 'rspec-rails', '>=
|
34
|
-
spec.add_development_dependency 'rubocop', '~> 1.
|
35
|
-
spec.add_development_dependency 'rubocop-rails', '~> 2.
|
36
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.
|
32
|
+
spec.add_development_dependency 'rspec-rails', '>= 7.1'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 1.68.0'
|
34
|
+
spec.add_development_dependency 'rubocop-rails', '~> 2.27.0'
|
35
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 3.2.0'
|
37
36
|
|
38
|
-
spec.add_development_dependency 'sqlite3', '~>
|
37
|
+
spec.add_development_dependency 'sqlite3', '~> 2.0'
|
39
38
|
end
|
@@ -9,7 +9,7 @@ module ActsAsRecursiveTree
|
|
9
9
|
#
|
10
10
|
class RelationBuilder
|
11
11
|
def self.build(klass, ids, exclude_ids: false, &block)
|
12
|
-
new(klass, ids, exclude_ids
|
12
|
+
new(klass, ids, exclude_ids:, &block).build
|
13
13
|
end
|
14
14
|
|
15
15
|
class_attribute :traversal_strategy, instance_writer: false
|
@@ -48,8 +48,8 @@ module ActsAsRecursiveTree
|
|
48
48
|
# Subclasses may override this method to provide sane defaults.
|
49
49
|
#
|
50
50
|
# @return [ActsAsRecursiveTree::Options::QueryOptions] the new QueryOptions instance
|
51
|
-
def get_query_options(&
|
52
|
-
ActsAsRecursiveTree::Options::QueryOptions.from(&
|
51
|
+
def get_query_options(&)
|
52
|
+
ActsAsRecursiveTree::Options::QueryOptions.from(&)
|
53
53
|
end
|
54
54
|
|
55
55
|
def base_table
|
@@ -9,16 +9,16 @@ module ActsAsRecursiveTree
|
|
9
9
|
#
|
10
10
|
# subchild1.ancestors # => [child1, root]
|
11
11
|
#
|
12
|
-
def ancestors(&
|
13
|
-
base_class.ancestors_of(self, &
|
12
|
+
def ancestors(&)
|
13
|
+
base_class.ancestors_of(self, &)
|
14
14
|
end
|
15
15
|
|
16
16
|
# Returns ancestors and current node itself.
|
17
17
|
#
|
18
18
|
# subchild1.self_and_ancestors # => [subchild1, child1, root]
|
19
19
|
#
|
20
|
-
def self_and_ancestors(&
|
21
|
-
base_class.self_and_ancestors_of(self, &
|
20
|
+
def self_and_ancestors(&)
|
21
|
+
base_class.self_and_ancestors_of(self, &)
|
22
22
|
end
|
23
23
|
|
24
24
|
##
|
@@ -26,8 +26,8 @@ module ActsAsRecursiveTree
|
|
26
26
|
#
|
27
27
|
# root.descendants # => [child1, child2, subchild1, subchild2, subchild3, subchild4]
|
28
28
|
#
|
29
|
-
def descendants(&
|
30
|
-
base_class.descendants_of(self, &
|
29
|
+
def descendants(&)
|
30
|
+
base_class.descendants_of(self, &)
|
31
31
|
end
|
32
32
|
|
33
33
|
##
|
@@ -35,8 +35,8 @@ module ActsAsRecursiveTree
|
|
35
35
|
#
|
36
36
|
# root.self_and_descendants # => [root, child1, child2, subchild1, subchild2, subchild3, subchild4]
|
37
37
|
#
|
38
|
-
def self_and_descendants(&
|
39
|
-
base_class.self_and_descendants_of(self, &
|
38
|
+
def self_and_descendants(&)
|
39
|
+
base_class.self_and_descendants_of(self, &)
|
40
40
|
end
|
41
41
|
|
42
42
|
##
|
@@ -50,7 +50,7 @@ module ActsAsRecursiveTree
|
|
50
50
|
#
|
51
51
|
# subchild1.siblings # => [subchild2]
|
52
52
|
def siblings
|
53
|
-
self_and_siblings.where.not(id:
|
53
|
+
self_and_siblings.where.not(id:)
|
54
54
|
end
|
55
55
|
|
56
56
|
##
|
@@ -97,7 +97,7 @@ module ActsAsRecursiveTree
|
|
97
97
|
# @param includes [Array|Hash] pass the same arguments that should be passed to the #includes() method.
|
98
98
|
#
|
99
99
|
def preload_tree(includes: nil)
|
100
|
-
ActsAsRecursiveTree::Preloaders::Descendants.new(self, includes:
|
100
|
+
ActsAsRecursiveTree::Preloaders::Descendants.new(self, includes:).preload!
|
101
101
|
true
|
102
102
|
end
|
103
103
|
|
@@ -108,28 +108,28 @@ module ActsAsRecursiveTree
|
|
108
108
|
private :base_class
|
109
109
|
|
110
110
|
module ClassMethods
|
111
|
-
def self_and_ancestors_of(ids, &
|
112
|
-
ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, &
|
111
|
+
def self_and_ancestors_of(ids, &)
|
112
|
+
ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, &)
|
113
113
|
end
|
114
114
|
|
115
|
-
def ancestors_of(ids, &
|
116
|
-
ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, exclude_ids: true, &
|
115
|
+
def ancestors_of(ids, &)
|
116
|
+
ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, exclude_ids: true, &)
|
117
117
|
end
|
118
118
|
|
119
119
|
def roots_of(ids)
|
120
120
|
self_and_ancestors_of(ids).roots
|
121
121
|
end
|
122
122
|
|
123
|
-
def self_and_descendants_of(ids, &
|
124
|
-
ActsAsRecursiveTree::Builders::Descendants.build(self, ids, &
|
123
|
+
def self_and_descendants_of(ids, &)
|
124
|
+
ActsAsRecursiveTree::Builders::Descendants.build(self, ids, &)
|
125
125
|
end
|
126
126
|
|
127
|
-
def descendants_of(ids, &
|
128
|
-
ActsAsRecursiveTree::Builders::Descendants.build(self, ids, exclude_ids: true, &
|
127
|
+
def descendants_of(ids, &)
|
128
|
+
ActsAsRecursiveTree::Builders::Descendants.build(self, ids, exclude_ids: true, &)
|
129
129
|
end
|
130
130
|
|
131
|
-
def leaves_of(ids, &
|
132
|
-
ActsAsRecursiveTree::Builders::Leaves.build(self, ids, &
|
131
|
+
def leaves_of(ids, &)
|
132
|
+
ActsAsRecursiveTree::Builders::Leaves.build(self, ids, &)
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end
|
data/spec/db/database.rb
CHANGED
@@ -10,7 +10,7 @@ ActiveRecord::Base.logger = nil
|
|
10
10
|
|
11
11
|
ActiveRecord::Migration.verbose = false
|
12
12
|
|
13
|
-
ActiveRecord::Base.configurations = YAML.
|
13
|
+
ActiveRecord::Base.configurations = YAML.safe_load_file("#{database_folder}/database.yml")
|
14
14
|
|
15
15
|
if ActiveRecord.version >= Gem::Version.new('6.1.0')
|
16
16
|
config = ActiveRecord::Base.configurations.configs_for env_name: database_adapter, name: 'primary'
|
data/spec/db/models.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -13,7 +13,7 @@ require 'database_cleaner-active_record'
|
|
13
13
|
|
14
14
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
15
15
|
# in spec/support/ and its subdirectories.
|
16
|
-
Dir[File.join(__dir__, 'support/**/*.rb')].
|
16
|
+
Dir[File.join(__dir__, 'support/**/*.rb')].each { |f| require f }
|
17
17
|
|
18
18
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
19
19
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
@@ -15,7 +15,7 @@ RSpec.shared_context 'with base_setup' do
|
|
15
15
|
let(:exclude_ids) { false }
|
16
16
|
let(:proc) { nil }
|
17
17
|
let(:builder) do
|
18
|
-
described_class.new(model_class, model_id, exclude_ids
|
18
|
+
described_class.new(model_class, model_id, exclude_ids:, &proc)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_recursive_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wolfgang Wedelich-John
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -17,40 +17,40 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 7.0.0
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '9'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 7.0.0
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '9'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activesupport
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 7.0.0
|
41
41
|
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '9'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: 7.0.0
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '9'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: zeitwerk
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,28 +71,28 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '2.
|
74
|
+
version: '2.5'
|
75
75
|
type: :development
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
81
|
+
version: '2.5'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: database_cleaner-active_record
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
88
|
+
version: '2.2'
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '2.
|
95
|
+
version: '2.2'
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: rake
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,70 +113,70 @@ dependencies:
|
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '7.1'
|
117
117
|
type: :development
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '7.1'
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: rubocop
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.
|
130
|
+
version: 1.68.0
|
131
131
|
type: :development
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 1.
|
137
|
+
version: 1.68.0
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: rubocop-rails
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 2.
|
144
|
+
version: 2.27.0
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 2.
|
151
|
+
version: 2.27.0
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rubocop-rspec
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 2.
|
158
|
+
version: 3.2.0
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 2.
|
165
|
+
version: 3.2.0
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: sqlite3
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '2.0'
|
173
173
|
type: :development
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '2.0'
|
180
180
|
description: "\n This is a ruby gem that provides drop in replacement for acts_as_tree
|
181
181
|
but makes use of SQL recursive statement. Be sure to have a DBMS that supports recursive
|
182
182
|
queries when using this gem (e.g. PostgreSQL or SQLite). "
|
@@ -201,10 +201,10 @@ files:
|
|
201
201
|
- README.md
|
202
202
|
- Rakefile
|
203
203
|
- acts_as_recursive_tree.gemspec
|
204
|
-
- gemfiles/ar_52.gemfile
|
205
|
-
- gemfiles/ar_60.gemfile
|
206
|
-
- gemfiles/ar_61.gemfile
|
207
204
|
- gemfiles/ar_70.gemfile
|
205
|
+
- gemfiles/ar_71.gemfile
|
206
|
+
- gemfiles/ar_72.gemfile
|
207
|
+
- gemfiles/ar_80.gemfile
|
208
208
|
- gemfiles/ar_next.gemfile
|
209
209
|
- lib/acts_as_recursive_tree.rb
|
210
210
|
- lib/acts_as_recursive_tree/acts_macro.rb
|
@@ -256,30 +256,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
256
|
requirements:
|
257
257
|
- - ">="
|
258
258
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
259
|
+
version: 3.1.0
|
260
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - ">="
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
|
-
rubygems_version: 3.
|
266
|
+
rubygems_version: 3.3.27
|
267
267
|
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: Drop in replacement for acts_as_tree but using recursive queries
|
270
|
-
test_files:
|
271
|
-
- spec/acts_as_recursive_tree/builders/ancestors_spec.rb
|
272
|
-
- spec/acts_as_recursive_tree/builders/descendants_spec.rb
|
273
|
-
- spec/acts_as_recursive_tree/builders/leaves_spec.rb
|
274
|
-
- spec/acts_as_recursive_tree/options/values_spec.rb
|
275
|
-
- spec/acts_as_recursive_tree/preloaders/descendants_spec.rb
|
276
|
-
- spec/db/database.rb
|
277
|
-
- spec/db/database.yml
|
278
|
-
- spec/db/models.rb
|
279
|
-
- spec/db/schema.rb
|
280
|
-
- spec/model/location_spec.rb
|
281
|
-
- spec/model/node_spec.rb
|
282
|
-
- spec/model/relation_spec.rb
|
283
|
-
- spec/spec_helper.rb
|
284
|
-
- spec/support/shared_examples/builders.rb
|
285
|
-
- spec/support/tree_methods.rb
|
270
|
+
test_files: []
|