Skip to content

Commit

Permalink
Simplify supported rails versions in Appraisals file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Oct 23, 2018
1 parent dd5832b commit 1322338
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -2,10 +2,10 @@ branches:
only:
- "master"
gemfile:
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.0.gemfile
- gemfiles/rails5.1.gemfile
- gemfiles/rails5.2.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
install:
- 'travis_retry bundle install'
language:
Expand Down
14 changes: 10 additions & 4 deletions Appraisals
@@ -1,6 +1,12 @@
rails_versions = ['~> 4.2.0', '~> 5.0.0', '~> 5.1.0', '~> 5.2.0']
rails_versions.each do |rails_version|
appraise "rails#{rails_version.slice(/\d+\.\d+/)}" do
gem 'rails', rails_version
rails_versions = %w(
4.2
5.0
5.1
5.2
)

rails_versions.each do |version|
appraise "rails_#{version}" do
gem "rails", "~> #{version}.0"
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1322338

Please sign in to comment.