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 +4 -4
- data/.github/workflows/ci.yml +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +1 -0
- data/acts_as_recursive_tree.gemspec +3 -3
- data/lib/acts_as_recursive_tree/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/support/shared_examples/builders.rb +0 -1
- data/spec/support/tree_methods.rb +4 -4
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f74110127d12218381c9578cf59546b125dddd7f2f994dcbc8fff16b13f27f9f
|
4
|
+
data.tar.gz: e63babd0dc010e7cded02689cc9fb3ae54f8a9a817de3c00031cbc118e2a652c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3711b930aa6bbb744cdf6ad0e34af98df9065294c0d8d498ec7daafb1ebd8e534acbab8195a5752b47dd1da5650a73e4a2c72d3371d6d2856d885f0cae0d4331
|
7
|
+
data.tar.gz: 3697fb438ee57c0cbb3d652c26278f6bcd016eab1f8c1d1d60cb0b319f74dd1566af889827a1fca7823b201d16a692b32a9411a95a2850e3f582c928f01aa378
|
data/.github/workflows/ci.yml
CHANGED
@@ -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
|
-
|
40
|
-
|
39
|
+
- ruby-version: '2.6'
|
40
|
+
gemfile: ar_next
|
41
41
|
- ruby-version: '2.6'
|
42
42
|
gemfile: ar_70
|
43
|
-
|
44
|
-
|
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
data/README.md
CHANGED
@@ -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', '<
|
27
|
-
spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '<
|
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.
|
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'
|
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
|
-
|
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.
|
@@ -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:
|
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:
|
19
|
-
node:
|
18
|
+
current_level: current_level + 1,
|
19
|
+
node: child,
|
20
20
|
create_node_info: create_node_info,
|
21
|
-
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.
|
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-
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|
95
|
+
version: '2.1'
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: rake
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|