ruby-clock 2.0.0.beta5 → 2.0.0.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +14 -7
- data/README.md +34 -8
- data/example-app/Clockfile +27 -7
- data/example-app/Gemfile +2 -1
- data/example-app/Gemfile.lock +3 -0
- data/example-rails-6-app/.browserslistrc +1 -0
- data/example-rails-6-app/.gitattributes +10 -0
- data/example-rails-6-app/.gitignore +40 -0
- data/example-rails-6-app/.ruby-version +1 -0
- data/{example-rails-app → example-rails-6-app}/Clockfile +1 -1
- data/example-rails-6-app/Gemfile +62 -0
- data/example-rails-6-app/Gemfile.lock +270 -0
- data/example-rails-6-app/README.md +24 -0
- data/example-rails-6-app/app/assets/config/manifest.js +2 -0
- data/example-rails-6-app/app/assets/stylesheets/application.css +15 -0
- data/example-rails-6-app/app/javascript/channels/consumer.js +6 -0
- data/example-rails-6-app/app/javascript/channels/index.js +5 -0
- data/example-rails-6-app/app/javascript/packs/application.js +13 -0
- data/example-rails-6-app/app/mailers/application_mailer.rb +4 -0
- data/example-rails-6-app/app/models/application_record.rb +3 -0
- data/{example-rails-app → example-rails-6-app}/app/models/example.rb +4 -4
- data/example-rails-6-app/app/views/layouts/application.html.erb +16 -0
- data/example-rails-6-app/babel.config.js +82 -0
- data/example-rails-6-app/bin/rails +5 -0
- data/example-rails-6-app/bin/rake +5 -0
- data/example-rails-6-app/bin/setup +36 -0
- data/example-rails-6-app/bin/spring +14 -0
- data/example-rails-6-app/bin/webpack +18 -0
- data/example-rails-6-app/bin/webpack-dev-server +18 -0
- data/example-rails-6-app/bin/yarn +17 -0
- data/example-rails-6-app/config/application.rb +22 -0
- data/example-rails-6-app/config/boot.rb +4 -0
- data/example-rails-6-app/config/cable.yml +10 -0
- data/example-rails-6-app/config/credentials.yml.enc +1 -0
- data/example-rails-6-app/config/database.yml +25 -0
- data/example-rails-6-app/config/environments/development.rb +76 -0
- data/example-rails-6-app/config/environments/production.rb +120 -0
- data/example-rails-6-app/config/environments/test.rb +60 -0
- data/example-rails-6-app/config/initializers/application_controller_renderer.rb +8 -0
- data/example-rails-6-app/config/initializers/assets.rb +14 -0
- data/example-rails-6-app/config/initializers/backtrace_silencers.rb +8 -0
- data/example-rails-6-app/config/initializers/content_security_policy.rb +30 -0
- data/example-rails-6-app/config/initializers/cookies_serializer.rb +5 -0
- data/example-rails-6-app/config/initializers/filter_parameter_logging.rb +6 -0
- data/example-rails-6-app/config/initializers/inflections.rb +16 -0
- data/example-rails-6-app/config/initializers/mime_types.rb +4 -0
- data/example-rails-6-app/config/initializers/wrap_parameters.rb +14 -0
- data/example-rails-6-app/config/locales/en.yml +33 -0
- data/example-rails-6-app/config/puma.rb +43 -0
- data/example-rails-6-app/config/routes.rb +3 -0
- data/example-rails-6-app/config/spring.rb +6 -0
- data/example-rails-6-app/config/storage.yml +34 -0
- data/example-rails-6-app/config/webpack/development.js +5 -0
- data/example-rails-6-app/config/webpack/environment.js +3 -0
- data/example-rails-6-app/config/webpack/production.js +5 -0
- data/example-rails-6-app/config/webpack/test.js +5 -0
- data/example-rails-6-app/config/webpacker.yml +92 -0
- data/example-rails-6-app/db/migrate/20221102224703_create_examples.rb +8 -0
- data/example-rails-6-app/db/schema.rb +20 -0
- data/example-rails-6-app/db/seeds.rb +7 -0
- data/example-rails-6-app/package.json +17 -0
- data/example-rails-6-app/postcss.config.js +12 -0
- data/example-rails-6-app/test/test_helper.rb +13 -0
- data/example-rails-6-app/yarn.lock +7108 -0
- data/example-rails-7-app/Clockfile +19 -0
- data/{example-rails-app → example-rails-7-app}/Gemfile +1 -1
- data/example-rails-7-app/Gemfile.lock +247 -0
- data/example-rails-7-app/Rakefile +6 -0
- data/example-rails-7-app/app/channels/application_cable/channel.rb +4 -0
- data/example-rails-7-app/app/channels/application_cable/connection.rb +4 -0
- data/example-rails-7-app/app/controllers/application_controller.rb +2 -0
- data/example-rails-7-app/app/helpers/application_helper.rb +2 -0
- data/example-rails-7-app/app/jobs/application_job.rb +7 -0
- data/example-rails-7-app/app/models/concerns/.keep +0 -0
- data/example-rails-7-app/app/models/example.rb +18 -0
- data/example-rails-7-app/app/views/layouts/mailer.html.erb +13 -0
- data/example-rails-7-app/app/views/layouts/mailer.text.erb +1 -0
- data/example-rails-7-app/bin/bundle +114 -0
- data/example-rails-7-app/config/environment.rb +5 -0
- data/example-rails-7-app/config/initializers/permissions_policy.rb +11 -0
- data/example-rails-7-app/config.ru +6 -0
- data/example-rails-7-app/lib/assets/.keep +0 -0
- data/example-rails-7-app/lib/tasks/.keep +0 -0
- data/example-rails-7-app/log/.keep +0 -0
- data/example-rails-7-app/public/404.html +67 -0
- data/example-rails-7-app/public/422.html +67 -0
- data/example-rails-7-app/public/500.html +66 -0
- data/example-rails-7-app/public/apple-touch-icon-precomposed.png +0 -0
- data/example-rails-7-app/public/apple-touch-icon.png +0 -0
- data/example-rails-7-app/public/favicon.ico +0 -0
- data/example-rails-7-app/public/robots.txt +1 -0
- data/example-rails-7-app/storage/.keep +0 -0
- data/example-rails-7-app/test/application_system_test_case.rb +5 -0
- data/example-rails-7-app/test/channels/application_cable/connection_test.rb +11 -0
- data/example-rails-7-app/test/controllers/.keep +0 -0
- data/example-rails-7-app/test/fixtures/files/.keep +0 -0
- data/example-rails-7-app/test/helpers/.keep +0 -0
- data/example-rails-7-app/test/integration/.keep +0 -0
- data/example-rails-7-app/test/mailers/.keep +0 -0
- data/example-rails-7-app/test/models/.keep +0 -0
- data/example-rails-7-app/test/system/.keep +0 -0
- data/example-rails-7-app/tmp/.keep +0 -0
- data/example-rails-7-app/tmp/pids/.keep +0 -0
- data/example-rails-7-app/tmp/storage/.keep +0 -0
- data/example-rails-7-app/vendor/.keep +0 -0
- data/example-rails-7-app/vendor/javascript/.keep +0 -0
- data/exe/clock +1 -0
- data/lib/ruby-clock/dsl.rb +16 -0
- data/lib/ruby-clock/shell.rb +4 -6
- data/lib/ruby-clock/version.rb +1 -1
- data/lib/ruby-clock.rb +0 -3
- data/lib/rufus_monkeypatch.rb +8 -1
- data/ruby-clock.gemspec +1 -1
- metadata +183 -86
- data/lib/ruby-clock/runners.rb +0 -23
- /data/{example-rails-app → example-rails-6-app}/Rakefile +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/assets/images/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/channels/application_cable/channel.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/channels/application_cable/connection.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/controllers/application_controller.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/controllers/concerns/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/helpers/application_helper.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/jobs/application_job.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/models/concerns/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/views/layouts/mailer.html.erb +0 -0
- /data/{example-rails-app → example-rails-6-app}/app/views/layouts/mailer.text.erb +0 -0
- /data/{example-rails-app → example-rails-6-app}/bin/bundle +0 -0
- /data/{example-rails-app → example-rails-6-app}/config/environment.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/config/initializers/permissions_policy.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/config.ru +0 -0
- /data/{example-rails-app → example-rails-6-app}/lib/assets/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/lib/tasks/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/log/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/404.html +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/422.html +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/500.html +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/apple-touch-icon-precomposed.png +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/apple-touch-icon.png +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/favicon.ico +0 -0
- /data/{example-rails-app → example-rails-6-app}/public/robots.txt +0 -0
- /data/{example-rails-app → example-rails-6-app}/storage/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/application_system_test_case.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/channels/application_cable/connection_test.rb +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/controllers/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/fixtures/files/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/helpers/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/integration/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/mailers/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/models/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/test/system/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/tmp/.keep +0 -0
- /data/{example-rails-app → example-rails-6-app}/tmp/pids/.keep +0 -0
- /data/{example-rails-app/tmp/storage → example-rails-6-app/vendor}/.keep +0 -0
- /data/{example-rails-app → example-rails-7-app}/.gitattributes +0 -0
- /data/{example-rails-app → example-rails-7-app}/.gitignore +0 -0
- /data/{example-rails-app → example-rails-7-app}/.ruby-version +0 -0
- /data/{example-rails-app → example-rails-7-app}/README.md +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/assets/config/manifest.js +0 -0
- /data/{example-rails-app/vendor → example-rails-7-app/app/assets/images}/.keep +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/assets/stylesheets/application.css +0 -0
- /data/{example-rails-app/vendor/javascript → example-rails-7-app/app/controllers/concerns}/.keep +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/javascript/application.js +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/application.js +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/hello_controller.js +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/index.js +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/mailers/application_mailer.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/models/application_record.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/app/views/layouts/application.html.erb +0 -0
- /data/{example-rails-app → example-rails-7-app}/bin/importmap +0 -0
- /data/{example-rails-app → example-rails-7-app}/bin/rails +0 -0
- /data/{example-rails-app → example-rails-7-app}/bin/rake +0 -0
- /data/{example-rails-app → example-rails-7-app}/bin/setup +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/application.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/boot.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/cable.yml +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/credentials.yml.enc +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/database.yml +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/environments/development.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/environments/production.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/environments/test.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/importmap.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/initializers/assets.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/initializers/content_security_policy.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/initializers/filter_parameter_logging.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/initializers/inflections.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/locales/en.yml +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/puma.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/routes.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/config/storage.yml +0 -0
- /data/{example-rails-app → example-rails-7-app}/db/migrate/20221001175928_create_examples.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/db/schema.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/db/seeds.rb +0 -0
- /data/{example-rails-app → example-rails-7-app}/test/test_helper.rb +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Define an application-wide content security policy
|
4
|
+
# For further information see the following documentation
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6
|
+
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
8
|
+
# policy.default_src :self, :https
|
9
|
+
# policy.font_src :self, :https, :data
|
10
|
+
# policy.img_src :self, :https, :data
|
11
|
+
# policy.object_src :none
|
12
|
+
# policy.script_src :self, :https
|
13
|
+
# policy.style_src :self, :https
|
14
|
+
# # If you are using webpack-dev-server then specify webpack-dev-server host
|
15
|
+
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
16
|
+
|
17
|
+
# # Specify URI for violation reports
|
18
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
19
|
+
# end
|
20
|
+
|
21
|
+
# If you are using UJS then enable automatic nonce generation
|
22
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
23
|
+
|
24
|
+
# Set the nonce only to specific directives
|
25
|
+
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
26
|
+
|
27
|
+
# Report CSP violations to a specified URI
|
28
|
+
# For further information see the following documentation:
|
29
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
30
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
+
# terminating a worker in development environments.
|
13
|
+
#
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
+
|
16
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
17
|
+
#
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
19
|
+
|
20
|
+
# Specifies the `environment` that Puma will run in.
|
21
|
+
#
|
22
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
23
|
+
|
24
|
+
# Specifies the `pidfile` that Puma will use.
|
25
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
26
|
+
|
27
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
28
|
+
# Workers are forked web server processes. If using threads and workers together
|
29
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
30
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
31
|
+
# processes).
|
32
|
+
#
|
33
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
34
|
+
|
35
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
36
|
+
# This directive tells Puma to first boot the application and load code
|
37
|
+
# before forking the application. This takes advantage of Copy On Write
|
38
|
+
# process behavior so workers use less memory.
|
39
|
+
#
|
40
|
+
# preload_app!
|
41
|
+
|
42
|
+
# Allow puma to be restarted by `rails restart` command.
|
43
|
+
plugin :tmp_restart
|
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
+
|
3
|
+
default: &default
|
4
|
+
source_path: app/javascript
|
5
|
+
source_entry_path: packs
|
6
|
+
public_root_path: public
|
7
|
+
public_output_path: packs
|
8
|
+
cache_path: tmp/cache/webpacker
|
9
|
+
webpack_compile_output: true
|
10
|
+
|
11
|
+
# Additional paths webpack should lookup modules
|
12
|
+
# ['app/assets', 'engine/foo/app/assets']
|
13
|
+
additional_paths: []
|
14
|
+
|
15
|
+
# Reload manifest.json on all requests so we reload latest compiled packs
|
16
|
+
cache_manifest: false
|
17
|
+
|
18
|
+
# Extract and emit a css file
|
19
|
+
extract_css: false
|
20
|
+
|
21
|
+
static_assets_extensions:
|
22
|
+
- .jpg
|
23
|
+
- .jpeg
|
24
|
+
- .png
|
25
|
+
- .gif
|
26
|
+
- .tiff
|
27
|
+
- .ico
|
28
|
+
- .svg
|
29
|
+
- .eot
|
30
|
+
- .otf
|
31
|
+
- .ttf
|
32
|
+
- .woff
|
33
|
+
- .woff2
|
34
|
+
|
35
|
+
extensions:
|
36
|
+
- .mjs
|
37
|
+
- .js
|
38
|
+
- .sass
|
39
|
+
- .scss
|
40
|
+
- .css
|
41
|
+
- .module.sass
|
42
|
+
- .module.scss
|
43
|
+
- .module.css
|
44
|
+
- .png
|
45
|
+
- .svg
|
46
|
+
- .gif
|
47
|
+
- .jpeg
|
48
|
+
- .jpg
|
49
|
+
|
50
|
+
development:
|
51
|
+
<<: *default
|
52
|
+
compile: true
|
53
|
+
|
54
|
+
# Reference: https://webpack.js.org/configuration/dev-server/
|
55
|
+
dev_server:
|
56
|
+
https: false
|
57
|
+
host: localhost
|
58
|
+
port: 3035
|
59
|
+
public: localhost:3035
|
60
|
+
hmr: false
|
61
|
+
# Inline should be set to true if using HMR
|
62
|
+
inline: true
|
63
|
+
overlay: true
|
64
|
+
compress: true
|
65
|
+
disable_host_check: true
|
66
|
+
use_local_ip: false
|
67
|
+
quiet: false
|
68
|
+
pretty: false
|
69
|
+
headers:
|
70
|
+
'Access-Control-Allow-Origin': '*'
|
71
|
+
watch_options:
|
72
|
+
ignored: '**/node_modules/**'
|
73
|
+
|
74
|
+
|
75
|
+
test:
|
76
|
+
<<: *default
|
77
|
+
compile: true
|
78
|
+
|
79
|
+
# Compile test packs to a separate directory
|
80
|
+
public_output_path: packs-test
|
81
|
+
|
82
|
+
production:
|
83
|
+
<<: *default
|
84
|
+
|
85
|
+
# Production depends on precompilation of packs prior to booting for performance.
|
86
|
+
compile: false
|
87
|
+
|
88
|
+
# Extract and emit a css file
|
89
|
+
extract_css: true
|
90
|
+
|
91
|
+
# Cache manifest.json for performance
|
92
|
+
cache_manifest: true
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2022_11_02_224703) do
|
14
|
+
|
15
|
+
create_table "examples", force: :cascade do |t|
|
16
|
+
t.datetime "created_at", precision: 6, null: false
|
17
|
+
t.datetime "updated_at", precision: 6, null: false
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
7
|
+
# Character.create(name: 'Luke', movie: movies.first)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "example-rails-6-app",
|
3
|
+
"private": true,
|
4
|
+
"dependencies": {
|
5
|
+
"@rails/actioncable": "^6.0.0",
|
6
|
+
"@rails/activestorage": "^6.0.0",
|
7
|
+
"@rails/ujs": "^6.0.0",
|
8
|
+
"@rails/webpacker": "5.4.3",
|
9
|
+
"turbolinks": "^5.2.0",
|
10
|
+
"webpack": "^4.46.0",
|
11
|
+
"webpack-cli": "^3.3.12"
|
12
|
+
},
|
13
|
+
"version": "0.1.0",
|
14
|
+
"devDependencies": {
|
15
|
+
"webpack-dev-server": "^3"
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
require_relative "../config/environment"
|
3
|
+
require "rails/test_help"
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Run tests in parallel with specified workers
|
7
|
+
parallelize(workers: :number_of_processors)
|
8
|
+
|
9
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|