Skip to content

Commit 1bc10c8

Browse files
committed
Release 7.0.0
1 parent f742e96 commit 1bc10c8

11 files changed

+103
-41
lines changed

.travis.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ sudo: false
33
language: ruby
44
rvm:
55
- 2.6.0
6-
- 2.5.0
7-
- 2.4.3
6+
- 2.5.1
7+
- 2.4.4
88
- 2.3.6
9-
- 2.2.9
10-
# these haven't been passing for a while:
11-
# - jruby-head
12-
# - rbx
9+
- 2.2.10
1310

1411
gemfile:
1512
- gemfiles/activerecord_5.2.gemfile

Appraisals

+55-1
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,75 @@
11

22
appraise 'activerecord-4.2' do
33
gem 'activerecord', '~> 4.2.0'
4+
platforms :ruby do
5+
gem 'mysql2', "< 0.5"
6+
gem 'pg', "~> 0.21"
7+
gem 'sqlite3'
8+
end
9+
10+
platforms :jruby do
11+
gem 'activerecord-jdbcmysql-adapter'
12+
gem 'activerecord-jdbcpostgresql-adapter'
13+
gem 'activerecord-jdbcsqlite3-adapter'
14+
end
415
end
516

617
appraise 'activerecord-5.0' do
718
gem 'activerecord', '~> 5.0.0'
19+
platforms :ruby do
20+
gem 'mysql2'
21+
gem 'pg'
22+
gem 'sqlite3'
23+
end
24+
25+
platforms :jruby do
26+
gem 'activerecord-jdbcmysql-adapter'
27+
gem 'activerecord-jdbcpostgresql-adapter'
28+
gem 'activerecord-jdbcsqlite3-adapter'
29+
end
830
end
931

1032
appraise 'activerecord-5.1' do
1133
gem 'activerecord', '~> 5.1.0'
34+
platforms :ruby do
35+
gem 'mysql2'
36+
gem 'pg'
37+
gem 'sqlite3'
38+
end
39+
40+
platforms :jruby do
41+
gem 'activerecord-jdbcmysql-adapter'
42+
gem 'activerecord-jdbcpostgresql-adapter'
43+
gem 'activerecord-jdbcsqlite3-adapter'
44+
end
1245
end
1346

1447
appraise 'activerecord-5.2' do
1548
gem 'activerecord', '~> 5.2.0'
49+
platforms :ruby do
50+
gem 'mysql2'
51+
gem 'pg'
52+
gem 'sqlite3'
53+
end
54+
55+
platforms :jruby do
56+
gem 'activerecord-jdbcmysql-adapter'
57+
gem 'activerecord-jdbcpostgresql-adapter'
58+
gem 'activerecord-jdbcsqlite3-adapter'
59+
end
1660
end
1761

