Skip to content

Commit 81bc3ff

Browse files
schoblaskaperryqh
andauthored
Add Rails 6.1 tests to matrix strategy (#72)
Co-authored-by: Perry Hertler <[email protected]>
1 parent 3092185 commit 81bc3ff

File tree

110 files changed

+9056
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+9056
-3
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ jobs:
1414
- '3.0'
1515
- 3.1
1616
- head
17+
rails:
18+
- "7.0"
19+
- 6.1
1720
env:
1821
BUNDLE_GEMFILE: Gemfile
19-
name: "RSpec tests: Ruby ${{ matrix.ruby }}"
22+
RAILS_VERSION: ${{ matrix.rails }}
23+
name: "RSpec tests: Ruby ${{ matrix.ruby }}; Rails ${{ matrix.rails }}"
2024
steps:
2125
- uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
2226
- name: Set up Ruby ${{ matrix.ruby }}
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

spec/fixtures/rails-6.1/.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-*
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore pidfiles, but keep the directory.
21+
/tmp/pids/*
22+
!/tmp/pids/
23+
!/tmp/pids/.keep
24+
25+
# Ignore uploaded files in development.
26+
/storage/*
27+
!/storage/.keep
28+
29+
/public/assets
30+
.byebug_history
31+
32+
# Ignore master key for decrypting credentials and more.
33+
/config/master.key
34+
35+
/public/packs
36+
/public/packs-test
37+
/node_modules
38+
/yarn-error.log
39+
yarn-debug.log*
40+
.yarn-integrity

spec/fixtures/rails-6.1/.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.3

spec/fixtures/rails-6.1/Gemfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.0.3'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.1.0'
8+
9+
# Use sqlite3 as the database for Active Record
10+
gem 'sqlite3', '~> 1.4'
11+
12+
# Use Puma as the app server
13+
gem 'puma', '~> 5.0'
14+
15+
gem 'packs-rails', path: File.expand_path('../../..', __dir__)
16+
17+
group :development, :test do
18+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
19+
gem 'byebug', platforms: %i[mri mingw x64_mingw]
20+
end
21+
22+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
23+
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

spec/fixtures/rails-6.1/Gemfile.lock

+230
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
PATH
2+
remote: /Users/joey.schoblaska/workspace/packs-rails
3+
specs:
4+
packs-rails (0.0.3)
5+
activesupport
6+
packs
7+
railties
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
actioncable (6.1.7.6)
13+
actionpack (= 6.1.7.6)
14+
activesupport (= 6.1.7.6)
15+
nio4r (~> 2.0)
16+
websocket-driver (>= 0.6.1)
17+
actionmailbox (6.1.7.6)
18+
actionpack (= 6.1.7.6)
19+
activejob (= 6.1.7.6)
20+
activerecord (= 6.1.7.6)
21+
activestorage (= 6.1.7.6)
22+
activesupport (= 6.1.7.6)
23+
mail (>= 2.7.1)
24+
actionmailer (6.1.7.6)
25+
actionpack (= 6.1.7.6)
26+
actionview (= 6.1.7.6)
27+
activejob (= 6.1.7.6)
28+
activesupport (= 6.1.7.6)
29+
mail (~> 2.5, >= 2.5.4)
30+
rails-dom-testing (~> 2.0)
31+
actionpack (6.1.7.6)
32+
actionview (= 6.1.7.6)
33+
activesupport (= 6.1.7.6)
34+
rack (~> 2.0, >= 2.0.9)
35+
rack-test (>= 0.6.3)
36+
rails-dom-testing (~> 2.0)
37+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
38+
actiontext (6.1.7.6)
39+
actionpack (= 6.1.7.6)
40+
activerecord (= 6.1.7.6)
41+
activestorage (= 6.1.7.6)
42+
activesupport (= 6.1.7.6)
43+
nokogiri (>= 1.8.5)
44+
actionview (6.1.7.6)
45+
activesupport (= 6.1.7.6)
46+
builder (~> 3.1)
47+
erubi (~> 1.4)
48+
rails-dom-testing (~> 2.0)
49+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
50+
activejob (6.1.7.6)
51+
activesupport (= 6.1.7.6)
52+
globalid (>= 0.3.6)
53+
activemodel (6.1.7.6)
54+
activesupport (= 6.1.7.6)
55+
activerecord (6.1.7.6)
56+
activemodel (= 6.1.7.6)
57+
activesupport (= 6.1.7.6)
58+
activestorage (6.1.7.6)
59+
actionpack (= 6.1.7.6)
60+
activejob (= 6.1.7.6)
61+
activerecord (= 6.1.7.6)
62+
activesupport (= 6.1.7.6)
63+
marcel (~> 1.0)
64+
mini_mime (>= 1.1.0)
65+
activesupport (6.1.7.6)
66+
concurrent-ruby (~> 1.0, >= 1.0.2)
67+
i18n (>= 1.6, < 2)
68+
minitest (>= 5.1)
69+
tzinfo (~> 2.0)
70+
zeitwerk (~> 2.3)
71+
ast (2.4.2)
72+
better_html (2.0.2)
73+
actionview (>= 6.0)
74+
activesupport (>= 6.0)
75+
ast (~> 2.0)
76+
erubi (~> 1.4)
77+
parser (>= 2.4)
78+
smart_properties
79+
builder (3.2.4)
80+
byebug (11.1.3)
81+
code_ownership (1.34.2)
82+
code_teams (~> 1.0)
83+
packs-specification
84+
sorbet-runtime (>= 0.5.10821)
85+
code_teams (1.0.2)
86+
sorbet-runtime
87+
concurrent-ruby (1.2.2)
88+
constant_resolver (0.2.0)
89+
crass (1.0.6)
90+
date (3.3.4)
91+
erubi (1.12.0)
92+
globalid (1.2.1)
93+
activesupport (>= 6.1)
94+
i18n (1.14.1)
95+
concurrent-ruby (~> 1.0)
96+
loofah (2.22.0)
97+
crass (~> 1.0.2)
98+
nokogiri (>= 1.12.0)
99+
mail (2.8.1)
100+
mini_mime (>= 0.1.1)
101+
net-imap
102+
net-pop
103+
net-smtp
104+
marcel (1.0.2)
105+
method_source (1.0.0)
106+
mini_mime (1.1.5)
107+
minitest (5.20.0)
108+
net-imap (0.4.5)
109+
date
110+
net-protocol
111+
net-pop (0.1.2)
112+
net-protocol
113+
net-protocol (0.2.2)
114+
timeout
115+
net-smtp (0.4.0)
116+
net-protocol
117+
nio4r (2.6.1)
118+
nokogiri (1.15.5-arm64-darwin)
119+
racc (~> 1.4)
120+
packs (0.0.34)
121+
code_ownership (>= 1.33.0)
122+
packs-specification
123+
packwerk
124+
parse_packwerk
125+
rainbow
126+
sorbet-runtime
127+
thor
128+
tty-prompt
129+
packs-specification (0.0.10)
130+
sorbet-runtime
131+
packwerk (3.1.0)
132+
activesupport (>= 6.0)
133+
ast
134+
better_html
135+
bundler
136+
constant_resolver (>= 0.2.0)
137+
parallel
138+
parser
139+
sorbet-runtime (>= 0.5.9914)
140+
zeitwerk (>= 2.6.1)
141+
parallel (1.23.0)
142+
parse_packwerk (0.20.0)
143+
sorbet-runtime
144+
parser (3.2.2.4)
145+
ast (~> 2.4.1)
146+
racc
147+
pastel (0.8.0)
148+
tty-color (~> 0.5)
149+
puma (5.6.7)
150+
nio4r (~> 2.0)
151+
racc (1.7.3)
152+
rack (2.2.8)
153+
rack-test (2.1.0)
154+
rack (>= 1.3)
155+
rails (6.1.7.6)
156+
actioncable (= 6.1.7.6)
157+
actionmailbox (= 6.1.7.6)
158+
actionmailer (= 6.1.7.6)
159+
actionpack (= 6.1.7.6)
160+
actiontext (= 6.1.7.6)
161+
actionview (= 6.1.7.6)
162+
activejob (= 6.1.7.6)
163+
activemodel (= 6.1.7.6)
164+
activerecord (= 6.1.7.6)
165+
activestorage (= 6.1.7.6)
166+
activesupport (= 6.1.7.6)
167+
bundler (>= 1.15.0)
168+
railties (= 6.1.7.6)
169+
sprockets-rails (>= 2.0.0)
170+
rails-dom-testing (2.2.0)
171+
activesupport (>= 5.0.0)
172+
minitest
173+
nokogiri (>= 1.6)
174+
rails-html-sanitizer (1.6.0)
175+
loofah (~> 2.21)
176+
nokogiri (~> 1.14)
177+
railties (6.1.7.6)
178+
actionpack (= 6.1.7.6)
179+
activesupport (= 6.1.7.6)
180+
method_source
181+
rake (>= 12.2)
182+
thor (~> 1.0)
183+
rainbow (3.1.1)
184+
rake (13.1.0)
185+
smart_properties (1.17.0)
186+
sorbet-runtime (0.5.11139)
187+
sprockets (4.2.1)
188+
concurrent-ruby (~> 1.0)
189+
rack (>= 2.2.4, < 4)
190+
sprockets-rails (3.4.2)
191+
actionpack (>= 5.2)
192+
activesupport (>= 5.2)
193+
sprockets (>= 3.0.0)
194+
sqlite3 (1.6.8-arm64-darwin)
195+
thor (1.3.0)
196+
timeout (0.4.1)
197+
tty-color (0.6.0)
198+
tty-cursor (0.7.1)
199+
tty-prompt (0.23.1)
200+
pastel (~> 0.8)
201+
tty-reader (~> 0.8)
202+
tty-reader (0.9.0)
203+
tty-cursor (~> 0.7)
204+
tty-screen (~> 0.8)
205+
wisper (~> 2.0)
206+
tty-screen (0.8.1)
207+
tzinfo (2.0.6)
208+
concurrent-ruby (~> 1.0)
209+
websocket-driver (0.7.6)
210+
websocket-extensions (>= 0.1.0)
211+
websocket-extensions (0.1.5)
212+
wisper (2.0.1)
213+
zeitwerk (2.6.12)
214+
215+
PLATFORMS
216+
arm64-darwin-22
217+
218+
DEPENDENCIES
219+
byebug
220+
packs-rails!
221+
puma (~> 5.0)
222+
rails (~> 6.1.0)
223+
sqlite3 (~> 1.4)
224+
tzinfo-data
225+
226+
RUBY VERSION
227+
ruby 3.0.3p157
228+
229+
BUNDLED WITH
230+
2.4.22

spec/fixtures/rails-6.1/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

spec/fixtures/rails-6.1/Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative "config/application"
5+
6+
Rails.application.load_tasks
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

spec/fixtures/rails-6.1/app/assets/images/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
6+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

spec/fixtures/rails-6.1/app/controllers/concerns/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Action Cable provides the framework to deal with WebSockets in Rails.
2+
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
3+
4+
import { createConsumer } from "@rails/actioncable"
5+
6+
export default createConsumer()

0 commit comments

Comments
 (0)