ruby-clock 2.0.0.beta5 → 2.0.0.beta6

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.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/CHANGELOG.md +5 -2
  4. data/README.md +31 -5
  5. data/example-app/Clockfile +10 -6
  6. data/example-app/Gemfile +2 -0
  7. data/example-app/Gemfile.lock +3 -0
  8. data/example-rails-6-app/.browserslistrc +1 -0
  9. data/example-rails-6-app/.gitattributes +10 -0
  10. data/example-rails-6-app/.gitignore +40 -0
  11. data/example-rails-6-app/.ruby-version +1 -0
  12. data/{example-rails-app → example-rails-6-app}/Clockfile +1 -1
  13. data/example-rails-6-app/Gemfile +62 -0
  14. data/example-rails-6-app/Gemfile.lock +270 -0
  15. data/example-rails-6-app/README.md +24 -0
  16. data/{example-rails-app → example-rails-6-app}/Rakefile +0 -0
  17. data/example-rails-6-app/app/assets/config/manifest.js +2 -0
  18. data/{example-rails-app → example-rails-6-app}/app/assets/images/.keep +0 -0
  19. data/example-rails-6-app/app/assets/stylesheets/application.css +15 -0
  20. data/{example-rails-app → example-rails-6-app}/app/channels/application_cable/channel.rb +0 -0
  21. data/{example-rails-app → example-rails-6-app}/app/channels/application_cable/connection.rb +0 -0
  22. data/{example-rails-app → example-rails-6-app}/app/controllers/application_controller.rb +0 -0
  23. data/{example-rails-app → example-rails-6-app}/app/controllers/concerns/.keep +0 -0
  24. data/{example-rails-app → example-rails-6-app}/app/helpers/application_helper.rb +0 -0
  25. data/example-rails-6-app/app/javascript/channels/consumer.js +6 -0
  26. data/example-rails-6-app/app/javascript/channels/index.js +5 -0
  27. data/example-rails-6-app/app/javascript/packs/application.js +13 -0
  28. data/{example-rails-app → example-rails-6-app}/app/jobs/application_job.rb +0 -0
  29. data/example-rails-6-app/app/mailers/application_mailer.rb +4 -0
  30. data/example-rails-6-app/app/models/application_record.rb +3 -0
  31. data/{example-rails-app → example-rails-6-app}/app/models/concerns/.keep +0 -0
  32. data/{example-rails-app → example-rails-6-app}/app/models/example.rb +4 -4
  33. data/example-rails-6-app/app/views/layouts/application.html.erb +16 -0
  34. data/{example-rails-app → example-rails-6-app}/app/views/layouts/mailer.html.erb +0 -0
  35. data/{example-rails-app → example-rails-6-app}/app/views/layouts/mailer.text.erb +0 -0
  36. data/example-rails-6-app/babel.config.js +82 -0
  37. data/{example-rails-app → example-rails-6-app}/bin/bundle +0 -0
  38. data/example-rails-6-app/bin/rails +5 -0
  39. data/example-rails-6-app/bin/rake +5 -0
  40. data/example-rails-6-app/bin/setup +36 -0
  41. data/example-rails-6-app/bin/spring +14 -0
  42. data/example-rails-6-app/bin/webpack +18 -0
  43. data/example-rails-6-app/bin/webpack-dev-server +18 -0
  44. data/example-rails-6-app/bin/yarn +17 -0
  45. data/example-rails-6-app/config/application.rb +22 -0
  46. data/example-rails-6-app/config/boot.rb +4 -0
  47. data/example-rails-6-app/config/cable.yml +10 -0
  48. data/example-rails-6-app/config/credentials.yml.enc +1 -0
  49. data/example-rails-6-app/config/database.yml +25 -0
  50. data/{example-rails-app → example-rails-6-app}/config/environment.rb +0 -0
  51. data/example-rails-6-app/config/environments/development.rb +76 -0
  52. data/example-rails-6-app/config/environments/production.rb +120 -0
  53. data/example-rails-6-app/config/environments/test.rb +60 -0
  54. data/example-rails-6-app/config/initializers/application_controller_renderer.rb +8 -0
  55. data/example-rails-6-app/config/initializers/assets.rb +14 -0
  56. data/example-rails-6-app/config/initializers/backtrace_silencers.rb +8 -0
  57. data/example-rails-6-app/config/initializers/content_security_policy.rb +30 -0
  58. data/example-rails-6-app/config/initializers/cookies_serializer.rb +5 -0
  59. data/example-rails-6-app/config/initializers/filter_parameter_logging.rb +6 -0
  60. data/example-rails-6-app/config/initializers/inflections.rb +16 -0
  61. data/example-rails-6-app/config/initializers/mime_types.rb +4 -0
  62. data/{example-rails-app → example-rails-6-app}/config/initializers/permissions_policy.rb +0 -0
  63. data/example-rails-6-app/config/initializers/wrap_parameters.rb +14 -0
  64. data/example-rails-6-app/config/locales/en.yml +33 -0
  65. data/example-rails-6-app/config/puma.rb +43 -0
  66. data/example-rails-6-app/config/routes.rb +3 -0
  67. data/example-rails-6-app/config/spring.rb +6 -0
  68. data/example-rails-6-app/config/storage.yml +34 -0
  69. data/example-rails-6-app/config/webpack/development.js +5 -0
  70. data/example-rails-6-app/config/webpack/environment.js +3 -0
  71. data/example-rails-6-app/config/webpack/production.js +5 -0
  72. data/example-rails-6-app/config/webpack/test.js +5 -0
  73. data/example-rails-6-app/config/webpacker.yml +92 -0
  74. data/{example-rails-app → example-rails-6-app}/config.ru +0 -0
  75. data/example-rails-6-app/db/migrate/20221102224703_create_examples.rb +8 -0
  76. data/example-rails-6-app/db/schema.rb +20 -0
  77. data/example-rails-6-app/db/seeds.rb +7 -0
  78. data/{example-rails-app → example-rails-6-app}/lib/assets/.keep +0 -0
  79. data/{example-rails-app → example-rails-6-app}/lib/tasks/.keep +0 -0
  80. data/{example-rails-app → example-rails-6-app}/log/.keep +0 -0
  81. data/example-rails-6-app/package.json +17 -0
  82. data/example-rails-6-app/postcss.config.js +12 -0
  83. data/{example-rails-app → example-rails-6-app}/public/404.html +0 -0
  84. data/{example-rails-app → example-rails-6-app}/public/422.html +0 -0
  85. data/{example-rails-app → example-rails-6-app}/public/500.html +0 -0
  86. data/{example-rails-app → example-rails-6-app}/public/apple-touch-icon-precomposed.png +0 -0
  87. data/{example-rails-app → example-rails-6-app}/public/apple-touch-icon.png +0 -0
  88. data/{example-rails-app → example-rails-6-app}/public/favicon.ico +0 -0
  89. data/{example-rails-app → example-rails-6-app}/public/robots.txt +0 -0
  90. data/{example-rails-app → example-rails-6-app}/storage/.keep +0 -0
  91. data/{example-rails-app → example-rails-6-app}/test/application_system_test_case.rb +0 -0
  92. data/{example-rails-app → example-rails-6-app}/test/channels/application_cable/connection_test.rb +0 -0
  93. data/{example-rails-app → example-rails-6-app}/test/controllers/.keep +0 -0
  94. data/{example-rails-app → example-rails-6-app}/test/fixtures/files/.keep +0 -0
  95. data/{example-rails-app → example-rails-6-app}/test/helpers/.keep +0 -0
  96. data/{example-rails-app → example-rails-6-app}/test/integration/.keep +0 -0
  97. data/{example-rails-app → example-rails-6-app}/test/mailers/.keep +0 -0
  98. data/{example-rails-app → example-rails-6-app}/test/models/.keep +0 -0
  99. data/{example-rails-app → example-rails-6-app}/test/system/.keep +0 -0
  100. data/example-rails-6-app/test/test_helper.rb +13 -0
  101. data/{example-rails-app → example-rails-6-app}/tmp/.keep +0 -0
  102. data/{example-rails-app → example-rails-6-app}/tmp/pids/.keep +0 -0
  103. data/{example-rails-app/tmp/storage → example-rails-6-app/vendor}/.keep +0 -0
  104. data/example-rails-6-app/yarn.lock +7108 -0
  105. data/{example-rails-app → example-rails-7-app}/.gitattributes +0 -0
  106. data/{example-rails-app → example-rails-7-app}/.gitignore +0 -0
  107. data/{example-rails-app → example-rails-7-app}/.ruby-version +0 -0
  108. data/example-rails-7-app/Clockfile +19 -0
  109. data/{example-rails-app → example-rails-7-app}/Gemfile +1 -1
  110. data/example-rails-7-app/Gemfile.lock +247 -0
  111. data/{example-rails-app → example-rails-7-app}/README.md +0 -0
  112. data/example-rails-7-app/Rakefile +6 -0
  113. data/{example-rails-app → example-rails-7-app}/app/assets/config/manifest.js +0 -0
  114. data/{example-rails-app/vendor → example-rails-7-app/app/assets/images}/.keep +0 -0
  115. data/{example-rails-app → example-rails-7-app}/app/assets/stylesheets/application.css +0 -0
  116. data/example-rails-7-app/app/channels/application_cable/channel.rb +4 -0
  117. data/example-rails-7-app/app/channels/application_cable/connection.rb +4 -0
  118. data/example-rails-7-app/app/controllers/application_controller.rb +2 -0
  119. data/{example-rails-app/vendor/javascript → example-rails-7-app/app/controllers/concerns}/.keep +0 -0
  120. data/example-rails-7-app/app/helpers/application_helper.rb +2 -0
  121. data/{example-rails-app → example-rails-7-app}/app/javascript/application.js +0 -0
  122. data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/application.js +0 -0
  123. data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/hello_controller.js +0 -0
  124. data/{example-rails-app → example-rails-7-app}/app/javascript/controllers/index.js +0 -0
  125. data/example-rails-7-app/app/jobs/application_job.rb +7 -0
  126. data/{example-rails-app → example-rails-7-app}/app/mailers/application_mailer.rb +0 -0
  127. data/{example-rails-app → example-rails-7-app}/app/models/application_record.rb +0 -0
  128. data/example-rails-7-app/app/models/concerns/.keep +0 -0
  129. data/example-rails-7-app/app/models/example.rb +18 -0
  130. data/{example-rails-app → example-rails-7-app}/app/views/layouts/application.html.erb +0 -0
  131. data/example-rails-7-app/app/views/layouts/mailer.html.erb +13 -0
  132. data/example-rails-7-app/app/views/layouts/mailer.text.erb +1 -0
  133. data/example-rails-7-app/bin/bundle +114 -0
  134. data/{example-rails-app → example-rails-7-app}/bin/importmap +0 -0
  135. data/{example-rails-app → example-rails-7-app}/bin/rails +0 -0
  136. data/{example-rails-app → example-rails-7-app}/bin/rake +0 -0
  137. data/{example-rails-app → example-rails-7-app}/bin/setup +0 -0
  138. data/{example-rails-app → example-rails-7-app}/config/application.rb +0 -0
  139. data/{example-rails-app → example-rails-7-app}/config/boot.rb +0 -0
  140. data/{example-rails-app → example-rails-7-app}/config/cable.yml +0 -0
  141. data/{example-rails-app → example-rails-7-app}/config/credentials.yml.enc +0 -0
  142. data/{example-rails-app → example-rails-7-app}/config/database.yml +0 -0
  143. data/example-rails-7-app/config/environment.rb +5 -0
  144. data/{example-rails-app → example-rails-7-app}/config/environments/development.rb +0 -0
  145. data/{example-rails-app → example-rails-7-app}/config/environments/production.rb +0 -0
  146. data/{example-rails-app → example-rails-7-app}/config/environments/test.rb +0 -0
  147. data/{example-rails-app → example-rails-7-app}/config/importmap.rb +0 -0
  148. data/{example-rails-app → example-rails-7-app}/config/initializers/assets.rb +0 -0
  149. data/{example-rails-app → example-rails-7-app}/config/initializers/content_security_policy.rb +0 -0
  150. data/{example-rails-app → example-rails-7-app}/config/initializers/filter_parameter_logging.rb +0 -0
  151. data/{example-rails-app → example-rails-7-app}/config/initializers/inflections.rb +0 -0
  152. data/example-rails-7-app/config/initializers/permissions_policy.rb +11 -0
  153. data/{example-rails-app → example-rails-7-app}/config/locales/en.yml +0 -0
  154. data/{example-rails-app → example-rails-7-app}/config/puma.rb +0 -0
  155. data/{example-rails-app → example-rails-7-app}/config/routes.rb +0 -0
  156. data/{example-rails-app → example-rails-7-app}/config/storage.yml +0 -0
  157. data/example-rails-7-app/config.ru +6 -0
  158. data/{example-rails-app → example-rails-7-app}/db/migrate/20221001175928_create_examples.rb +0 -0
  159. data/{example-rails-app → example-rails-7-app}/db/schema.rb +0 -0
  160. data/{example-rails-app → example-rails-7-app}/db/seeds.rb +0 -0
  161. data/example-rails-7-app/lib/assets/.keep +0 -0
  162. data/example-rails-7-app/lib/tasks/.keep +0 -0
  163. data/example-rails-7-app/log/.keep +0 -0
  164. data/example-rails-7-app/public/404.html +67 -0
  165. data/example-rails-7-app/public/422.html +67 -0
  166. data/example-rails-7-app/public/500.html +66 -0
  167. data/example-rails-7-app/public/apple-touch-icon-precomposed.png +0 -0
  168. data/example-rails-7-app/public/apple-touch-icon.png +0 -0
  169. data/example-rails-7-app/public/favicon.ico +0 -0
  170. data/example-rails-7-app/public/robots.txt +1 -0
  171. data/example-rails-7-app/storage/.keep +0 -0
  172. data/example-rails-7-app/test/application_system_test_case.rb +5 -0
  173. data/example-rails-7-app/test/channels/application_cable/connection_test.rb +11 -0
  174. data/example-rails-7-app/test/controllers/.keep +0 -0
  175. data/example-rails-7-app/test/fixtures/files/.keep +0 -0
  176. data/example-rails-7-app/test/helpers/.keep +0 -0
  177. data/example-rails-7-app/test/integration/.keep +0 -0
  178. data/example-rails-7-app/test/mailers/.keep +0 -0
  179. data/example-rails-7-app/test/models/.keep +0 -0
  180. data/example-rails-7-app/test/system/.keep +0 -0
  181. data/{example-rails-app → example-rails-7-app}/test/test_helper.rb +0 -0
  182. data/example-rails-7-app/tmp/.keep +0 -0
  183. data/example-rails-7-app/tmp/pids/.keep +0 -0
  184. data/example-rails-7-app/tmp/storage/.keep +0 -0
  185. data/example-rails-7-app/vendor/.keep +0 -0
  186. data/example-rails-7-app/vendor/javascript/.keep +0 -0
  187. data/exe/clock +1 -0
  188. data/lib/ruby-clock/dsl.rb +16 -0
  189. data/lib/ruby-clock/version.rb +1 -1
  190. data/lib/ruby-clock.rb +0 -3
  191. data/ruby-clock.gemspec +1 -1
  192. metadata +182 -85
  193. data/lib/ruby-clock/runners.rb +0 -23
@@ -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,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -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,3 @@
1
+ Rails.application.routes.draw do
2
+ # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
3
+ end
@@ -0,0 +1,6 @@
1
+ Spring.watch(
2
+ ".ruby-version",
3
+ ".rbenv-vars",
4
+ "tmp/restart.txt",
5
+ "tmp/caching-dev.txt"
6
+ )
@@ -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,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -0,0 +1,3 @@
1
+ const { environment } = require('@rails/webpacker')
2
+
3
+ module.exports = environment
@@ -0,0 +1,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'production'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -0,0 +1,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -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,8 @@
1
+ class CreateExamples < ActiveRecord::Migration[6.1]
2
+ def change
3
+ create_table :examples do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -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,12 @@
1
+ module.exports = {
2
+ plugins: [
3
+ require('postcss-import'),
4
+ require('postcss-flexbugs-fixes'),
5
+ require('postcss-preset-env')({
6
+ autoprefixer: {
7
+ flexbox: 'no-2009'
8
+ },
9
+ stage: 3
10
+ })
11
+ ]
12
+ }
@@ -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