solidus_sample 4.1.1 → 4.2.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: 8961104768168986f379a9775d2b19243ebd3751f49cd1d302bb5c655f0333c5
4
- data.tar.gz: 2748679e16bd0f0290cbff688f0cc30fba644ea9b3b0bb02bd293eee10905992
3
+ metadata.gz: 66167003e7e322d3d2e689c7b8ced4778e419b58cc696f61d24cdca6d98666a2
4
+ data.tar.gz: f4c013080ed4d8ab5f23b4c7c3be3f0f9d4a47edf371a5eafc7f8bc2fb493492
5
5
  SHA512:
6
- metadata.gz: b2f0353b57182c0410e8d23be747bc6e485520d31475920bde65eb18098dd48fd0f65d79da609b5fb3c661fadb8088bf30d8576706ef95e316fd5a78e56212fe
7
- data.tar.gz: abbbb82c9936517aa5369790a4ce5dcb2b0bc7798dec4bd9cfdecb91e22a91f8673577fbc57af73ec97d98463e019fe3ff76b9fa7866a34702ca1cc5c57ad18a
6
+ metadata.gz: 69f33986c7c5b724295fb8d64a3b2ed88a1e600af978166f7e75144a028962f2e0519a0539ae23f8da209fefef28d79c1cb02ead565d117f1d68ba67fcd30053
7
+ data.tar.gz: 7dbd43cfea35fa5c2e0f1701c272f8d2b28a7f028d8cad782dcdd2a3da689c35887985888d188d5fbbc579f813ed1adf2391fca64545b2f07073cfa38e97106c
@@ -9,7 +9,7 @@ colored_clothes = [
9
9
  "Solidus T-Shirt", "Solidus Long Sleeve", "Solidus Women's T-Shirt"
10
10
  ]
11
11
 
12
- Spree::Product.all.each do |product|
12
+ Spree::Product.all.find_each do |product|
13
13
  product.option_types = [size]
14
14
  product.option_types << color if colored_clothes.include?(product.name)
15
15
  product.save!
data/db/samples/stock.rb CHANGED
@@ -7,7 +7,7 @@ location = Spree::StockLocation.first_or_create! name: 'default', address1: 'Exa
7
7
  location.active = true
8
8
  location.save!
9
9
 
10
- Spree::Variant.all.each do |variant|
10
+ Spree::Variant.all.find_each do |variant|
11
11
  variant.stock_items.each do |stock_item|
12
12
  Spree::StockMovement.create(quantity: 10, stock_item: stock_item)
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.1
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.1
26
+ version: 4.2.0
27
27
  description: Sample data (including images) for use with Solidus.
28
28
  email: contact@solidus.io
29
29
  executables: []
@@ -94,7 +94,7 @@ licenses:
94
94
  - BSD-3-Clause
95
95
  metadata:
96
96
  rubygems_mfa_required: 'true'
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.8.23
111
111
  requirements: []
112
- rubygems_version: 3.4.9
113
- signing_key:
112
+ rubygems_version: 3.3.23
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: Sample data (including images) for use with Solidus.
116
116
  test_files: []