spree_sample 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/db/samples/addresses.rb +28 -0
- data/db/samples/adjustments.rb +40 -0
- data/db/samples/assets.rb +158 -0
- data/db/{sample/spree/products → samples/images}/apache_baseball.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_bag.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_back_blue.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_back_green.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_back_red.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_blue.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_green.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_baseball_jersey_red.png +0 -0
- data/db/{sample/spree/products → samples/images}/ror_jr_spaghetti.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_mug.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_mug_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_ringer.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_ringer_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_stein.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_stein_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_tote.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ror_tote_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/ruby_baseball.png +0 -0
- data/db/{sample/spree/products → samples/images}/spree_bag.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_jersey.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_jersey_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_mug.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_mug_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_ringer_t.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_ringer_t_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_spaghetti.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_stein.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_stein_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_tote_back.jpeg +0 -0
- data/db/{sample/spree/products → samples/images}/spree_tote_front.jpeg +0 -0
- data/db/samples/line_items.rb +16 -0
- data/db/samples/option_types.rb +16 -0
- data/db/samples/option_values.rb +53 -0
- data/db/samples/orders.rb +26 -0
- data/db/samples/payment_methods.rb +43 -0
- data/db/{sample/spree → samples}/payments.rb +1 -4
- data/db/samples/product_option_types.rb +12 -0
- data/db/samples/product_properties.rb +118 -0
- data/db/samples/products.rb +122 -0
- data/db/samples/prototypes.rb +21 -0
- data/db/samples/shipments.rb +18 -0
- data/db/samples/shipping_categories.rb +1 -0
- data/db/samples/shipping_methods.rb +49 -0
- data/db/samples/tax_categories.rb +2 -0
- data/db/samples/tax_rates.rb +10 -0
- data/db/samples/taxonomies.rb +8 -0
- data/db/samples/taxons.rb +121 -0
- data/db/samples/variants.rb +170 -0
- data/db/samples.rb +2 -0
- data/lib/spree/sample.rb +17 -0
- data/lib/spree_sample.rb +24 -0
- data/lib/tasks/sample.rake +17 -4
- metadata +64 -76
- data/db/sample/spree/addresses.yml +0 -27
- data/db/sample/spree/adjustments.yml +0 -26
- data/db/sample/spree/assets.yml +0 -440
- data/db/sample/spree/calculators.yml +0 -26
- data/db/sample/spree/inventory_units.rb +0 -4
- data/db/sample/spree/line_items.yml +0 -40
- data/db/sample/spree/option_types.yml +0 -8
- data/db/sample/spree/option_values.yml +0 -35
- data/db/sample/spree/orders.yml +0 -20
- data/db/sample/spree/payment_methods.yml +0 -29
- data/db/sample/spree/preferences.rb +0 -21
- data/db/sample/spree/prices.yml +0 -224
- data/db/sample/spree/product_option_types.yml +0 -16
- data/db/sample/spree/product_properties.yml +0 -264
- data/db/sample/spree/products.rb +0 -15
- data/db/sample/spree/products.yml +0 -108
- data/db/sample/spree/properties.yml +0 -39
- data/db/sample/spree/prototypes.yml +0 -9
- data/db/sample/spree/shipments.yml +0 -8
- data/db/sample/spree/shipping_categories.yml +0 -2
- data/db/sample/spree/shipping_methods.yml +0 -12
- data/db/sample/spree/tax_categories.yml +0 -6
- data/db/sample/spree/tax_rates.yml +0 -4
- data/db/sample/spree/taxonomies.yml +0 -4
- data/db/sample/spree/taxons.rb +0 -3
- data/db/sample/spree/taxons.yml +0 -100
- data/db/sample/spree/variants.yml +0 -174
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
ups_ground_usd:
|
|
2
|
-
calculable: ups_ground_usd
|
|
3
|
-
calculable_type: Spree::ShippingMethod
|
|
4
|
-
type: Spree::Calculator::FlatRate
|
|
5
|
-
ups_two_day_usd:
|
|
6
|
-
calculable: ups_two_day_usd
|
|
7
|
-
calculable_type: Spree::ShippingMethod
|
|
8
|
-
type: Spree::Calculator::FlatRate
|
|
9
|
-
ups_one_day_usd:
|
|
10
|
-
calculable: ups_one_day_usd
|
|
11
|
-
calculable_type: Spree::ShippingMethod
|
|
12
|
-
type: Spree::Calculator::FlatRate
|
|
13
|
-
ups_ground_eur:
|
|
14
|
-
calculable: ups_ground_eur
|
|
15
|
-
calculable_type: Spree::ShippingMethod
|
|
16
|
-
type: Spree::Calculator::FlatRate
|
|
17
|
-
flat_rate_coupon_calculator:
|
|
18
|
-
calculable: spree_coupon
|
|
19
|
-
calculable_type: Spree::Promotion
|
|
20
|
-
type: Spree::Calculator::FlatRate
|
|
21
|
-
tax_rate_calculator:
|
|
22
|
-
calculable: tax_rate_north_america
|
|
23
|
-
calculable_type: Spree::TaxRate
|
|
24
|
-
type: Spree::Calculator::DefaultTax
|
|
25
|
-
|
|
26
|
-
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
# create the inventory units associated with the line item (we need to do this after the fixture b/c quantity is random)
|
|
2
|
-
Spree::LineItem.all.each do |li|
|
|
3
|
-
li.quantity.times { li.order.inventory_units.create({:variant => li.variant, :state => 'sold', :shipment => li.order.shipment}, :without_protection => true) }
|
|
4
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<% for i in 1..100 do%>
|
|
2
|
-
li_<%= i %>:
|
|
3
|
-
order: order_<%= i %>
|
|
4
|
-
variant: ror_tote_v
|
|
5
|
-
quantity: <%= rand(4) + 1 %>
|
|
6
|
-
price: 15.99
|
|
7
|
-
<% end %>
|
|
8
|
-
|
|
9
|
-
<% for i in 1..10 do%>
|
|
10
|
-
li_<%= i + 1000 %>:
|
|
11
|
-
order: order_<%= i %>
|
|
12
|
-
variant: ror_bag_v
|
|
13
|
-
quantity: <%= rand(2) + 1 %>
|
|
14
|
-
price: 22.99
|
|
15
|
-
<% end %>
|
|
16
|
-
|
|
17
|
-
<% for i in 10..20 do%>
|
|
18
|
-
li_<%= i + 2000 %>:
|
|
19
|
-
order: order_<%= i %>
|
|
20
|
-
variant: large-blue-baseball
|
|
21
|
-
quantity: <%= rand(3) + 1 %>
|
|
22
|
-
price: 19.99
|
|
23
|
-
<% end %>
|
|
24
|
-
|
|
25
|
-
<% for i in 10..30 do%>
|
|
26
|
-
li_<%= i + 3000 %>:
|
|
27
|
-
order: order_<%= i %>
|
|
28
|
-
variant: ror_stein_v
|
|
29
|
-
quantity: <%= rand(3) + 1 %>
|
|
30
|
-
price: 16.99
|
|
31
|
-
<% end %>
|
|
32
|
-
|
|
33
|
-
<% for i in 30..50 do%>
|
|
34
|
-
li_<%= i + 4000 %>:
|
|
35
|
-
order: order_<%= i %>
|
|
36
|
-
variant: ror_mug_v
|
|
37
|
-
quantity: <%= rand(10) + 1 %>
|
|
38
|
-
price: 13.99
|
|
39
|
-
<% end %>
|
|
40
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
s:
|
|
2
|
-
name: Small
|
|
3
|
-
presentation: S
|
|
4
|
-
position: 1
|
|
5
|
-
option_type: size
|
|
6
|
-
m:
|
|
7
|
-
name: Medium
|
|
8
|
-
presentation: M
|
|
9
|
-
position: 2
|
|
10
|
-
option_type: size
|
|
11
|
-
l:
|
|
12
|
-
name: Large
|
|
13
|
-
presentation: L
|
|
14
|
-
position: 3
|
|
15
|
-
option_type: size
|
|
16
|
-
xl:
|
|
17
|
-
name: Extra Large
|
|
18
|
-
presentation: XL
|
|
19
|
-
position: 4
|
|
20
|
-
option_type: size
|
|
21
|
-
red:
|
|
22
|
-
name: Red
|
|
23
|
-
presentation: Red
|
|
24
|
-
position: 1
|
|
25
|
-
option_type: color
|
|
26
|
-
green:
|
|
27
|
-
name: Green
|
|
28
|
-
presentation: Green
|
|
29
|
-
position: 2
|
|
30
|
-
option_type: color
|
|
31
|
-
blue:
|
|
32
|
-
name: Blue
|
|
33
|
-
presentation: Blue
|
|
34
|
-
position: 3
|
|
35
|
-
option_type: color
|
data/db/sample/spree/orders.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
order_date = Time.now
|
|
3
|
-
1.upto(100) do |i|
|
|
4
|
-
order_date -= rand(12).hours
|
|
5
|
-
item_total = "#{1 + rand(400)}.#{rand(100)}".to_f
|
|
6
|
-
charges_total = "#{1 + rand(30)}.#{rand(100)}".to_f
|
|
7
|
-
%>
|
|
8
|
-
order_<%= i %>:
|
|
9
|
-
number: <%= "R#{Array.new(9){rand(9)}.join}" %>
|
|
10
|
-
user: user_<%= i %>
|
|
11
|
-
state: complete
|
|
12
|
-
email: <%= Faker::Internet.email %>
|
|
13
|
-
item_total: <%= item_total %>
|
|
14
|
-
created_at: <%= order_date.to_s(:db) %>
|
|
15
|
-
completed_at: <%= order_date.to_s(:db) %>
|
|
16
|
-
total: <%= item_total + charges_total %>
|
|
17
|
-
adjustment_total: <%= charges_total %>
|
|
18
|
-
ship_address: ship_address_<%= i %>
|
|
19
|
-
bill_address: bill_address_<%= i %>
|
|
20
|
-
<% end %>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
bogus_dev:
|
|
2
|
-
name: Credit Card
|
|
3
|
-
description: Bogus payment gateway for development.
|
|
4
|
-
environment: development
|
|
5
|
-
active: true
|
|
6
|
-
type: Spree::Gateway::Bogus
|
|
7
|
-
check_method:
|
|
8
|
-
name: Check
|
|
9
|
-
description: Pay by check.
|
|
10
|
-
active: true
|
|
11
|
-
type: Spree::PaymentMethod::Check
|
|
12
|
-
bogus_test:
|
|
13
|
-
name: Credit Card
|
|
14
|
-
description: Bogus payment gateway for test.
|
|
15
|
-
environment: test
|
|
16
|
-
active: true
|
|
17
|
-
type: Spree::Gateway::Bogus
|
|
18
|
-
bogus_prod:
|
|
19
|
-
name: Credit Card
|
|
20
|
-
description: Bogus payment gateway for production.
|
|
21
|
-
environment: production
|
|
22
|
-
active: true
|
|
23
|
-
type: Spree::Gateway::Bogus
|
|
24
|
-
bogus_staging:
|
|
25
|
-
name: Credit Card
|
|
26
|
-
description: Bogus payment gateway for staging.
|
|
27
|
-
environment: staging
|
|
28
|
-
active: true
|
|
29
|
-
type: Spree::Gateway::Bogus
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
shipping_method = Spree::ShippingMethod.find_by_name("UPS Ground (USD)")
|
|
2
|
-
shipping_method.calculator.preferred_amount = 5
|
|
3
|
-
shipping_method.calculator.preferred_currency = 'USD'
|
|
4
|
-
|
|
5
|
-
shipping_method = Spree::ShippingMethod.find_by_name("UPS Ground (EUR)")
|
|
6
|
-
shipping_method.calculator.preferred_amount = 5
|
|
7
|
-
shipping_method.calculator.preferred_currency = 'EUR'
|
|
8
|
-
|
|
9
|
-
shipping_method = Spree::ShippingMethod.find_by_name("UPS One Day (USD)")
|
|
10
|
-
shipping_method.calculator.preferred_amount = 15
|
|
11
|
-
shipping_method.calculator.preferred_currency = 'USD'
|
|
12
|
-
|
|
13
|
-
shipping_method = Spree::ShippingMethod.find_by_name("UPS Two Day (USD)")
|
|
14
|
-
shipping_method.calculator.preferred_amount = 10
|
|
15
|
-
shipping_method.calculator.preferred_currency = 'USD'
|
|
16
|
-
|
|
17
|
-
# flat_rate_five_dollars:
|
|
18
|
-
# name: amount
|
|
19
|
-
# owner: flat_rate_coupon_calculator
|
|
20
|
-
# owner_type: Spree::Calculator
|
|
21
|
-
# value: 5
|
data/db/sample/spree/prices.yml
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
small-red-baseball-price-usd:
|
|
2
|
-
variant: small-red-baseball
|
|
3
|
-
amount: 19.99
|
|
4
|
-
currency: USD
|
|
5
|
-
small-blue-baseball-price-eur:
|
|
6
|
-
variant: small-blue-baseball
|
|
7
|
-
amount: 16.00
|
|
8
|
-
currency: EUR
|
|
9
|
-
small-green-baseball-price-usd:
|
|
10
|
-
variant: small-green-baseball
|
|
11
|
-
amount: 19.99
|
|
12
|
-
currency: USD
|
|
13
|
-
small-green-baseball-price-eur:
|
|
14
|
-
variant: small-green-baseball
|
|
15
|
-
amount: 16.00
|
|
16
|
-
currency: EUR
|
|
17
|
-
med-red-baseball-price-usd:
|
|
18
|
-
variant: med-red-baseball
|
|
19
|
-
amount: 19.99
|
|
20
|
-
currency: USD
|
|
21
|
-
med-red-baseball-price-eur:
|
|
22
|
-
variant: med-red-baseball
|
|
23
|
-
amount: 16.00
|
|
24
|
-
currency: EUR
|
|
25
|
-
med-blue-baseball-price-usd:
|
|
26
|
-
variant: med-blue-baseball
|
|
27
|
-
amount: 19.99
|
|
28
|
-
currency: USD
|
|
29
|
-
med-blue-baseball-price-eur:
|
|
30
|
-
variant: med-blue-baseball
|
|
31
|
-
amount: 16.00
|
|
32
|
-
currency: EUR
|
|
33
|
-
med-green-baseball-price-usd:
|
|
34
|
-
variant: med-green-baseball
|
|
35
|
-
amount: 19.99
|
|
36
|
-
currency: USD
|
|
37
|
-
med-green-baseball-price-eur:
|
|
38
|
-
variant: med-green-baseball
|
|
39
|
-
amount: 16.00
|
|
40
|
-
currency: EUR
|
|
41
|
-
large-red-baseball-price-usd:
|
|
42
|
-
variant: large-red-baseball
|
|
43
|
-
amount: 19.99
|
|
44
|
-
currency: USD
|
|
45
|
-
large-red-baseball-price-eur:
|
|
46
|
-
variant: large-red-baseball
|
|
47
|
-
amount: 16.00
|
|
48
|
-
currency: EUR
|
|
49
|
-
large-blue-baseball-price-usd:
|
|
50
|
-
variant: large-blue-baseball
|
|
51
|
-
amount: 19.99
|
|
52
|
-
currency: USD
|
|
53
|
-
large-blue-baseball-price-eur:
|
|
54
|
-
variant: large-blue-baseball
|
|
55
|
-
amount: 16.00
|
|
56
|
-
currency: EUR
|
|
57
|
-
large-green-baseball-price-usd:
|
|
58
|
-
variant: large-green-baseball
|
|
59
|
-
amount: 19.99
|
|
60
|
-
currency: USD
|
|
61
|
-
large-green-baseball-price-eur:
|
|
62
|
-
variant: large-green-baseball
|
|
63
|
-
amount: 16.00
|
|
64
|
-
currency: EUR
|
|
65
|
-
xlarge-green-baseball-price-usd:
|
|
66
|
-
variant: xlarge-green-baseball
|
|
67
|
-
amount: 21.99
|
|
68
|
-
currency: USD
|
|
69
|
-
xlarge-green-baseball-price-eur:
|
|
70
|
-
variant: xlarge-green-baseball
|
|
71
|
-
amount: 18.50
|
|
72
|
-
currency: EUR
|
|
73
|
-
ror_baseball_jersey_v-price-usd:
|
|
74
|
-
variant: ror_baseball_jersey_v
|
|
75
|
-
amount: 19.99
|
|
76
|
-
currency: USD
|
|
77
|
-
ror_baseball_jersey_v-price-eur:
|
|
78
|
-
variant: ror_baseball_jersey_v
|
|
79
|
-
amount: 16.00
|
|
80
|
-
currency: EUR
|
|
81
|
-
ror_tote_v-price-usd:
|
|
82
|
-
variant: ror_tote_v
|
|
83
|
-
amount: 15.99
|
|
84
|
-
currency: USD
|
|
85
|
-
ror_tote_v-price-eur:
|
|
86
|
-
variant: ror_tote_v
|
|
87
|
-
amount: 14.00
|
|
88
|
-
currency: EUR
|
|
89
|
-
ror_bag_v-price-usd:
|
|
90
|
-
variant: ror_bag_v
|
|
91
|
-
amount: 22.99
|
|
92
|
-
currency: USD
|
|
93
|
-
ror_bag_v-price-eur:
|
|
94
|
-
variant: ror_bag_v
|
|
95
|
-
amount: 19.00
|
|
96
|
-
currency: EUR
|
|
97
|
-
ror_jr_spaghetti_v-price-usd:
|
|
98
|
-
variant: ror_jr_spaghetti_v
|
|
99
|
-
amount: 19.99
|
|
100
|
-
currency: USD
|
|
101
|
-
ror_jr_spaghetti_v-price-eur:
|
|
102
|
-
variant: ror_jr_spaghetti_v
|
|
103
|
-
amount: 16.00
|
|
104
|
-
currency: EUR
|
|
105
|
-
ror_mug_v-price-usd:
|
|
106
|
-
variant: ror_mug_v
|
|
107
|
-
amount: 13.99
|
|
108
|
-
currency: USD
|
|
109
|
-
ror_mug_v-price-eur:
|
|
110
|
-
variant: ror_mug_v
|
|
111
|
-
amount: 12.00
|
|
112
|
-
currency: EUR
|
|
113
|
-
ror_ringer_v-price-usd:
|
|
114
|
-
variant: ror_ringer_v
|
|
115
|
-
amount: 19.99
|
|
116
|
-
currency: USD
|
|
117
|
-
ror_ringer_v-price-eur:
|
|
118
|
-
variant: ror_ringer_v
|
|
119
|
-
amount: 16.50
|
|
120
|
-
currency: EUR
|
|
121
|
-
ror_stein_v-price-usd:
|
|
122
|
-
variant: ror_stein_v
|
|
123
|
-
amount: 16.99
|
|
124
|
-
currency: USD
|
|
125
|
-
ror_stein_v-price-eur:
|
|
126
|
-
variant: ror_stein_v
|
|
127
|
-
amount: 14.00
|
|
128
|
-
currency: EUR
|
|
129
|
-
apache_baseball_jersey_v-price-usd:
|
|
130
|
-
variant: apache_baseball_jersey_v
|
|
131
|
-
amount: 19.99
|
|
132
|
-
currency: USD
|
|
133
|
-
apache_baseball_jersey_v-price-eur:
|
|
134
|
-
variant: apache_baseball_jersey_v
|
|
135
|
-
amount: 16.00
|
|
136
|
-
currency: EUR
|
|
137
|
-
ruby_baseball_jersey_v-price-usd:
|
|
138
|
-
variant: ruby_baseball_jersey_v
|
|
139
|
-
amount: 19.99
|
|
140
|
-
currency: USD
|
|
141
|
-
ruby_baseball_jersey_v-price-eur:
|
|
142
|
-
variant: ruby_baseball_jersey_v
|
|
143
|
-
amount: 16.00
|
|
144
|
-
currency: EUR
|
|
145
|
-
spree_baseball_jersey_v-price-usd:
|
|
146
|
-
variant: spree_baseball_jersey_v
|
|
147
|
-
amount: 19.99
|
|
148
|
-
currency: USD
|
|
149
|
-
spree_baseball_jersey_v-price-eur:
|
|
150
|
-
variant: spree_baseball_jersey_v
|
|
151
|
-
amount: 16.00
|
|
152
|
-
currency: EUR
|
|
153
|
-
spree_stein_v-price-usd:
|
|
154
|
-
variant: spree_stein_v
|
|
155
|
-
amount: 16.99
|
|
156
|
-
currency: USD
|
|
157
|
-
spree_stein_v-price-eur:
|
|
158
|
-
variant: spree_stein_v
|
|
159
|
-
amount: 14.00
|
|
160
|
-
currency: EUR
|
|
161
|
-
spree_jr_spaghetti_v-price-usd:
|
|
162
|
-
variant: spree_jr_spaghetti_v
|
|
163
|
-
amount: 19.99
|
|
164
|
-
currency: USD
|
|
165
|
-
spree_jr_spaghetti_v-price-eur:
|
|
166
|
-
variant: spree_jr_spaghetti_v
|
|
167
|
-
amount: 16.00
|
|
168
|
-
currency: EUR
|
|
169
|
-
spree_mug_v-price-usd:
|
|
170
|
-
variant: spree_mug_v
|
|
171
|
-
amount: 13.99
|
|
172
|
-
currency: USD
|
|
173
|
-
spree_mug_v-price-eur:
|
|
174
|
-
variant: spree_mug_v
|
|
175
|
-
amount: 12.00
|
|
176
|
-
currency: EUR
|
|
177
|
-
spree_ringer_v-price-usd:
|
|
178
|
-
variant: spree_ringer_v
|
|
179
|
-
amount: 17.99
|
|
180
|
-
currency: USD
|
|
181
|
-
spree_ringer_v-price-eur:
|
|
182
|
-
variant: spree_ringer_v
|
|
183
|
-
amount: 15.00
|
|
184
|
-
currency: EUR
|
|
185
|
-
spree_tote_v-price-usd:
|
|
186
|
-
variant: spree_tote_v
|
|
187
|
-
amount: 15.99
|
|
188
|
-
currency: USD
|
|
189
|
-
spree_tote_v-price-eur:
|
|
190
|
-
variant: spree_tote_v
|
|
191
|
-
amount: 14.00
|
|
192
|
-
currency: EUR
|
|
193
|
-
spree_bag_v-price-usd:
|
|
194
|
-
variant: spree_bag_v
|
|
195
|
-
amount: 22.99
|
|
196
|
-
currency: USD
|
|
197
|
-
spree_bag_v-price-eur:
|
|
198
|
-
variant: spree_bag_v
|
|
199
|
-
amount: 19.00
|
|
200
|
-
currency: EUR
|
|
201
|
-
small-spree-baseball-price-usd:
|
|
202
|
-
variant: small-spree-baseball
|
|
203
|
-
amount: 19.99
|
|
204
|
-
currency: USD
|
|
205
|
-
small-spree-baseball-price-eur:
|
|
206
|
-
variant: small-spree-baseball
|
|
207
|
-
amount: 16.00
|
|
208
|
-
currency: EUR
|
|
209
|
-
med-spree-baseball-price-usd:
|
|
210
|
-
variant: med-spree-baseball
|
|
211
|
-
amount: 19.99
|
|
212
|
-
currency: USD
|
|
213
|
-
med-spree-baseball-price-eur:
|
|
214
|
-
variant: med-spree-baseball
|
|
215
|
-
amount: 16.00
|
|
216
|
-
currency: EUR
|
|
217
|
-
large-spree-baseball-price-usd:
|
|
218
|
-
variant: large-spree-baseball
|
|
219
|
-
amount: 19.99
|
|
220
|
-
currency: USD
|
|
221
|
-
large-spree-baseball-price-eur:
|
|
222
|
-
variant: large-spree-baseball
|
|
223
|
-
amount: 16.00
|
|
224
|
-
currency: EUR
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
ror_baseball_size:
|
|
2
|
-
product: ror_baseball_jersey
|
|
3
|
-
option_type: size
|
|
4
|
-
position: 1
|
|
5
|
-
ror_baseball_color:
|
|
6
|
-
product: ror_baseball_jersey
|
|
7
|
-
option_type: color
|
|
8
|
-
position: 2
|
|
9
|
-
spree_baseball_size:
|
|
10
|
-
product: spree_baseball_jersey
|
|
11
|
-
option_type: size
|
|
12
|
-
position: 3
|
|
13
|
-
spree_baseball_color:
|
|
14
|
-
product: spree_baseball_jersey
|
|
15
|
-
option_type: color
|
|
16
|
-
position: 4
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
shirt_man_a:
|
|
2
|
-
product: ror_baseball_jersey
|
|
3
|
-
property: prop_manufacturer
|
|
4
|
-
value: Wilson
|
|
5
|
-
shirt_man_b:
|
|
6
|
-
product: ror_jr_spaghetti
|
|
7
|
-
property: prop_manufacturer
|
|
8
|
-
value: Jerseys
|
|
9
|
-
shirt_man_c:
|
|
10
|
-
product: ror_ringer
|
|
11
|
-
property: prop_manufacturer
|
|
12
|
-
value: Jerseys
|
|
13
|
-
shirt_brand_a:
|
|
14
|
-
product: ror_baseball_jersey
|
|
15
|
-
property: prop_brand
|
|
16
|
-
value: Wannabe Sports
|
|
17
|
-
shirt_brand_b:
|
|
18
|
-
product: ror_jr_spaghetti
|
|
19
|
-
property: prop_brand
|
|
20
|
-
value: Resilance
|
|
21
|
-
shirt_brand_c:
|
|
22
|
-
product: ror_ringer
|
|
23
|
-
property: prop_brand
|
|
24
|
-
value: Conditioned
|
|
25
|
-
shirt_model_a:
|
|
26
|
-
product: ror_baseball_jersey
|
|
27
|
-
property: prop_model
|
|
28
|
-
value: JK1002
|
|
29
|
-
shirt_model_b:
|
|
30
|
-
product: ror_jr_spaghetti
|
|
31
|
-
property: prop_model
|
|
32
|
-
value: TL174
|
|
33
|
-
shirt_model_c:
|
|
34
|
-
product: ror_ringer
|
|
35
|
-
property: prop_model
|
|
36
|
-
value: TL9002
|
|
37
|
-
shirt_type_a:
|
|
38
|
-
product: ror_baseball_jersey
|
|
39
|
-
property: prop_shirt_type
|
|
40
|
-
value: Baseball Jersey
|
|
41
|
-
shirt_type_b:
|
|
42
|
-
product: ror_jr_spaghetti
|
|
43
|
-
property: prop_shirt_type
|
|
44
|
-
value: Jr Spaghetti T
|
|
45
|
-
shirt_type_c:
|
|
46
|
-
product: ror_ringer
|
|
47
|
-
property: prop_shirt_type
|
|
48
|
-
value: Ringer T
|
|
49
|
-
shirt_sleeve_a:
|
|
50
|
-
product: ror_baseball_jersey
|
|
51
|
-
property: prop_shirt_sleeve_type
|
|
52
|
-
value: long
|
|
53
|
-
shirt_sleeve_b:
|
|
54
|
-
product: ror_jr_spaghetti
|
|
55
|
-
property: prop_shirt_sleeve_type
|
|
56
|
-
value: none
|
|
57
|
-
shirt_sleeve_c:
|
|
58
|
-
product: ror_ringer
|
|
59
|
-
property: prop_shirt_sleeve_type
|
|
60
|
-
value: short
|
|
61
|
-
shirt_fab_a:
|
|
62
|
-
product: ror_baseball_jersey
|
|
63
|
-
property: prop_shirt_fabric
|
|
64
|
-
value: 100% Cotton
|
|
65
|
-
shirt_fab_b:
|
|
66
|
-
product: ror_jr_spaghetti
|
|
67
|
-
property: prop_shirt_fabric
|
|
68
|
-
value: 90% Cotton, 10% Nylon
|
|
69
|
-
shirt_fab_c:
|
|
70
|
-
product: ror_ringer
|
|
71
|
-
property: prop_shirt_fabric
|
|
72
|
-
value: 100% Vellum
|
|
73
|
-
shirt_fit_a:
|
|
74
|
-
product: ror_baseball_jersey
|
|
75
|
-
property: prop_shirt_fit
|
|
76
|
-
value: loose
|
|
77
|
-
shirt_fit_b:
|
|
78
|
-
product: ror_jr_spaghetti
|
|
79
|
-
property: prop_shirt_fit
|
|
80
|
-
value: form
|
|
81
|
-
shirt_fit_c:
|
|
82
|
-
product: ror_ringer
|
|
83
|
-
property: prop_shirt_fit
|
|
84
|
-
value: loose
|
|
85
|
-
shirt_gender_a:
|
|
86
|
-
product: ror_baseball_jersey
|
|
87
|
-
property: prop_gender
|
|
88
|
-
value: Men's
|
|
89
|
-
shirt_gender_b:
|
|
90
|
-
product: ror_jr_spaghetti
|
|
91
|
-
property: prop_gender
|
|
92
|
-
value: Women's
|
|
93
|
-
shirt_gender_c:
|
|
94
|
-
product: ror_ringer
|
|
95
|
-
property: prop_gender
|
|
96
|
-
value: Men's
|
|
97
|
-
bag_type_a:
|
|
98
|
-
product: ror_tote
|
|
99
|
-
property: prop_bag_type
|
|
100
|
-
value: Tote
|
|
101
|
-
bag_type_b:
|
|
102
|
-
product: ror_bag
|
|
103
|
-
property: prop_bag_type
|
|
104
|
-
value: Messenger
|
|
105
|
-
bag_size_a:
|
|
106
|
-
product: ror_tote
|
|
107
|
-
property: prop_bag_size
|
|
108
|
-
value: 15" x 18" x 6"
|
|
109
|
-
bag_size_b:
|
|
110
|
-
product: ror_bag
|
|
111
|
-
property: prop_bag_size
|
|
112
|
-
value: 14 1/2" x 12" x 5"
|
|
113
|
-
bag_mats_a:
|
|
114
|
-
product: ror_tote
|
|
115
|
-
property: prop_bag_material
|
|
116
|
-
value: Canvas
|
|
117
|
-
bag_mats_b:
|
|
118
|
-
product: ror_bag
|
|
119
|
-
property: prop_bag_material
|
|
120
|
-
value: 600 Denier Polyester
|
|
121
|
-
mug_type_a:
|
|
122
|
-
product: ror_mug
|
|
123
|
-
property: prop_mug_type
|
|
124
|
-
value: Mug
|
|
125
|
-
mug_type_b:
|
|
126
|
-
product: ror_stein
|
|
127
|
-
property: prop_mug_type
|
|
128
|
-
value: Stein
|
|
129
|
-
mug_size_a:
|
|
130
|
-
product: ror_mug
|
|
131
|
-
property: prop_mug_size
|
|
132
|
-
value: 4.5" tall, 3.25" dia.
|
|
133
|
-
mug_size_b:
|
|
134
|
-
product: ror_stein
|
|
135
|
-
property: prop_mug_size
|
|
136
|
-
value: 6.75" tall, 3.75" dia. base, 3" dia. rim
|
|
137
|
-
spree_mug_size_a:
|
|
138
|
-
product: spree_mug
|
|
139
|
-
property: prop_mug_size
|
|
140
|
-
value: 4.5" tall, 3.25" dia.
|
|
141
|
-
spree_mug_size_b:
|
|
142
|
-
product: spree_stein
|
|
143
|
-
property: prop_mug_size
|
|
144
|
-
value: 6.75" tall, 3.75" dia. base, 3" dia. rim
|
|
145
|
-
s_mug_type_a:
|
|
146
|
-
product: spree_mug
|
|
147
|
-
property: prop_mug_type
|
|
148
|
-
value: Mug
|
|
149
|
-
s_mug_type_b:
|
|
150
|
-
product: spree_stein
|
|
151
|
-
property: prop_mug_type
|
|
152
|
-
value: Stein
|
|
153
|
-
s_bag_type_a:
|
|
154
|
-
product: spree_tote
|
|
155
|
-
property: prop_bag_type
|
|
156
|
-
value: Tote
|
|
157
|
-
s_bag_type_b:
|
|
158
|
-
product: spree_bag
|
|
159
|
-
property: prop_bag_type
|
|
160
|
-
value: Messenger
|
|
161
|
-
s_bag_size_a:
|
|
162
|
-
product: spree_tote
|
|
163
|
-
property: prop_bag_size
|
|
164
|
-
value: 15" x 18" x 6"
|
|
165
|
-
s_bag_size_b:
|
|
166
|
-
product: spree_bag
|
|
167
|
-
property: prop_bag_size
|
|
168
|
-
value: 14 1/2" x 12" x 5"
|
|
169
|
-
s_shirt_man_a:
|
|
170
|
-
product: spree_baseball_jersey
|
|
171
|
-
property: prop_manufacturer
|
|
172
|
-
value: Wilson
|
|
173
|
-
s_shirt_man_b:
|
|
174
|
-
product: spree_jr_spaghetti
|
|
175
|
-
property: prop_manufacturer
|
|
176
|
-
value: Jerseys
|
|
177
|
-
s_shirt_man_c:
|
|
178
|
-
product: spree_ringer
|
|
179
|
-
property: prop_manufacturer
|
|
180
|
-
value: Jerseys
|
|
181
|
-
s_shirt_brand_a:
|
|
182
|
-
product: spree_baseball_jersey
|
|
183
|
-
property: prop_brand
|
|
184
|
-
value: Wannabe Sports
|
|
185
|
-
s_shirt_brand_b:
|
|
186
|
-
product: spree_jr_spaghetti
|
|
187
|
-
property: prop_brand
|
|
188
|
-
value: Resilance
|
|
189
|
-
s_shirt_brand_c:
|
|
190
|
-
product: spree_ringer
|
|
191
|
-
property: prop_brand
|
|
192
|
-
value: Conditioned
|
|
193
|
-
s_shirt_model_a:
|
|
194
|
-
product: spree_baseball_jersey
|
|
195
|
-
property: prop_model
|
|
196
|
-
value: JK1002
|
|
197
|
-
s_shirt_model_b:
|
|
198
|
-
product: spree_jr_spaghetti
|
|
199
|
-
property: prop_model
|
|
200
|
-
value: TL174
|
|
201
|
-
s_shirt_model_c:
|
|
202
|
-
product: spree_ringer
|
|
203
|
-
property: prop_model
|
|
204
|
-
value: TL9002
|
|
205
|
-
s_shirt_type_a:
|
|
206
|
-
product: spree_baseball_jersey
|
|
207
|
-
property: prop_shirt_type
|
|
208
|
-
value: Baseball Jersey
|
|
209
|
-
s_shirt_type_b:
|
|
210
|
-
product: spree_jr_spaghetti
|
|
211
|
-
property: prop_shirt_type
|
|
212
|
-
value: Jr Spaghetti T
|
|
213
|
-
s_shirt_type_c:
|
|
214
|
-
product: spree_ringer
|
|
215
|
-
property: prop_shirt_type
|
|
216
|
-
value: Ringer T
|
|
217
|
-
s_shirt_sleeve_a:
|
|
218
|
-
product: spree_baseball_jersey
|
|
219
|
-
property: prop_shirt_sleeve_type
|
|
220
|
-
value: long
|
|
221
|
-
s_shirt_sleeve_b:
|
|
222
|
-
product: spree_jr_spaghetti
|
|
223
|
-
property: prop_shirt_sleeve_type
|
|
224
|
-
value: none
|
|
225
|
-
s_shirt_sleeve_c:
|
|
226
|
-
product: spree_ringer
|
|
227
|
-
property: prop_shirt_sleeve_type
|
|
228
|
-
value: short
|
|
229
|
-
s_shirt_fab_a:
|
|
230
|
-
product: spree_baseball_jersey
|
|
231
|
-
property: prop_shirt_fabric
|
|
232
|
-
value: 100% Cotton
|
|
233
|
-
s_shirt_fab_b:
|
|
234
|
-
product: spree_jr_spaghetti
|
|
235
|
-
property: prop_shirt_fabric
|
|
236
|
-
value: 90% Cotton, 10% Nylon
|
|
237
|
-
s_shirt_fab_c:
|
|
238
|
-
product: spree_ringer
|
|
239
|
-
property: prop_shirt_fabric
|
|
240
|
-
value: 100% Vellum
|
|
241
|
-
s_shirt_fit_a:
|
|
242
|
-
product: spree_baseball_jersey
|
|
243
|
-
property: prop_shirt_fit
|
|
244
|
-
value: loose
|
|
245
|
-
s_shirt_fit_b:
|
|
246
|
-
product: spree_jr_spaghetti
|
|
247
|
-
property: prop_shirt_fit
|
|
248
|
-
value: form
|
|
249
|
-
s_shirt_fit_c:
|
|
250
|
-
product: spree_ringer
|
|
251
|
-
property: prop_shirt_fit
|
|
252
|
-
value: loose
|
|
253
|
-
s_shirt_gender_a:
|
|
254
|
-
product: spree_baseball_jersey
|
|
255
|
-
property: prop_gender
|
|
256
|
-
value: Men's
|
|
257
|
-
s_shirt_gender_b:
|
|
258
|
-
product: spree_jr_spaghetti
|
|
259
|
-
property: prop_gender
|
|
260
|
-
value: Women's
|
|
261
|
-
s_shirt_gender_c:
|
|
262
|
-
product: spree_ringer
|
|
263
|
-
property: prop_gender
|
|
264
|
-
value: Men's
|
data/db/sample/spree/products.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# make sure the product images directory exists
|
|
2
|
-
FileUtils.mkdir_p "#{Rails.root}/public/spree/products/"
|
|
3
|
-
|
|
4
|
-
Spree::Asset.all.each do |asset|
|
|
5
|
-
filename = asset.attachment_file_name
|
|
6
|
-
puts "-- Processing image: #{filename}\r"
|
|
7
|
-
path = File.join(File.dirname(__FILE__), "products/#{filename}")
|
|
8
|
-
|
|
9
|
-
if FileTest.exists? path
|
|
10
|
-
asset.attachment = File.open(path)
|
|
11
|
-
asset.save
|
|
12
|
-
else
|
|
13
|
-
puts "--- Could not find image at: #{path}"
|
|
14
|
-
end
|
|
15
|
-
end
|