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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18a6b08dcb4811dfb7924b932b6862bd6ac56f76160c744400d246b21e5e22dc
4
- data.tar.gz: '02556869aa46c012ffadc61cf84cc3693041b4d1d9f810151109c516706775be'
3
+ metadata.gz: 0400fd1e5f07ac578c6dc218aa871f47dd24c21cf7c20cccbf72171f4bd7ef16
4
+ data.tar.gz: d8bfa461932a28d798dd7f31407ace3ae27f8d8dd8a0a6e126017c6b28257068
5
5
  SHA512:
6
- metadata.gz: 6872c974c8a02b4184ff7fbee46238278602156fb20f32f429a8a4f667b9b9c6d813de446e90480260f79fcd7d2c71c683dce7c017a84feecf7664e928408f8f
7
- data.tar.gz: 9ffae31f63014e4215a347adc308a8d2b8e57a96451182b4fd313747217df330c2e0f0453676048b6cdff8330c3afe6faa4133e490fc69094112b0fc5f7081ca
6
+ metadata.gz: 0f2bc6dcabe0ff30b79a62a44c4322a846652d9e55593a07c9ee1cda2a16aabeb72d6769f1e5f8cd8029b5de974ce0d25583f4a191445ab8fb0568b4498c5734
7
+ data.tar.gz: b819263bfb083b55f1a35de04f56ee4a663d3a4404b8d2f3159843212d5f72f0c3e73379ba1ad3a2293643b2d274a00d0959e6bf81bfaae5f370b289d736403c
@@ -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.stock_items.find_by!(stock_location: location).update!(count_on_hand: 1)
20
- product_2.master.stock_items.find_by!(stock_location: location).update!(count_on_hand: 1)
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?
@@ -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 ,green
176
- Sportswear,Tops,sports bra ,blue
177
- Sportswear,Tops,sports bra ,burgundy
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
@@ -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.find_by!(name: 'Clothing')
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.0
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: 2022-01-26 00:00:00.000000000 Z
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.4.0
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.4.0
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.4.0
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.4.0
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.2.32
143
+ rubygems_version: 3.4.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Sample data for Spree Commerce