spree_sample 4.4.0 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/products.rb +2 -0
- data/db/samples/stock.rb +2 -2
- data/db/samples/variants.csv +3 -3
- data/db/samples/variants.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0400fd1e5f07ac578c6dc218aa871f47dd24c21cf7c20cccbf72171f4bd7ef16
|
4
|
+
data.tar.gz: d8bfa461932a28d798dd7f31407ace3ae27f8d8dd8a0a6e126017c6b28257068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f2bc6dcabe0ff30b79a62a44c4322a846652d9e55593a07c9ee1cda2a16aabeb72d6769f1e5f8cd8029b5de974ce0d25583f4a191445ab8fb0568b4498c5734
|
7
|
+
data.tar.gz: b819263bfb083b55f1a35de04f56ee4a663d3a4404b8d2f3159843212d5f72f0c3e73379ba1ad3a2293643b2d274a00d0959e6bf81bfaae5f370b289d736403c
|
data/db/samples/products.rb
CHANGED
@@ -23,6 +23,8 @@ PRODUCTS.each do |(parent_name, taxon_name, product_name)|
|
|
23
23
|
product.price = rand(10...100) + 0.99
|
24
24
|
product.description = FFaker::Lorem.paragraph
|
25
25
|
product.available_on = Time.zone.now
|
26
|
+
product.make_active_at = Time.zone.now
|
27
|
+
product.status = 'active'
|
26
28
|
if parent_name == 'Women' and %w[Dresses Skirts].include?(taxon_name)
|
27
29
|
product.option_types = [color, length, size]
|
28
30
|
else
|
data/db/samples/stock.rb
CHANGED
@@ -16,8 +16,8 @@ Spree::StockLocations::StockItems::Create.call(stock_location: location)
|
|
16
16
|
product_1 = Spree::Product.find_by!(name: 'Denim Shirt')
|
17
17
|
product_2 = Spree::Product.find_by!(name: 'Checked Shirt')
|
18
18
|
|
19
|
-
product_1.master
|
20
|
-
product_2.master
|
19
|
+
location.stock_item_or_create(product_1.master).update(count_on_hand: 1)
|
20
|
+
location.stock_item_or_create(product_2.master).update(count_on_hand: 1)
|
21
21
|
|
22
22
|
Spree::Variant.all.each do |variant|
|
23
23
|
next if variant.is_master? && variant.product.has_variants?
|
data/db/samples/variants.csv
CHANGED
@@ -172,9 +172,9 @@ Sportswear,Tops,oversize t-shirt wrapped on back,pink
|
|
172
172
|
Sportswear,Tops,long sleeves crop top,black
|
173
173
|
Sportswear,Tops,laced crop top,black
|
174
174
|
Sportswear,Tops,sports bra medium support,black
|
175
|
-
Sportswear,Tops,sports bra
|
176
|
-
Sportswear,Tops,sports bra
|
177
|
-
Sportswear,Tops,sports bra
|
175
|
+
Sportswear,Tops,sports bra,green
|
176
|
+
Sportswear,Tops,sports bra,blue
|
177
|
+
Sportswear,Tops,sports bra,burgundy
|
178
178
|
Sportswear,Tops,sport cropp top,burgundy
|
179
179
|
Sportswear,Sweatshirts,running sweatshirt,light_blue
|
180
180
|
Sportswear,Sweatshirts,lightweight running jacket,grey
|
data/db/samples/variants.rb
CHANGED
@@ -6,7 +6,7 @@ Spree::Sample.load_sample('tax_categories')
|
|
6
6
|
|
7
7
|
VARIANTS = CSV.read(File.join(__dir__, 'variants.csv'))
|
8
8
|
|
9
|
-
clothing_tax_category = Spree::TaxCategory.
|
9
|
+
clothing_tax_category = Spree::TaxCategory.find_or_create_by!(name: 'Clothing')
|
10
10
|
color_option_values = Spree::OptionType.find_by!(name: 'color').option_values
|
11
11
|
length_option_values = Spree::OptionType.find_by!(name: 'length').option_values
|
12
12
|
size_option_values = Spree::OptionType.find_by!(name: 'size').option_values
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.5.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.5.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: ffaker
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,9 +121,9 @@ licenses:
|
|
121
121
|
- BSD-3-Clause
|
122
122
|
metadata:
|
123
123
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
124
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
124
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.5.1
|
125
125
|
documentation_uri: https://dev-docs.spreecommerce.org/
|
126
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
126
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.5.1
|
127
127
|
post_install_message:
|
128
128
|
rdoc_options: []
|
129
129
|
require_paths:
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements:
|
142
142
|
- none
|
143
|
-
rubygems_version: 3.
|
143
|
+
rubygems_version: 3.4.1
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Sample data for Spree Commerce
|