spree_frontend 4.8.0 → 4.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caad5de0edbc610a11d2fcf5a66ccd2f7b72df02586c6ecbbcd44361c723a8d0
4
- data.tar.gz: 0a827e9e0b7c0b105d5f607053ddca0b32b121407307071f68339b3a96815601
3
+ metadata.gz: ce05bfbb44fcb0d5543315775d2d5536e5ca8b3745e2f392f6c4d79892752bf2
4
+ data.tar.gz: 6a444844409ca8930c3984d91f5aa677558626bc08f5698ddd0ef182b2934017
5
5
  SHA512:
6
- metadata.gz: 107a0e3580ffc8e63d16158fba7d886cedf4fd765cac03497281ab09ee141355cf75905f75b1824a8e1496f1ae8e657f9ea12c90973a31aa586d0fe3aa243b6f
7
- data.tar.gz: 4fa6f2841ebe6b61515542b98386f66d62f56bd8a124db6d5771143d7d33f9f554359276f6a9a3adf63f4eb6b89f2325850593607e87e3b9a08db53dcfc6e4e7
6
+ metadata.gz: a7045da9de868b465be48c4bf2de85612a6b517b3bcc8d22e0377d028732f1efad00ad678b02972f453ba066da2013490d05ff76ab9b0dfbfd6268d44ce896be
7
+ data.tar.gz: 38d70c36399ce66894afe2a63635165b6979cae77b53f4c9859a1a01f518a935554ee0991b9c88def5d452314603353e00169cd5729a3dcd5d3282346f584dbc
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
6
6
  actionmailer actionpack actionview activejob activemodel activerecord
7
7
  activestorage activesupport railties
8
8
  ].each do |rails_gem|
9
- gem rails_gem, ENV.fetch('RAILS_VERSION', '~> 7.1.0'), require: false
9
+ gem rails_gem, ENV.fetch('RAILS_VERSION', '~> 7.2.0'), require: false
10
10
  end
11
11
 
12
12
  platforms :jruby do
@@ -48,12 +48,12 @@ group :test, :development do
48
48
  gem 'rubocop', '~> 1.22.3', require: false # bumped
49
49
  gem 'rubocop-rspec', require: false
50
50
  gem 'pry-byebug'
51
- gem 'webdrivers'
51
+ gem 'selenium-webdriver', '>= 4.11'
52
52
  gem 'puma'
53
53
  gem 'ffaker'
54
54
  end
55
55
 
56
- spree_opts = { github: 'spree/spree', branch: ENV.fetch('SPREE_BRANCH', 'main') }
56
+ spree_opts = { github: 'spree/spree', branch: ENV.fetch('SPREE_BRANCH', '4-10-stable') }
57
57
  gem 'spree_core', spree_opts
58
58
  gem 'spree_api', spree_opts
59
59
 
