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.
- checksums.yaml +4 -4
- data/README.md +55 -9
- data/Rakefile +21 -10
- data/bin/rails +9 -11
- data/config/locales/da.yml +1 -1
- data/config/locales/de.yml +1 -1
- data/config/locales/es-CL.yml +1 -1
- data/config/locales/es-MX.yml +3 -3
- data/config/locales/es.yml +3 -3
- data/config/locales/fa.yml +1 -1
- data/config/locales/fr.yml +4 -4
- data/config/locales/id.yml +1 -1
- data/config/locales/it.yml +1 -1
- data/config/locales/ja.yml +2 -2
- data/config/locales/nb.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/config/locales/pl.yml +1 -1
- data/config/locales/pt-BR.yml +426 -145
- data/config/locales/ru.yml +1 -1
- data/config/locales/tr.yml +1 -1
- data/i18n-tasks.yml +22 -0
- data/lib/solidus_i18n/engine.rb +2 -12
- data/lib/solidus_i18n.rb +1 -5
- data/solidus_i18n.gemspec +30 -34
- metadata +18 -245
- data/.circleci/config.yml +0 -61
- data/.gem_release.yml +0 -5
- data/.github/stale.yml +0 -1
- data/.gitignore +0 -16
- data/.hound.yml +0 -25
- data/.rspec +0 -2
- data/.rubocop.yml +0 -4
- data/.rubocop_todo.yml +0 -18
- data/CONTRIBUTING.md +0 -70
- data/Gemfile +0 -37
- data/LICENSE +0 -26
- data/bin/console +0 -17
- data/bin/rake +0 -7
- data/bin/setup +0 -8
- data/config/routes.rb +0 -4
- data/lib/generators/solidus_i18n/install/install_generator.rb +0 -24
- data/lib/solidus_i18n/factories.rb +0 -4
- data/lib/solidus_i18n/version.rb +0 -5
- data/lib/tasks/solidus_i18n/upgrade.rake +0 -45
- data/spec/dummy/README.md +0 -24
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/jobs/application_job.rb +0 -7
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/application_record.rb +0 -3
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -33
- data/spec/dummy/config/application.rb +0 -53
- data/spec/dummy/config/boot.rb +0 -6
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/credentials.yml.enc +0 -1
- data/spec/dummy/config/database.yml +0 -12
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -76
- data/spec/dummy/config/environments/production.rb +0 -120
- data/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/dummy/config/initializers/assets.rb +0 -12
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -6
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/permissions_policy.rb +0 -11
- data/spec/dummy/config/initializers/spree.rb +0 -74
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/master.key +0 -1
- data/spec/dummy/config/routes.rb +0 -9
- data/spec/dummy/config/storage.yml +0 -34
- data/spec/dummy/config.ru +0 -6
- data/spec/dummy/db/migrate/20210218213814_create_active_storage_tables.active_storage.rb +0 -36
- data/spec/dummy/db/migrate/20210218213818_create_action_mailbox_tables.action_mailbox.rb +0 -14
- data/spec/dummy/db/migrate/20210218213819_create_action_text_tables.action_text.rb +0 -14
- data/spec/dummy/db/migrate/20210218213820_solidus_one_four.spree.rb +0 -1103
- data/spec/dummy/db/migrate/20210218213821_create_spree_wallet_payment_sources.spree.rb +0 -28
- data/spec/dummy/db/migrate/20210218213822_migrate_credit_cards_to_wallet_payment_sources.spree.rb +0 -30
- data/spec/dummy/db/migrate/20210218213823_remove_is_default_from_prices.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213824_remove_currency_from_line_items.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213825_add_available_to_columns_and_remove_display_on_from_payment_methods.spree.rb +0 -31
- data/spec/dummy/db/migrate/20210218213826_create_spree_promotion_code_batch.spree.rb +0 -39
- data/spec/dummy/db/migrate/20210218213827_add_available_to_users_and_remove_display_on_from_shipping_methods.spree.rb +0 -23
- data/spec/dummy/db/migrate/20210218213828_add_index_to_spree_payments_number.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213829_remove_spree_store_credits_column.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213830_add_lft_and_rgt_indexes_to_taxons.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213831_remove_order_id_from_inventory_units.spree.rb +0 -31
- data/spec/dummy/db/migrate/20210218213832_transform_tax_rate_category_relation.spree.rb +0 -51
- data/spec/dummy/db/migrate/20210218213833_add_roles_unique_constraints.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213834_add_time_range_to_tax_rate.spree.rb +0 -9
- data/spec/dummy/db/migrate/20210218213835_rename_bogus_gateways.spree.rb +0 -19
- data/spec/dummy/db/migrate/20210218213836_remove_default_tax_from_spree_zones.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213837_create_promotion_rule_stores.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213838_create_store_shipping_methods.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213839_add_available_locales_to_stores.spree.rb +0 -10
- data/spec/dummy/db/migrate/20210218213840_add_amount_remaining_to_store_credit_events.spree.rb +0 -62
- data/spec/dummy/db/migrate/20210218213841_add_join_characters_to_promotion_code_batch.spree.rb +0 -12
- data/spec/dummy/db/migrate/20210218213842_add_apply_to_all_to_variant_property_rule.spree.rb +0 -13
- data/spec/dummy/db/migrate/20210218213843_create_spree_store_credit_reasons_table.spree.rb +0 -56
- data/spec/dummy/db/migrate/20210218213844_remove_code_from_spree_promotions.spree.rb +0 -43
- data/spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb +0 -20
- data/spec/dummy/db/migrate/20210218213846_add_default_billng_flag_to_user_addresses.spree.rb +0 -7
- data/spec/dummy/db/migrate/20210218213847_add_bcc_email_to_spree_stores.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213848_add_discontinue_on_to_spree_products.spree.rb +0 -8
- data/spec/dummy/db/migrate/20210218213849_add_name_to_spree_addresses.spree.rb +0 -14
- data/spec/dummy/db/migrate/20210218213850_add_api_key_to_spree_users.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213851_resize_api_key_field.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213852_rename_api_key_to_spree_api_key.spree_api.rb +0 -10
- data/spec/dummy/db/migrate/20210218213853_add_index_to_user_spree_api_key.spree_api.rb +0 -10
- data/spec/dummy/db/schema.rb +0 -1215
- data/spec/dummy/db/seeds.rb +0 -10
- data/spec/dummy/db/solidus_test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -1198
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +0 -1
- data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +0 -10
- data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +0 -10
- data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +0 -9
- data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +0 -9
- data/spec/examples.txt +0 -4
- data/spec/solidus_i18n_spec.rb +0 -67
- data/spec/spec_helper.rb +0 -33
data/CONTRIBUTING.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
## Filing an issue
|
|
2
|
-
|
|
3
|
-
When filing an issue on the Solidus project, please provide these details:
|
|
4
|
-
|
|
5
|
-
* A comprehensive list of steps to reproduce the issue.
|
|
6
|
-
* What you're *expecting* to happen compared with what's *actually* happening.
|
|
7
|
-
* Your application's complete `Gemfile.lock`, and `Gemfile.lock` as text in a [Gist](https://gist.github.com) (*not as an image*)
|
|
8
|
-
* Any relevant stack traces ("Full trace" preferred)
|
|
9
|
-
|
|
10
|
-
In 99% of cases, this information is enough to determine the cause and solution
|
|
11
|
-
to the problem that is being described.
|
|
12
|
-
|
|
13
|
-
Please remember to format code using triple backticks (\`) so that it is neatly
|
|
14
|
-
formatted when the issue is posted.
|
|
15
|
-
|
|
16
|
-
Any issue that is open for 14 days without actionable information or activity
|
|
17
|
-
will be marked as "stalled" and then closed. Stalled issues can be re-opened if
|
|
18
|
-
the information requested is provided.
|
|
19
|
-
|
|
20
|
-
## Pull requests
|
|
21
|
-
|
|
22
|
-
We gladly accept pull requests to add documentation, fix bugs and, in some circumstances,
|
|
23
|
-
add new features to Solidus.
|
|
24
|
-
|
|
25
|
-
Here's a quick guide:
|
|
26
|
-
|
|
27
|
-
1. Fork the repo.
|
|
28
|
-
|
|
29
|
-
2. Run the tests. We only take pull requests with passing tests, and it's great
|
|
30
|
-
to know that you have a clean slate:
|
|
31
|
-
|
|
32
|
-
$ bash build.sh
|
|
33
|
-
|
|
34
|
-
3. Create new branch then make changes and add tests for your changes. Only
|
|
35
|
-
refactoring and documentation changes require no new tests. If you are adding
|
|
36
|
-
functionality or fixing a bug, we need tests!
|
|
37
|
-
|
|
38
|
-
4. Push to your fork and submit a pull request. If the changes will apply cleanly
|
|
39
|
-
to the latest stable branches and master branch, you will only need to submit one
|
|
40
|
-
pull request.
|
|
41
|
-
|
|
42
|
-
5. If a PR does not apply cleanly to one of its targeted branches, then a separate
|
|
43
|
-
PR should be created that does. For instance, if a PR applied to master & 2-1-stable but not 2-0-stable, then there should be one PR for master & 2-1-stable and another, separate PR for 2-0-stable.
|
|
44
|
-
|
|
45
|
-
At this point you're waiting on us. We like to at least comment on, if not
|
|
46
|
-
accept, pull requests within three business days (and, typically, one business
|
|
47
|
-
day). We may suggest some changes or improvements or alternatives.
|
|
48
|
-
|
|
49
|
-
Some things that will increase the chance that your pull request is accepted,
|
|
50
|
-
taken straight from the Ruby on Rails guide:
|
|
51
|
-
|
|
52
|
-
* Use Rails idioms and helpers
|
|
53
|
-
* Include tests that fail without your code, and pass with it
|
|
54
|
-
* Update the documentation, the surrounding one, examples elsewhere, guides,
|
|
55
|
-
whatever is affected by your contribution
|
|
56
|
-
|
|
57
|
-
Syntax:
|
|
58
|
-
|
|
59
|
-
* Two spaces, no tabs.
|
|
60
|
-
* No trailing whitespace. Blank lines should not have any space.
|
|
61
|
-
* Prefer &&/|| over and/or.
|
|
62
|
-
* `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
|
|
63
|
-
* `a = b` and not `a=b`.
|
|
64
|
-
* `a_method { |block| ... }` and not `a_method { | block | ... }`
|
|
65
|
-
* Follow the conventions you see used in the source already.
|
|
66
|
-
* -> symbol over lambda
|
|
67
|
-
* Ruby 1.9 hash syntax `{ key: value }` over Ruby 1.8 hash syntax `{ :key => value }`
|
|
68
|
-
* Alphabetize the class methods to keep them organized
|
|
69
|
-
|
|
70
|
-
And in case we didn't emphasize it enough: we love tests!
|
data/Gemfile
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source 'https://rubygems.org'
|
|
4
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
|
-
|
|
6
|
-
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
|
|
7
|
-
solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
|
|
8
|
-
%w[solidusio/solidus solidusio/solidus_frontend]
|
|
9
|
-
else
|
|
10
|
-
%w[solidusio/solidus] * 2
|
|
11
|
-
end
|
|
12
|
-
gem 'solidus', github: solidus_git, branch: branch
|
|
13
|
-
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
|
|
14
|
-
|
|
15
|
-
# Needed to help Bundler figure out how to resolve dependencies,
|
|
16
|
-
# otherwise it takes forever to resolve them.
|
|
17
|
-
# See https://github.com/bundler/bundler/issues/6677
|
|
18
|
-
gem 'rails', '>0.a'
|
|
19
|
-
|
|
20
|
-
case ENV['DB']
|
|
21
|
-
when 'mysql'
|
|
22
|
-
gem 'mysql2'
|
|
23
|
-
when 'postgresql'
|
|
24
|
-
gem 'pg'
|
|
25
|
-
else
|
|
26
|
-
gem 'sqlite3'
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
group :development, :test do
|
|
30
|
-
gem 'i18n-tasks', '~> 0.9' if branch == 'master'
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
gemspec
|
|
34
|
-
|
|
35
|
-
# Use a local Gemfile to include development dependencies that might not be
|
|
36
|
-
# relevant for the project or for other contributors, e.g.: `gem 'pry-debug'`.
|
|
37
|
-
eval_gemfile 'Gemfile-local' if File.exist? 'Gemfile-local'
|
data/LICENSE
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2011-2015 Spree Commerce Inc. and other contributors
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
-
are permitted provided that the following conditions are met:
|
|
6
|
-
|
|
7
|
-
* Redistributions of source code must retain the above copyright notice,
|
|
8
|
-
this list of conditions and the following disclaimer.
|
|
9
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
-
this list of conditions and the following disclaimer in the documentation
|
|
11
|
-
and/or other materials provided with the distribution.
|
|
12
|
-
* Neither the name Solidus nor the names of its contributors may be used to
|
|
13
|
-
endorse or promote products derived from this software without specific
|
|
14
|
-
prior written permission.
|
|
15
|
-
|
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
20
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
21
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
22
|
-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
23
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
24
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
25
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
26
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/bin/console
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# frozen_string_literal: true
|
|
4
|
-
|
|
5
|
-
require "bundler/setup"
|
|
6
|
-
require "solidus_i18n"
|
|
7
|
-
|
|
8
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
9
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
10
|
-
$LOAD_PATH.unshift(*Dir["#{__dir__}/../app/*"])
|
|
11
|
-
|
|
12
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
13
|
-
# require "pry"
|
|
14
|
-
# Pry.start
|
|
15
|
-
|
|
16
|
-
require "irb"
|
|
17
|
-
IRB.start(__FILE__)
|
data/bin/rake
DELETED
data/bin/setup
DELETED
data/config/routes.rb
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module SolidusI18n
|
|
4
|
-
module Generators
|
|
5
|
-
class InstallGenerator < Rails::Generators::Base
|
|
6
|
-
class_option :auto_run_migrations, type: :boolean, default: false
|
|
7
|
-
|
|
8
|
-
def add_migrations
|
|
9
|
-
run 'bundle exec rake railties:install:migrations FROM=solidus_i18n'
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
def run_migrations
|
|
13
|
-
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(
|
|
14
|
-
ask('Would you like to run the migrations now? [Y/n]')
|
|
15
|
-
)
|
|
16
|
-
if run_migrations
|
|
17
|
-
run 'bundle exec rake db:migrate'
|
|
18
|
-
else
|
|
19
|
-
puts 'Skipping rake db:migrate, don\'t forget to run it!' # rubocop:disable Rails/Output
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
data/lib/solidus_i18n/version.rb
DELETED
|
@@ -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,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,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,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 +0,0 @@
|
|
|
1
|
-
<%= yield %>
|
data/spec/dummy/bin/rails
DELETED
data/spec/dummy/bin/rake
DELETED
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
|
-
|
data/spec/dummy/config/boot.rb
DELETED
data/spec/dummy/config/cable.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rBmhnsUwtHmPmZGmCg2j+1JOxa23erfjfCKnfLlFXdSmEI/jXY+OXKdFB4jxKK2EPy6UIkk0wfIW6V4TKV0LJYYXZQPEyknl98+FExy4CmnXaswqxZ4mM15HebrvfIYROzjxNslgLRihd6Q3HsZpnSwo8Sb3O7Dew1pYd+J8vvaTaQqIvAn0D0+rfygGZu+RKah62S5nQk1/9ZYTfjGHkHNQpOXSOC5Glf5vOxCpCIyF/YNqwhXM0vFIlkxdy1VZUgpA6qbK+d4yig3zMIzleWu+6F1k9Z5H6J1BiOsNXZXftG1HMfxSbAWIGPtLBRslwo34RnRe7AIrSsB6WSbLq/SVMuPJBHp19z/RIJNkkeNAFHm8U6MnbPXjW4Yw3+hNbjxlwOpFA85qt4sk6nBw6EI3Yj7WsGYSB/tN--g0sWvPIuCOAOxFqr--AtKGAvQfhzxdKkpS3KZ5Jw==
|
|
@@ -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
|