zapp 0.2.1 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zapp/configuration.rb +9 -1
  3. data/lib/zapp/http_context/request.rb +2 -2
  4. data/lib/zapp/logger/base.rb +103 -0
  5. data/lib/zapp/logger.rb +20 -57
  6. data/lib/zapp/server.rb +9 -4
  7. data/lib/zapp/socket_pipe/receiver.rb +0 -8
  8. data/lib/zapp/version.rb +1 -1
  9. data/lib/zapp/worker/request_processor.rb +27 -32
  10. data/lib/zapp/worker.rb +5 -6
  11. data/lib/zapp/worker_pool.rb +6 -5
  12. data/lib/zapp.rb +5 -2
  13. metadata +5 -109
  14. data/.circleci/config.yml +0 -21
  15. data/.gitignore +0 -13
  16. data/.rspec +0 -3
  17. data/.rubocop.yml +0 -48
  18. data/.ruby-version +0 -1
  19. data/Gemfile +0 -13
  20. data/Gemfile.lock +0 -112
  21. data/Guardfile +0 -23
  22. data/LICENSE.txt +0 -21
  23. data/README.md +0 -91
  24. data/Rakefile +0 -8
  25. data/examples/rails-app/.browserslistrc +0 -1
  26. data/examples/rails-app/.gitattributes +0 -10
  27. data/examples/rails-app/.gitignore +0 -40
  28. data/examples/rails-app/.ruby-version +0 -1
  29. data/examples/rails-app/Gemfile +0 -58
  30. data/examples/rails-app/Gemfile.lock +0 -255
  31. data/examples/rails-app/Rakefile +0 -8
  32. data/examples/rails-app/app/assets/config/manifest.js +0 -2
  33. data/examples/rails-app/app/assets/images/.keep +0 -0
  34. data/examples/rails-app/app/assets/stylesheets/application.css +0 -15
  35. data/examples/rails-app/app/channels/application_cable/channel.rb +0 -6
  36. data/examples/rails-app/app/channels/application_cable/connection.rb +0 -6
  37. data/examples/rails-app/app/controllers/application_controller.rb +0 -4
  38. data/examples/rails-app/app/controllers/concerns/.keep +0 -0
  39. data/examples/rails-app/app/helpers/application_helper.rb +0 -4
  40. data/examples/rails-app/app/javascript/channels/consumer.js +0 -6
  41. data/examples/rails-app/app/javascript/channels/index.js +0 -5
  42. data/examples/rails-app/app/javascript/packs/application.js +0 -13
  43. data/examples/rails-app/app/jobs/application_job.rb +0 -9
  44. data/examples/rails-app/app/mailers/application_mailer.rb +0 -6
  45. data/examples/rails-app/app/models/application_record.rb +0 -5
  46. data/examples/rails-app/app/models/concerns/.keep +0 -0
  47. data/examples/rails-app/app/views/layouts/application.html.erb +0 -16
  48. data/examples/rails-app/app/views/layouts/mailer.html.erb +0 -13
  49. data/examples/rails-app/app/views/layouts/mailer.text.erb +0 -1
  50. data/examples/rails-app/babel.config.js +0 -82
  51. data/examples/rails-app/bin/bundle +0 -118
  52. data/examples/rails-app/bin/rails +0 -7
  53. data/examples/rails-app/bin/rake +0 -7
  54. data/examples/rails-app/bin/setup +0 -38
  55. data/examples/rails-app/bin/spring +0 -16
  56. data/examples/rails-app/bin/webpack +0 -21
  57. data/examples/rails-app/bin/webpack-dev-server +0 -21
  58. data/examples/rails-app/bin/yarn +0 -19
  59. data/examples/rails-app/bin/zapp +0 -1
  60. data/examples/rails-app/config/application.rb +0 -24
  61. data/examples/rails-app/config/boot.rb +0 -6
  62. data/examples/rails-app/config/cable.yml +0 -10
  63. data/examples/rails-app/config/credentials.yml.enc +0 -1
  64. data/examples/rails-app/config/database.yml +0 -25
  65. data/examples/rails-app/config/environment.rb +0 -7
  66. data/examples/rails-app/config/environments/development.rb +0 -78
  67. data/examples/rails-app/config/environments/production.rb +0 -122
  68. data/examples/rails-app/config/environments/test.rb +0 -62
  69. data/examples/rails-app/config/initializers/application_controller_renderer.rb +0 -9
  70. data/examples/rails-app/config/initializers/assets.rb +0 -16
  71. data/examples/rails-app/config/initializers/backtrace_silencers.rb +0 -10
  72. data/examples/rails-app/config/initializers/content_security_policy.rb +0 -31
  73. data/examples/rails-app/config/initializers/cookies_serializer.rb +0 -7
  74. data/examples/rails-app/config/initializers/filter_parameter_logging.rb +0 -8
  75. data/examples/rails-app/config/initializers/inflections.rb +0 -17
  76. data/examples/rails-app/config/initializers/mime_types.rb +0 -5
  77. data/examples/rails-app/config/initializers/permissions_policy.rb +0 -12
  78. data/examples/rails-app/config/initializers/wrap_parameters.rb +0 -16
  79. data/examples/rails-app/config/locales/en.yml +0 -33
  80. data/examples/rails-app/config/puma.rb +0 -45
  81. data/examples/rails-app/config/routes.rb +0 -5
  82. data/examples/rails-app/config/spring.rb +0 -8
  83. data/examples/rails-app/config/storage.yml +0 -34
  84. data/examples/rails-app/config/webpack/development.js +0 -5
  85. data/examples/rails-app/config/webpack/environment.js +0 -3
  86. data/examples/rails-app/config/webpack/production.js +0 -5
  87. data/examples/rails-app/config/webpack/test.js +0 -5
  88. data/examples/rails-app/config/webpacker.yml +0 -92
  89. data/examples/rails-app/config/zapp.rb +0 -10
  90. data/examples/rails-app/config.ru +0 -7
  91. data/examples/rails-app/db/seeds.rb +0 -8
  92. data/examples/rails-app/lib/assets/.keep +0 -0
  93. data/examples/rails-app/lib/tasks/.keep +0 -0
  94. data/examples/rails-app/log/.keep +0 -0
  95. data/examples/rails-app/package.json +0 -17
  96. data/examples/rails-app/postcss.config.js +0 -12
  97. data/examples/rails-app/public/404.html +0 -67
  98. data/examples/rails-app/public/422.html +0 -67
  99. data/examples/rails-app/public/500.html +0 -66
  100. data/examples/rails-app/public/apple-touch-icon-precomposed.png +0 -0
  101. data/examples/rails-app/public/apple-touch-icon.png +0 -0
  102. data/examples/rails-app/public/favicon.ico +0 -0
  103. data/examples/rails-app/public/robots.txt +0 -1
  104. data/examples/rails-app/storage/.keep +0 -0
  105. data/examples/rails-app/test/application_system_test_case.rb +0 -7
  106. data/examples/rails-app/test/channels/application_cable/connection_test.rb +0 -15
  107. data/examples/rails-app/test/controllers/.keep +0 -0
  108. data/examples/rails-app/test/fixtures/files/.keep +0 -0
  109. data/examples/rails-app/test/helpers/.keep +0 -0
  110. data/examples/rails-app/test/integration/.keep +0 -0
  111. data/examples/rails-app/test/mailers/.keep +0 -0
  112. data/examples/rails-app/test/models/.keep +0 -0
  113. data/examples/rails-app/test/system/.keep +0 -0
  114. data/examples/rails-app/test/test_helper.rb +0 -17
  115. data/examples/rails-app/tmp/.keep +0 -0
  116. data/examples/rails-app/tmp/pids/.keep +0 -0
  117. data/examples/rails-app/vendor/.keep +0 -0
  118. data/examples/rails-app/yarn.lock +0 -6973
  119. data/zapp.gemspec +0 -44
