spree_sample 4.2.0.rc1 → 4.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/db/samples/products.rb +6 -1
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23200323b7055237e54df153fe25fbf6d712c6fc85db511ba475a9496edda156
4
- data.tar.gz: 63e0873dab15bc60cbaba5e7e31bf2900ac1c5f9525fd923d3f041bf164f46cb
3
+ metadata.gz: d79878438dc88fee15eb7a11c1aacb2daf964625343ee78f125a6b9248a69473
4
+ data.tar.gz: 72812e181c50d653af5f070fb069d6a8f3d161d1535bc0094e7dc7abdd3ecc1c
5
5
  SHA512:
6
- metadata.gz: 37951814db15d1112c24db7e63a06fded04d789f48a6b7906c47e25164c53ec8ab6b0920863daf0370e8ddae9b3534f9c244993a4525b158e2609eea8efae769
7
- data.tar.gz: 65f19de5f3427248ee51901c41fea4f0f24bf878b23c549de47d6f016ae0bb174037b6d214957323332821fecb0d2b480f9af6461026f98a300530b309e6fea4
6
+ metadata.gz: 889be561c833700bbc1a34bf2621185b8ecbf14fb94d5f5131824f80275ae81c295d17a2e6d1455a3a445d7dd382db19cc6cd204745488f42640ae85524d8db0
7
+ data.tar.gz: 6e1f4704fcf0d7569bb358d2e5d8e01e36c9ed6dfc1625ac9bb9429a3c0f42bc2301c8fe5d4fcf57a7ddb1e1ae82e9e4f7b2bfdd28d3fd1b3ece19aab24243fb
@@ -11,6 +11,7 @@ clothing_tax_category = Spree::TaxCategory.find_by!(name: 'Clothing')
11
11
  Spree::Config[:currency] = 'USD'
12
12
 
13
13
  color = Spree::OptionType.find_by!(name: 'color')
14
+ length = Spree::OptionType.find_by!(name: 'length')
14
15
  size = Spree::OptionType.find_by!(name: 'size')
15
16
 
16
17
  PRODUCTS = CSV.read(File.join(__dir__, 'variants.csv')).map do |(parent_name, taxon_name, product_name, _color_name)|
@@ -24,7 +25,11 @@ PRODUCTS.each do |(parent_name, taxon_name, product_name)|
24
25
  product.price = rand(10...100) + 0.99
25
26
  product.description = FFaker::Lorem.paragraph
26
27
  product.available_on = Time.zone.now
27
- product.option_types = [color, size]
28
+ if parent_name == 'Women' and %w[Dresses Skirts].include?(taxon_name)
29
+ product.option_types = [color, length, size]
30
+ else
31
+ product.option_types = [color, size]
32
+ end
28
33
  product.shipping_category = default_shipping_category
29
34
  product.tax_category = clothing_tax_category
30
35
  product.sku = [taxon_name.delete(' '), product_name.delete(' '), product.price].join('_')
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.2.0.rc1
4
+ version: 4.2.0.rc2
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: 2020-10-15 00:00:00.000000000 Z
12
+ date: 2020-11-10 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.2.0.rc1
20
+ version: 4.2.0.rc2
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.2.0.rc1
27
+ version: 4.2.0.rc2
28
28
  description: Required dependency for Spree
29
29
  email: hello@spreecommerce.org
30
30
  executables: []
@@ -100,9 +100,9 @@ licenses:
100
100
  - BSD-3-Clause
101
101
  metadata:
102
102
  bug_tracker_uri: https://github.com/spree/spree/issues
103
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0.rc1
103
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0.rc2
104
104
  documentation_uri: https://guides.spreecommerce.org/
105
- source_code_uri: https://github.com/spree/spree/tree/v4.2.0.rc1
105
+ source_code_uri: https://github.com/spree/spree/tree/v4.2.0.rc2
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: 1.3.1
120
120
  requirements:
121
121
  - none
122
- rubygems_version: 3.1.4
122
+ rubygems_version: 3.1.2
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Sample data (including images) for use with Spree.