solidus_frontend 2.4.2 → 2.5.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_frontend might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/README.md +1 -5
- data/Rakefile +7 -7
- data/app/assets/config/solidus_frontend_manifest.js +0 -2
- data/app/assets/javascripts/spree/frontend.js +0 -1
- data/app/assets/javascripts/spree/frontend/cart.js +30 -0
- data/app/assets/javascripts/spree/frontend/checkout.js +24 -0
- data/app/assets/javascripts/spree/frontend/checkout/address.js +128 -0
- data/app/assets/javascripts/spree/frontend/checkout/coupon-code.js +40 -0
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +55 -0
- data/app/assets/javascripts/spree/frontend/product.js +81 -0
- data/app/assets/stylesheets/spree/frontend/_variables.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/screen.css.scss +2 -2
- data/app/controllers/spree/checkout_controller.rb +3 -3
- data/app/controllers/spree/locale_controller.rb +2 -2
- data/app/controllers/spree/orders_controller.rb +5 -6
- data/app/controllers/spree/products_controller.rb +0 -1
- data/app/controllers/spree/store_controller.rb +1 -1
- data/app/controllers/spree/taxons_controller.rb +0 -1
- data/app/views/spree/address/_form.html.erb +23 -21
- data/app/views/spree/checkout/_address.html.erb +5 -5
- data/app/views/spree/checkout/_confirm.html.erb +3 -3
- data/app/views/spree/checkout/_delivery.html.erb +18 -14
- data/app/views/spree/checkout/_payment.html.erb +6 -6
- data/app/views/spree/checkout/_summary.html.erb +5 -5
- data/app/views/spree/checkout/edit.html.erb +2 -6
- data/app/views/spree/checkout/payment/_gateway.html.erb +9 -9
- data/app/views/spree/content/cvv.html.erb +1 -1
- data/app/views/spree/orders/_adjustments.html.erb +4 -4
- data/app/views/spree/orders/_form.html.erb +6 -6
- data/app/views/spree/orders/_line_item.html.erb +4 -4
- data/app/views/spree/orders/edit.html.erb +9 -9
- data/app/views/spree/orders/show.html.erb +4 -4
- data/app/views/spree/payments/_payment.html.erb +1 -1
- data/app/views/spree/products/_cart_form.html.erb +7 -7
- data/app/views/spree/products/_image.html.erb +2 -2
- data/app/views/spree/products/_promotions.html.erb +1 -1
- data/app/views/spree/products/_properties.html.erb +1 -1
- data/app/views/spree/products/_taxons.html.erb +1 -1
- data/app/views/spree/products/index.html.erb +1 -1
- data/app/views/spree/products/show.html.erb +1 -1
- data/app/views/spree/shared/_address.html.erb +2 -2
- data/app/views/spree/shared/_filters.html.erb +2 -2
- data/app/views/spree/shared/_footer.html.erb +1 -1
- data/app/views/spree/shared/_image.html.erb +12 -0
- data/app/views/spree/shared/_login_bar_items.html.erb +1 -0
- data/app/views/spree/shared/_main_nav_bar.html.erb +2 -2
- data/app/views/spree/shared/_nav_bar.html.erb +1 -0
- data/app/views/spree/shared/_order_details.html.erb +20 -20
- data/app/views/spree/shared/_products.html.erb +3 -3
- data/app/views/spree/shared/_search.html.erb +3 -3
- data/app/views/spree/shared/_shipment_tracking.html.erb +1 -1
- data/app/views/spree/shared/_taxonomies.html.erb +2 -2
- data/lib/generators/solidus/views/override_generator.rb +1 -0
- data/lib/spree/frontend.rb +4 -2
- data/solidus_frontend.gemspec +1 -2
- data/spec/controllers/spree/checkout_controller_spec.rb +12 -12
- data/spec/controllers/spree/current_order_tracking_spec.rb +1 -1
- data/spec/controllers/spree/orders_controller_ability_spec.rb +6 -4
- data/spec/controllers/spree/orders_controller_spec.rb +4 -3
- data/spec/controllers/spree/orders_controller_transitions_spec.rb +1 -1
- data/spec/controllers/spree/products_controller_spec.rb +3 -2
- data/spec/features/caching/products_spec.rb +7 -7
- data/spec/features/cart_spec.rb +1 -1
- data/spec/features/checkout_spec.rb +10 -9
- data/spec/features/coupon_code_spec.rb +12 -13
- data/spec/features/locale_spec.rb +0 -38
- data/spec/features/order_spec.rb +1 -1
- data/spec/features/products_spec.rb +4 -4
- data/spec/features/promotion_code_invalidation_spec.rb +3 -3
- data/spec/features/quantity_promotions_spec.rb +5 -5
- data/spec/generators/solidus/views/override_generator_spec.rb +2 -1
- data/spec/spec_helper.rb +19 -41
- data/spec/support/shared_contexts/custom_products.rb +17 -17
- metadata +19 -88
- data/Gemfile +0 -7
- data/app/assets/javascripts/spree/frontend/cart.js.coffee +0 -15
- data/app/assets/javascripts/spree/frontend/checkout.js.coffee +0 -17
- data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +0 -91
- data/app/assets/javascripts/spree/frontend/checkout/coupon-code.js.coffee +0 -34
- data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +0 -42
- data/app/assets/javascripts/spree/frontend/product.js.coffee +0 -47
- data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +0 -12
- data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +0 -12
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +0 -22
- data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +0 -22
- data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +0 -47
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +0 -24
- data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ko.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +0 -35
- data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +0 -24
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +0 -24
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +0 -22
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +0 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +0 -24
- data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +0 -25
- data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +0 -26
- data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +0 -12
- data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +0 -9
- data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +0 -9
@@ -28,42 +28,4 @@ describe 'setting locale', type: :feature do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
31
|
-
|
32
|
-
shared_examples "localized error message" do
|
33
|
-
include_context 'checkout setup'
|
34
|
-
|
35
|
-
it 'shows translated jquery.validate error messages', js: true do
|
36
|
-
visit spree.root_path
|
37
|
-
click_link mug.name
|
38
|
-
click_button 'add-to-cart-button'
|
39
|
-
with_locale(locale) do
|
40
|
-
visit '/checkout/address'
|
41
|
-
find('.form-buttons input[type=submit]').click
|
42
|
-
|
43
|
-
%w(firstname address1 city).each do |attr|
|
44
|
-
expect(find(".field#b#{attr} label.error")).to have_text(message)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
context 'checkout form validation messages' do
|
51
|
-
context 'en' do
|
52
|
-
let(:locale) { 'en' }
|
53
|
-
let(:message) { 'This field is required.' }
|
54
|
-
it_behaves_like "localized error message"
|
55
|
-
end
|
56
|
-
|
57
|
-
context 'fr' do
|
58
|
-
let(:locale) { 'fr' }
|
59
|
-
let(:message) { 'Ce champ est obligatoire.' }
|
60
|
-
it_behaves_like "localized error message"
|
61
|
-
end
|
62
|
-
|
63
|
-
context 'de' do
|
64
|
-
let(:locale) { 'de' }
|
65
|
-
let(:message) { 'Dieses Feld ist ein Pflichtfeld.' }
|
66
|
-
it_behaves_like "localized error message"
|
67
|
-
end
|
68
|
-
end
|
69
31
|
end
|
data/spec/features/order_spec.rb
CHANGED
@@ -65,7 +65,7 @@ describe 'orders', type: :feature do
|
|
65
65
|
visit spree.order_path(order)
|
66
66
|
|
67
67
|
within '#order_summary' do
|
68
|
-
expect(page).to have_content("#{
|
68
|
+
expect(page).to have_content("#{I18n.t('spree.order')} #{order.number}")
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -165,7 +165,7 @@ describe "Visiting Products", type: :feature, inaccessible: true do
|
|
165
165
|
click_link product.name
|
166
166
|
within("#product-price") do
|
167
167
|
expect(page).to have_content variant.price
|
168
|
-
expect(page).not_to have_content
|
168
|
+
expect(page).not_to have_content I18n.t('spree.out_of_stock')
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
@@ -174,7 +174,7 @@ describe "Visiting Products", type: :feature, inaccessible: true do
|
|
174
174
|
|
175
175
|
click_link product.name
|
176
176
|
within("#product-price") do
|
177
|
-
expect(page).not_to have_content
|
177
|
+
expect(page).not_to have_content I18n.t('spree.out_of_stock')
|
178
178
|
end
|
179
179
|
end
|
180
180
|
end
|
@@ -253,7 +253,7 @@ describe "Visiting Products", type: :feature, inaccessible: true do
|
|
253
253
|
end
|
254
254
|
|
255
255
|
it "should be able to put a product without a description in the cart" do
|
256
|
-
product =
|
256
|
+
product = FactoryBot.create(:base_product, description: nil, name: 'Sample', price: '19.99')
|
257
257
|
visit spree.product_path(product)
|
258
258
|
expect(page).to have_content "This product has no description"
|
259
259
|
click_button 'add-to-cart-button'
|
@@ -261,7 +261,7 @@ describe "Visiting Products", type: :feature, inaccessible: true do
|
|
261
261
|
end
|
262
262
|
|
263
263
|
it "shouldn't be able to put a product without a current price in the cart" do
|
264
|
-
product =
|
264
|
+
product = FactoryBot.create(:base_product, description: nil, name: 'Sample', price: '19.99')
|
265
265
|
Spree::Config.currency = "CAN"
|
266
266
|
Spree::Config.show_products_without_price = true
|
267
267
|
visit spree.product_path(product)
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
RSpec.feature "Promotion Code Invalidation" do
|
4
4
|
given!(:promotion) do
|
5
|
-
|
5
|
+
FactoryBot.create(
|
6
6
|
:promotion_with_item_adjustment,
|
7
7
|
code: "PROMO",
|
8
8
|
per_code_usage_limit: 1,
|
@@ -12,8 +12,8 @@ RSpec.feature "Promotion Code Invalidation" do
|
|
12
12
|
|
13
13
|
background do
|
14
14
|
create(:store)
|
15
|
-
|
16
|
-
|
15
|
+
FactoryBot.create(:product, name: "DL-44")
|
16
|
+
FactoryBot.create(:product, name: "E-11")
|
17
17
|
|
18
18
|
visit spree.root_path
|
19
19
|
click_link "DL-44"
|
@@ -8,13 +8,13 @@ RSpec.feature "Quantity Promotions" do
|
|
8
8
|
)
|
9
9
|
end
|
10
10
|
|
11
|
-
given(:promotion) {
|
12
|
-
given(:calculator) {
|
11
|
+
given(:promotion) { FactoryBot.create(:promotion, code: "PROMO") }
|
12
|
+
given(:calculator) { FactoryBot.create(:calculator, preferred_amount: 5) }
|
13
13
|
|
14
14
|
background do
|
15
15
|
create(:store)
|
16
|
-
|
17
|
-
|
16
|
+
FactoryBot.create(:product, name: "DL-44")
|
17
|
+
FactoryBot.create(:product, name: "E-11")
|
18
18
|
promotion.actions << action
|
19
19
|
|
20
20
|
visit spree.root_path
|
@@ -95,7 +95,7 @@ RSpec.feature "Quantity Promotions" do
|
|
95
95
|
)
|
96
96
|
end
|
97
97
|
|
98
|
-
background {
|
98
|
+
background { FactoryBot.create(:product, name: "DC-15A") }
|
99
99
|
|
100
100
|
scenario "odd number of changes to quantities" do
|
101
101
|
fill_in "order_line_items_attributes_0_quantity", with: 3
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
|
2
|
+
require 'generator_spec'
|
3
|
+
require 'generators/solidus/views/override_generator'
|
3
4
|
|
4
5
|
RSpec.describe Solidus::Views::OverrideGenerator, type: :generator do
|
5
6
|
destination Rails.root.join('app', 'views', 'spree')
|
data/spec/spec_helper.rb
CHANGED
@@ -1,29 +1,22 @@
|
|
1
1
|
if ENV["COVERAGE"]
|
2
|
-
# Run Coverage report
|
3
2
|
require 'simplecov'
|
4
|
-
SimpleCov.start
|
5
|
-
add_group 'Controllers', 'app/controllers'
|
6
|
-
add_group 'Helpers', 'app/helpers'
|
7
|
-
add_group 'Mailers', 'app/mailers'
|
8
|
-
add_group 'Models', 'app/models'
|
9
|
-
add_group 'Views', 'app/views'
|
10
|
-
add_group 'Libraries', 'lib'
|
11
|
-
end
|
3
|
+
SimpleCov.start('rails')
|
12
4
|
end
|
13
5
|
|
14
6
|
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
15
7
|
# from the project root directory.
|
16
8
|
ENV["RAILS_ENV"] ||= 'test'
|
17
9
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
10
|
+
require 'solidus_frontend'
|
11
|
+
require 'spree/testing_support/dummy_app'
|
12
|
+
DummyApp.setup(
|
13
|
+
gem_root: File.expand_path('../../', __FILE__),
|
14
|
+
lib_name: 'solidus_frontend'
|
15
|
+
)
|
24
16
|
|
17
|
+
require 'rails-controller-testing'
|
25
18
|
require 'rspec/rails'
|
26
|
-
require '
|
19
|
+
require 'rspec-activemodel-mocks'
|
27
20
|
|
28
21
|
# Requires supporting files with custom matchers and macros, etc,
|
29
22
|
# in ./support/ and its subdirectories.
|
@@ -31,10 +24,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
31
24
|
|
32
25
|
require 'database_cleaner'
|
33
26
|
|
34
|
-
if ENV["CHECK_TRANSLATIONS"]
|
35
|
-
require "spree/testing_support/i18n"
|
36
|
-
end
|
37
|
-
|
38
27
|
require 'spree/testing_support/authorization_helpers'
|
39
28
|
require 'spree/testing_support/capybara_ext'
|
40
29
|
require 'spree/testing_support/factories'
|
@@ -47,16 +36,12 @@ require 'spree/testing_support/caching'
|
|
47
36
|
|
48
37
|
require 'capybara-screenshot/rspec'
|
49
38
|
Capybara.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
|
39
|
+
Capybara.default_max_wait_time = ENV['DEFAULT_MAX_WAIT_TIME'].to_f if ENV['DEFAULT_MAX_WAIT_TIME'].present?
|
50
40
|
|
51
|
-
|
52
|
-
|
53
|
-
Capybara.javascript_driver = :accessible
|
54
|
-
else
|
55
|
-
require 'capybara/poltergeist'
|
56
|
-
Capybara.javascript_driver = :poltergeist
|
57
|
-
end
|
41
|
+
require "selenium/webdriver"
|
42
|
+
Capybara.javascript_driver = (ENV['CAPYBARA_DRIVER'] || :selenium_chrome_headless).to_sym
|
58
43
|
|
59
|
-
|
44
|
+
ActiveJob::Base.queue_adapter = :test
|
60
45
|
|
61
46
|
RSpec.configure do |config|
|
62
47
|
config.color = true
|
@@ -73,7 +58,7 @@ RSpec.configure do |config|
|
|
73
58
|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
74
59
|
# examples within a transaction, comment the following line or assign false
|
75
60
|
# instead of true.
|
76
|
-
config.use_transactional_fixtures =
|
61
|
+
config.use_transactional_fixtures = true
|
77
62
|
|
78
63
|
if ENV['WEBDRIVER'] == 'accessible'
|
79
64
|
config.around(:each, inaccessible: true) do |example|
|
@@ -88,17 +73,12 @@ RSpec.configure do |config|
|
|
88
73
|
config.before(:each) do
|
89
74
|
Rails.cache.clear
|
90
75
|
reset_spree_preferences
|
91
|
-
if RSpec.current_example.metadata[:js]
|
92
|
-
page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
|
93
|
-
DatabaseCleaner.strategy = :truncation
|
94
|
-
else
|
95
|
-
DatabaseCleaner.strategy = :transaction
|
96
|
-
end
|
97
|
-
DatabaseCleaner.start
|
98
76
|
end
|
99
77
|
|
100
|
-
config.
|
101
|
-
|
78
|
+
config.before(:each, type: :feature) do
|
79
|
+
if page.driver.browser.respond_to?(:url_blacklist)
|
80
|
+
page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
|
81
|
+
end
|
102
82
|
end
|
103
83
|
|
104
84
|
config.after(:each, type: :feature) do |example|
|
@@ -109,15 +89,13 @@ RSpec.configure do |config|
|
|
109
89
|
end
|
110
90
|
end
|
111
91
|
|
112
|
-
config.include
|
92
|
+
config.include FactoryBot::Syntax::Methods
|
113
93
|
|
114
94
|
config.include Spree::TestingSupport::Preferences
|
115
95
|
config.include Spree::TestingSupport::UrlHelpers
|
116
96
|
config.include Spree::TestingSupport::ControllerRequests, type: :controller
|
117
97
|
config.include Spree::TestingSupport::Flash
|
118
98
|
|
119
|
-
config.fail_fast = ENV['FAIL_FAST'] || false
|
120
|
-
|
121
99
|
config.example_status_persistence_file_path = "./spec/examples.txt"
|
122
100
|
|
123
101
|
config.order = :random
|
@@ -1,26 +1,26 @@
|
|
1
1
|
shared_context "custom products" do
|
2
2
|
before(:each) do
|
3
3
|
create(:store)
|
4
|
-
taxonomy =
|
4
|
+
taxonomy = FactoryBot.create(:taxonomy, name: 'Categories')
|
5
5
|
root = taxonomy.root
|
6
|
-
clothing_taxon =
|
7
|
-
bags_taxon =
|
8
|
-
mugs_taxon =
|
6
|
+
clothing_taxon = FactoryBot.create(:taxon, name: 'Clothing', parent_id: root.id)
|
7
|
+
bags_taxon = FactoryBot.create(:taxon, name: 'Bags', parent_id: root.id)
|
8
|
+
mugs_taxon = FactoryBot.create(:taxon, name: 'Mugs', parent_id: root.id)
|
9
9
|
|
10
|
-
taxonomy =
|
10
|
+
taxonomy = FactoryBot.create(:taxonomy, name: 'Brands')
|
11
11
|
root = taxonomy.root
|
12
|
-
apache_taxon =
|
13
|
-
rails_taxon =
|
14
|
-
ruby_taxon =
|
12
|
+
apache_taxon = FactoryBot.create(:taxon, name: 'Apache', parent_id: root.id)
|
13
|
+
rails_taxon = FactoryBot.create(:taxon, name: 'Ruby on Rails', parent_id: root.id)
|
14
|
+
ruby_taxon = FactoryBot.create(:taxon, name: 'Ruby', parent_id: root.id)
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Ringer T-Shirt', price: '19.99', taxons: [rails_taxon, clothing_taxon])
|
17
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Mug', price: '15.99', taxons: [rails_taxon, mugs_taxon])
|
18
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Tote', price: '15.99', taxons: [rails_taxon, bags_taxon])
|
19
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Bag', price: '22.99', taxons: [rails_taxon, bags_taxon])
|
20
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Baseball Jersey', price: '19.99', taxons: [rails_taxon, clothing_taxon])
|
21
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Stein', price: '16.99', taxons: [rails_taxon, mugs_taxon])
|
22
|
+
FactoryBot.create(:custom_product, name: 'Ruby on Rails Jr. Spaghetti', price: '19.99', taxons: [rails_taxon, clothing_taxon])
|
23
|
+
FactoryBot.create(:custom_product, name: 'Ruby Baseball Jersey', price: '19.99', taxons: [ruby_taxon, clothing_taxon])
|
24
|
+
FactoryBot.create(:custom_product, name: 'Apache Baseball Jersey', price: '19.99', taxons: [apache_taxon, clothing_taxon])
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.0.beta1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.5.0.beta1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.5.0.beta1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.5.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: canonical-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: coffee-rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: font-awesome-rails
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,22 +118,16 @@ dependencies:
|
|
132
118
|
name: kaminari
|
133
119
|
requirement: !ruby/object:Gem::Requirement
|
134
120
|
requirements:
|
135
|
-
- - "
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0.17'
|
138
|
-
- - "<"
|
121
|
+
- - "~>"
|
139
122
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
123
|
+
version: '1.1'
|
141
124
|
type: :runtime
|
142
125
|
prerelease: false
|
143
126
|
version_requirements: !ruby/object:Gem::Requirement
|
144
127
|
requirements:
|
145
|
-
- - "
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: '0.17'
|
148
|
-
- - "<"
|
128
|
+
- - "~>"
|
149
129
|
- !ruby/object:Gem::Version
|
150
|
-
version: '
|
130
|
+
version: '1.1'
|
151
131
|
- !ruby/object:Gem::Dependency
|
152
132
|
name: capybara-accessible
|
153
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +148,6 @@ executables: []
|
|
168
148
|
extensions: []
|
169
149
|
extra_rdoc_files: []
|
170
150
|
files:
|
171
|
-
- Gemfile
|
172
151
|
- LICENSE
|
173
152
|
- README.md
|
174
153
|
- Rakefile
|
@@ -203,12 +182,12 @@ files:
|
|
203
182
|
- app/assets/images/spinner.gif
|
204
183
|
- app/assets/images/spree/frontend/cart.png
|
205
184
|
- app/assets/javascripts/spree/frontend.js
|
206
|
-
- app/assets/javascripts/spree/frontend/cart.js
|
207
|
-
- app/assets/javascripts/spree/frontend/checkout.js
|
208
|
-
- app/assets/javascripts/spree/frontend/checkout/address.js
|
209
|
-
- app/assets/javascripts/spree/frontend/checkout/coupon-code.js
|
210
|
-
- app/assets/javascripts/spree/frontend/checkout/payment.js
|
211
|
-
- app/assets/javascripts/spree/frontend/product.js
|
185
|
+
- app/assets/javascripts/spree/frontend/cart.js
|
186
|
+
- app/assets/javascripts/spree/frontend/checkout.js
|
187
|
+
- app/assets/javascripts/spree/frontend/checkout/address.js
|
188
|
+
- app/assets/javascripts/spree/frontend/checkout/coupon-code.js
|
189
|
+
- app/assets/javascripts/spree/frontend/checkout/payment.js
|
190
|
+
- app/assets/javascripts/spree/frontend/product.js
|
212
191
|
- app/assets/stylesheets/spree/frontend.css
|
213
192
|
- app/assets/stylesheets/spree/frontend/_skeleton.scss
|
214
193
|
- app/assets/stylesheets/spree/frontend/_variables.scss
|
@@ -258,7 +237,9 @@ files:
|
|
258
237
|
- app/views/spree/shared/_footer.html.erb
|
259
238
|
- app/views/spree/shared/_head.html.erb
|
260
239
|
- app/views/spree/shared/_header.html.erb
|
240
|
+
- app/views/spree/shared/_image.html.erb
|
261
241
|
- app/views/spree/shared/_link_to_cart.html.erb
|
242
|
+
- app/views/spree/shared/_login_bar_items.html.erb
|
262
243
|
- app/views/spree/shared/_main_nav_bar.html.erb
|
263
244
|
- app/views/spree/shared/_nav_bar.html.erb
|
264
245
|
- app/views/spree/shared/_order_details.html.erb
|
@@ -320,56 +301,6 @@ files:
|
|
320
301
|
- spec/support/shared_contexts/checkout_setup.rb
|
321
302
|
- spec/support/shared_contexts/custom_products.rb
|
322
303
|
- spec/views/spree/checkout/_summary_spec.rb
|
323
|
-
- vendor/assets/javascripts/jquery.validate/additional-methods.min.js
|
324
|
-
- vendor/assets/javascripts/jquery.validate/jquery.validate.min.js
|
325
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ar.js
|
326
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_bg.js
|
327
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ca.js
|
328
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_cs.js
|
329
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_da.js
|
330
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_de.js
|
331
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_el.js
|
332
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_es.js
|
333
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_et.js
|
334
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_eu.js
|
335
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_fa.js
|
336
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_fi.js
|
337
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_fr.js
|
338
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ge.js
|
339
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_he.js
|
340
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_hr.js
|
341
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_hu.js
|
342
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_it.js
|
343
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ja.js
|
344
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ka.js
|
345
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_kk.js
|
346
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ko.js
|
347
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_lt.js
|
348
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_lv.js
|
349
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ms.js
|
350
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_nl.js
|
351
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_no.js
|
352
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_pl.js
|
353
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js
|
354
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js
|
355
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ro.js
|
356
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_ru.js
|
357
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_se.js
|
358
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_si.js
|
359
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sk.js
|
360
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sl.js
|
361
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sr.js
|
362
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_sv.js
|
363
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_th.js
|
364
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_tr.js
|
365
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_tw.js
|
366
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_uk.js
|
367
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_vi.js
|
368
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_zh.js
|
369
|
-
- vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js
|
370
|
-
- vendor/assets/javascripts/jquery.validate/localization/methods_de.js
|
371
|
-
- vendor/assets/javascripts/jquery.validate/localization/methods_nl.js
|
372
|
-
- vendor/assets/javascripts/jquery.validate/localization/methods_pt.js
|
373
304
|
homepage: http://solidus.io/
|
374
305
|
licenses:
|
375
306
|
- BSD-3-Clause
|
@@ -391,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
322
|
requirements:
|
392
323
|
- none
|
393
324
|
rubyforge_project:
|
394
|
-
rubygems_version: 2.
|
325
|
+
rubygems_version: 2.7.3
|
395
326
|
signing_key:
|
396
327
|
specification_version: 4
|
397
328
|
summary: Cart and storefront for the Solidus e-commerce project.
|