@@ -1,255 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- zapp (0.1.1)
5
- concurrent-ruby (~> 1.1.9)
6
- puma (~> 5.5.2)
7
- rack (~> 2.2.3)
8
- rake (~> 13.0)
9
- rspec (~> 3.0)
10
- webrick
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- actioncable (6.1.4.1)
16
- actionpack (= 6.1.4.1)
17
- activesupport (= 6.1.4.1)
18
- nio4r (~> 2.0)
19
- websocket-driver (>= 0.6.1)
20
- actionmailbox (6.1.4.1)
21
- actionpack (= 6.1.4.1)
22
- activejob (= 6.1.4.1)
23
- activerecord (= 6.1.4.1)
24
- activestorage (= 6.1.4.1)
25
- activesupport (= 6.1.4.1)
26
- mail (>= 2.7.1)
27
- actionmailer (6.1.4.1)
28
- actionpack (= 6.1.4.1)
29
- actionview (= 6.1.4.1)
30
- activejob (= 6.1.4.1)
31
- activesupport (= 6.1.4.1)
32
- mail (~> 2.5, >= 2.5.4)
33
- rails-dom-testing (~> 2.0)
34
- actionpack (6.1.4.1)
35
- actionview (= 6.1.4.1)
36
- activesupport (= 6.1.4.1)
37
- rack (~> 2.0, >= 2.0.9)
38
- rack-test (>= 0.6.3)
39
- rails-dom-testing (~> 2.0)
40
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
41
- actiontext (6.1.4.1)
42
- actionpack (= 6.1.4.1)
43
- activerecord (= 6.1.4.1)
44
- activestorage (= 6.1.4.1)
45
- activesupport (= 6.1.4.1)
46
- nokogiri (>= 1.8.5)
47
- actionview (6.1.4.1)
48
- activesupport (= 6.1.4.1)
49
- builder (~> 3.1)
50
- erubi (~> 1.4)
51
- rails-dom-testing (~> 2.0)
52
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
53
- activejob (6.1.4.1)
54
- activesupport (= 6.1.4.1)
55
- globalid (>= 0.3.6)
56
- activemodel (6.1.4.1)
57
- activesupport (= 6.1.4.1)
58
- activerecord (6.1.4.1)
59
- activemodel (= 6.1.4.1)
60
- activesupport (= 6.1.4.1)
61
- activestorage (6.1.4.1)
62
- actionpack (= 6.1.4.1)
63
- activejob (= 6.1.4.1)
64
- activerecord (= 6.1.4.1)
65
- activesupport (= 6.1.4.1)
66
- marcel (~> 1.0.0)
67
- mini_mime (>= 1.1.0)
68
- activesupport (6.1.4.1)
69
- concurrent-ruby (~> 1.0, >= 1.0.2)
70
- i18n (>= 1.6, < 2)
71
- minitest (>= 5.1)
72
- tzinfo (~> 2.0)
73
- zeitwerk (~> 2.3)
74
- addressable (2.8.0)
75
- public_suffix (>= 2.0.2, < 5.0)
76
- bindex (0.8.1)
77
- bootsnap (1.9.1)
78
- msgpack (~> 1.0)
79
- builder (3.2.4)
80
- byebug (11.1.3)
81
- capybara (3.36.0)
82
- addressable
83
- matrix
84
- mini_mime (>= 0.1.3)
85
- nokogiri (~> 1.8)
86
- rack (>= 1.6.0)
87
- rack-test (>= 0.6.3)
88
- regexp_parser (>= 1.5, < 3.0)
89
- xpath (~> 3.2)
90
- childprocess (4.1.0)
91
- concurrent-ruby (1.1.9)
92
- crass (1.0.6)
93
- diff-lcs (1.5.0)
94
- erubi (1.10.0)
95
- ffi (1.15.4)
96
- globalid (0.5.2)
97
- activesupport (>= 5.0)
98
- i18n (1.8.11)
99
- concurrent-ruby (~> 1.0)
100
- jbuilder (2.11.3)
101
- activesupport (>= 5.0.0)
102
- listen (3.7.0)
103
- rb-fsevent (~> 0.10, >= 0.10.3)
104
- rb-inotify (~> 0.9, >= 0.9.10)
105
- loofah (2.12.0)
106
- crass (~> 1.0.2)
107
- nokogiri (>= 1.5.9)
108
- mail (2.7.1)
109
- mini_mime (>= 0.1.1)
110
- marcel (1.0.2)
111
- matrix (0.4.2)
112
- method_source (1.0.0)
113
- mini_mime (1.1.2)
114
- minitest (5.14.4)
115
- msgpack (1.4.2)
116
- nio4r (2.5.8)
117
- nokogiri (1.12.5-x86_64-linux)
118
- racc (~> 1.4)
119
- public_suffix (4.0.6)
120
- puma (5.5.2)
121
- nio4r (~> 2.0)
122
- racc (1.6.0)
123
- rack (2.2.3)
124
- rack-mini-profiler (2.3.3)
125
- rack (>= 1.2.0)
126
- rack-proxy (0.7.0)
127
- rack
128
- rack-test (1.1.0)
129
- rack (>= 1.0, < 3)
130
- rails (6.1.4.1)
131
- actioncable (= 6.1.4.1)
132
- actionmailbox (= 6.1.4.1)
133
- actionmailer (= 6.1.4.1)
134
- actionpack (= 6.1.4.1)
135
- actiontext (= 6.1.4.1)
136
- actionview (= 6.1.4.1)
137
- activejob (= 6.1.4.1)
138
- activemodel (= 6.1.4.1)
139
- activerecord (= 6.1.4.1)
140
- activestorage (= 6.1.4.1)
141
- activesupport (= 6.1.4.1)
142
- bundler (>= 1.15.0)
143
- railties (= 6.1.4.1)
144
- sprockets-rails (>= 2.0.0)
145
- rails-dom-testing (2.0.3)
146
- activesupport (>= 4.2.0)
147
- nokogiri (>= 1.6)
148
- rails-html-sanitizer (1.4.2)
149
- loofah (~> 2.3)
150
- railties (6.1.4.1)
151
- actionpack (= 6.1.4.1)
152
- activesupport (= 6.1.4.1)
153
- method_source
154
- rake (>= 0.13)
155
- thor (~> 1.0)
156
- rake (13.0.6)
157
- rb-fsevent (0.11.0)
158
- rb-inotify (0.10.1)
159
- ffi (~> 1.0)
160
- regexp_parser (2.1.1)
161
- rexml (3.2.5)
162
- rspec (3.11.0)
163
- rspec-core (~> 3.11.0)
164
- rspec-expectations (~> 3.11.0)
165
- rspec-mocks (~> 3.11.0)
166
- rspec-core (3.11.0)
167
- rspec-support (~> 3.11.0)
168
- rspec-expectations (3.11.0)
169
- diff-lcs (>= 1.2.0, < 2.0)
170
- rspec-support (~> 3.11.0)
171
- rspec-mocks (3.11.1)
172
- diff-lcs (>= 1.2.0, < 2.0)
173
- rspec-support (~> 3.11.0)
174
- rspec-support (3.11.0)
175
- rubyzip (2.3.2)
176
- sass-rails (6.0.0)
177
- sassc-rails (~> 2.1, >= 2.1.1)
178
- sassc (2.4.0)
179
- ffi (~> 1.9)
180
- sassc-rails (2.1.2)
181
- railties (>= 4.0.0)
182
- sassc (>= 2.0)
183
- sprockets (> 3.0)
184
- sprockets-rails
185
- tilt
186
- selenium-webdriver (4.0.3)
187
- childprocess (>= 0.5, < 5.0)
188
- rexml (~> 3.2, >= 3.2.5)
189
- rubyzip (>= 1.2.2)
190
- semantic_range (3.0.0)
191
- spring (3.0.0)
192
- sprockets (4.0.2)
193
- concurrent-ruby (~> 1.0)
194
- rack (> 1, < 3)
195
- sprockets-rails (3.4.0)
196
- actionpack (>= 5.2)
197
- activesupport (>= 5.2)
198
- sprockets (>= 3.0.0)
199
- sqlite3 (1.4.2)
200
- thor (1.1.0)
201
- tilt (2.0.10)
202
- turbolinks (5.2.1)
203
- turbolinks-source (~> 5.2)
204
- turbolinks-source (5.2.0)
205
- tzinfo (2.0.4)
206
- concurrent-ruby (~> 1.0)
207
- web-console (4.2.0)
208
- actionview (>= 6.0.0)
209
- activemodel (>= 6.0.0)
210
- bindex (>= 0.4.0)
211
- railties (>= 6.0.0)
212
- webdrivers (5.0.0)
213
- nokogiri (~> 1.6)
214
- rubyzip (>= 1.3.0)
215
- selenium-webdriver (~> 4.0)
216
- webpacker (5.4.3)
217
- activesupport (>= 5.2)
218
- rack-proxy (>= 0.6.1)
219
- railties (>= 5.2)
220
- semantic_range (>= 2.3.0)
221
- webrick (1.7.0)
222
- websocket-driver (0.7.5)
223
- websocket-extensions (>= 0.1.0)
224
- websocket-extensions (0.1.5)
225
- xpath (3.2.0)
226
- nokogiri (~> 1.8)
227
- zeitwerk (2.5.1)
228
-
229
- PLATFORMS
230
- x86_64-linux
231
-
232
- DEPENDENCIES
233
- bootsnap (>= 1.4.4)
234
- byebug
235
- capybara (>= 3.26)
236
- jbuilder (~> 2.7)
237
- listen (~> 3.3)
238
- rack-mini-profiler (~> 2.0)
239
- rails (~> 6.1.4, >= 6.1.4.1)
240
- sass-rails (>= 6)
241
- selenium-webdriver
242
- spring
243
- sqlite3 (~> 1.4)
244
- turbolinks (~> 5)
245
- tzinfo-data
246
- web-console (>= 4.1.0)
247
- webdrivers
248
- webpacker (~> 5.0)
249
- zapp!
250
-
251
- RUBY VERSION
252
- ruby 3.0.0p0
253
-
254
- BUNDLED WITH
255
- 2.2.3
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Add your own tasks in files placed in lib/tasks ending in .rake,
4
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
5
-
6
- require_relative("config/application")
7
-
8
- Rails.application.load_tasks
@@ -1,2 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../stylesheets .css
File without changes
@@ -1,15 +0,0 @@
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 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/SCSS
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
- */
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationCable
4
- class Channel < ActionCable::Channel::Base
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationCable
4
- class Connection < ActionCable::Connection::Base
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationController < ActionController::Base
4
- end
File without changes
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ApplicationHelper
4
- end
@@ -1,6 +0,0 @@
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()
@@ -1,5 +0,0 @@
1
- // Load all the channels within this directory and all subdirectories.
2
- // Channel files must be named *_channel.js.
3
-
4
- const channels = require.context('.', true, /_channel\.js$/)
5
- channels.keys().forEach(channels)
@@ -1,13 +0,0 @@
1
- // This file is automatically compiled by Webpack, along with any other files
2
- // present in this directory. You're encouraged to place your actual application logic in
3
- // a relevant structure within app/javascript and only use these pack files to reference
4
- // that code so it'll be compiled.
5
-
6
- import Rails from "@rails/ujs"
7
- import Turbolinks from "turbolinks"
8
- import * as ActiveStorage from "@rails/activestorage"
9
- import "channels"
10
-
11
- Rails.start()
12
- Turbolinks.start()
13
- ActiveStorage.start()
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationJob < ActiveJob::Base
4
- # Automatically retry jobs that encountered a deadlock
5
- # retry_on ActiveRecord::Deadlocked
6
-
7
- # Most jobs are safe to ignore if the underlying records are no longer available
8
- # discard_on ActiveJob::DeserializationError
9
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationMailer < ActionMailer::Base
4
- default(from: "from@example.com")
5
- layout("mailer")
6
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationRecord < ActiveRecord::Base
4
- self.abstract_class = true
5
- end
File without changes
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>RailsApp</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <%= csrf_meta_tags %>
7
- <%= csp_meta_tag %>
8
-
9
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
10
- <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
11
- </head>
12
-
13
- <body>
14
- <%= yield %>
15
- </body>
16
- </html>
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1 +0,0 @@
1
- <%= yield %>
@@ -1,82 +0,0 @@
1
- module.exports = function(api) {
2
- var validEnv = ['development', 'test', 'production']
3
- var currentEnv = api.env()
4
- var isDevelopmentEnv = api.env('development')
5
- var isProductionEnv = api.env('production')
6
- var isTestEnv = api.env('test')
7
-
8
- if (!validEnv.includes(currentEnv)) {
9
- throw new Error(
10
- 'Please specify a valid `NODE_ENV` or ' +
11
- '`BABEL_ENV` environment variables. Valid values are "development", ' +
12
- '"test", and "production". Instead, received: ' +
13
- JSON.stringify(currentEnv) +
14
- '.'
15
- )
16
- }
17
-
18
- return {
19
- presets: [
20
- isTestEnv && [
21
- '@babel/preset-env',
22
- {
23
- targets: {
24
- node: 'current'
25
- }
26
- }
27
- ],
28
- (isProductionEnv || isDevelopmentEnv) && [
29
- '@babel/preset-env',
30
- {
31
- forceAllTransforms: true,
32
- useBuiltIns: 'entry',
33
- corejs: 3,
34
- modules: false,
35
- exclude: ['transform-typeof-symbol']
36
- }
37
- ]
38
- ].filter(Boolean),
39
- plugins: [
40
- 'babel-plugin-macros',
41
- '@babel/plugin-syntax-dynamic-import',
42
- isTestEnv && 'babel-plugin-dynamic-import-node',
43
- '@babel/plugin-transform-destructuring',
44
- [
45
- '@babel/plugin-proposal-class-properties',
46
- {
47
- loose: true
48
- }
49
- ],
50
- [
51
- '@babel/plugin-proposal-object-rest-spread',
52
- {
53
- useBuiltIns: true
54
- }
55
- ],
56
- [
57
- '@babel/plugin-proposal-private-methods',
58
- {
59
- loose: true
60
- }
61
- ],
62
- [
63
- '@babel/plugin-proposal-private-property-in-object',
64
- {
65
- loose: true
66
- }
67
- ],
68
- [
69
- '@babel/plugin-transform-runtime',
70
- {
71
- helpers: false
72
- }
73
- ],
74
- [
75
- '@babel/plugin-transform-regenerator',
76
- {
77
- async: false
78
- }
79
- ]
80
- ].filter(Boolean)
81
- }
82
- }
@@ -1,118 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'bundle' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require("rubygems")
12
-
13
- m = Module.new do
14
- module_function
15
-
16
- def invoked_as_script?
17
- File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__)
18
- end
19
-
20
- def env_var_version
21
- ENV["BUNDLER_VERSION"]
22
- end
23
-
24
- def cli_arg_version
25
- return unless invoked_as_script? # don't want to hijack other binstubs
26
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
-
28
- bundler_version = nil
29
- update_index = nil
30
- ARGV.each_with_index do |a, i|
31
- bundler_version = a if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
32
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
33
-
34
- bundler_version = Regexp.last_match(1)
35
- update_index = i
36
- end
37
- bundler_version
38
- end
39
-
40
- def gemfile
41
- gemfile = ENV["BUNDLE_GEMFILE"]
42
- return gemfile if gemfile && !gemfile.empty?
43
-
44
- File.expand_path("../Gemfile", __dir__)
45
- end
46
-
47
- def lockfile
48
- lockfile =
49
- case File.basename(gemfile)
50
- when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
- else "#{gemfile}.lock"
52
- end
53
- File.expand_path(lockfile)
54
- end
55
-
56
- def lockfile_version
57
- return unless File.file?(lockfile)
58
-
59
- lockfile_contents = File.read(lockfile)
60
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
61
-
62
- Regexp.last_match(1)
63
- end
64
-
65
- def bundler_version
66
- @bundler_version ||=
67
- env_var_version || cli_arg_version ||
68
- lockfile_version
69
- end
70
-
71
- def bundler_requirement
72
- return "#{Gem::Requirement.default}.a" unless bundler_version
73
-
74
- bundler_gem_version = Gem::Version.new(bundler_version)
75
-
76
- requirement = bundler_gem_version.approximate_recommendation
77
-
78
- return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
79
-
80
- requirement += ".a" if bundler_gem_version.prerelease?
81
-
82
- requirement
83
- end
84
-
85
- def load_bundler!
86
- ENV["BUNDLE_GEMFILE"] ||= gemfile
87
-
88
- activate_bundler
89
- end
90
-
91
- def activate_bundler
92
- gem_error = activation_error_handling do
93
- gem("bundler", bundler_requirement)
94
- end
95
- return if gem_error.nil?
96
-
97
- require_error = activation_error_handling do
98
- require("bundler/version")
99
- end
100
- if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
101
- return
102
- end
103
-
104
- warn("Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`")
105
- exit(42)
106
- end
107
-
108
- def activation_error_handling
109
- yield
110
- nil
111
- rescue StandardError, LoadError => e
112
- e
113
- end
114
- end
115
-
116
- m.load_bundler!
117
-
118
- load(Gem.bin_path("bundler", "bundle")) if m.invoked_as_script?
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load(File.expand_path("spring", __dir__))
5
- APP_PATH = File.expand_path("../config/application", __dir__)
6
- require_relative("../config/boot")
7
- require("rails/commands")
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- load(File.expand_path("spring", __dir__))
5
- require_relative("../config/boot")
6
- require("rake")
7
- Rake.application.run
@@ -1,38 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require("fileutils")
5
-
6
- # path to your application root.
7
- APP_ROOT = File.expand_path("..", __dir__)
8
-
9
- def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
11
- end
12
-
13
- FileUtils.chdir(APP_ROOT) do
14
- # This script is a way to set up or update your development environment automatically.
15
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
16
- # Add necessary setup steps to this file.
17
-
18
- puts("== Installing dependencies ==")
19
- system!("gem install bundler --conservative")
20
- system("bundle check") || system!("bundle install")
21
-
22
- # Install JavaScript dependencies
23
- system!("bin/yarn")
24
-
25
- # puts "\n== Copying sample files =="
26
- # unless File.exist?('config/database.yml')
27
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
28
- # end
29
-
30
- puts("\n== Preparing database ==")
31
- system!("bin/rails db:prepare")
32
-
33
- puts("\n== Removing old logs and tempfiles ==")
34
- system!("bin/rails log:clear tmp:clear")
35
-
36
- puts("\n== Restarting application server ==")
37
- system!("bin/rails restart")
38
- end
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
5
- gem("bundler")
6
- require("bundler")
7
-
8
- # Load Spring without loading other gems in the Gemfile, for speed.
9
- Bundler.locked_gems&.specs&.find { |spec| spec.name == "spring" }&.tap do |spring|
10
- Gem.use_paths(Gem.dir, Bundler.bundle_path.to_s, *Gem.path)
11
- gem("spring", spring.version)
12
- require("spring/binstub")
13
- rescue Gem::LoadError
14
- # Ignore when Spring is not installed.
15
- end
16
- end