Skip to content

Commit 7dbcefb

Browse files
authored
Merge pull request #226 from seuros/master
Release v6.0.1
2 parents e7a3603 + 2451dc9 commit 7dbcefb

File tree

13 files changed

+72
-81
lines changed

13 files changed

+72
-81
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,23 @@ cache: bundler
22
sudo: false
33
language: ruby
44
rvm:
5+
- 2.3.1
6+
- 2.2.5
57
- 2.0
6-
- 2.2.3
78
- jruby-head
89
- rbx
910

1011
gemfile:
1112
- gemfiles/activerecord_4.1.gemfile
1213
- gemfiles/activerecord_4.2.gemfile
13-
- gemfiles/activerecord_5.0.rc1.gemfile
14+
- gemfiles/activerecord_5.0.gemfile
1415
- gemfiles/activerecord_edge.gemfile
1516

1617
env:
1718
- DB=sqlite
1819
- DB=mysql
1920
- DB=postgresql
2021

21-
#addons:
22-
# postgresql: "9.3"
23-
2422
script: WITH_ADVISORY_LOCK_PREFIX=$TRAVIS_JOB_ID bundle exec rake --trace spec:all
2523

2624
matrix:
@@ -32,3 +30,5 @@ matrix:
3230
exclude:
3331
- rvm: ruby-head
3432
gemfile: gemfiles/activerecord_4.1.gemfile
33+
- rvm: 2.0
34+
gemfile: gemfiles/activerecord_5.0.gemfile

Appraisals

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ appraise 'activerecord-4.2' do
1414
end
1515
end
1616

17-
appraise 'activerecord-5.0.rc1' do
18-
gem 'activerecord', '~> 5.0.0.rc1'
19-
gem 'actionpack', '~> 5.0.0.rc1'
20-
gem 'railties', '~> 5.0.0.rc1'
21-
gem 'rspec-rails', '>= 3.5.0.beta4'
17+
appraise 'activerecord-5.0' do
18+
gem 'activerecord', '~> 5.0.0'
2219
end
2320

2421
appraise 'activerecord-edge' do

MIT-LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2015 Matthew McEachen
1+
Copyright (c) 2012-2016 Matthew McEachen
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ closure_tree has some great features:
2626
* 2 SQL INSERTs on node creation
2727
* 3 SQL INSERT/UPDATEs on node reparenting
2828
* __Support for [concurrency](#concurrency)__ (using [with_advisory_lock](https://github.com/mceachen/with_advisory_lock))
29-
* __Support for ActiveRecord 4.1, 4.2 and 5.0.alpha__
30-
* __Support for Ruby 2.0, 2.1, 2.2 and JRuby 9000__
29+
* __Support for ActiveRecord 4.1, 4.2 and 5.0__
30+
* __Support for Ruby 2.0, 2.1, 2.2, 2.3.1 and JRuby 9000__
3131
* Support for reparenting children (and all their descendants)
3232
* Support for [single-table inheritance (STI)](#sti) within the hierarchy
3333
* ```find_or_create_by_path``` for [building out heterogeneous hierarchies quickly and conveniently](#find_or_create_by_path)
@@ -547,10 +547,11 @@ end
547547

548548
Closure tree is [tested under every valid combination](http://travis-ci.org/#!/mceachen/closure_tree) of
549549

550-
* Ruby 2.0 (and sometimes head)
551-
* Ruby 2.2 (and sometimes head)
550+
* Ruby 2.0
551+
* Ruby 2.2
552+
* Ruby 2.3.1 (and sometimes head)
552553
* jRuby 9000 (and sometimes head)
553-
* The latest ActiveRecord 4.1, 4.2, and master branch
554+
* The latest ActiveRecord 4.1, 4.2, 5.0 and master branch
554555
* Concurrency tests for MySQL and PostgreSQL. SQLite is tested in a single-threaded environment.
555556

556557
Assuming you're using [rbenv](https://github.com/sstephenson/rbenv), you can use ```tests.sh``` to

closure_tree.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Gem::Specification.new do |gem|
2020
gem.add_runtime_dependency 'with_advisory_lock', '>= 3.0.0'
2121

2222
gem.add_development_dependency 'rspec-instafail'
23-
gem.add_development_dependency 'rspec-rails', '~> 3.2.3'
23+
gem.add_development_dependency 'rspec-rails'
2424
gem.add_development_dependency 'database_cleaner'
2525
gem.add_development_dependency 'appraisal'
2626
gem.add_development_dependency 'timecop'
2727
gem.add_development_dependency 'parallel'
28-
gem.add_development_dependency 'ammeter', '1.1.2' # See https://github.com/mceachen/closure_tree/issues/181
28+
# gem.add_development_dependency 'ammeter', '1.1.2' # See https://github.com/mceachen/closure_tree/issues/181
2929
# gem.add_development_dependency 'byebug'
3030
# gem.add_development_dependency 'ruby-prof' # <- don't need this normally.
3131
end

gemfiles/activerecord_5.0.rc1.gemfile renamed to gemfiles/activerecord_5.0.gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

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

5-
gem "activerecord", "~> 5.0.0.rc1"
6-
gem "actionpack", "~> 5.0.0.rc1"
7-
gem "railties", "~> 5.0.0.rc1"
8-
gem "rspec-rails", ">= 3.5.0.beta4"
5+
gem "activerecord", "~> 5.0.0"
96

107
platforms :ruby, :rbx do
118
gem "mysql2"

lib/closure_tree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'active_support'
1+
require 'active_record'
22

33
module ClosureTree
44
extend ActiveSupport::Autoload

lib/closure_tree/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Configuration # :nodoc:
33
attr_accessor :database_less
44

55
def initialize
6-
@database_less = false
6+
@database_less = ENV['DATABASE_URL'].to_s.include?('//user:pass@127.0.0.1/')
77
end
88
end
99
end

lib/closure_tree/test/matcher.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'closure_tree'
2+
13
module ClosureTree
24
module Test
35
module Matcher

lib/closure_tree/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ClosureTree
2-
VERSION = Gem::Version.new('6.0.0')
2+
VERSION = Gem::Version.new('6.0.1')
33
end

0 commit comments

Comments
 (0)