forked from scenic-views/scenic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Rails 5.2 build (scenic-views#257)
* Update Appraisals and regenerate, to match changes in scenic-views#232 * Update required Ruby version to match discussion in scenic-views#232 * Add Rails 5.2 to Appraisals * Add Rails 5.2 to Travis config * Add 'ApplicationRecord' to fix generated models on 5.0+
- Loading branch information
1 parent
16874cc
commit 3d44c62
Showing
5 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,24 @@ | ||
if RUBY_VERSION < "2.4.0" | ||
appraise "rails40" do | ||
gem "activerecord", "~> 4.0.0" | ||
gem "railties", "~> 4.0.0" | ||
end | ||
|
||
appraise "rails41" do | ||
gem "activerecord", "~> 4.1.0" | ||
gem "railties", "~> 4.1.0" | ||
end | ||
end | ||
|
||
appraise "rails42" do | ||
gem "activerecord", "~> 4.2.0" | ||
gem "railties", "~> 4.2.0" | ||
end | ||
|
||
if RUBY_VERSION > "2.2.0" | ||
appraise "rails50" do | ||
gem "activerecord", "~> 5.0.0" | ||
gem "railties", "~> 5.0.0" | ||
end | ||
appraise "rails50" do | ||
gem "activerecord", "~> 5.0.0" | ||
gem "railties", "~> 5.0.0" | ||
end | ||
|
||
appraise "rails51" do | ||
gem "activerecord", "~> 5.1.0" | ||
gem "railties", "~> 5.1.0" | ||
end | ||
appraise "rails51" do | ||
gem "activerecord", "~> 5.1.0" | ||
gem "railties", "~> 5.1.0" | ||
end | ||
|
||
appraise "rails52" do | ||
gem "activerecord", "~> 5.2.0" | ||
gem "railties", "~> 5.2.0" | ||
end | ||
|
||
appraise "rails-edge" do | ||
gem "rails", git: "https://github.com/rails/rails" | ||
gem "arel", git: "https://github.com/rails/arel" | ||
end | ||
appraise "rails-edge" do | ||
gem "rails", git: "https://github.com/rails/rails" | ||
gem "arel", git: "https://github.com/rails/arel" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activerecord", "~> 5.2.0" | ||
gem "railties", "~> 5.2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if Rails::VERSION::STRING >= "5.0.0" | ||
class ApplicationRecord < ActiveRecord::Base | ||
self.abstract_class = true | ||
end | ||
end |