solidus_sample 3.0.8 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/assets.rb +3 -3
- data/db/samples/images/{solidus_girly.jpg → solidus_womens_tshirt.jpg} +0 -0
- data/db/samples/images/{solidus_girly_black.png → solidus_womens_tshirt_black.png} +0 -0
- data/db/samples/images/{solidus_girly_blue.png → solidus_womens_tshirt_blue.png} +0 -0
- data/db/samples/images/{solidus_girly_white.png → solidus_womens_tshirt_white.png} +0 -0
- data/db/samples/product_properties.rb +1 -1
- data/db/samples/products.rb +1 -1
- data/db/samples/taxons.rb +3 -3
- data/db/samples/variants.rb +8 -8
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f930055a3b5d3a855371c511ca0f299112e5d0c043eb19f8346f108733e4ea7e
|
4
|
+
data.tar.gz: 43ba7d3e8907abac80faa5ae021a1dfc6dfad87517e8fc25f25eb96d89ec0597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8204b1bb29a6508f10539881bfa90ff8368e86a575dacb4a944df35d2267757d3282cbea3cf1068f0303a0fc388bbe2bfd7a1bb3925f23f7487cfad4c034bcf2
|
7
|
+
data.tar.gz: b717489e2e50d984d79f809d37adfcb541bd042726b01a449b1bc814ded951d9dd29acf0425ce526abcbb080fa60ae19e67558e3704bbd43626af7a56a456a15
|
data/db/samples/assets.rb
CHANGED
@@ -6,7 +6,7 @@ Spree::Sample.load_sample("variants")
|
|
6
6
|
products = {}
|
7
7
|
products[:solidus_tshirt] = Spree::Product.includes(variants: [:option_values]).find_by!(name: "Solidus T-Shirt")
|
8
8
|
products[:solidus_long] = Spree::Product.includes(variants: [:option_values]).find_by!(name: "Solidus Long Sleeve")
|
9
|
-
products[:
|
9
|
+
products[:solidus_womens_tshirt] = Spree::Product.includes(variants: [:option_values]).find_by!(name: "Solidus Women's T-Shirt")
|
10
10
|
products[:solidus_snapback_cap] = Spree::Product.find_by!(name: "Solidus Snapback Cap")
|
11
11
|
products[:solidus_hoodie] = Spree::Product.find_by!(name: "Solidus Hoodie Zip")
|
12
12
|
products[:ruby_hoodie] = Spree::Product.find_by!(name: "Ruby Hoodie")
|
@@ -107,9 +107,9 @@ products[:solidus_long].variants.each do |variant|
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
products[:
|
110
|
+
products[:solidus_womens_tshirt].reload.variants.each do |variant|
|
111
111
|
color = variant.option_value("tshirt-color").downcase
|
112
|
-
main_image = image("
|
112
|
+
main_image = image("solidus_womens_tshirt_#{color}", "png")
|
113
113
|
File.open(main_image) do |f|
|
114
114
|
variant.images.create!(attachment: f)
|
115
115
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/db/samples/products.rb
CHANGED
data/db/samples/taxons.rb
CHANGED
@@ -18,7 +18,7 @@ products = {
|
|
18
18
|
ruby_polo: "Ruby Polo",
|
19
19
|
solidus_mug: "Solidus Mug",
|
20
20
|
ruby_mug: "Ruby Mug",
|
21
|
-
|
21
|
+
solidus_womens_tshirt: "Solidus Women's T-Shirt"
|
22
22
|
}
|
23
23
|
|
24
24
|
products.each do |key, name|
|
@@ -73,7 +73,7 @@ taxons = [
|
|
73
73
|
products: [
|
74
74
|
products[:solidus_long],
|
75
75
|
products[:ruby_polo],
|
76
|
-
products[:
|
76
|
+
products[:solidus_womens_tshirt]
|
77
77
|
]
|
78
78
|
},
|
79
79
|
{
|
@@ -111,7 +111,7 @@ taxons = [
|
|
111
111
|
products[:solidus_hoodie],
|
112
112
|
products[:solidus_mug],
|
113
113
|
products[:solidus_tote],
|
114
|
-
products[:
|
114
|
+
products[:solidus_womens_tshirt]
|
115
115
|
]
|
116
116
|
},
|
117
117
|
{
|
data/db/samples/variants.rb
CHANGED
@@ -14,7 +14,7 @@ solidus_mug = Spree::Product.find_by!(name: "Solidus Mug")
|
|
14
14
|
ruby_mug = Spree::Product.find_by!(name: "Ruby Mug")
|
15
15
|
solidus_tote = Spree::Product.find_by!(name: "Solidus Tote")
|
16
16
|
ruby_tote = Spree::Product.find_by!(name: "Ruby Tote")
|
17
|
-
|
17
|
+
solidus_womens_tshirt = Spree::Product.find_by!(name: "Solidus Women's T-Shirt")
|
18
18
|
|
19
19
|
small = Spree::OptionValue.find_by!(name: "Small")
|
20
20
|
medium = Spree::OptionValue.find_by!(name: "Medium")
|
@@ -123,37 +123,37 @@ variants = [
|
|
123
123
|
cost_price: 17
|
124
124
|
},
|
125
125
|
{
|
126
|
-
product:
|
126
|
+
product: solidus_womens_tshirt,
|
127
127
|
option_values: [small, black],
|
128
128
|
sku: "SOL-WM001",
|
129
129
|
cost_price: 17
|
130
130
|
},
|
131
131
|
{
|
132
|
-
product:
|
132
|
+
product: solidus_womens_tshirt,
|
133
133
|
option_values: [small, blue],
|
134
134
|
sku: "SOL-WM002",
|
135
135
|
cost_price: 17
|
136
136
|
},
|
137
137
|
{
|
138
|
-
product:
|
138
|
+
product: solidus_womens_tshirt,
|
139
139
|
option_values: [small, white],
|
140
140
|
sku: "SOL-WM003",
|
141
141
|
cost_price: 17
|
142
142
|
},
|
143
143
|
{
|
144
|
-
product:
|
144
|
+
product: solidus_womens_tshirt,
|
145
145
|
option_values: [medium, blue],
|
146
146
|
sku: "SOL-WM004",
|
147
147
|
cost_price: 17
|
148
148
|
},
|
149
149
|
{
|
150
|
-
product:
|
150
|
+
product: solidus_womens_tshirt,
|
151
151
|
option_values: [medium, white],
|
152
152
|
sku: "SOL-WM005",
|
153
153
|
cost_price: 17
|
154
154
|
},
|
155
155
|
{
|
156
|
-
product:
|
156
|
+
product: solidus_womens_tshirt,
|
157
157
|
option_values: [medium, black],
|
158
158
|
sku: "SOL-WM006",
|
159
159
|
cost_price: 17
|
@@ -205,7 +205,7 @@ masters = {
|
|
205
205
|
sku: "RUB-MG01",
|
206
206
|
cost_price: 7
|
207
207
|
},
|
208
|
-
|
208
|
+
solidus_womens_tshirt => {
|
209
209
|
sku: "SOL-WM00",
|
210
210
|
cost_price: 17
|
211
211
|
}
|
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: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-10 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: 3.0
|
19
|
+
version: 3.1.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: 3.0
|
26
|
+
version: 3.1.0
|
27
27
|
description: Sample data (including images) for use with Solidus.
|
28
28
|
email: contact@solidus.io
|
29
29
|
executables: []
|
@@ -41,10 +41,6 @@ files:
|
|
41
41
|
- db/samples/images/ruby_mug.jpg
|
42
42
|
- db/samples/images/ruby_polo.jpg
|
43
43
|
- db/samples/images/ruby_polo_back.jpg
|
44
|
-
- db/samples/images/solidus_girly.jpg
|
45
|
-
- db/samples/images/solidus_girly_black.png
|
46
|
-
- db/samples/images/solidus_girly_blue.png
|
47
|
-
- db/samples/images/solidus_girly_white.png
|
48
44
|
- db/samples/images/solidus_hoodie.jpg
|
49
45
|
- db/samples/images/solidus_long.jpg
|
50
46
|
- db/samples/images/solidus_long_back.jpg
|
@@ -64,6 +60,10 @@ files:
|
|
64
60
|
- db/samples/images/solidus_tshirt_black.png
|
65
61
|
- db/samples/images/solidus_tshirt_blue.png
|
66
62
|
- db/samples/images/solidus_tshirt_white.png
|
63
|
+
- db/samples/images/solidus_womens_tshirt.jpg
|
64
|
+
- db/samples/images/solidus_womens_tshirt_black.png
|
65
|
+
- db/samples/images/solidus_womens_tshirt_blue.png
|
66
|
+
- db/samples/images/solidus_womens_tshirt_white.png
|
67
67
|
- db/samples/images/tote_bag_ruby.jpg
|
68
68
|
- db/samples/images/tote_bag_solidus.jpg
|
69
69
|
- db/samples/option_types.rb
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 1.8.23
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.2.20
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Sample data (including images) for use with Solidus.
|