1862
appraise 'activerecord-edge' do
1963
gem 'activerecord', github: 'rails/rails'
20-
gem 'arel', github: 'rails/arel'
64+
platforms :ruby do
65+
gem 'mysql2'
66+
gem 'pg'
67+
gem 'sqlite3'
68+
end
69+
70+
platforms :jruby do
71+
gem 'activerecord-jdbcmysql-adapter'
72+
gem 'activerecord-jdbcpostgresql-adapter'
73+
gem 'activerecord-jdbcsqlite3-adapter'
74+
end
2175
end

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
### 7.0.0
4+
Closure Tree is now tested against Rails 5.2
5+
6+
- Postpone configuration (database introspection)[PR 264](https://github.com/ClosureTree/closure_tree/pull/264)
7+
- Fix "tree.find_by_path([])" [PR 288](https://github.com/ClosureTree/closure_tree/pull/288)
8+
- Fixed generator specs and added migration version [PR 292](https://github.com/ClosureTree/closure_tree/pull/292)
9+
- Eliminate deprecation warnings in ActiveRecord 5.2 [PR 296](https://github.com/ClosureTree/closure_tree/pull/296)
10+
- When using 'oracle_enhanced', remove 'AS' on the table_name alias. [PR 298](https://github.com/ClosureTree/closure_tree/pull/298)
11+
- README update [PR 301](https://github.com/ClosureTree/closure_tree/pull/301)
12+
- Add `with_descendant` finder [PR 302](https://github.com/ClosureTree/closure_tree/pull/302)
13+
- Fix pg version for rails prior 5.1 [PR 303](https://github.com/ClosureTree/closure_tree/pull/303)
14+
- Test on Rails 5.2 & fix mysql for older Rails [PR 304](https://github.com/ClosureTree/closure_tree/pull/304)
15+
- Test with ActiveRecord 5.2.0 [PR 307](https://github.com/ClosureTree/closure_tree/pull/307)
16+
- README update [PR 310](https://github.com/ClosureTree/closure_tree/pull/310)
17+
- FactoryBot linter failing for a model that uses closure_tree [PR 311](https://github.com/ClosureTree/closure_tree/pull/311)
18+
- Added dont_order_roots option [PR 312](https://github.com/ClosureTree/closure_tree/pull/312)
19+
- Added instance methods to determine the relationship between 2 nodes [PR 314](https://github.com/ClosureTree/closure_tree/pull/314)
20+
- Add an instance method to check the relationship between 2 nodes: #family_of? [PR 319](https://github.com/ClosureTree/closure_tree/pull/319)
21+
- Remove options restrictions on has_closure_tree_root [PR 321](https://github.com/ClosureTree/closure_tree/pull/321)
22+
- Fix uninitialized variable warnings [PR 323](https://github.com/ClosureTree/closure_tree/pull/323)
23+
324
### 6.6.0
425

526
Closure Tree is now tested against Rails 5.1, and just passed 50 contributors and

Gemfile

-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
source 'https://rubygems.org'
22

3-
platforms :ruby, :rbx do
4-
gem 'mysql2'
5-
gem 'pg'
6-
gem 'sqlite3'
7-
end
8-
9-
platforms :jruby do
10-
gem 'activerecord-jdbcmysql-adapter'
11-
gem 'activerecord-jdbcpostgresql-adapter'
12-
gem 'activerecord-jdbcsqlite3-adapter'
13-
end
14-
153
gemspec

closure_tree.gemspec

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ Gem::Specification.new do |gem|
1212
gem.description = gem.summary
1313
gem.license = 'MIT'
1414

15-
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
15+
gem.files = `git ls-files`.split($/).reject do |f|
16+
f.match(%r{^(spec|img|gemfiles)})
17+
end
18+
1619
gem.test_files = gem.files.grep(%r{^spec/})
1720
gem.required_ruby_version = '>= 2.0.0'
1821

19-
gem.add_runtime_dependency 'activerecord', '>= 4.1.0'
20-
gem.add_runtime_dependency 'with_advisory_lock', '>= 3.0.0'
22+
gem.add_runtime_dependency 'activerecord', '>= 4.2.10'
23+
gem.add_runtime_dependency 'with_advisory_lock', '>= 4.0.0'
2124

2225
gem.add_development_dependency 'appraisal'
2326
gem.add_development_dependency 'database_cleaner'

gemfiles/activerecord_4.2.gemfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ source "https://rubygems.org"
44

55
gem "activerecord", "~> 4.2.0"
66

7-
platforms :ruby, :rbx do
8-
gem "mysql2", '~> 0.4.10'
9-
gem "pg", '~> 0.21.0'
7+
platforms :ruby do
8+
gem "mysql2", "< 0.5"
9+
gem "pg", "~> 0.21"
1010
gem "sqlite3"
1111
end
1212

@@ -16,4 +16,4 @@ platforms :jruby do
1616
gem "activerecord-jdbcsqlite3-adapter"
1717
end
1818

19-
gemspec :path => "../"
19+
gemspec path: "../"

gemfiles/activerecord_5.0.gemfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ source "https://rubygems.org"
44

55
gem "activerecord", "~> 5.0.0"
66

7-
platforms :ruby, :rbx do
8-
gem "mysql2", '~> 0.4.10'
9-
gem "pg", '~> 0.21.0'
7+
platforms :ruby do
8+
gem "mysql2"
9+
gem "pg"
1010
gem "sqlite3"
1111
end
1212

@@ -16,4 +16,4 @@ platforms :jruby do
1616
gem "activerecord-jdbcsqlite3-adapter"
1717
end
1818

19-
gemspec :path => "../"
19+
gemspec path: "../"

gemfiles/activerecord_5.1.gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ source "https://rubygems.org"
44

55
gem "activerecord", "~> 5.1.0"
66

7-
platforms :ruby, :rbx do
8-
gem "mysql2", '~> 0.4.10'
7+
platforms :ruby do
8+
gem "mysql2"
99
gem "pg"
1010
gem "sqlite3"
1111
end
@@ -16,4 +16,4 @@ platforms :jruby do
1616
gem "activerecord-jdbcsqlite3-adapter"
1717
end
1818

19-
gemspec :path => "../"
19+
gemspec path: "../"

gemfiles/activerecord_5.2.gemfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ source "https://rubygems.org"
44

55
gem "activerecord", "~> 5.2.0"
66

7-
platforms :ruby, :rbx do
8-
gem "mysql2", '~> 0.4.10'
7+
platforms :ruby do
8+
gem "mysql2"
99
gem "pg"
1010
gem "sqlite3"
1111
end
@@ -16,4 +16,4 @@ platforms :jruby do
1616
gem "activerecord-jdbcsqlite3-adapter"
1717
end
1818

19-
gemspec :path => "../"
19+
gemspec path: "../"

gemfiles/activerecord_edge.gemfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
source "https://rubygems.org"
44

5-
gem "activerecord", :github => "rails/rails"
6-
gem "arel", :github => "rails/arel"
5+
gem "activerecord", github: "rails/rails"
76

8-
platforms :ruby, :rbx do
7+
platforms :ruby do
98
gem "mysql2"
109
gem "pg"
1110
gem "sqlite3"
@@ -17,4 +16,4 @@ platforms :jruby do
1716
gem "activerecord-jdbcsqlite3-adapter"
1817
end
1918

20-
gemspec :path => "../"
19+
gemspec path: "../"

lib/closure_tree/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ClosureTree
2-
VERSION = Gem::Version.new('6.6.0')
2+
VERSION = Gem::Version.new('7.0.0')
33
end

0 commit comments

Comments
 (0)