Skip to content

Commit 9f210b5

Browse files
committed
create shakapacker test
1 parent dc72c2e commit 9f210b5

File tree

101 files changed

+6101
-10
lines changed

Some content is hidden

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

101 files changed

+6101
-10
lines changed

.github/workflows/ruby.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
ruby:
16-
- 2.7.0
16+
- 2.7.7
1717
- 2.6.5
1818
# TODO restore testing against JRuby w/ therubyrhino
1919
# - jruby-9.3.7.0
2020
gemfile:
2121
# These have webpacker:
22-
- rails_5.2_no_sprockets
23-
- rails_5.2_no_sprockets_webpacker_3
2422
- rails_5.2_no_sprockets_webpacker_4
23+
- rails_7.0_no_sprockets_shakapacker_6
2524
# These don't have webpacker:
25+
- rails_5.2_no_sprockets
2626
- rails_5.2_sprockets_3
2727
- rails_5.2_sprockets_4
2828
runs-on: ubuntu-latest

Appraisals

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ appraise 'rails-5.2_no_sprockets_webpacker_4' do
2121
gem 'therubyrhino', :platforms => :jruby
2222
end
2323

24+
appraise 'rails-7.0_no_sprockets_shakapacker_6' do
25+
gem 'rails', '~> 7.0.x'
26+
gem 'shakapacker', '~> 6.6'
27+
gem 'mini_racer', :platforms => :mri
28+
gem 'therubyrhino', :platforms => :jruby
29+
end
30+
2431
appraise 'rails-5.2-no_sprockets' do
2532
# Appraisal adds `turbolinks` to this gemfile because it is
2633
# present in `./Gemfile`.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file was generated by Appraisal
2+
3+
source "http://rubygems.org"
4+
5+
gem "rails", "~> 7.0.x"
6+
gem "shakapacker", "~> 6.6"
7+
gem "mini_racer", platforms: :mri
8+
gem "therubyrhino", platforms: :jruby
9+
10+
gemspec path: "../"
Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,290 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
react-rails (2.6.2)
5+
babel-transpiler (>= 0.7.0)
6+
connection_pool
7+
execjs
8+
railties (>= 3.2)
9+
tilt
10+
11+
GEM
12+
remote: http://rubygems.org/
13+
specs:
14+
actioncable (7.0.4.3)
15+
actionpack (= 7.0.4.3)
16+
activesupport (= 7.0.4.3)
17+
nio4r (~> 2.0)
18+
websocket-driver (>= 0.6.1)
19+
actionmailbox (7.0.4.3)
20+
actionpack (= 7.0.4.3)
21+
activejob (= 7.0.4.3)
22+
activerecord (= 7.0.4.3)
23+
activestorage (= 7.0.4.3)
24+
activesupport (= 7.0.4.3)
25+
mail (>= 2.7.1)
26+
net-imap
27+
net-pop
28+
net-smtp
29+
actionmailer (7.0.4.3)
30+
actionpack (= 7.0.4.3)
31+
actionview (= 7.0.4.3)
32+
activejob (= 7.0.4.3)
33+
activesupport (= 7.0.4.3)
34+
mail (~> 2.5, >= 2.5.4)
35+
net-imap
36+
net-pop
37+
net-smtp
38+
rails-dom-testing (~> 2.0)
39+
actionpack (7.0.4.3)
40+
actionview (= 7.0.4.3)
41+
activesupport (= 7.0.4.3)
42+
rack (~> 2.0, >= 2.2.0)
43+
rack-test (>= 0.6.3)
44+
rails-dom-testing (~> 2.0)
45+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
46+
actiontext (7.0.4.3)
47+
actionpack (= 7.0.4.3)
48+
activerecord (= 7.0.4.3)
49+
activestorage (= 7.0.4.3)
50+
activesupport (= 7.0.4.3)
51+
globalid (>= 0.6.0)
52+
nokogiri (>= 1.8.5)
53+
actionview (7.0.4.3)
54+
activesupport (= 7.0.4.3)
55+
builder (~> 3.1)
56+
erubi (~> 1.4)
57+
rails-dom-testing (~> 2.0)
58+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
59+
activejob (7.0.4.3)
60+
activesupport (= 7.0.4.3)
61+
globalid (>= 0.3.6)
62+
activemodel (7.0.4.3)
63+
activesupport (= 7.0.4.3)
64+
activerecord (7.0.4.3)
65+
activemodel (= 7.0.4.3)
66+
activesupport (= 7.0.4.3)
67+
activestorage (7.0.4.3)
68+
actionpack (= 7.0.4.3)
69+
activejob (= 7.0.4.3)
70+
activerecord (= 7.0.4.3)
71+
activesupport (= 7.0.4.3)
72+
marcel (~> 1.0)
73+
mini_mime (>= 1.1.0)
74+
activesupport (7.0.4.3)
75+
concurrent-ruby (~> 1.0, >= 1.0.2)
76+
i18n (>= 1.6, < 2)
77+
minitest (>= 5.1)
78+
tzinfo (~> 2.0)
79+
addressable (2.8.1)
80+
public_suffix (>= 2.0.2, < 6.0)
81+
appraisal (2.4.1)
82+
bundler
83+
rake
84+
thor (>= 0.14.0)
85+
babel-source (5.8.35)
86+
babel-transpiler (0.7.0)
87+
babel-source (>= 4.0, < 6)
88+
execjs (~> 2.0)
89+
builder (3.2.4)
90+
byebug (11.1.3)
91+
capybara (3.38.0)
92+
addressable
93+
matrix
94+
mini_mime (>= 0.1.3)
95+
nokogiri (~> 1.8)
96+
rack (>= 1.6.0)
97+
rack-test (>= 0.6.3)
98+
regexp_parser (>= 1.5, < 3.0)
99+
xpath (~> 3.2)
100+
codeclimate-test-reporter (1.0.9)
101+
simplecov (<= 0.13)
102+
coderay (1.1.3)
103+
coffee-rails (5.0.0)
104+
coffee-script (>= 2.2.0)
105+
railties (>= 5.2.0)
106+
coffee-script (2.4.1)
107+
coffee-script-source
108+
execjs
109+
coffee-script-source (1.12.2)
110+
concurrent-ruby (1.2.2)
111+
connection_pool (2.4.0)
112+
crass (1.0.6)
113+
date (3.3.3)
114+
docile (1.1.5)
115+
erubi (1.12.0)
116+
es5-shim-rails (4.0.1)
117+
actionpack (>= 3.1)
118+
railties (>= 3.1)
119+
execjs (2.8.1)
120+
ffi (1.15.5)
121+
formatador (1.1.0)
122+
globalid (1.1.0)
123+
activesupport (>= 5.0)
124+
guard (2.18.0)
125+
formatador (>= 0.2.4)
126+
listen (>= 2.7, < 4.0)
127+
lumberjack (>= 1.0.12, < 2.0)
128+
nenv (~> 0.1)
129+
notiffany (~> 0.0)
130+
pry (>= 0.13.0)
131+
shellany (~> 0.0)
132+
thor (>= 0.18.1)
133+
guard-compat (1.2.1)
134+
guard-minitest (2.4.6)
135+
guard-compat (~> 1.2)
136+
minitest (>= 3.0)
137+
i18n (1.12.0)
138+
concurrent-ruby (~> 1.0)
139+
jbuilder (2.11.5)
140+
actionview (>= 5.0.0)
141+
activesupport (>= 5.0.0)
142+
json (2.6.3)
143+
libv8-node (16.10.0.0)
144+
listen (3.0.8)
145+
rb-fsevent (~> 0.9, >= 0.9.4)
146+
rb-inotify (~> 0.9, >= 0.9.7)
147+
loofah (2.19.1)
148+
crass (~> 1.0.2)
149+
nokogiri (>= 1.5.9)
150+
lumberjack (1.2.8)
151+
mail (2.8.1)
152+
mini_mime (>= 0.1.1)
153+
net-imap
154+
net-pop
155+
net-smtp
156+
marcel (1.0.2)
157+
matrix (0.4.2)
158+
method_source (1.0.0)
159+
mini_mime (1.1.2)
160+
mini_portile2 (2.8.1)
161+
mini_racer (0.6.3)
162+
libv8-node (~> 16.10.0.0)
163+
minitest (5.18.0)
164+
nenv (0.3.0)
165+
net-imap (0.3.4)
166+
date
167+
net-protocol
168+
net-pop (0.1.2)
169+
net-protocol
170+
net-protocol (0.2.1)
171+
timeout
172+
net-smtp (0.3.3)
173+
net-protocol
174+
nio4r (2.5.8)
175+
nokogiri (1.14.2)
176+
mini_portile2 (~> 2.8.0)
177+
racc (~> 1.4)
178+
notiffany (0.1.3)
179+
nenv (~> 0.1)
180+
shellany (~> 0.0)
181+
pry (0.14.2)
182+
coderay (~> 1.1)
183+
method_source (~> 1.0)
184+
pry-byebug (3.10.1)
185+
byebug (~> 11.0)
186+
pry (>= 0.13, < 0.15)
187+
public_suffix (5.0.1)
188+
racc (1.6.2)
189+
rack (2.2.6.4)
190+
rack-proxy (0.7.6)
191+
rack
192+
rack-test (2.1.0)
193+
rack (>= 1.3)
194+
rails (7.0.4.3)
195+
actioncable (= 7.0.4.3)
196+
actionmailbox (= 7.0.4.3)
197+
actionmailer (= 7.0.4.3)
198+
actionpack (= 7.0.4.3)
199+
actiontext (= 7.0.4.3)
200+
actionview (= 7.0.4.3)
201+
activejob (= 7.0.4.3)
202+
activemodel (= 7.0.4.3)
203+
activerecord (= 7.0.4.3)
204+
activestorage (= 7.0.4.3)
205+
activesupport (= 7.0.4.3)
206+
bundler (>= 1.15.0)
207+
railties (= 7.0.4.3)
208+
rails-dom-testing (2.0.3)
209+
activesupport (>= 4.2.0)
210+
nokogiri (>= 1.6)
211+
rails-html-sanitizer (1.5.0)
212+
loofah (~> 2.19, >= 2.19.1)
213+
railties (7.0.4.3)
214+
actionpack (= 7.0.4.3)
215+
activesupport (= 7.0.4.3)
216+
method_source
217+
rake (>= 12.2)
218+
thor (~> 1.0)
219+
zeitwerk (~> 2.5)
220+
rake (13.0.6)
221+
rb-fsevent (0.11.2)
222+
rb-inotify (0.10.1)
223+
ffi (~> 1.0)
224+
regexp_parser (2.7.0)
225+
rexml (3.2.5)
226+
rubyzip (2.3.2)
227+
selenium-webdriver (4.8.3)
228+
rexml (~> 3.2, >= 3.2.5)
229+
rubyzip (>= 1.2.2, < 3.0)
230+
websocket (~> 1.0)
231+
semantic_range (3.0.0)
232+
shakapacker (6.6.0)
233+
activesupport (>= 5.2)
234+
rack-proxy (>= 0.6.1)
235+
railties (>= 5.2)
236+
semantic_range (>= 2.3.0)
237+
shellany (0.0.1)
238+
simplecov (0.13.0)
239+
docile (~> 1.1.0)
240+
json (>= 1.8, < 3)
241+
simplecov-html (~> 0.10.0)
242+
simplecov-html (0.10.2)
243+
test-unit (2.5.5)
244+
thor (1.2.1)
245+
tilt (2.1.0)
246+
timeout (0.3.2)
247+
turbolinks (5.2.1)
248+
turbolinks-source (~> 5.2)
249+
turbolinks-source (5.2.0)
250+
tzinfo (2.0.6)
251+
concurrent-ruby (~> 1.0)
252+
webdrivers (5.2.0)
253+
nokogiri (~> 1.6)
254+
rubyzip (>= 1.3.0)
255+
selenium-webdriver (~> 4.0)
256+
websocket (1.2.9)
257+
websocket-driver (0.7.5)
258+
websocket-extensions (>= 0.1.0)
259+
websocket-extensions (0.1.5)
260+
xpath (3.2.0)
261+
nokogiri (~> 1.8)
262+
zeitwerk (2.6.7)
263+
264+
PLATFORMS
265+
ruby
266+
267+
DEPENDENCIES
268+
appraisal
269+
bundler (~> 2.0)
270+
capybara
271+
codeclimate-test-reporter
272+
coffee-rails
273+
es5-shim-rails (>= 2.0.5)
274+
guard
275+
guard-minitest
276+
jbuilder
277+
listen (~> 3.0.0)
278+
mini_racer
279+
pry-byebug
280+
rails (~> 7.0.x)
281+
react-rails!
282+
selenium-webdriver
283+
shakapacker (~> 6.6)
284+
test-unit (~> 2.5)
285+
therubyrhino
286+
turbolinks
287+
webdrivers
288+
289+
BUNDLED WITH
290+
2.1.4

test/dummy_shakapacker/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/public/packs
2+
/node_modules
3+
/public/packs
4+
/public/packs-test
5+
/node_modules

test/dummy_shakapacker/.postcssrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins:
2+
postcss-smart-import: {}
3+
postcss-cssnext: {}

test/dummy_shakapacker/README.rdoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.

test/dummy_shakapacker/Rakefile

Lines changed: 6 additions & 0 deletions
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 File.expand_path('../config/application', __FILE__)
5+
6+
Dummy::Application.load_tasks
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Sprockets 4 expects this file
2+
//
3+
//= link application.js
4+
//= link turbolinks_only.js
5+
//= link application.css

test/dummy_shakapacker/app/assets/images/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)