Skip to content

Commit

Permalink
Test with latest Rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Aug 7, 2020
1 parent 2d0caed commit 93d1585
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ rvm:
- jruby-9.2.13.0

gemfile:
- gemfiles/rails_4.2.10.gemfile
- gemfiles/rails_5.0.7.gemfile
- gemfiles/rails_5.1.6.gemfile
- gemfiles/rails_5.2.0.gemfile
- gemfiles/rails_5.1.7.gemfile
- gemfiles/rails_5.2.4.gemfile
- gemfiles/rails_6.0.3.gemfile
7 changes: 3 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# frozen_string_literal: true

RAILS_VERSIONS = %w[
4.2.10
5.0.7
5.1.6
5.2.0
5.1.7
5.2.4
6.0.3
].freeze

RAILS_VERSIONS.each do |version|
Expand Down
29 changes: 29 additions & 0 deletions bin/appraisal
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'appraisal' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("appraisal", "appraisal")
7 changes: 0 additions & 7 deletions gemfiles/rails_4.2.10.gemfile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "activejob", "5.0.7"
gem "activejob", "5.1.7"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "activejob", "5.1.6"
gem "activejob", "5.2.4"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "activejob", "5.2.0"
gem "activejob", "6.0.3"

gemspec path: "../"

0 comments on commit 93d1585

Please sign in to comment.