solidus_i18n 2.1.1 → 4.8.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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +55 -9
  4. data/Rakefile +21 -9
  5. data/bin/rails +9 -11
  6. data/config/locales/bg.yml +0 -5
  7. data/config/locales/ca.yml +0 -5
  8. data/config/locales/da.yml +1 -6
  9. data/config/locales/de-CH.yml +0 -5
  10. data/config/locales/de.yml +64 -35
  11. data/config/locales/en-AU.yml +0 -5
  12. data/config/locales/en-GB.yml +1 -6
  13. data/config/locales/en-IN.yml +1 -6
  14. data/config/locales/en-NZ.yml +1 -6
  15. data/config/locales/es-CL.yml +1 -1
  16. data/config/locales/es-EC.yml +0 -5
  17. data/config/locales/es-MX.yml +3 -3
  18. data/config/locales/es.yml +3 -3
  19. data/config/locales/et.yml +0 -5
  20. data/config/locales/fa.yml +1 -1
  21. data/config/locales/fi.yml +0 -5
  22. data/config/locales/fr.yml +9 -4
  23. data/config/locales/id.yml +1 -6
  24. data/config/locales/it.yml +1 -1
  25. data/config/locales/ja.yml +2 -2
  26. data/config/locales/ko.yml +0 -5
  27. data/config/locales/lv.yml +0 -5
  28. data/config/locales/nb.yml +1 -6
  29. data/config/locales/nl.yml +1 -6
  30. data/config/locales/pl.yml +1 -1
  31. data/config/locales/pt-BR.yml +426 -145
  32. data/config/locales/pt.yml +0 -5
  33. data/config/locales/ro.yml +0 -5
  34. data/config/locales/ru.yml +97 -24
  35. data/config/locales/sl-SI.yml +0 -5
  36. data/config/locales/th.yml +0 -5
  37. data/config/locales/tr.yml +1 -6
  38. data/config/locales/vi.yml +0 -5
  39. data/config/locales/zh-CN.yml +0 -5
  40. data/config/locales/zh-TW.yml +0 -5
  41. data/i18n-tasks.yml +22 -0
  42. data/lib/solidus_i18n/engine.rb +2 -12
  43. data/lib/solidus_i18n.rb +1 -5
  44. data/solidus_i18n.gemspec +30 -33
  45. metadata +21 -245
  46. data/.circleci/config.yml +0 -35
  47. data/.gem_release.yml +0 -5
  48. data/.github/stale.yml +0 -17
  49. data/.gitignore +0 -16
  50. data/.hound.yml +0 -25
  51. data/.rspec +0 -2
  52. data/.rubocop.yml +0 -4
  53. data/.rubocop_todo.yml +0 -18
  54. data/CONTRIBUTING.md +0 -70
  55. data/Gemfile +0 -31
  56. data/LICENSE +0 -26
  57. data/bin/console +0 -17
  58. data/bin/setup +0 -8
  59. data/config/routes.rb +0 -4
  60. data/lib/generators/solidus_i18n/install/install_generator.rb +0 -24
  61. data/lib/solidus_i18n/factories.rb +0 -4
  62. data/lib/solidus_i18n/version.rb +0 -5
  63. data/lib/tasks/solidus_i18n/upgrade.rake +0 -45
  64. data/spec/dummy/README.md +0 -24
  65. data/spec/dummy/Rakefile +0 -6
  66. data/spec/dummy/app/assets/config/manifest.js +0 -2
  67. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  68. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  69. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  70. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  71. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  72. data/spec/dummy/app/jobs/application_job.rb +0 -7
  73. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  74. data/spec/dummy/app/models/application_record.rb +0 -3
  75. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  76. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  77. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  78. data/spec/dummy/bin/rails +0 -4
  79. data/spec/dummy/bin/rake +0 -4
  80. data/spec/dummy/bin/setup +0 -33
  81. data/spec/dummy/config/application.rb +0 -53
  82. data/spec/dummy/config/boot.rb +0 -6
  83. data/spec/dummy/config/cable.yml +0 -10
  84. data/spec/dummy/config/credentials.yml.enc +0 -1
  85. data/spec/dummy/config/database.yml +0 -12
  86. data/spec/dummy/config/environment.rb +0 -5
  87. data/spec/dummy/config/environments/development.rb +0 -76
  88. data/spec/dummy/config/environments/production.rb +0 -120
  89. data/spec/dummy/config/environments/test.rb +0 -36
  90. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  91. data/spec/dummy/config/initializers/assets.rb +0 -12
  92. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
  93. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  94. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  95. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  96. data/spec/dummy/config/initializers/inflections.rb +0 -16
  97. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  98. data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
  99. data/spec/dummy/config/initializers/spree.rb +0 -74
  100. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  101. data/spec/dummy/config/locales/en.yml +0 -33
  102. data/spec/dummy/config/master.key +0 -1
  103. data/spec/dummy/config/routes.rb +0 -9
  104. data/spec/dummy/config/storage.yml +0 -34
  105. data/spec/dummy/config.ru +0 -6
  106. data/spec/dummy/db/migrate/20210218213814_create_active_storage_tables.active_storage.rb +0 -36
  107. data/spec/dummy/db/migrate/20210218213818_create_action_mailbox_tables.action_mailbox.rb +0 -14
  108. data/spec/dummy/db/migrate/20210218213819_create_action_text_tables.action_text.rb +0 -14
  109. data/spec/dummy/db/migrate/20210218213820_solidus_one_four.spree.rb +0 -1103
  110. data/spec/dummy/db/migrate/20210218213821_create_spree_wallet_payment_sources.spree.rb +0 -28
  111. data/spec/dummy/db/migrate/20210218213822_migrate_credit_cards_to_wallet_payment_sources.spree.rb +0 -30
  112. data/spec/dummy/db/migrate/20210218213823_remove_is_default_from_prices.spree.rb +0 -8
  113. data/spec/dummy/db/migrate/20210218213824_remove_currency_from_line_items.spree.rb +0 -8
  114. data/spec/dummy/db/migrate/20210218213825_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +0 -31
  115. data/spec/dummy/db/migrate/20210218213826_create_spree_promotion_code_batch.spree.rb +0 -39
  116. data/spec/dummy/db/migrate/20210218213827_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +0 -23
  117. data/spec/dummy/db/migrate/20210218213828_add_index_to_spree_payments_number.spree.rb +0 -8
  118. data/spec/dummy/db/migrate/20210218213829_remove_spree_store_credits_column.spree.rb +0 -8
  119. data/spec/dummy/db/migrate/20210218213830_add_lft_and_rgt_indexes_to_taxons.spree.rb +0 -9
  120. data/spec/dummy/db/migrate/20210218213831_remove_order_id_from_inventory_units.spree.rb +0 -31
  121. data/spec/dummy/db/migrate/20210218213832_transform_tax_rate_category_relation.spree.rb +0 -51
  122. data/spec/dummy/db/migrate/20210218213833_add_roles_unique_constraints.spree.rb +0 -9
  123. data/spec/dummy/db/migrate/20210218213834_add_time_range_to_tax_rate.spree.rb +0 -9
  124. data/spec/dummy/db/migrate/20210218213835_rename_bogus_gateways.spree.rb +0 -19
  125. data/spec/dummy/db/migrate/20210218213836_remove_default_tax_from_spree_zones.spree.rb +0 -8
  126. data/spec/dummy/db/migrate/20210218213837_create_promotion_rule_stores.spree.rb +0 -13
  127. data/spec/dummy/db/migrate/20210218213838_create_store_shipping_methods.spree.rb +0 -13
  128. data/spec/dummy/db/migrate/20210218213839_add_available_locales_to_stores.spree.rb +0 -10
  129. data/spec/dummy/db/migrate/20210218213840_add_amount_remaining_to_store_credit_events.spree.rb +0 -62
  130. data/spec/dummy/db/migrate/20210218213841_add_join_characters_to_promotion_code_batch.spree.rb +0 -12
  131. data/spec/dummy/db/migrate/20210218213842_add_apply_to_all_to_variant_property_rule.spree.rb +0 -13
  132. data/spec/dummy/db/migrate/20210218213843_create_spree_store_credit_reasons_table.spree.rb +0 -56
  133. data/spec/dummy/db/migrate/20210218213844_remove_code_from_spree_promotions.spree.rb +0 -43
  134. data/spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb +0 -20
  135. data/spec/dummy/db/migrate/20210218213846_add_default_billng_flag_to_user_addresses.spree.rb +0 -7
  136. data/spec/dummy/db/migrate/20210218213847_add_bcc_email_to_spree_stores.spree.rb +0 -8
  137. data/spec/dummy/db/migrate/20210218213848_add_discontinue_on_to_spree_products.spree.rb +0 -8
  138. data/spec/dummy/db/migrate/20210218213849_add_name_to_spree_addresses.spree.rb +0 -14
  139. data/spec/dummy/db/migrate/20210218213850_add_api_key_to_spree_users.spree_api.rb +0 -10
  140. data/spec/dummy/db/migrate/20210218213851_resize_api_key_field.spree_api.rb +0 -10
  141. data/spec/dummy/db/migrate/20210218213852_rename_api_key_to_spree_api_key.spree_api.rb +0 -10
  142. data/spec/dummy/db/migrate/20210218213853_add_index_to_user_spree_api_key.spree_api.rb +0 -10
  143. data/spec/dummy/db/schema.rb +0 -1215
  144. data/spec/dummy/db/seeds.rb +0 -10
  145. data/spec/dummy/db/solidus_test.sqlite3 +0 -0
  146. data/spec/dummy/log/test.log +0 -1198
  147. data/spec/dummy/public/404.html +0 -67
  148. data/spec/dummy/public/422.html +0 -67
  149. data/spec/dummy/public/500.html +0 -66
  150. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  151. data/spec/dummy/public/apple-touch-icon.png +0 -0
  152. data/spec/dummy/public/favicon.ico +0 -0
  153. data/spec/dummy/tmp/development_secret.txt +0 -1
  154. data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +0 -10
  155. data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +0 -10
  156. data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +0 -9
  157. data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +0 -9
  158. data/spec/examples.txt +0 -4
  159. data/spec/solidus_i18n_spec.rb +0 -67
  160. data/spec/spec_helper.rb +0 -33
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module SolidusI18n
4
- VERSION = '2.1.1'
5
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'fileutils'
4
-
5
- namespace :solidus_i18n do
6
- desc 'Upgrades to version without globalize.'
7
- task upgrade: :environment do
8
- files = %w[
9
- add_translations_to_main_models
10
- add_translations_to_product_permalink
11
- add_translations_to_option_value
12
- rename_activator_translations_to_promotion_translations
13
- update_spree_product_translations
14
- add_translations_to_product_properties
15
- remove_null_constraints_from_spree_tables
16
- add_deleted_at_to_translation_tables
17
- add_translations_to_store
18
- ].collect do |file_name|
19
- Dir.glob Rails.root.join('db', 'migrate', "*_#{file_name}*.rb")
20
- end.flatten
21
-
22
- # Delete old migrations
23
- FileUtils.rm files
24
-
25
- # Install new migrations
26
- Rake::Task['solidus_i18n:install:migrations'].invoke
27
-
28
- puts <<~DESC
29
- Upgraded migrations successfully.
30
-
31
- Now please remove these lines from your vendor/assets folder:
32
-
33
- From `vendor/assets/javascripts/spree/backend/all.js`
34
-
35
- //= require spree/backend/spree_i18n
36
-
37
- and from `vendor/assets/stylesheets/spree/backend/all.css`
38
-
39
- *= require spree/backend/spree_i18n
40
-
41
- Don't forget to run `rake db:migrate` now.
42
-
43
- DESC
44
- end
45
- end
data/spec/dummy/README.md DELETED
@@ -1,24 +0,0 @@
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
- * ...
data/spec/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative "config/application"
5
-
6
- Rails.application.load_tasks
@@ -1,2 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../stylesheets .css
@@ -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,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,7 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- # Automatically retry jobs that encountered a deadlock
3
- # retry_on ActiveRecord::Deadlocked
4
-
5
- # Most jobs are safe to ignore if the underlying records are no longer available
6
- # discard_on ActiveJob::DeserializationError
7
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</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' %>
10
- </head>
11
-
12
- <body>
13
- <%= yield %>
14
- </body>
15
- </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 %>
data/spec/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../config/application', __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
data/spec/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
data/spec/dummy/bin/setup DELETED
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "fileutils"
3
-
4
- # path to your application root.
5
- APP_ROOT = File.expand_path('..', __dir__)
6
-
7
- def system!(*args)
8
- system(*args) || abort("\n== Command #{args} failed ==")
9
- end
10
-
11
- FileUtils.chdir APP_ROOT do
12
- # This script is a way to set up or update your development environment automatically.
13
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
- # Add necessary setup steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # puts "\n== Copying sample files =="
21
- # unless File.exist?('config/database.yml')
22
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
23
- # end
24
-
25
- puts "\n== Preparing database =="
26
- system! 'bin/rails db:prepare'
27
-
28
- puts "\n== Removing old logs and tempfiles =="
29
- system! 'bin/rails log:clear tmp:clear'
30
-
31
- puts "\n== Restarting application server =="
32
- system! 'bin/rails restart'
33
- end
@@ -1,53 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups(assets: %w(development test)))
6
-
7
-
8
- begin
9
- require 'spree_frontend'
10
- rescue LoadError
11
- # spree_frontend is not available.
12
- end
13
-
14
- begin
15
- require 'spree_backend'
16
- rescue LoadError
17
- # spree_backend is not available.
18
- end
19
-
20
- begin
21
- require 'spree_api'
22
- rescue LoadError
23
- # spree_api is not available.
24
- end
25
- require 'solidus_i18n'
26
-
27
- module Dummy
28
- class Application < Rails::Application
29
- # Load application's model / class decorators
30
- initializer 'spree.decorators' do |app|
31
- config.to_prepare do
32
- Dir.glob(Rails.root.join('app/**/*_decorator*.rb')) do |path|
33
- require_dependency(path)
34
- end
35
- end
36
- end
37
- # Initialize configuration defaults for originally generated Rails version.
38
- config.load_defaults 6.1
39
-
40
- # Configuration for the application, engines, and railties goes here.
41
- #
42
- # These settings can be overridden in specific environments using the files
43
- # in config/environments, which are processed later.
44
- #
45
- # config.time_zone = "Central Time (US & Canada)"
46
- # config.eager_load_paths << Rails.root.join("extras")
47
-
48
- # Don't generate system test files.
49
- config.generators.system_tests = nil
50
- end
51
- end
52
-
53
-
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path("../../../../Gemfile", __FILE__)
3
-
4
- ENV['BUNDLE_GEMFILE'] = gemfile
5
- require 'bundler'
6
- Bundler.setup
@@ -1,10 +0,0 @@
1
- development:
2
- adapter: async
3
-
4
- test:
5
- adapter: test
6
-
7
- production:
8
- adapter: redis
9
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: dummy_production
@@ -1 +0,0 @@
1
- rBmhnsUwtHmPmZGmCg2j+1JOxa23erfjfCKnfLlFXdSmEI/jXY+OXKdFB4jxKK2EPy6UIkk0wfIW6V4TKV0LJYYXZQPEyknl98+FExy4CmnXaswqxZ4mM15HebrvfIYROzjxNslgLRihd6Q3HsZpnSwo8Sb3O7Dew1pYd+J8vvaTaQqIvAn0D0+rfygGZu+RKah62S5nQk1/9ZYTfjGHkHNQpOXSOC5Glf5vOxCpCIyF/YNqwhXM0vFIlkxdy1VZUgpA6qbK+d4yig3zMIzleWu+6F1k9Z5H6J1BiOsNXZXftG1HMfxSbAWIGPtLBRslwo34RnRe7AIrSsB6WSbLq/SVMuPJBHp19z/RIJNkkeNAFHm8U6MnbPXjW4Yw3+hNbjxlwOpFA85qt4sk6nBw6EI3Yj7WsGYSB/tN--g0sWvPIuCOAOxFqr--AtKGAvQfhzxdKkpS3KZ5Jw==
@@ -1,12 +0,0 @@
1
-
2
-
3
- development:
4
- adapter: sqlite3
5
- database: db/solidus_development.sqlite3
6
- test:
7
- adapter: sqlite3
8
- database: db/solidus_test.sqlite3
9
- production:
10
- adapter: sqlite3
11
- database: db/solidus_production.sqlite3
12
-
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative "application"
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,76 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # In the development environment your application's code is reloaded any time
7
- # it changes. This slows down response time but is perfect for development
8
- # since you don't have to restart the web server when you make code changes.
9
- config.cache_classes = false
10
-
11
- # Do not eager load code on boot.
12
- config.eager_load = false
13
-
14
- # Show full error reports.
15
- config.consider_all_requests_local = true
16
-
17
- # Enable/disable caching. By default caching is disabled.
18
- # Run rails dev:cache to toggle caching.
19
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
20
- config.action_controller.perform_caching = true
21
- config.action_controller.enable_fragment_cache_logging = true
22
-
23
- config.cache_store = :memory_store
24
- config.public_file_server.headers = {
25
- 'Cache-Control' => "public, max-age=#{2.days.to_i}"
26
- }
27
- else
28
- config.action_controller.perform_caching = false
29
-
30
- config.cache_store = :null_store
31
- end
32
-
33
- # Store uploaded files on the local file system (see config/storage.yml for options).
34
- config.active_storage.service = :local
35
-
36
- # Don't care if the mailer can't send.
37
- config.action_mailer.raise_delivery_errors = false
38
-
39
- config.action_mailer.perform_caching = false
40
-
41
- # Print deprecation notices to the Rails logger.
42
- config.active_support.deprecation = :log
43
-
44
- # Raise exceptions for disallowed deprecations.
45
- config.active_support.disallowed_deprecation = :raise
46
-
47
- # Tell Active Support which deprecation messages to disallow.
48
- config.active_support.disallowed_deprecation_warnings = []
49
-
50
- # Raise an error on page load if there are pending migrations.
51
- config.active_record.migration_error = :page_load
52
-
53
- # Highlight code that triggered database queries in logs.
54
- config.active_record.verbose_query_logs = true
55
-
56
- # Debug mode disables concatenation and preprocessing of assets.
57
- # This option may cause significant delays in view rendering with a large
58
- # number of complex assets.
59
- config.assets.debug = true
60
-
61
- # Suppress logger output for asset requests.
62
- config.assets.quiet = true
63
-
64
- # Raises error for missing translations.
65
- # config.i18n.raise_on_missing_translations = true
66
-
67
- # Annotate rendered view with file names.
68
- # config.action_view.annotate_rendered_view_with_filenames = true
69
-
70
- # Use an evented file watcher to asynchronously detect changes in source code,
71
- # routes, locales, etc. This feature depends on the listen gem.
72
- # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
73
-
74
- # Uncomment if you wish to allow Action Cable access from any origin.
75
- # config.action_cable.disable_request_forgery_protection = true
76
- end
@@ -1,120 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # Code is not reloaded between requests.
7
- config.cache_classes = true
8
-
9
- # Eager load code on boot. This eager loads most of Rails and
10
- # your application in memory, allowing both threaded web servers
11
- # and those relying on copy on write to perform better.
12
- # Rake tasks automatically ignore this option for performance.
13
- config.eager_load = true
14
-
15
- # Full error reports are disabled and caching is turned on.
16
- config.consider_all_requests_local = false
17
- config.action_controller.perform_caching = true
18
-
19
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
- # config.require_master_key = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Compress CSS using a preprocessor.
28
- # config.assets.css_compressor = :sass
29
-
30
- # Do not fallback to assets pipeline if a precompiled asset is missed.
31
- config.assets.compile = false
32
-
33
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
34
- # config.asset_host = 'http://assets.example.com'
35
-
36
- # Specifies the header that your server uses for sending files.
37
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
38
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
39
-
40
- # Store uploaded files on the local file system (see config/storage.yml for options).
41
- config.active_storage.service = :local
42
-
43
- # Mount Action Cable outside main process or domain.
44
- # config.action_cable.mount_path = nil
45
- # config.action_cable.url = 'wss://example.com/cable'
46
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
47
-
48
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
49
- # config.force_ssl = true
50
-
51
- # Include generic and useful information about system operation, but avoid logging too much
52
- # information to avoid inadvertent exposure of personally identifiable information (PII).
53
- config.log_level = :info
54
-
55
- # Prepend all log lines with the following tags.
56
- config.log_tags = [ :request_id ]
57
-
58
- # Use a different cache store in production.
59
- # config.cache_store = :mem_cache_store
60
-
61
- # Use a real queuing backend for Active Job (and separate queues per environment).
62
- # config.active_job.queue_adapter = :resque
63
- # config.active_job.queue_name_prefix = "dummy_production"
64
-
65
- config.action_mailer.perform_caching = false
66
-
67
- # Ignore bad email addresses and do not raise email delivery errors.
68
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
69
- # config.action_mailer.raise_delivery_errors = false
70
-
71
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
72
- # the I18n.default_locale when a translation cannot be found).
73
- config.i18n.fallbacks = true
74
-
75
- # Send deprecation notices to registered listeners.
76
- config.active_support.deprecation = :notify
77
-
78
- # Log disallowed deprecations.
79
- config.active_support.disallowed_deprecation = :log
80
-
81
- # Tell Active Support which deprecation messages to disallow.
82
- config.active_support.disallowed_deprecation_warnings = []
83
-
84
- # Use default logging formatter so that PID and timestamp are not suppressed.
85
- config.log_formatter = ::Logger::Formatter.new
86
-
87
- # Use a different logger for distributed setups.
88
- # require "syslog/logger"
89
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
90
-
91
- if ENV["RAILS_LOG_TO_STDOUT"].present?
92
- logger = ActiveSupport::Logger.new(STDOUT)
93
- logger.formatter = config.log_formatter
94
- config.logger = ActiveSupport::TaggedLogging.new(logger)
95
- end
96
-
97
- # Do not dump schema after migrations.
98
- config.active_record.dump_schema_after_migration = false
99
-
100
- # Inserts middleware to perform automatic connection switching.
101
- # The `database_selector` hash is used to pass options to the DatabaseSelector
102
- # middleware. The `delay` is used to determine how long to wait after a write
103
- # to send a subsequent read to the primary.
104
- #
105
- # The `database_resolver` class is used by the middleware to determine which
106
- # database is appropriate to use based on the time delay.
107
- #
108
- # The `database_resolver_context` class is used by the middleware to set
109
- # timestamps for the last write to the primary. The resolver uses the context
110
- # class timestamps to determine how long to wait before reading from the
111
- # replica.
112
- #
113
- # By default Rails will store a last write timestamp in the session. The
114
- # DatabaseSelector middleware is designed as such you can define your own
115
- # strategy for connection switching and pass that into the middleware through
116
- # these configuration options.
117
- # config.active_record.database_selector = { delay: 2.seconds }
118
- # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
119
- # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
120
- end
@@ -1,36 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.public_file_server.enabled = true
12
- config.public_file_server.headers = { 'Cache-Control' => "public, max-age=3600" }
13
-
14
- # Show full error reports and disable caching
15
- config.consider_all_requests_local = true
16
- config.action_controller.perform_caching = false
17
-
18
- config.eager_load = false
19
-
20
- # Raise exceptions instead of rendering exception templates
21
- config.action_dispatch.show_exceptions = false
22
-
23
- # Disable request forgery protection in test environment
24
- config.action_controller.allow_forgery_protection = false
25
-
26
- # Tell Action Mailer not to deliver emails to the real world.
27
- # The :test delivery method accumulates sent emails in the
28
- # ActionMailer::Base.deliveries array.
29
- config.action_mailer.delivery_method = :test
30
- ActionMailer::Base.default from: "solidus@example.com"
31
-
32
- # Raise on deprecation warnings
33
- if ENV['SOLIDUS_RAISE_DEPRECATIONS'].present?
34
- Spree::Deprecation.behavior = :raise
35
- end
36
- end
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # ActiveSupport::Reloader.to_prepare do
4
- # ApplicationController.renderer.defaults.merge!(
5
- # http_host: 'example.org',
6
- # https: false
7
- # )
8
- # end
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path.
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in the app/assets
11
- # folder are already added.
12
- # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
7
- # by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
8
- Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
@@ -1,28 +0,0 @@
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
-
15
- # # Specify URI for violation reports
16
- # # policy.report_uri "/csp-violation-report-endpoint"
17
- # end
18
-
19
- # If you are using UJS then enable automatic nonce generation
20
- # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21
-
22
- # Set the nonce only to specific directives
23
- # Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
24
-
25
- # Report CSP violations to a specified URI
26
- # For further information see the following documentation:
27
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
28
- # Rails.application.config.content_security_policy_report_only = true
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Specify a serializer for the signed and encrypted cookie jars.
4
- # Valid options are :json, :marshal, and :hybrid.
5
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,6 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [
5
- :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
6
- ]
@@ -1,16 +0,0 @@
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
@@ -1,4 +0,0 @@
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