spree_core 5.2.3 → 5.2.4

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: 92beba989ce9cb710594c81743585143d23519b30406146a6fd0c17d792ab4a3
4
- data.tar.gz: 7389b6c100d69785017e5924ef6d600cc3d266b0c022da4b35f002cfb54d7872
3
+ metadata.gz: 71ab78c8a32714ab778383e109efa7639a0ed868b971e05e80c1c31861976b73
4
+ data.tar.gz: a6bd61a06df7d9bc875e3ec60c247a72cbc0088be0827a88e69dd96adc4e2ce4
5
5
  SHA512:
6
- metadata.gz: 92d2afee02b65b1ebcd35092eea9d57af361881100d9d43402a9956b8bb10091a2b444b102634b1a4d278ea6f4e8ae10ca7107654f58841908c4732d21bf1b2b
7
- data.tar.gz: 4dc73e2e8654d3c0ee10bb6aa06d5507ef747b297cf5e2a96c78b38a6a5d3e8f36ec582531be5741cedd5a5402173342e8b7c9d47951cf816431e6be0916b67f
6
+ metadata.gz: 38858f3d772887de4a876568ed5af0f892a6b51e3c82e9268bd735747dc35825848c7665387373fe5dc951623e4df402fae65d3c9d3cb62c62d21684ddf1aa1f
7
+ data.tar.gz: fbdbfa593a3718e6c59bfa31a2c1ef7e6061b4c21fea192962bb402e4c18421d044503b832b3b0dbd17eee24616ce42523a5cecb4e0a862ea374f826787f3c22
@@ -204,10 +204,12 @@ module Spree
204
204
  }
205
205
 
206
206
  scope :by_best_selling, lambda { |order_direction = :desc|
207
- left_joins(:orders).
208
- select("#{Spree::Product.table_name}.*, COUNT(#{Spree::Order.table_name}.id) AS completed_orders_count, SUM(#{Spree::Order.table_name}.total) AS completed_orders_total").
209
- where(Spree::Order.table_name => { id: nil }).
210
- or(where.not(Spree::Order.table_name => { completed_at: nil })).
207
+ left_joins(variants_including_master: { line_items: :order }).
208
+ select(
209
+ "#{Spree::Product.table_name}.*",
210
+ "COUNT(DISTINCT CASE WHEN #{Spree::Order.table_name}.completed_at IS NOT NULL THEN #{Spree::Order.table_name}.id END) AS completed_orders_count",
211
+ "COALESCE(SUM(CASE WHEN #{Spree::Order.table_name}.completed_at IS NOT NULL THEN (#{Spree::LineItem.table_name}.price * #{Spree::LineItem.table_name}.quantity) END), 0) AS completed_orders_total"
212
+ ).
211
213
  group("#{Spree::Product.table_name}.id").
212
214
  order(completed_orders_count: order_direction, completed_orders_total: order_direction)
213
215
  }
@@ -1,5 +1,5 @@
1
1
  module Spree
