solidus_i18n 2.2.0 → 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 (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +55 -9
  3. data/Rakefile +21 -10
  4. data/bin/rails +9 -11
  5. data/config/locales/da.yml +1 -1
  6. data/config/locales/de.yml +1 -1
  7. data/config/locales/es-CL.yml +1 -1
  8. data/config/locales/es-MX.yml +3 -3
  9. data/config/locales/es.yml +3 -3
  10. data/config/locales/fa.yml +1 -1
  11. data/config/locales/fr.yml +4 -4
  12. data/config/locales/id.yml +1 -1
  13. data/config/locales/it.yml +1 -1
  14. data/config/locales/ja.yml +2 -2
  15. data/config/locales/nb.yml +1 -1
  16. data/config/locales/nl.yml +1 -1
  17. data/config/locales/pl.yml +1 -1
  18. data/config/locales/pt-BR.yml +426 -145
  19. data/config/locales/ru.yml +1 -1
  20. data/config/locales/tr.yml +1 -1
  21. data/i18n-tasks.yml +22 -0
  22. data/lib/solidus_i18n/engine.rb +2 -12
  23. data/lib/solidus_i18n.rb +1 -5
  24. data/solidus_i18n.gemspec +30 -34
  25. metadata +18 -245
  26. data/.circleci/config.yml +0 -61
  27. data/.gem_release.yml +0 -5
  28. data/.github/stale.yml +0 -1
  29. data/.gitignore +0 -16
  30. data/.hound.yml +0 -25
  31. data/.rspec +0 -2
  32. data/.rubocop.yml +0 -4
  33. data/.rubocop_todo.yml +0 -18
  34. data/CONTRIBUTING.md +0 -70
  35. data/Gemfile +0 -37
  36. data/LICENSE +0 -26
  37. data/bin/console +0 -17
  38. data/bin/rake +0 -7
  39. data/bin/setup +0 -8
  40. data/config/routes.rb +0 -4
  41. data/lib/generators/solidus_i18n/install/install_generator.rb +0 -24
  42. data/lib/solidus_i18n/factories.rb +0 -4
  43. data/lib/solidus_i18n/version.rb +0 -5
  44. data/lib/tasks/solidus_i18n/upgrade.rake +0 -45
  45. data/spec/dummy/README.md +0 -24
  46. data/spec/dummy/Rakefile +0 -6
  47. data/spec/dummy/app/assets/config/manifest.js +0 -2
  48. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  49. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  50. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  51. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  52. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  53. data/spec/dummy/app/jobs/application_job.rb +0 -7
  54. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  55. data/spec/dummy/app/models/application_record.rb +0 -3
  56. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  57. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  58. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  59. data/spec/dummy/bin/rails +0 -4
  60. data/spec/dummy/bin/rake +0 -4
  61. data/spec/dummy/bin/setup +0 -33
  62. data/spec/dummy/config/application.rb +0 -53
  63. data/spec/dummy/config/boot.rb +0 -6
  64. data/spec/dummy/config/cable.yml +0 -10
  65. data/spec/dummy/config/credentials.yml.enc +0 -1
  66. data/spec/dummy/config/database.yml +0 -12
  67. data/spec/dummy/config/environment.rb +0 -5
  68. data/spec/dummy/config/environments/development.rb +0 -76
  69. data/spec/dummy/config/environments/production.rb +0 -120
  70. data/spec/dummy/config/environments/test.rb +0 -36
  71. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  72. data/spec/dummy/config/initializers/assets.rb +0 -12
  73. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
  74. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  75. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  76. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
  77. data/spec/dummy/config/initializers/inflections.rb +0 -16
  78. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  79. data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
  80. data/spec/dummy/config/initializers/spree.rb +0 -74
  81. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  82. data/spec/dummy/config/locales/en.yml +0 -33
  83. data/spec/dummy/config/master.key +0 -1
  84. data/spec/dummy/config/routes.rb +0 -9
  85. data/spec/dummy/config/storage.yml +0 -34
  86. data/spec/dummy/config.ru +0 -6
  87. data/spec/dummy/db/migrate/20210218213814_create_active_storage_tables.active_storage.rb +0 -36
  88. data/spec/dummy/db/migrate/20210218213818_create_action_mailbox_tables.action_mailbox.rb +0 -14
  89. data/spec/dummy/db/migrate/20210218213819_create_action_text_tables.action_text.rb +0 -14
  90. data/spec/dummy/db/migrate/20210218213820_solidus_one_four.spree.rb +0 -1103
  91. data/spec/dummy/db/migrate/20210218213821_create_spree_wallet_payment_sources.spree.rb +0 -28
  92. data/spec/dummy/db/migrate/20210218213822_migrate_credit_cards_to_wallet_payment_sources.spree.rb +0 -30
  93. data/spec/dummy/db/migrate/20210218213823_remove_is_default_from_prices.spree.rb +0 -8
  94. data/spec/dummy/db/migrate/20210218213824_remove_currency_from_line_items.spree.rb +0 -8
  95. data/spec/dummy/db/migrate/20210218213825_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +0 -31
  96. data/spec/dummy/db/migrate/20210218213826_create_spree_promotion_code_batch.spree.rb +0 -39
  97. data/spec/dummy/db/migrate/20210218213827_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +0 -23
  98. data/spec/dummy/db/migrate/20210218213828_add_index_to_spree_payments_number.spree.rb +0 -8
  99. data/spec/dummy/db/migrate/20210218213829_remove_spree_store_credits_column.spree.rb +0 -8
  100. data/spec/dummy/db/migrate/20210218213830_add_lft_and_rgt_indexes_to_taxons.spree.rb +0 -9
  101. data/spec/dummy/db/migrate/20210218213831_remove_order_id_from_inventory_units.spree.rb +0 -31
  102. data/spec/dummy/db/migrate/20210218213832_transform_tax_rate_category_relation.spree.rb +0 -51
  103. data/spec/dummy/db/migrate/20210218213833_add_roles_unique_constraints.spree.rb +0 -9
  104. data/spec/dummy/db/migrate/20210218213834_add_time_range_to_tax_rate.spree.rb +0 -9
  105. data/spec/dummy/db/migrate/20210218213835_rename_bogus_gateways.spree.rb +0 -19
  106. data/spec/dummy/db/migrate/20210218213836_remove_default_tax_from_spree_zones.spree.rb +0 -8
  107. data/spec/dummy/db/migrate/20210218213837_create_promotion_rule_stores.spree.rb +0 -13
  108. data/spec/dummy/db/migrate/20210218213838_create_store_shipping_methods.spree.rb +0 -13
  109. data/spec/dummy/db/migrate/20210218213839_add_available_locales_to_stores.spree.rb +0 -10
  110. data/spec/dummy/db/migrate/20210218213840_add_amount_remaining_to_store_credit_events.spree.rb +0 -62
  111. data/spec/dummy/db/migrate/20210218213841_add_join_characters_to_promotion_code_batch.spree.rb +0 -12
  112. data/spec/dummy/db/migrate/20210218213842_add_apply_to_all_to_variant_property_rule.spree.rb +0 -13
  113. data/spec/dummy/db/migrate/20210218213843_create_spree_store_credit_reasons_table.spree.rb +0 -56
  114. data/spec/dummy/db/migrate/20210218213844_remove_code_from_spree_promotions.spree.rb +0 -43
  115. data/spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb +0 -20
  116. data/spec/dummy/db/migrate/20210218213846_add_default_billng_flag_to_user_addresses.spree.rb +0 -7
  117. data/spec/dummy/db/migrate/20210218213847_add_bcc_email_to_spree_stores.spree.rb +0 -8
  118. data/spec/dummy/db/migrate/20210218213848_add_discontinue_on_to_spree_products.spree.rb +0 -8
  119. data/spec/dummy/db/migrate/20210218213849_add_name_to_spree_addresses.spree.rb +0 -14
  120. data/spec/dummy/db/migrate/20210218213850_add_api_key_to_spree_users.spree_api.rb +0 -10
  121. data/spec/dummy/db/migrate/20210218213851_resize_api_key_field.spree_api.rb +0 -10
  122. data/spec/dummy/db/migrate/20210218213852_rename_api_key_to_spree_api_key.spree_api.rb +0 -10
  123. data/spec/dummy/db/migrate/20210218213853_add_index_to_user_spree_api_key.spree_api.rb +0 -10
  124. data/spec/dummy/db/schema.rb +0 -1215
  125. data/spec/dummy/db/seeds.rb +0 -10
  126. data/spec/dummy/db/solidus_test.sqlite3 +0 -0
  127. data/spec/dummy/log/test.log +0 -1198
  128. data/spec/dummy/public/404.html +0 -67
  129. data/spec/dummy/public/422.html +0 -67
  130. data/spec/dummy/public/500.html +0 -66
  131. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  132. data/spec/dummy/public/apple-touch-icon.png +0 -0
  133. data/spec/dummy/public/favicon.ico +0 -0
  134. data/spec/dummy/tmp/development_secret.txt +0 -1
  135. data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +0 -10
  136. data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +0 -10
  137. data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +0 -9
  138. data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +0 -9
  139. data/spec/examples.txt +0 -4
  140. data/spec/solidus_i18n_spec.rb +0 -67
  141. data/spec/spec_helper.rb +0 -33
@@ -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
@@ -1,11 +0,0 @@
1
- # Define an application-wide HTTP permissions policy. For further
2
- # information see https://developers.google.com/web/updates/2018/06/feature-policy
3
- #
4
- # Rails.application.config.permissions_policy do |f|
5
- # f.camera :none
6
- # f.gyroscope :none
7
- # f.microphone :none
8
- # f.usb :none
9
- # f.fullscreen :self
10
- # f.payment :self, "https://secure.example.com"
11
- # end
@@ -1,74 +0,0 @@
1
- # Configure Solidus Preferences
2
- # See http://docs.solidus.io/Spree/AppConfiguration.html for details
3
-
4
- Spree.config do |config|
5
- # Core:
6
-
7
- # Default currency for new sites
8
- config.currency = "USD"
9
-
10
- # from address for transactional emails
11
- config.mails_from = "store@example.com"
12
-
13
- # Uncomment to stop tracking inventory levels in the application
14
- # config.track_inventory_levels = false
15
-
16
- # When set, product caches are only invalidated when they fall below or rise
17
- # above the inventory_cache_threshold that is set. Default is to invalidate cache on
18
- # any inventory changes.
19
- # config.inventory_cache_threshold = 3
20
-
21
- # Configure adapter for attachments on products and taxons (use ActiveStorageAttachment or PaperclipAttachment)
22
- config.image_attachment_module = 'Spree::Image::ActiveStorageAttachment'
23
- config.taxon_attachment_module = 'Spree::Taxon::ActiveStorageAttachment'
24
-
25
- # Defaults
26
- # Permission Sets:
27
-
28
- # Uncomment and customize the following line to add custom permission sets
29
- # to a custom users role:
30
- # config.roles.assign_permissions :role_name, ['Spree::PermissionSets::CustomPermissionSet']
31
-
32
-
33
- # Frontend:
34
-
35
- # Custom logo for the frontend
36
- # config.logo = "logo/solidus.svg"
37
-
38
- # Template to use when rendering layout
39
- # config.layout = "spree/layouts/spree_application"
40
-
41
-
42
- # Admin:
43
-
44
- # Custom logo for the admin
45
- # config.admin_interface_logo = "logo/solidus.svg"
46
-
47
- # Gateway credentials can be configured statically here and referenced from
48
- # the admin. They can also be fully configured from the admin.
49
- #
50
- # Please note that you need to use the solidus_stripe gem to have
51
- # Stripe working: https://github.com/solidusio-contrib/solidus_stripe
52
- #
53
- # config.static_model_preferences.add(
54
- # Spree::PaymentMethod::StripeCreditCard,
55
- # 'stripe_env_credentials',
56
- # secret_key: ENV['STRIPE_SECRET_KEY'],
57
- # publishable_key: ENV['STRIPE_PUBLISHABLE_KEY'],
58
- # server: Rails.env.production? ? 'production' : 'test',
59
- # test_mode: !Rails.env.production?
60
- # )
61
- end
62
-
63
-
64
-
65
-
66
- Spree.user_class = "Spree::LegacyUser"
67
-
68
- # Rules for avoiding to store the current path into session for redirects
69
- # When at least one rule is matched, the request path will not be stored
70
- # in session.
71
- # You can add your custom rules by uncommenting this line and changing
72
- # the class name:
73
- #
74
- # Spree::UserLastUrlStorer.rules << 'Spree::UserLastUrlStorer::Rules::AuthenticationRule'
@@ -1,14 +0,0 @@
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
@@ -1,33 +0,0 @@
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"
@@ -1 +0,0 @@
1
- 46ca322ab98b8964c1ecf90774512435
@@ -1,9 +0,0 @@
1
- Rails.application.routes.draw do
2
- # This line mounts Solidus's routes at the root of your application.
3
- # This means, any requests to URLs such as /products, will go to Spree::ProductsController.
4
- # If you would like to change where this engine is mounted, simply change the :at option to something different.
5
- #
6
- # We ask that you don't use the :as option here, as Solidus relies on it being the default of "spree"
7
- mount Spree::Core::Engine, at: '/'
8
-
9
- end
@@ -1,34 +0,0 @@
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 ]
data/spec/dummy/config.ru DELETED
@@ -1,6 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative "config/environment"
4
-
5
- run Rails.application
6
- Rails.application.load_server
@@ -1,36 +0,0 @@
1
- # This migration comes from active_storage (originally 20170806125915)
2
- class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
3
- def change
4
- create_table :active_storage_blobs do |t|
5
- t.string :key, null: false
6
- t.string :filename, null: false
7
- t.string :content_type
8
- t.text :metadata
9
- t.string :service_name, null: false
10
- t.bigint :byte_size, null: false
11
- t.string :checksum, null: false
12
- t.datetime :created_at, null: false
13
-
14
- t.index [ :key ], unique: true
15
- end
16
-
17
- create_table :active_storage_attachments do |t|
18
- t.string :name, null: false
19
- t.references :record, null: false, polymorphic: true, index: false
20
- t.references :blob, null: false
21
-
22
- t.datetime :created_at, null: false
23
-
24
- t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
25
- t.foreign_key :active_storage_blobs, column: :blob_id
26
- end
27
-
28
- create_table :active_storage_variant_records do |t|
29
- t.belongs_to :blob, null: false, index: false
30
- t.string :variation_digest, null: false
31
-
32
- t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
33
- t.foreign_key :active_storage_blobs, column: :blob_id
34
- end
35
- end
36
- end
@@ -1,14 +0,0 @@
1
- # This migration comes from action_mailbox (originally 20180917164000)
2
- class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
3
- def change
4
- create_table :action_mailbox_inbound_emails do |t|
5
- t.integer :status, default: 0, null: false
6
- t.string :message_id, null: false
7
- t.string :message_checksum, null: false
8
-
9
- t.timestamps
10
-
11
- t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
12
- end
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- # This migration comes from action_text (originally 20180528164100)
2
- class CreateActionTextTables < ActiveRecord::Migration[6.0]
3
- def change
4
- create_table :action_text_rich_texts do |t|
5
- t.string :name, null: false
6
- t.text :body, size: :long
7
- t.references :record, null: false, polymorphic: true, index: false
8
-
9
- t.timestamps
10
-
11
- t.index [ :record_type, :record_id, :name ], name: "index_action_text_rich_texts_uniqueness", unique: true
12
- end
13
- end
14
- end