spree_sample 4.4.1 → 4.5.0

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: 3595a1f777206bf12006dbea977e18e4046e4e5631fdad5ec66432036e9392d7
4
- data.tar.gz: 51c624b6440d4ab36d2f0f6db578b691359d9abbcbc2c4711cc90ef2c67d2a1b
3
+ metadata.gz: e93c76f4b10193046405fd2ca466a968bc876618b9798e4bb3b98242876c14af
4
+ data.tar.gz: 3adbd82be5ef9d9e2a575b7450a5995da1e78a2855ebf229c8a105741712bf33
5
5
  SHA512:
6
- metadata.gz: 13a29471a1326843617144a436b06011c79b1499ddbb416d514628dfed8f7b89af1fc32cca117d6813e0a2e8d592e4a05fa1b8cf2c885fe876c35b598de5db7f
7
- data.tar.gz: e3207b9fc6cb1803febd3dce53460d9a3547a8a15c334bd0896764780c1c2a86013d0eb041512f0b67c5ba2497b35ddd80045ec97f4153e15bdd678e8bd7e0e9
6
+ metadata.gz: 648de0e63d0fae97a31482c03a7ffc7318d30bef8ce81f7446d6dcc58790189e81f80564ba1312e3c7a9950322b7ab8c1d3c97292a27c7d3dad83785132b827e
7
+ data.tar.gz: 5d2be196fb253e303d460eab6ae4fa41e413eefb6b9a8c80fd79a6379d9dc3644dede490274f911bd104644076af01df0167aeb04689babc648fb14cfadddb58
@@ -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.1
4
+ version: 4.5.0
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: 2024-04-21 00:00:00.000000000 Z
12
+ date: 2022-12-01 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.1
20
+ version: 4.5.0
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.1
27
+ version: 4.5.0
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.1
124
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.5.0
125
125
  documentation_uri: https://dev-docs.spreecommerce.org/
126
- source_code_uri: https://github.com/spree/spree/tree/v4.4.1
126
+ source_code_uri: https://github.com/spree/spree/tree/v4.5.0
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.5.3
143
+ rubygems_version: 3.2.32
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Sample data for Spree Commerce