acts_as_recursive_tree 3.5.0 → 4.0.0

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: 2ce9f3e8c4b5dd8d5e61e04d9234a07920f2063955d134110a40c217950595ea
4
- data.tar.gz: baa87fc513a6fd8e49538309b1833e418328b1f7317584fc828d20689cbbd32b
3
+ metadata.gz: d14ef108322971d8058356f6103d0d64cfd53b33841c54e0cca6914907a2660b
4
+ data.tar.gz: 8d2f856d9809597d4cec4fa307477f48050ae8c77a8e9d8678a73b590a9ac531
5
5
  SHA512:
6
- metadata.gz: 7e21465a62a28f6ca757402689abe0709e131d3104f3334646105af34d594a0704d2aaf54fb72b11cb039fd7436845bec0dd335506ed8f5c48c599f89ae9a502
7
- data.tar.gz: 242a7f33a0595155d0fc75eec0f17769ae0d92314db07a6cb5acab96737574498266efb6f2aa8f30af3ef3c9a4b87895cb7ab0ebf75d3d9469173131917a32e1
6
+ metadata.gz: c7cd33f746eb9d0fe7cc6f9df17e365ec1f4d21b1369dae80b44322b854403e2ff5d6759cf645b6baa0d609670d922d26c0ba263ca9f34e6ba0c252a8daee926
7
+ data.tar.gz: d064d90e580fabf8367dba2a60626197723d8938c4514f5e90f99541f62672d82885ae361a1acc1a486905a422f64f3f558fa420dd2d2d38e881e914b6ee9281
@@ -19,31 +19,11 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
23
- gemfile: [ar_52, ar_60, ar_61, ar_70, ar_next]
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
- - ruby-version: '3.1'
32
- gemfile: ar_52
33
- - 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
- gemfile: ar_next
45
- - ruby-version: '2.5'
46
- gemfile: ar_70
22
+ ruby-version: ['3.1', '3.2', '3.3']
23
+ gemfile: [ar_70, ar_71, ar_72, ar_next]
24
+ # exclude:
25
+ # - ruby-version: '3.2'
26
+ # gemfile: ar_60
47
27
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
48
28
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
49
29
  steps:
@@ -18,14 +18,14 @@ jobs:
18
18
 
19
19
  runs-on: ubuntu-latest
20
20
  steps:
21
- - uses: actions/checkout@v2
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: 2.7
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@v2
21
+ - uses: actions/checkout@v3
22
22
  - name: Set up Ruby
23
23
  uses: ruby/setup-ruby@v1
24
24
  with:
25
- ruby-version: 2.7
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: 2.5
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,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'ar-52' do
4
- gem 'activerecord', '~> 5.2.0'
5
- gem 'activesupport', '~> 5.2.0'
6
- end
7
-
8
- appraise 'ar-60' do
9
- gem 'activerecord', '~> 6.0.0'
10
- gem 'activesupport', '~> 6.0.0'
3
+ appraise 'ar-70' do
4
+ gem 'activerecord', '~> 7.0'
5
+ gem 'activesupport', '~> 7.0'
11
6
  end
12
7
 
13
- appraise 'ar-61' do
14
- gem 'activerecord', '~> 6.1.0'
15
- gem 'activesupport', '~> 6.1.0'
8
+ appraise 'ar-71' do
9
+ gem 'activerecord', '~> 7.1'
10
+ gem 'activesupport', '~> 7.1'
16
11
  end
17
12
 
18
- appraise 'ar-70' do
19
- gem 'activerecord', '~> 7.0'
20
- gem 'activesupport', '~> 7.0'
13
+ appraise 'ar-72' do
14
+ gem 'activerecord', '~> 7.2'
15
+ gem 'activesupport', '~> 7.2'
21
16
  end
22
17
 
23
18
  appraise 'ar-next' do
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Version 4.0.0
2
+ - ADD: Support for Rails 7.2
3
+ - BREAKING: Dropped support for Rails < 7
4
+ - BREAKING: Dropped support old Rubies < 3.1
5
+
1
6
  ### Version 3.5.0
