Skip to content

Commit 19ba64e

Browse files
committed
Add appraisals for Rails 6.1
Rails 6.1 requires an upgrade to rspec-rails 4.0.0 which fixes a WrongScopeError: rspec/rspec-rails#2215 Rspec-rails 4.0.0 dropped support for Rails below 5.0, so Rails 4 has been removed from the appraisals.
1 parent d83723e commit 19ba64e

File tree

7 files changed

+25
-12
lines changed

7 files changed

+25
-12
lines changed

Appraisals

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ '4.0' => '4.0.0', '4.1' => '4.1.0', '4.2' => '4.2.0', '5.0' => '5.0.0', '5.1' => '5.1.0', '5.2' => '5.2.0', '6.0' => '6.0.0' }.each do |rails, version|
1+
{ '4.2' => '4.2.0', '5.0' => '5.0.0', '5.1' => '5.1.0', '5.2' => '5.2.0', '6.0' => '6.0.0', '6.1' => '6.1.0' }.each do |rails, version|
22
appraise "rails-#{rails}" do
33
gem "rails", "~> #{version}"
44
end

awesome_nested_set.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
2626
s.add_development_dependency 'pry'
2727
s.add_development_dependency 'pry-nav'
2828
s.add_development_dependency 'rake', '~> 10'
29-
s.add_development_dependency 'rspec-rails', '~> 3.8.0'
29+
s.add_development_dependency 'rspec-rails', '~> 4.0.0'
3030

3131
s.cert_chain = [File.expand_path('certs/parndt.pem', __dir__)]
3232
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)

gemfiles/rails_5.0.gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ source "https://rubygems.org"
55
gem "rails", "~> 5.0.0"
66

77
platforms :ruby do
8-
gem "sqlite3", "~> 1.3.6"
8+
gem "sqlite3"
99
gem "mysql2", "< 0.4.0"
1010
gem "pg", "0.21.0"
1111
end
1212

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

gemfiles/rails_5.1.gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ source "https://rubygems.org"
55
gem "rails", "~> 5.1.0"
66

77
platforms :ruby do
8-
gem "sqlite3", "~> 1.3.6"
8+
gem "sqlite3"
99
gem "mysql2", "< 0.4.0"
1010
gem "pg", "0.21.0"
1111
end
1212

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

gemfiles/rails_5.2.gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ source "https://rubygems.org"
55
gem "rails", "~> 5.2.0"
66

77
platforms :ruby do
8-
gem "sqlite3", "~> 1.3.6"
9-
gem "mysql2", ">= 0.4.4", "< 0.6.0"
8+
gem "sqlite3"
9+
gem "mysql2", "< 0.4.0"
1010
gem "pg", "0.21.0"
1111
end
1212

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

gemfiles/rails_6.0.gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ source "https://rubygems.org"
55
gem "rails", "~> 6.0.0"
66

77
platforms :ruby do
8-
gem "sqlite3", "~> 1.4"
9-
gem "mysql2", "~> 0.5.0"
8+
gem "sqlite3"
9+
gem "mysql2", "< 0.4.0"
1010
gem "pg", "0.21.0"
1111
end
1212

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

gemfiles/rails_6.1.gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "rails", "~> 6.1.0"
6+
7+
platforms :ruby do
8+
gem "sqlite3"
9+
gem "mysql2", "< 0.4.0"
10+
gem "pg", "0.21.0"
11+
end
12+
13+
gemspec path: "../"

0 commit comments

Comments
 (0)