data/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ # ⚠️ WARNING - maintenance mode
2
+
3
+ This gem supports only Spree 4. For the Spree 5 storefront, please go to the [spree/spree] repository (https://github.com/spree/spree/tree/main/storefront).
4
+
5
+ We will not be developing/merging new features for this gem. However, bug fixes and security patches are very welcome!
6
+
1
7
  # Spree Rails Frontend
2
8
 
3
9
  This is the Spree Storefront extracted from Spree < 4.3 which was upgraded to Turbo and Hotwire.
@@ -5,12 +11,6 @@ It is based on Bootstrap 4. It is battle tested and is used in production by man
5
11
 
6
12
  This storefront includes also Checkout and Cart functionality providing a complete shopping experience.
7
13
 
8
- ## Developed by
9
-
10
- <a href="https://getvendo.com?utm_source=spree_auth_github"><img src="https://cdn.getvendo.com/assets/vendo-logo-4bda02af8c99bc2ecc5a400120f0ebe4eafcd385e02e25f198a8c355ab75d1ff.png" height=50 alt="Vendo - Start your own multi-brand marketplace" /></a>
11
-
12
- <a href="http://sparksolutions.co?utm_source=github"><img src="https://sparksolutions.co/wp-content/themes/sparksolutions/images/logo.svg" height=50 alt="Spark Solutions - Ruby on Rails and Spree Commerce developers"></a>
13
-
14
14
  ## Installation
15
15
 
16
16
  Run
@@ -46,7 +46,7 @@
46
46
  Spree.routes.api_tokens = Spree.localizedPathFor('api_tokens')
47
47
  Spree.routes.ensure_cart = Spree.localizedPathFor('ensure_cart')
48
48
  Spree.routes.api_v2_storefront_cart_apply_coupon_code = Spree.localizedPathFor('api/v2/storefront/cart/apply_coupon_code')
49
- Spree.routes.api_v2_storefront_cart_remove_coupon_code = function(couponCode) { return Spree.localizedPathFor('api/v2/storefront/cart/remove_coupon_code/' + couponCode) }
49
+ Spree.routes.api_v2_storefront_cart_remove_coupon_code = function(couponCode) { return Spree.localizedPathFor('api/v2/storefront/cart/remove_coupon_code/' + encodeURIComponent(couponCode)) }
50
50
  Spree.routes.api_v2_storefront_destroy_credit_card = function(id) { return Spree.localizedPathFor('api/v2/storefront/account/credit_cards/' + id) }
51
51
  Spree.routes.product = function(id) { return Spree.localizedPathFor('products/' + id) }
52
52
  Spree.routes.product_related = function(id) { return Spree.localizedPathFor('products/' + id + '/related') }
@@ -16,7 +16,7 @@ module Spree
16
16
  end
17
17
 
18
18
  image_path ||= if logo_attachment&.attached? && logo_attachment&.variable?
19
- main_app.cdn_image_url(logo_attachment.variant(resize: '244x104>'))
19
+ main_app.cdn_image_url(logo_attachment.variant(resize_to_limit: [244, 104]))
20
20
  elsif logo_attachment&.attached? && logo_attachment&.image?
21
21
  main_app.cdn_image_url(logo_attachment)
22
22
  else
@@ -17,7 +17,7 @@
17
17
  <div class="d-table-cell text-right"
18
18
  data-hook='tax-total'
19
19
  data-currency='<%= Money::Currency.find(order.currency).symbol %>'
20
- data-non-shipment-tax='<%= adjustments.reject{ |adj| adj.adjustable_type== 'Spree::Shipment'}.sum(&:amount) %>'
20
+ data-non-shipment-tax='<%= Spree::Money.new(adjustments.reject{ |adj| adj.adjustable_type== 'Spree::Shipment'}.sum(&:amount), currency: order.currency) %>'
21
21
  thousands-separator='<%= tax_total.thousands_separator %>'
22
22
  decimal-mark='<%= tax_total.decimal_mark %>'
23
23
  precision='<%= Money::Currency.find(order.currency).exponent %>'>
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  module Frontend
3
- VERSION = '4.8.0'.freeze
3
+ VERSION = '4.8.1'.freeze
4
4
 
5
5
  def gem_version
6
6
  Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 4.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-05-27 00:00:00.000000000 Z
13
+ date: 2026-01-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: spree_api
@@ -649,9 +649,9 @@ licenses:
649
649
  - BSD-3-Clause
650
650
  metadata:
651
651
  bug_tracker_uri: https://github.com/spree/spree_rails_frontend/issues
652
- changelog_uri: https://github.com/spree/spree_rails_frontend/releases/tag/v4.8.0
652
+ changelog_uri: https://github.com/spree/spree_rails_frontend/releases/tag/v4.8.1
653
653
  documentation_uri: https://docs.spreecommerce.org/
654
- source_code_uri: https://github.com/spree/spree_rails_frontend/tree/v4.8.0
654
+ source_code_uri: https://github.com/spree/spree_rails_frontend/tree/v4.8.1
655
655
  post_install_message:
656
656
  rdoc_options: []
657
657
  require_paths: