railpack 1.3.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/lib/generators/railpack/install/install_generator.rb +9 -0
- data/lib/railpack/bundler.rb +42 -7
- data/lib/railpack/version.rb +1 -1
- data/test/dummy_app/.dockerignore +51 -0
- data/test/dummy_app/.github/dependabot.yml +12 -0
- data/test/dummy_app/.github/workflows/ci.yml +39 -0
- data/test/dummy_app/.rubocop.yml +8 -0
- data/test/dummy_app/.ruby-version +1 -0
- data/test/dummy_app/Dockerfile +68 -0
- data/test/dummy_app/Gemfile +43 -0
- data/test/dummy_app/Gemfile.lock +348 -0
- data/test/dummy_app/README.md +24 -0
- data/test/dummy_app/Rakefile +6 -0
- data/test/dummy_app/app/assets/images/.keep +0 -0
- data/test/dummy_app/app/assets/stylesheets/application.css +10 -0
- data/test/dummy_app/app/controllers/application_controller.rb +4 -0
- data/test/dummy_app/app/controllers/concerns/.keep +0 -0
- data/test/dummy_app/app/helpers/application_helper.rb +2 -0
- data/test/dummy_app/app/models/application_record.rb +3 -0
- data/test/dummy_app/app/models/concerns/.keep +0 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +27 -0
- data/test/dummy_app/app/views/pwa/manifest.json.erb +22 -0
- data/test/dummy_app/app/views/pwa/service-worker.js +26 -0
- data/test/dummy_app/bin/brakeman +7 -0
- data/test/dummy_app/bin/dev +2 -0
- data/test/dummy_app/bin/docker-entrypoint +14 -0
- data/test/dummy_app/bin/rails +4 -0
- data/test/dummy_app/bin/rake +4 -0
- data/test/dummy_app/bin/rubocop +8 -0
- data/test/dummy_app/bin/setup +34 -0
- data/test/dummy_app/bin/thrust +5 -0
- data/test/dummy_app/config/application.rb +44 -0
- data/test/dummy_app/config/boot.rb +3 -0
- data/test/dummy_app/config/credentials.yml.enc +1 -0
- data/test/dummy_app/config/database.yml +37 -0
- data/test/dummy_app/config/environment.rb +5 -0
- data/test/dummy_app/config/environments/development.rb +54 -0
- data/test/dummy_app/config/environments/production.rb +67 -0
- data/test/dummy_app/config/environments/test.rb +42 -0
- data/test/dummy_app/config/initializers/assets.rb +7 -0
- data/test/dummy_app/config/initializers/content_security_policy.rb +25 -0
- data/test/dummy_app/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/dummy_app/config/initializers/inflections.rb +16 -0
- data/test/dummy_app/config/locales/en.yml +31 -0
- data/test/dummy_app/config/master.key +1 -0
- data/test/dummy_app/config/puma.rb +41 -0
- data/test/dummy_app/config/railpack.yml +42 -0
- data/test/dummy_app/config/routes.rb +14 -0
- data/test/dummy_app/config.ru +6 -0
- data/test/dummy_app/db/seeds.rb +9 -0
- data/test/dummy_app/lib/tasks/.keep +0 -0
- data/test/dummy_app/log/.keep +0 -0
- data/test/dummy_app/log/development.log +0 -0
- data/test/dummy_app/public/400.html +114 -0
- data/test/dummy_app/public/404.html +114 -0
- data/test/dummy_app/public/406-unsupported-browser.html +114 -0
- data/test/dummy_app/public/422.html +114 -0
- data/test/dummy_app/public/500.html +114 -0
- data/test/dummy_app/public/icon.png +0 -0
- data/test/dummy_app/public/icon.svg +3 -0
- data/test/dummy_app/public/robots.txt +1 -0
- data/test/dummy_app/script/.keep +0 -0
- data/test/dummy_app/storage/.keep +0 -0
- data/test/dummy_app/tmp/.keep +0 -0
- data/test/dummy_app/tmp/pids/.keep +0 -0
- data/test/dummy_app/tmp/storage/.keep +0 -0
- data/test/dummy_app/vendor/.keep +0 -0
- metadata +65 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ../..
|
|
3
|
+
specs:
|
|
4
|
+
railpack (1.3.9)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
actioncable (8.0.4)
|
|
10
|
+
actionpack (= 8.0.4)
|
|
11
|
+
activesupport (= 8.0.4)
|
|
12
|
+
nio4r (~> 2.0)
|
|
13
|
+
websocket-driver (>= 0.6.1)
|
|
14
|
+
zeitwerk (~> 2.6)
|
|
15
|
+
actionmailbox (8.0.4)
|
|
16
|
+
actionpack (= 8.0.4)
|
|
17
|
+
activejob (= 8.0.4)
|
|
18
|
+
activerecord (= 8.0.4)
|
|
19
|
+
activestorage (= 8.0.4)
|
|
20
|
+
activesupport (= 8.0.4)
|
|
21
|
+
mail (>= 2.8.0)
|
|
22
|
+
actionmailer (8.0.4)
|
|
23
|
+
actionpack (= 8.0.4)
|
|
24
|
+
actionview (= 8.0.4)
|
|
25
|
+
activejob (= 8.0.4)
|
|
26
|
+
activesupport (= 8.0.4)
|
|
27
|
+
mail (>= 2.8.0)
|
|
28
|
+
rails-dom-testing (~> 2.2)
|
|
29
|
+
actionpack (8.0.4)
|
|
30
|
+
actionview (= 8.0.4)
|
|
31
|
+
activesupport (= 8.0.4)
|
|
32
|
+
nokogiri (>= 1.8.5)
|
|
33
|
+
rack (>= 2.2.4)
|
|
34
|
+
rack-session (>= 1.0.1)
|
|
35
|
+
rack-test (>= 0.6.3)
|
|
36
|
+
rails-dom-testing (~> 2.2)
|
|
37
|
+
rails-html-sanitizer (~> 1.6)
|
|
38
|
+
useragent (~> 0.16)
|
|
39
|
+
actiontext (8.0.4)
|
|
40
|
+
actionpack (= 8.0.4)
|
|
41
|
+
activerecord (= 8.0.4)
|
|
42
|
+
activestorage (= 8.0.4)
|
|
43
|
+
activesupport (= 8.0.4)
|
|
44
|
+
globalid (>= 0.6.0)
|
|
45
|
+
nokogiri (>= 1.8.5)
|
|
46
|
+
actionview (8.0.4)
|
|
47
|
+
activesupport (= 8.0.4)
|
|
48
|
+
builder (~> 3.1)
|
|
49
|
+
erubi (~> 1.11)
|
|
50
|
+
rails-dom-testing (~> 2.2)
|
|
51
|
+
rails-html-sanitizer (~> 1.6)
|
|
52
|
+
activejob (8.0.4)
|
|
53
|
+
activesupport (= 8.0.4)
|
|
54
|
+
globalid (>= 0.3.6)
|
|
55
|
+
activemodel (8.0.4)
|
|
56
|
+
activesupport (= 8.0.4)
|
|
57
|
+
activerecord (8.0.4)
|
|
58
|
+
activemodel (= 8.0.4)
|
|
59
|
+
activesupport (= 8.0.4)
|
|
60
|
+
timeout (>= 0.4.0)
|
|
61
|
+
activestorage (8.0.4)
|
|
62
|
+
actionpack (= 8.0.4)
|
|
63
|
+
activejob (= 8.0.4)
|
|
64
|
+
activerecord (= 8.0.4)
|
|
65
|
+
activesupport (= 8.0.4)
|
|
66
|
+
marcel (~> 1.0)
|
|
67
|
+
activesupport (8.0.4)
|
|
68
|
+
base64
|
|
69
|
+
benchmark (>= 0.3)
|
|
70
|
+
bigdecimal
|
|
71
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
72
|
+
connection_pool (>= 2.2.5)
|
|
73
|
+
drb
|
|
74
|
+
i18n (>= 1.6, < 2)
|
|
75
|
+
logger (>= 1.4.2)
|
|
76
|
+
minitest (>= 5.1)
|
|
77
|
+
securerandom (>= 0.3)
|
|
78
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
79
|
+
uri (>= 0.13.1)
|
|
80
|
+
ast (2.4.3)
|
|
81
|
+
base64 (0.3.0)
|
|
82
|
+
bcrypt_pbkdf (1.1.2)
|
|
83
|
+
benchmark (0.5.0)
|
|
84
|
+
bigdecimal (4.0.1)
|
|
85
|
+
bindex (0.8.1)
|
|
86
|
+
brakeman (7.1.2)
|
|
87
|
+
racc
|
|
88
|
+
builder (3.3.0)
|
|
89
|
+
concurrent-ruby (1.3.6)
|
|
90
|
+
connection_pool (3.0.2)
|
|
91
|
+
crass (1.0.6)
|
|
92
|
+
date (3.5.1)
|
|
93
|
+
debug (1.11.1)
|
|
94
|
+
irb (~> 1.10)
|
|
95
|
+
reline (>= 0.3.8)
|
|
96
|
+
dotenv (3.2.0)
|
|
97
|
+
drb (2.2.3)
|
|
98
|
+
ed25519 (1.4.0)
|
|
99
|
+
erb (6.0.1)
|
|
100
|
+
erubi (1.13.1)
|
|
101
|
+
et-orbi (1.4.0)
|
|
102
|
+
tzinfo
|
|
103
|
+
fugit (1.12.1)
|
|
104
|
+
et-orbi (~> 1.4)
|
|
105
|
+
raabro (~> 1.4)
|
|
106
|
+
globalid (1.3.0)
|
|
107
|
+
activesupport (>= 6.1)
|
|
108
|
+
i18n (1.14.8)
|
|
109
|
+
concurrent-ruby (~> 1.0)
|
|
110
|
+
io-console (0.8.2)
|
|
111
|
+
irb (1.16.0)
|
|
112
|
+
pp (>= 0.6.0)
|
|
113
|
+
rdoc (>= 4.0.0)
|
|
114
|
+
reline (>= 0.4.2)
|
|
115
|
+
json (2.18.0)
|
|
116
|
+
kamal (2.10.1)
|
|
117
|
+
activesupport (>= 7.0)
|
|
118
|
+
base64 (~> 0.2)
|
|
119
|
+
bcrypt_pbkdf (~> 1.0)
|
|
120
|
+
concurrent-ruby (~> 1.2)
|
|
121
|
+
dotenv (~> 3.1)
|
|
122
|
+
ed25519 (~> 1.4)
|
|
123
|
+
net-ssh (~> 7.3)
|
|
124
|
+
sshkit (>= 1.23.0, < 2.0)
|
|
125
|
+
thor (~> 1.3)
|
|
126
|
+
zeitwerk (>= 2.6.18, < 3.0)
|
|
127
|
+
language_server-protocol (3.17.0.5)
|
|
128
|
+
lint_roller (1.1.0)
|
|
129
|
+
logger (1.7.0)
|
|
130
|
+
loofah (2.25.0)
|
|
131
|
+
crass (~> 1.0.2)
|
|
132
|
+
nokogiri (>= 1.12.0)
|
|
133
|
+
mail (2.9.0)
|
|
134
|
+
logger
|
|
135
|
+
mini_mime (>= 0.1.1)
|
|
136
|
+
net-imap
|
|
137
|
+
net-pop
|
|
138
|
+
net-smtp
|
|
139
|
+
marcel (1.1.0)
|
|
140
|
+
mini_mime (1.1.5)
|
|
141
|
+
minitest (6.0.1)
|
|
142
|
+
prism (~> 1.5)
|
|
143
|
+
net-imap (0.6.2)
|
|
144
|
+
date
|
|
145
|
+
net-protocol
|
|
146
|
+
net-pop (0.1.2)
|
|
147
|
+
net-protocol
|
|
148
|
+
net-protocol (0.2.2)
|
|
149
|
+
timeout
|
|
150
|
+
net-scp (4.1.0)
|
|
151
|
+
net-ssh (>= 2.6.5, < 8.0.0)
|
|
152
|
+
net-sftp (4.0.0)
|
|
153
|
+
net-ssh (>= 5.0.0, < 8.0.0)
|
|
154
|
+
net-smtp (0.5.1)
|
|
155
|
+
net-protocol
|
|
156
|
+
net-ssh (7.3.0)
|
|
157
|
+
nio4r (2.7.5)
|
|
158
|
+
nokogiri (1.19.0-aarch64-linux-gnu)
|
|
159
|
+
racc (~> 1.4)
|
|
160
|
+
nokogiri (1.19.0-aarch64-linux-musl)
|
|
161
|
+
racc (~> 1.4)
|
|
162
|
+
nokogiri (1.19.0-arm-linux-gnu)
|
|
163
|
+
racc (~> 1.4)
|
|
164
|
+
nokogiri (1.19.0-arm-linux-musl)
|
|
165
|
+
racc (~> 1.4)
|
|
166
|
+
nokogiri (1.19.0-arm64-darwin)
|
|
167
|
+
racc (~> 1.4)
|
|
168
|
+
nokogiri (1.19.0-x86_64-linux-gnu)
|
|
169
|
+
racc (~> 1.4)
|
|
170
|
+
nokogiri (1.19.0-x86_64-linux-musl)
|
|
171
|
+
racc (~> 1.4)
|
|
172
|
+
ostruct (0.6.3)
|
|
173
|
+
parallel (1.27.0)
|
|
174
|
+
parser (3.3.10.1)
|
|
175
|
+
ast (~> 2.4.1)
|
|
176
|
+
racc
|
|
177
|
+
pp (0.6.3)
|
|
178
|
+
prettyprint
|
|
179
|
+
prettyprint (0.2.0)
|
|
180
|
+
prism (1.9.0)
|
|
181
|
+
propshaft (1.3.1)
|
|
182
|
+
actionpack (>= 7.0.0)
|
|
183
|
+
activesupport (>= 7.0.0)
|
|
184
|
+
rack
|
|
185
|
+
psych (5.3.1)
|
|
186
|
+
date
|
|
187
|
+
stringio
|
|
188
|
+
puma (7.2.0)
|
|
189
|
+
nio4r (~> 2.0)
|
|
190
|
+
raabro (1.4.0)
|
|
191
|
+
racc (1.8.1)
|
|
192
|
+
rack (3.2.4)
|
|
193
|
+
rack-session (2.1.1)
|
|
194
|
+
base64 (>= 0.1.0)
|
|
195
|
+
rack (>= 3.0.0)
|
|
196
|
+
rack-test (2.2.0)
|
|
197
|
+
rack (>= 1.3)
|
|
198
|
+
rackup (2.3.1)
|
|
199
|
+
rack (>= 3)
|
|
200
|
+
rails (8.0.4)
|
|
201
|
+
actioncable (= 8.0.4)
|
|
202
|
+
actionmailbox (= 8.0.4)
|
|
203
|
+
actionmailer (= 8.0.4)
|
|
204
|
+
actionpack (= 8.0.4)
|
|
205
|
+
actiontext (= 8.0.4)
|
|
206
|
+
actionview (= 8.0.4)
|
|
207
|
+
activejob (= 8.0.4)
|
|
208
|
+
activemodel (= 8.0.4)
|
|
209
|
+
activerecord (= 8.0.4)
|
|
210
|
+
activestorage (= 8.0.4)
|
|
211
|
+
activesupport (= 8.0.4)
|
|
212
|
+
bundler (>= 1.15.0)
|
|
213
|
+
railties (= 8.0.4)
|
|
214
|
+
rails-dom-testing (2.3.0)
|
|
215
|
+
activesupport (>= 5.0.0)
|
|
216
|
+
minitest
|
|
217
|
+
nokogiri (>= 1.6)
|
|
218
|
+
rails-html-sanitizer (1.6.2)
|
|
219
|
+
loofah (~> 2.21)
|
|
220
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
221
|
+
railties (8.0.4)
|
|
222
|
+
actionpack (= 8.0.4)
|
|
223
|
+
activesupport (= 8.0.4)
|
|
224
|
+
irb (~> 1.13)
|
|
225
|
+
rackup (>= 1.0.0)
|
|
226
|
+
rake (>= 12.2)
|
|
227
|
+
thor (~> 1.0, >= 1.2.2)
|
|
228
|
+
tsort (>= 0.2)
|
|
229
|
+
zeitwerk (~> 2.6)
|
|
230
|
+
rainbow (3.1.1)
|
|
231
|
+
rake (13.3.1)
|
|
232
|
+
rdoc (7.1.0)
|
|
233
|
+
erb
|
|
234
|
+
psych (>= 4.0.0)
|
|
235
|
+
tsort
|
|
236
|
+
regexp_parser (2.11.3)
|
|
237
|
+
reline (0.6.3)
|
|
238
|
+
io-console (~> 0.5)
|
|
239
|
+
rubocop (1.84.0)
|
|
240
|
+
json (~> 2.3)
|
|
241
|
+
language_server-protocol (~> 3.17.0.2)
|
|
242
|
+
lint_roller (~> 1.1.0)
|
|
243
|
+
parallel (~> 1.10)
|
|
244
|
+
parser (>= 3.3.0.2)
|
|
245
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
246
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
247
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
248
|
+
ruby-progressbar (~> 1.7)
|
|
249
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
250
|
+
rubocop-ast (1.49.0)
|
|
251
|
+
parser (>= 3.3.7.2)
|
|
252
|
+
prism (~> 1.7)
|
|
253
|
+
rubocop-performance (1.26.1)
|
|
254
|
+
lint_roller (~> 1.1)
|
|
255
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
256
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
257
|
+
rubocop-rails (2.34.3)
|
|
258
|
+
activesupport (>= 4.2.0)
|
|
259
|
+
lint_roller (~> 1.1)
|
|
260
|
+
rack (>= 1.1)
|
|
261
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
262
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
263
|
+
rubocop-rails-omakase (1.1.0)
|
|
264
|
+
rubocop (>= 1.72)
|
|
265
|
+
rubocop-performance (>= 1.24)
|
|
266
|
+
rubocop-rails (>= 2.30)
|
|
267
|
+
ruby-progressbar (1.13.0)
|
|
268
|
+
securerandom (0.4.1)
|
|
269
|
+
solid_cache (1.0.10)
|
|
270
|
+
activejob (>= 7.2)
|
|
271
|
+
activerecord (>= 7.2)
|
|
272
|
+
railties (>= 7.2)
|
|
273
|
+
solid_queue (1.3.1)
|
|
274
|
+
activejob (>= 7.1)
|
|
275
|
+
activerecord (>= 7.1)
|
|
276
|
+
concurrent-ruby (>= 1.3.1)
|
|
277
|
+
fugit (~> 1.11)
|
|
278
|
+
railties (>= 7.1)
|
|
279
|
+
thor (>= 1.3.1)
|
|
280
|
+
sqlite3 (2.9.0-aarch64-linux-gnu)
|
|
281
|
+
sqlite3 (2.9.0-aarch64-linux-musl)
|
|
282
|
+
sqlite3 (2.9.0-arm-linux-gnu)
|
|
283
|
+
sqlite3 (2.9.0-arm-linux-musl)
|
|
284
|
+
sqlite3 (2.9.0-arm64-darwin)
|
|
285
|
+
sqlite3 (2.9.0-x86_64-linux-gnu)
|
|
286
|
+
sqlite3 (2.9.0-x86_64-linux-musl)
|
|
287
|
+
sshkit (1.25.0)
|
|
288
|
+
base64
|
|
289
|
+
logger
|
|
290
|
+
net-scp (>= 1.1.2)
|
|
291
|
+
net-sftp (>= 2.1.2)
|
|
292
|
+
net-ssh (>= 2.8.0)
|
|
293
|
+
ostruct
|
|
294
|
+
stringio (3.2.0)
|
|
295
|
+
thor (1.5.0)
|
|
296
|
+
thruster (0.1.17)
|
|
297
|
+
thruster (0.1.17-aarch64-linux)
|
|
298
|
+
thruster (0.1.17-arm64-darwin)
|
|
299
|
+
thruster (0.1.17-x86_64-linux)
|
|
300
|
+
timeout (0.6.0)
|
|
301
|
+
tsort (0.2.0)
|
|
302
|
+
tzinfo (2.0.6)
|
|
303
|
+
concurrent-ruby (~> 1.0)
|
|
304
|
+
unicode-display_width (3.2.0)
|
|
305
|
+
unicode-emoji (~> 4.1)
|
|
306
|
+
unicode-emoji (4.2.0)
|
|
307
|
+
uri (1.1.1)
|
|
308
|
+
useragent (0.16.11)
|
|
309
|
+
web-console (4.2.1)
|
|
310
|
+
actionview (>= 6.0.0)
|
|
311
|
+
activemodel (>= 6.0.0)
|
|
312
|
+
bindex (>= 0.4.0)
|
|
313
|
+
railties (>= 6.0.0)
|
|
314
|
+
websocket-driver (0.8.0)
|
|
315
|
+
base64
|
|
316
|
+
websocket-extensions (>= 0.1.0)
|
|
317
|
+
websocket-extensions (0.1.5)
|
|
318
|
+
zeitwerk (2.7.4)
|
|
319
|
+
|
|
320
|
+
PLATFORMS
|
|
321
|
+
aarch64-linux
|
|
322
|
+
aarch64-linux-gnu
|
|
323
|
+
aarch64-linux-musl
|
|
324
|
+
arm-linux-gnu
|
|
325
|
+
arm-linux-musl
|
|
326
|
+
arm64-darwin-24
|
|
327
|
+
x86_64-linux
|
|
328
|
+
x86_64-linux-gnu
|
|
329
|
+
x86_64-linux-musl
|
|
330
|
+
|
|
331
|
+
DEPENDENCIES
|
|
332
|
+
brakeman
|
|
333
|
+
debug
|
|
334
|
+
kamal
|
|
335
|
+
propshaft
|
|
336
|
+
puma (>= 5.0)
|
|
337
|
+
railpack!
|
|
338
|
+
rails (~> 8.0.4)
|
|
339
|
+
rubocop-rails-omakase
|
|
340
|
+
solid_cache
|
|
341
|
+
solid_queue
|
|
342
|
+
sqlite3 (>= 2.1)
|
|
343
|
+
thruster
|
|
344
|
+
tzinfo-data
|
|
345
|
+
web-console
|
|
346
|
+
|
|
347
|
+
BUNDLED WITH
|
|
348
|
+
2.6.5
|
|
@@ -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
|
+
* ...
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css.
|
|
3
|
+
*
|
|
4
|
+
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
|
|
5
|
+
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
|
|
6
|
+
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
|
|
7
|
+
* depending on specificity.
|
|
8
|
+
*
|
|
9
|
+
* Consider organizing styles into separate files for maintainability.
|
|
10
|
+
*/
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title><%= content_for(:title) || "Dummy App" %></title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
7
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
8
|
+
<%= csrf_meta_tags %>
|
|
9
|
+
<%= csp_meta_tag %>
|
|
10
|
+
|
|
11
|
+
<%= yield :head %>
|
|
12
|
+
|
|
13
|
+
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
|
14
|
+
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
|
15
|
+
|
|
16
|
+
<link rel="icon" href="/icon.png" type="image/png">
|
|
17
|
+
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
18
|
+
<link rel="apple-touch-icon" href="/icon.png">
|
|
19
|
+
|
|
20
|
+
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
|
21
|
+
<%= stylesheet_link_tag :app %>
|
|
22
|
+
</head>
|
|
23
|
+
|
|
24
|
+
<body>
|
|
25
|
+
<%= yield %>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "DummyApp",
|
|
3
|
+
"icons": [
|
|
4
|
+
{
|
|
5
|
+
"src": "/icon.png",
|
|
6
|
+
"type": "image/png",
|
|
7
|
+
"sizes": "512x512"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"src": "/icon.png",
|
|
11
|
+
"type": "image/png",
|
|
12
|
+
"sizes": "512x512",
|
|
13
|
+
"purpose": "maskable"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"start_url": "/",
|
|
17
|
+
"display": "standalone",
|
|
18
|
+
"scope": "/",
|
|
19
|
+
"description": "DummyApp.",
|
|
20
|
+
"theme_color": "red",
|
|
21
|
+
"background_color": "red"
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Add a service worker for processing Web Push notifications:
|
|
2
|
+
//
|
|
3
|
+
// self.addEventListener("push", async (event) => {
|
|
4
|
+
// const { title, options } = await event.data.json()
|
|
5
|
+
// event.waitUntil(self.registration.showNotification(title, options))
|
|
6
|
+
// })
|
|
7
|
+
//
|
|
8
|
+
// self.addEventListener("notificationclick", function(event) {
|
|
9
|
+
// event.notification.close()
|
|
10
|
+
// event.waitUntil(
|
|
11
|
+
// clients.matchAll({ type: "window" }).then((clientList) => {
|
|
12
|
+
// for (let i = 0; i < clientList.length; i++) {
|
|
13
|
+
// let client = clientList[i]
|
|
14
|
+
// let clientPath = (new URL(client.url)).pathname
|
|
15
|
+
//
|
|
16
|
+
// if (clientPath == event.notification.data.path && "focus" in client) {
|
|
17
|
+
// return client.focus()
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// if (clients.openWindow) {
|
|
22
|
+
// return clients.openWindow(event.notification.data.path)
|
|
23
|
+
// }
|
|
24
|
+
// })
|
|
25
|
+
// )
|
|
26
|
+
// })
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/bin/bash -e
|
|
2
|
+
|
|
3
|
+
# Enable jemalloc for reduced memory usage and latency.
|
|
4
|
+
if [ -z "${LD_PRELOAD+x}" ]; then
|
|
5
|
+
LD_PRELOAD=$(find /usr/lib -name libjemalloc.so.2 -print -quit)
|
|
6
|
+
export LD_PRELOAD
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
# If running the rails server then create or migrate existing database
|
|
10
|
+
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
|
|
11
|
+
./bin/rails db:prepare
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
exec "${@}"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "rubygems"
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
|
|
5
|
+
# explicit rubocop config increases performance slightly while avoiding config confusion.
|
|
6
|
+
ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
|
|
7
|
+
|
|
8
|
+
load Gem.bin_path("rubocop", "rubocop")
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "fileutils"
|
|
3
|
+
|
|
4
|
+
APP_ROOT = File.expand_path("..", __dir__)
|
|
5
|
+
|
|
6
|
+
def system!(*args)
|
|
7
|
+
system(*args, exception: true)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
FileUtils.chdir APP_ROOT do
|
|
11
|
+
# This script is a way to set up or update your development environment automatically.
|
|
12
|
+
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
|
13
|
+
# Add necessary setup steps to this file.
|
|
14
|
+
|
|
15
|
+
puts "== Installing dependencies =="
|
|
16
|
+
system("bundle check") || system!("bundle install")
|
|
17
|
+
|
|
18
|
+
# puts "\n== Copying sample files =="
|
|
19
|
+
# unless File.exist?("config/database.yml")
|
|
20
|
+
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
|
21
|
+
# end
|
|
22
|
+
|
|
23
|
+
puts "\n== Preparing database =="
|
|
24
|
+
system! "bin/rails db:prepare"
|
|
25
|
+
|
|
26
|
+
puts "\n== Removing old logs and tempfiles =="
|
|
27
|
+
system! "bin/rails log:clear tmp:clear"
|
|
28
|
+
|
|
29
|
+
unless ARGV.include?("--skip-server")
|
|
30
|
+
puts "\n== Starting development server =="
|
|
31
|
+
STDOUT.flush # flush the output before exec(2) so that it displays
|
|
32
|
+
exec "bin/dev"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
require_relative "boot"
|
|
2
|
+
|
|
3
|
+
require "rails"
|
|
4
|
+
# Pick the frameworks you want:
|
|
5
|
+
require "active_model/railtie"
|
|
6
|
+
# require "active_job/railtie"
|
|
7
|
+
require "active_record/railtie"
|
|
8
|
+
# require "active_storage/engine"
|
|
9
|
+
require "action_controller/railtie"
|
|
10
|
+
# require "action_mailer/railtie"
|
|
11
|
+
# require "action_mailbox/engine"
|
|
12
|
+
# require "action_text/engine"
|
|
13
|
+
require "action_view/railtie"
|
|
14
|
+
# require "action_cable/engine"
|
|
15
|
+
# require "rails/test_unit/railtie"
|
|
16
|
+
|
|
17
|
+
# Require the gems listed in Gemfile, including any gems
|
|
18
|
+
# you've limited to :test, :development, or :production.
|
|
19
|
+
Bundler.require(*Rails.groups)
|
|
20
|
+
|
|
21
|
+
require "railpack"
|
|
22
|
+
|
|
23
|
+
module DummyApp
|
|
24
|
+
class Application < Rails::Application
|
|
25
|
+
# Initialize configuration defaults for originally generated Rails version.
|
|
26
|
+
config.load_defaults 8.0
|
|
27
|
+
|
|
28
|
+
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
|
29
|
+
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
|
30
|
+
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
|
31
|
+
config.autoload_lib(ignore: %w[assets tasks])
|
|
32
|
+
|
|
33
|
+
# Configuration for the application, engines, and railties goes here.
|
|
34
|
+
#
|
|
35
|
+
# These settings can be overridden in specific environments using the files
|
|
36
|
+
# in config/environments, which are processed later.
|
|
37
|
+
#
|
|
38
|
+
# config.time_zone = "Central Time (US & Canada)"
|
|
39
|
+
# config.eager_load_paths << Rails.root.join("extras")
|
|
40
|
+
|
|
41
|
+
# Don't generate system test files.
|
|
42
|
+
config.generators.system_tests = nil
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
xt+YdAIlEkqnHQbJ7xbc69CKJoKPh2kZvNj+iWKHDIn7jYPAVJAhgnOAZhLCmIqxNO3la7jyOcKYhqPxnMQ7Guy+JnT+xpYwHVBwbI/x5st2sJTp8VJdSLZYZEh3drTLRsdVEFFlBKXuIZzb06slQwYKvIl9na3QS4Fm3gCc4deQIo+9z7ufD0L5ktSTOEc7s6aeONGLe966RKaj1I9KYU8DjlmNkKXcvVdZ+Ar1yBqiayFM7kz2hsvxskMm+rnLr4fiUhsmOwH38dpVLeNRSIaU2vj+oIk92zJ7XWFRo8EuRDQaEy4nBM5may4Ut5qhkGbZNYgWr9H33+nzvoO2nggfsgx9qU2LnNKuGxbSQknPy9XeKlvQojv7S/Lgc1kebbcHSwph1/FHCKTtzJ4uhmrPNOjJmayDiDIjgLqwlm+Hz+Z4HEnw/k1soEcegSZH736TBUxayuuIzb6w/jcLRF85BvNfbdpnMDeSwnXWd/zey0qdDpbfPSf4--7pu2rqhr1d5J+TWK--vI1F7Z5yuKDjy/PmJD1o2A==
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# SQLite. Versions 3.8.0 and up are supported.
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem "sqlite3"
|
|
6
|
+
#
|
|
7
|
+
default: &default
|
|
8
|
+
adapter: sqlite3
|
|
9
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
development:
|
|
13
|
+
<<: *default
|
|
14
|
+
database: storage/development.sqlite3
|
|
15
|
+
|
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
|
17
|
+
# re-generated from your development database when you run "rake".
|
|
18
|
+
# Do not set this db to the same as development or production.
|
|
19
|
+
test:
|
|
20
|
+
<<: *default
|
|
21
|
+
database: storage/test.sqlite3
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# Store production database in the storage/ directory, which by default
|
|
25
|
+
# is mounted as a persistent Docker volume in config/deploy.yml.
|
|
26
|
+
production:
|
|
27
|
+
primary:
|
|
28
|
+
<<: *default
|
|
29
|
+
database: storage/production.sqlite3
|
|
30
|
+
cache:
|
|
31
|
+
<<: *default
|
|
32
|
+
database: storage/production_cache.sqlite3
|
|
33
|
+
migrations_paths: db/cache_migrate
|
|
34
|
+
queue:
|
|
35
|
+
<<: *default
|
|
36
|
+
database: storage/production_queue.sqlite3
|
|
37
|
+
migrations_paths: db/queue_migrate
|