2
7
  - Added :dependent option for setting explicit deletion behaviour (issue #31)
3
8
  - 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
@@ -10,6 +10,6 @@ task default: [:spec]
10
10
  desc 'Deletes temporary files'
11
11
  task :clean_tmp_files do
12
12
  %w[db.log test.sqlite3].each do |file|
13
- File.delete(file) if File.exist?(file)
13
+ FileUtils.rm_f(file)
14
14
  end
15
15
  end
@@ -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 = '>= 2.5.0'
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.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 8'
27
- spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 8'
28
- spec.add_runtime_dependency 'zeitwerk', '>= 2.4'
25
+ spec.add_dependency 'activerecord', '>= 7.0.0', '< 8'
26
+ spec.add_dependency 'activesupport', '>= 7.0.0', '< 8'
27
+ spec.add_dependency 'zeitwerk', '>= 2.4'
29
28
 
30
- spec.add_development_dependency 'appraisal', '~> 2.4'
31
- spec.add_development_dependency 'database_cleaner-active_record', '~> 2.1'
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', '>= 3.5'
34
- spec.add_development_dependency 'rubocop', '~> 1.23.0'
35
- spec.add_development_dependency 'rubocop-rails', '~> 2.12.0'
36
- spec.add_development_dependency 'rubocop-rspec', '~> 2.6.0'
32
+ spec.add_development_dependency 'rspec-rails', '>= 6.1'
33
+ spec.add_development_dependency 'rubocop', '~> 1.66.0'
34
+ spec.add_development_dependency 'rubocop-rails', '~> 2.26.0'
35
+ spec.add_development_dependency 'rubocop-rspec', '~> 3.0.4'
37
36
 
38
- spec.add_development_dependency 'sqlite3', '~> 1.3'
37
+ spec.add_development_dependency 'sqlite3', '~> 2.0'
39
38
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.2.0"
6
- gem "activesupport", "~> 5.2.0"
5
+ gem "activerecord", "~> 7.1"
6
+ gem "activesupport", "~> 7.1"
7
7
 
8
8
  gemspec path: "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 6.0.0"
6
- gem "activesupport", "~> 6.0.0"
5
+ gem "activerecord", "~> 7.2"
6
+ gem "activesupport", "~> 7.2"
7
7
 
8
8
  gemspec path: "../"
@@ -14,7 +14,7 @@ module ActsAsRecursiveTree
14
14
  model_class: self,
15
15
  parent_key: parent_key.to_sym,
16
16
  parent_type_column: parent_type_column.try(:to_sym),
17
- dependent: dependent
17
+ dependent:
18
18
  )
19
19
 
20
20
  include ActsAsRecursiveTree::Model
@@ -5,7 +5,7 @@ module ActsAsRecursiveTree
5
5
  class Ancestors < RelationBuilder
6
6
  self.traversal_strategy = ActsAsRecursiveTree::Builders::Strategies::Ancestor
7
7
 
8
- def get_query_options(&block)
8
+ def get_query_options(&)
9
9
  opts = super
10
10
  opts.ensure_ordering!
11
11
  opts
@@ -16,7 +16,7 @@ module ActsAsRecursiveTree
16
16
  select_manager
17
17
  end
18
18
 
19
- def get_query_options(&_block)
19
+ def get_query_options(&)
20
20
  # do not allow any custom options
21
21
  ActsAsRecursiveTree::Options::QueryOptions.new
22
22
  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: exclude_ids, &block).build
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(&block)
52
- ActsAsRecursiveTree::Options::QueryOptions.from(&block)
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(&block)
13
- base_class.ancestors_of(self, &block)
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(&block)
21
- base_class.self_and_ancestors_of(self, &block)
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(&block)
30
- base_class.descendants_of(self, &block)
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(&block)
39
- base_class.self_and_descendants_of(self, &block)
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: 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: includes).preload!
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, &block)
112
- ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, &block)
111
+ def self_and_ancestors_of(ids, &)
112
+ ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, &)
113
113
  end
114
114
 
115
- def ancestors_of(ids, &block)
116
- ActsAsRecursiveTree::Builders::Ancestors.build(self, ids, exclude_ids: true, &block)
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, &block)
124
- ActsAsRecursiveTree::Builders::Descendants.build(self, ids, &block)
123
+ def self_and_descendants_of(ids, &)
124
+ ActsAsRecursiveTree::Builders::Descendants.build(self, ids, &)
125
125
  end
126
126
 
127
- def descendants_of(ids, &block)
128
- ActsAsRecursiveTree::Builders::Descendants.build(self, ids, exclude_ids: true, &block)
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, &block)
132
- ActsAsRecursiveTree::Builders::Leaves.build(self, ids, &block)
131
+ def leaves_of(ids, &)
132
+ ActsAsRecursiveTree::Builders::Leaves.build(self, ids, &)
133
133
  end
134
134
  end
135
135
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsRecursiveTree
4
- VERSION = '3.5.0'
4
+ VERSION = '4.0.0'
5
5
  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.safe_load(File.read("#{database_folder}/database.yml"))
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Base test class
4
- class ApplicationRecord < ::ActiveRecord::Base
4
+ class ApplicationRecord < ActiveRecord::Base
5
5
  self.abstract_class = true
6
6
 
7
7
  extend ActsAsRecursiveTree::ActsMacro
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')].sort.each { |f| require f }
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: exclude_ids, &proc)
18
+ described_class.new(model_class, model_id, exclude_ids:, &proc)
19
19
  end
20
20
  end
21
21
 
@@ -14,8 +14,8 @@ module TreeMethods
14
14
  max_level,
15
15
  current_level: current_level + 1,
16
16
  node: child,
17
- create_node_info: create_node_info,
18
- stop_at: stop_at
17
+ create_node_info:,
18
+ stop_at:
19
19
  )
20
20
  end
21
21
  node
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: 3.5.0
4
+ version: 4.0.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: 2023-08-11 00:00:00.000000000 Z
12
+ date: 2024-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 5.2.0
20
+ version: 7.0.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
23
  version: '8'
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: 5.2.0
30
+ version: 7.0.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '8'
@@ -37,7 +37,7 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 5.2.0
40
+ version: 7.0.0
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '8'
@@ -47,7 +47,7 @@ dependencies:
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 5.2.0
50
+ version: 7.0.0
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '8'
@@ -71,28 +71,28 @@ dependencies:
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '2.4'
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.4'
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.1'
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.1'
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: '3.5'
116
+ version: '6.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: '3.5'
123
+ version: '6.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.23.0
130
+ version: 1.66.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.23.0
137
+ version: 1.66.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.12.0
144
+ version: 2.26.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.12.0
151
+ version: 2.26.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.6.0
158
+ version: 3.0.4
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.6.0
165
+ version: 3.0.4
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: '1.3'
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: '1.3'
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,9 @@ 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
208
207
  - gemfiles/ar_next.gemfile
209
208
  - lib/acts_as_recursive_tree.rb
210
209
  - lib/acts_as_recursive_tree/acts_macro.rb
@@ -256,30 +255,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
255
  requirements:
257
256
  - - ">="
258
257
  - !ruby/object:Gem::Version
259
- version: 2.5.0
258
+ version: 3.1.0
260
259
  required_rubygems_version: !ruby/object:Gem::Requirement
261
260
  requirements:
262
261
  - - ">="
263
262
  - !ruby/object:Gem::Version
264
263
  version: '0'
265
264
  requirements: []
266
- rubygems_version: 3.1.6
265
+ rubygems_version: 3.3.27
267
266
  signing_key:
268
267
  specification_version: 4
269
268
  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
269
+ test_files: []
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 6.1.0"
6
- gem "activesupport", "~> 6.1.0"
7
-
8
- gemspec path: "../"