acts_as_recursive_tree 3.3.0 → 3.4.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: b60be808a8b0a3e93edfbb83a83cc8b270eebade9888ddc6038bb4af4429d7da
4
- data.tar.gz: 96622ef4e488bbd73de8dd4d0ae51c51a2b11843219d2a34669367ace4f77d60
3
+ metadata.gz: f74110127d12218381c9578cf59546b125dddd7f2f994dcbc8fff16b13f27f9f
4
+ data.tar.gz: e63babd0dc010e7cded02689cc9fb3ae54f8a9a817de3c00031cbc118e2a652c
5
5
  SHA512:
6
- metadata.gz: fca6f5732cc344c395d1d74f3cc13ac5be4af9ea74eb545764b28ef1a7550fcb3300975cccce92a2772f5d3ca1e12fb1e4a6e124f07037f66099b86256918c57
7
- data.tar.gz: 8b2cf07e6aa5ef4543f6d81200ac3421d918039140480314496c416f8ff3f6fce65a1ba43bdcae837f67df5e279e9281d8680ca76945d84a8115877eeb4cc7d2
6
+ metadata.gz: 3711b930aa6bbb744cdf6ad0e34af98df9065294c0d8d498ec7daafb1ebd8e534acbab8195a5752b47dd1da5650a73e4a2c72d3371d6d2856d885f0cae0d4331
7
+ data.tar.gz: 3697fb438ee57c0cbb3d652c26278f6bcd016eab1f8c1d1d60cb0b319f74dd1566af889827a1fca7823b201d16a692b32a9411a95a2850e3f582c928f01aa378
@@ -20,7 +20,7 @@ jobs:
20
20
  strategy:
21
21
  matrix:
22
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]
23
+ gemfile: [ar_52, ar_60, ar_61, ar_70, ar_next]
24
24
  exclude:
25
25
  - ruby-version: '3.2'
26
26
  gemfile: ar_52
@@ -36,12 +36,12 @@ jobs:
36
36
  gemfile: ar_61
37
37
  - ruby-version: '3.0'
38
38
  gemfile: ar_52
39
- # - ruby-version: '2.6'
40
- # gemfile: ar_next
39
+ - ruby-version: '2.6'
40
+ gemfile: ar_next
41
41
  - ruby-version: '2.6'
42
42
  gemfile: ar_70
43
- # - ruby-version: '2.5'
44
- # gemfile: ar_next
43
+ - ruby-version: '2.5'
44
+ gemfile: ar_next
45
45
  - ruby-version: '2.5'
46
46
  gemfile: ar_70
47
47
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Version 3.4.0
2
+ - Rails 7.1 compatibility
3
+ - Added ar_next to test matrix
4
+ - Added updated databasecleaner to test latest active record from git
5
+
1
6
  ### Version 3.3.0
2
7
  - added __includes:__ option to __preload_tree__
3
8
 
data/README.md CHANGED
@@ -18,6 +18,7 @@ ActsAsRecursiveTree currently supports following ActiveRecord versions and is te
18
18
  * ActiveRecord 6.0.x
19
19
  * ActiveRecord 6.1.x
20
20
  * ActiveRecord 7.0.x
21
+ * ActiveRecord 7.1.x
21
22
 
22
23
  ## Supported Rubies
23
24
  ActsAsRecursiveTree is tested with following rubies:
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = spec.files.grep(%r{^spec/})
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.1'
27
- spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 7.1'
26
+ spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 8'
27
+ spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 8'
28
28
  spec.add_runtime_dependency 'zeitwerk', '>= 2.4'
29
29
 
30
30
  spec.add_development_dependency 'appraisal', '~> 2.4'
31
- spec.add_development_dependency 'database_cleaner', '~> 2.0'
31
+ spec.add_development_dependency 'database_cleaner-active_record', '~> 2.1'
32
32
  spec.add_development_dependency 'rake'
33
33
  spec.add_development_dependency 'rspec-rails', '>= 3.5'
34
34
  spec.add_development_dependency 'rubocop', '~> 1.23.0'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsRecursiveTree
4
- VERSION = '3.3.0'
4
+ VERSION = '3.4.0'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -9,7 +9,7 @@ require 'active_record'
9
9
  require 'acts_as_recursive_tree'
10
10
  require_relative 'db/database'
11
11
 
12
- require 'database_cleaner'
12
+ 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.
@@ -76,7 +76,7 @@ RSpec.configure do |config|
76
76
  # # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
77
77
  # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
78
78
  # # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
79
- config.disable_monkey_patching!
79
+ config.disable_monkey_patching!
80
80
  #
81
81
  # # This setting enables warnings. It's recommended, but in some cases may
82
82
  # # be too noisy due to issues in dependencies.
@@ -1,4 +1,3 @@
1
-
2
1
  RSpec.shared_context 'setup with enforced ordering' do
3
2
  let(:ordering) { false }
4
3
  include_context 'base_setup' do
@@ -7,7 +7,7 @@ module TreeMethods
7
7
 
8
8
  1.upto(max_level - current_level) do |index|
9
9
  child = node.children.create!(
10
- name: "child #{index} - level #{current_level}",
10
+ name: "child #{index} - level #{current_level}",
11
11
  active: stop_at > current_level
12
12
  )
13
13
 
@@ -15,10 +15,10 @@ module TreeMethods
15
15
 
16
16
  create_tree(
17
17
  max_level,
18
- current_level: current_level + 1,
19
- node: child,
18
+ current_level: current_level + 1,
19
+ node: child,
20
20
  create_node_info: create_node_info,
21
- stop_at: stop_at
21
+ stop_at: stop_at
22
22
  )
23
23
  end
24
24
 
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.3.0
4
+ version: 3.4.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-01-26 00:00:00.000000000 Z
12
+ date: 2023-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 5.2.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '7.1'
23
+ version: '8'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 5.2.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '7.1'
33
+ version: '8'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activesupport
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: 5.2.0
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '7.1'
43
+ version: '8'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: 5.2.0
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '7.1'
53
+ version: '8'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: zeitwerk
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -80,19 +80,19 @@ dependencies:
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2.4'
82
82
  - !ruby/object:Gem::Dependency
83
- name: database_cleaner
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.0'
88
+ version: '2.1'
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.0'
95
+ version: '2.1'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: rake
98
98
  requirement: !ruby/object:Gem::Requirement