solidus_sample 4.1.2 → 4.1.4

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: 1e0bb009b9c20852b6426738488362bd2a192a01c036068117bd6154022c9f90
4
- data.tar.gz: 51e21aa1d609db779fbfc3c3e87c0324f7d4deca5129015ef57e491013f69a5c
3
+ metadata.gz: e27d6fff9625c42651a95b39d422cd07deaa84c994fe66176e66683f2725c595
4
+ data.tar.gz: 42959ab7578c66de809ff86088aa2b47a3ef406a850e3e6a30088cb49014d362
5
5
  SHA512:
6
- metadata.gz: e50606ab953fdec67ce51a9ff965871de69e34441c5676a9aba4837dd71cad2a67b0d4bbebc114328498e0c192db9992d0b5dae53d01ee7891f9cb963779be3c
7
- data.tar.gz: 2ca5463cf34e533cadf14a3e2a7b70235cff164e94240d4f2f427a57e0434386df54eba6209d16eba201f4bf1180c4f67266bf6f8a93fa4240a2f021d39bb569
6
+ metadata.gz: 62c8ebf003131561003f4c67ea3bb2775f8bb6f74298b58e28789cb99289042c2b62b3203174c0c5f6d27b085d9bb03d3e0b6e320be8d888e0ed4ef426d30d59
7
+ data.tar.gz: 1b6cc73a72b2e43bd2f24e699041bca39ec6525ac7ae4013a7da5a363278a724ce52f131bbab21f2a1c4f5e6c18871c6f8351ab3fb68ef6cd9173841f7928ac6
@@ -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.2
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-01 00:00:00.000000000 Z
11
+ date: 2024-01-05 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.2
19
+ version: 4.1.4
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.2
26
+ version: 4.1.4
27
27
  description: Sample data (including images) for use with Solidus.
28
28
  email: contact@solidus.io
29
29
  executables: []
@@ -109,7 +109,7 @@ 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.17
112
+ rubygems_version: 3.5.3
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Sample data (including images) for use with Solidus.