solidus_frontend 4.7.1 → 4.7.2

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: da49525c3e668b87fc76984be34310965a79d679bab06402db33b90fc17138a1
4
- data.tar.gz: 53bc680ee88ef161bdff0505adf26924b3edd76b38f7a5ef87779b4b8294a875
3
+ metadata.gz: 348c97bdb9251924ed5fe2b94ad8616c90c49d1cd9cec73c118118b9cff2fe4b
4
+ data.tar.gz: 41004314091fca63003421486d0f9b68033c2a97a2c7b1e72f980d29b2ae1e66
5
5
  SHA512:
6
- metadata.gz: ac24e60ee3fd0afd2f9e469b6673896fd4e72bd4e83c271e87cae6f47f49e50b1e6f04008f2a0ddf025d821b405818fb50b86ffa5b4f3afc33b5ec1891d3d547
7
- data.tar.gz: f4d302c967075b6b0e54970152d8e37134747173945a215c0a15e88bd92b460235c6b358fa614043f0ce8c9d5c1b521143dcf071f4f1ca66359619f3052ad7d2
6
+ metadata.gz: 9f1a408bbe4ef44486e5ab718ce3c8fbc0660d16d8fd63c3c24d8522781db130f89e49735e126add51b14c2fa38e46e7688026081fecb72f5139553feef81cf1
7
+ data.tar.gz: 8ae4a919fd3089a61e99d67ea84b0307e70599f7f724b7ad02dbf8666e273ebd08ba44278f5af3e8b62683c9f77091f37904edbc2deb1d9bfa596b7311e8a409
data/Gemfile CHANGED
@@ -13,6 +13,9 @@ gem 'solidus', git: "https://github.com/solidusio/solidus.git", branch: branch
13
13
  rails_version = ENV.fetch('RAILS_VERSION', '7.2')
14
14
  gem 'rails', "~> #{rails_version}"
15
15
 
16
+ # json 3 is incompatible with Rails < 8.1.
17
+ gem 'json', '< 3', require: false
18
+
16
19
  # Temporarily locking sprockets to v3.x
17
20
  # see https://github.com/solidusio/solidus/issues/3374
18
21
  # and https://github.com/rails/sprockets-rails/issues/369
@@ -8,7 +8,11 @@ module Spree
8
8
  include TruncateHtmlHelper
9
9
 
10
10
  def truncated_product_description(product)
11
- truncate_html(raw(product.description))
11
+ if Spree::Config.show_raw_product_description
12
+ truncate_html(raw(product.description))
13
+ else
14
+ truncate_html(sanitize(product.description))
15
+ end
12
16
  end
13
17
 
14
18
  def order_just_completed?(order)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  module Frontend
5
- VERSION = "4.7.1"
5
+ VERSION = "4.7.2"
6
6
 
7
7
  def self.version
8
8
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.1
4
+ version: 4.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team