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 +4 -4
- data/app/models/spree/product.rb +6 -4
- data/lib/spree/core/version.rb +1 -1
- data/spec/fixtures/favicon.ico +0 -0
- data/spec/fixtures/files/example.json +4 -0
- data/spec/fixtures/files/icon_256x256.gif +0 -0
- data/spec/fixtures/files/icon_256x256.png +0 -0
- data/spec/fixtures/files/icon_512x512.png +0 -0
- data/spec/fixtures/files/img_256x128.png +0 -0
- data/spec/fixtures/files/products_import.csv +18 -0
- data/spec/fixtures/text-file.txt +1 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- metadata +27 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71ab78c8a32714ab778383e109efa7639a0ed868b971e05e80c1c31861976b73
|
|
4
|
+
data.tar.gz: a6bd61a06df7d9bc875e3ec60c247a72cbc0088be0827a88e69dd96adc4e2ce4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38858f3d772887de4a876568ed5af0f892a6b51e3c82e9268bd735747dc35825848c7665387373fe5dc951623e4df402fae65d3c9d3cb62c62d21684ddf1aa1f
|
|
7
|
+
data.tar.gz: fbdbfa593a3718e6c59bfa31a2c1ef7e6061b4c21fea192962bb402e4c18421d044503b832b3b0dbd17eee24616ce42523a5cecb4e0a862ea374f826787f3c22
|
data/app/models/spree/product.rb
CHANGED
|
@@ -204,10 +204,12 @@ module Spree
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
scope :by_best_selling, lambda { |order_direction = :desc|
|
|
207
|
-
left_joins(:
|
|
208
|
-
select(
|
|
209
|
-
|
|
210
|
-
|
|
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
|
}
|
data/lib/spree/core/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
1723
|
+
rubygems_version: 4.0.2
|
|
1701
1724
|
specification_version: 4
|
|
1702
1725
|
summary: The bare bones necessary for Spree
|
|
1703
1726
|
test_files: []
|