2
- VERSION = '5.2.3'.freeze
2
+ VERSION = '5.2.4'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
Binary file
@@ -0,0 +1,4 @@
1
+ {
2
+ "id": 1,
3
+ "name": "Example"
4
+ }
Binary file
@@ -0,0 +1,18 @@
1
+ slug,sku,name,status,vendor_name,brand_name,description,meta_title,meta_description,meta_keywords,tags,labels,price,compare_at_price,currency,width,height,depth,dimensions_unit,weight,weight_unit,available_on,discontinue_on,track_inventory,inventory_count,inventory_backorderable,tax_category,digital,image1_src,image2_src,image3_src,option1_name,option1_value,option2_name,option2_value,option3_name,option3_value,category1,category2,category3,metafield.properties.fit,metafield.properties.manufacturer,metafield.properties.material,metafield.custom.brand,metafield.custom.material
2
+ denim-shirt,"",Denim Shirt,draft,,,Adipisci sapiente velit nihil ullam. Placeat cumque ipsa cupiditate velit magni sapiente mollitia dolorum. Veritatis esse illo eos perferendis. Perspiciatis vel iusto odio eveniet quam officia quidem. Fugiat a ipsum tempore optio accusantium autem in fugit.,,,,"","",0.0,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Default,false,,,,,,,,,,Categories -> Men -> Shirts,Categories -> Women,Categories -> Sportswear,Lose,Wannabe,90% Cotton 10% Elastan,,
3
+ denim-shirt,DENIM-SHIRT-XS-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Blue,Size,XS,,,,,
4
+ denim-shirt,DENIM-SHIRT-S-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Blue,Size,S,,,,,
5
+ denim-shirt,DENIM-SHIRT-M-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Blue,Size,M,,,,,
6
+ denim-shirt,DENIM-SHIRT-L-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Blue,Size,L,,,,,
7
+ denim-shirt,DENIM-SHIRT-XL-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Blue,Size,XL,,,,,
8
+ denim-shirt,DENIM-SHIRT-XS-LIGHT-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Light Blue,Size,XS,,,,,
9
+ denim-shirt,DENIM-SHIRT-S-LIGHT-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Light Blue,Size,S,,,,,
10
+ denim-shirt,DENIM-SHIRT-M-LIGHT-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Light Blue,Size,M,,,,,
11
+ denim-shirt,DENIM-SHIRT-L-LIGHT-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Light Blue,Size,L,,,,,
12
+ denim-shirt,DENIM-SHIRT-XL-LIGHT-BLUE,,,,,,,,,,,62.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:53,,true,100,true,Clothing,false,,,,Color,Light Blue,Size,XL,,,,,
13
+ checked-shirt,"",Checked Shirt,draft,,,Et ipsam repudiandae itaque tenetur laborum. Cupiditate nulla blanditiis quia tenetur doloremque possimus explicabo asperiores. Facere adipisci veniam aut nemo magnam.,,,,"","",0.0,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Default,false,,,,,,,,,,Categories -> Men -> Shirts,Categories -> Women,Categories -> Sportswear,Lose,Wannabe,10% Cotton 90% Elastan,,
14
+ checked-shirt,CHECKED-SHIRT-XS-RED,,,,,,,,,,,22.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Clothing,false,,,,Color,Red,Size,XS,,,,,
15
+ checked-shirt,CHECKED-SHIRT-S-RED,,,,,,,,,,,22.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Clothing,false,,,,Color,Red,Size,S,,,,,
16
+ checked-shirt,CHECKED-SHIRT-M-RED,,,,,,,,,,,22.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Clothing,false,,,,Color,Red,Size,M,,,,,
17
+ checked-shirt,CHECKED-SHIRT-L-RED,,,,,,,,,,,22.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Clothing,false,,,,Color,Red,Size,L,,,,,
18
+ checked-shirt,CHECKED-SHIRT-XL-RED,,,,,,,,,,,22.99,0.0,USD,,,,,0.0,lb,2025-10-09 14:35:54,,true,100,true,Clothing,false,,,,Color,Red,Size,XL,,,,,
@@ -0,0 +1 @@
1
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 5.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -273,6 +273,20 @@ dependencies:
273
273
  - - "~>"
274
274
  - !ruby/object:Gem::Version
275
275
  version: '1.1'
276
+ - !ruby/object:Gem::Dependency
277
+ name: ostruct
278
+ requirement: !ruby/object:Gem::Requirement
279
+ requirements:
280
+ - - ">="
281
+ - !ruby/object:Gem::Version
282
+ version: '0'
283
+ type: :runtime
284
+ prerelease: false
285
+ version_requirements: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: '0'
276
290
  - !ruby/object:Gem::Dependency
277
291
  name: paranoia
278
292
  requirement: !ruby/object:Gem::Requirement
@@ -1669,6 +1683,15 @@ files:
1669
1683
  - lib/tasks/core.rake
1670
1684
  - lib/tasks/dependencies.rake
1671
1685
  - lib/tasks/exchanges.rake
1686
+ - spec/fixtures/favicon.ico
1687
+ - spec/fixtures/files/example.json
1688
+ - spec/fixtures/files/icon_256x256.gif
1689
+ - spec/fixtures/files/icon_256x256.png
1690
+ - spec/fixtures/files/icon_512x512.png
1691
+ - spec/fixtures/files/img_256x128.png
1692
+ - spec/fixtures/files/products_import.csv
1693
+ - spec/fixtures/text-file.txt
1694
+ - spec/fixtures/thinking-cat.jpg
1672
1695
  - vendor/javascript/@rails--request.js.js
1673
1696
  - vendor/javascript/@stimulus-components--auto-submit.js
1674
1697
  - vendor/javascript/stimulus-reveal-controller.js
@@ -1680,9 +1703,9 @@ licenses:
1680
1703
  - BSD-3-Clause
1681
1704
  metadata:
1682
1705
  bug_tracker_uri: https://github.com/spree/spree/issues
1683
- changelog_uri: https://github.com/spree/spree/releases/tag/v5.2.3
1706
+ changelog_uri: https://github.com/spree/spree/releases/tag/v5.2.4
1684
1707
  documentation_uri: https://docs.spreecommerce.org/
1685
- source_code_uri: https://github.com/spree/spree/tree/v5.2.3
1708
+ source_code_uri: https://github.com/spree/spree/tree/v5.2.4
1686
1709
  rdoc_options: []
1687
1710
  require_paths:
1688
1711
  - lib
@@ -1697,7 +1720,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1697
1720
  - !ruby/object:Gem::Version
1698
1721
  version: 1.8.23
1699
1722
  requirements: []
1700
- rubygems_version: 3.6.9
1723
+ rubygems_version: 4.0.2
1701
1724
  specification_version: 4
1702
1725
  summary: The bare bones necessary for Spree
1703
1726
  test_files: []