-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from seuros/master
chore: Update gemfiles and CI settings for newer Rails versions
- Loading branch information
Showing
16 changed files
with
70 additions
and
64 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 |
---|---|---|
|
@@ -14,3 +14,6 @@ test/**/Gemfile.lock | |
*.iml | ||
*.sqlite3 | ||
.tool-versions | ||
gems.locked | ||
gemfiles/*.lock | ||
|
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,19 +1,24 @@ | ||
appraise "rails-6.0" do | ||
gem "actionpack", "~> 6.0.0" | ||
gem "activerecord", "~> 6.0.0" | ||
end | ||
appraise "rails-6.1" do | ||
gem "actionpack", "~> 6.1.0" | ||
gem "activerecord", "~> 6.1.0" | ||
# frozen_string_literal: true | ||
|
||
appraise 'rails-6.0' do | ||
gem 'actionpack', '~> 6.0.0' | ||
gem 'activerecord', '~> 6.0.0' | ||
gem 'sqlite3', '~> 1.4.0' | ||
end | ||
appraise "rails-7.0" do | ||
gem "actionpack", "~> 7.0.0" | ||
gem "activerecord", "~> 7.0.0" | ||
gem "sqlite3", "~> 1.4.0" | ||
|
||
appraise 'rails-6.1' do | ||
gem 'actionpack', '~> 6.1.0' | ||
gem 'activerecord', '~> 6.1.0' | ||
gem 'sqlite3', '~> 1.4.0' | ||
end | ||
|
||
appraise "rails-5.2" do | ||
gem "actionpack", "~> 5.2.0" | ||
gem "activerecord", "~> 5.2.0" | ||
gem "sqlite3", "~> 1.3.8" | ||
end | ||
appraise 'rails-7.0' do | ||
gem 'actionpack', '~> 7.0.0' | ||
gem 'activerecord', '~> 7.0.0' | ||
gem 'sqlite3', '~> 1.4.0' | ||
end | ||
appraise 'rails-7.1' do | ||
gem 'actionpack', '~> 7.1.0' | ||
gem 'activerecord', '~> 7.q.0' | ||
gem 'sqlite3', '~> 1.4.0' | ||
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
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
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
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,12 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
gemspec | ||
|
||
gem 'appraisal' | ||
gem 'minitest-capybara' | ||
gem "cells-erb" | ||
gem "cells-rails" | ||
gem "reform-rails" | ||
gem "trailblazer" | ||
gem "trailblazer-cells" |
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,2 +1,9 @@ | ||
class Song < ApplicationRecord | ||
|
||
def inspect | ||
# this makes the output consistent across Ruby versions | ||
title = self.title.present? ? "\"#{self.title}\"" : "nil" | ||
id = self.id.present? ? self.id : "nil" | ||
%{#<Song id: #{id}, title: #{title}>} | ||
end | ||
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
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,11 +1,5 @@ | ||
default: &default | ||
test: | ||
adapter: sqlite3 | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
<<: *default | ||
database: db/test.sqlite3 |
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,4 +1,5 @@ | ||
require "test_helper" | ||
require 'minitest/capybara' | ||
|
||
class CellsControllerTest < Minitest::Capybara::Spec | ||
it "" do | ||
|
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