Skip to content

Commit 246857b

Browse files
committed
Bye bye rails 4.0
1 parent 3b7abdd commit 246857b

15 files changed

+12
-67
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ sudo: false
33
language: ruby
44
rvm:
55
- 2.2
6-
# - rbx-2
7-
# - ruby-head
8-
# - rbx-head
96
- jruby-head
107

118
gemfile:
12-
- gemfiles/activerecord_4.0.gemfile
139
- gemfiles/activerecord_4.1.gemfile
1410
- gemfiles/activerecord_4.2.gemfile
1511
- gemfiles/activerecord_edge.gemfile
@@ -34,7 +30,5 @@ matrix:
3430
- rvm: jruby-head
3531

3632
exclude:
37-
- rvm: ruby-head
38-
gemfile: gemfiles/activerecord_4.0.gemfile
3933
- rvm: ruby-head
4034
gemfile: gemfiles/activerecord_4.1.gemfile

Appraisals

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
appraise 'activerecord-3.2' do
2-
gem 'activerecord', '~> 3.2.0'
3-
gem 'strong_parameters'
4-
end
5-
6-
appraise 'activerecord-4.0' do
7-
gem 'activerecord', '~> 4.0.0'
8-
end
9-
101
appraise 'activerecord-4.1' do
112
gem 'activerecord', '~> 4.1.0'
3+
gem 'foreigner', :git => 'https://github.com/matthuhiggins/foreigner.git'
124
end
135

146
appraise 'activerecord-4.2' do

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 6.0.0.alpha
4+
* Drop support for unsupported version of Rails
5+
36
### 5.2.0
47

58
* [Eduardo Turiño](https://github.com/eturino) renamed `acts_as_tree` to `has_closure_tree`. We'll

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
source 'https://rubygems.org'
2-
gem 'foreigner', :git => 'https://github.com/matthuhiggins/foreigner.git'
32

43
platforms :ruby, :rbx do
54
gem 'mysql2'

MIT-LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2014 Matthew McEachen
1+
Copyright (c) 2012-2015 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: 2 additions & 2 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 Rails 4.0, 4.1, and 4.2__
30-
* __Support for Ruby 2.2 and JRuby__
29+
* __Support for Rails 4.1, 4.2 and 5.0.alpha__
30+
* __Support for Ruby 2.2 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)

closure_tree.gemspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@ Gem::Specification.new do |gem|
1414

1515
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
1616
gem.test_files = gem.files.grep(%r{^spec/})
17-
gem.required_ruby_version = '>= 1.9.3'
17+
gem.required_ruby_version = '>= 2.2.0'
1818

19-
gem.add_runtime_dependency 'activerecord', '>= 3.2.0'
19+
gem.add_runtime_dependency 'activerecord', '>= 4.1.0'
2020
gem.add_runtime_dependency 'with_advisory_lock', '>= 3.0.0'
2121

22-
gem.add_development_dependency 'yard'
2322
gem.add_development_dependency 'rspec-instafail'
2423
gem.add_development_dependency 'rspec-rails', '~> 3.2.3'
25-
gem.add_development_dependency 'uuidtools'
2624
gem.add_development_dependency 'database_cleaner'
2725
gem.add_development_dependency 'appraisal'
2826
gem.add_development_dependency 'timecop'
2927
gem.add_development_dependency 'parallel'
3028
gem.add_development_dependency 'ammeter', '~> 1.1.2'
31-
gem.add_development_dependency 'test-unit', '~> 3.0'
3229
# gem.add_development_dependency 'byebug'
3330
# gem.add_development_dependency 'ruby-prof' # <- don't need this normally.
3431
end

gemfiles/activerecord_4.0.gemfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

gemfiles/activerecord_4.2.gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

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

5-
gem "foreigner", :git => "https://github.com/matthuhiggins/foreigner.git"
65
gem "activerecord", "~> 4.2.0"
76

87
platforms :ruby, :rbx do

gemfiles/activerecord_edge.gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

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

5-
gem "foreigner", :git => "https://github.com/matthuhiggins/foreigner.git"
65
gem "activerecord", :github => "rails/rails"
76
gem "arel", :github => "rails/arel"
87

0 commit comments

Comments
 (0)