spree_sample 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/products.rb +1 -3
- data/db/samples/shipping_categories.rb +1 -1
- data/db/samples/shipping_methods.rb +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fc03e8fb9c2c3a71bbf4ba2dbfd90b4af42b91a
|
4
|
+
data.tar.gz: 1cacda0ba9a64db8856acdaf0fb174465e97fd16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cb1ec401346daf68a04e2ffee474492e0d4bae74dae73829c754628fed5e1a112ed9700684c932bc0e34c8c5073b4937225c5a8ace10f6e3fe2efb6a7b90107
|
7
|
+
data.tar.gz: bd3205d1bcbac959513d1464b70afe59316ec1b8c5e800968ecef5a9e5944299309ced6602f362824c8a06d9bcb13025024093285cc954f4b992abe672240b76
|
data/db/samples/products.rb
CHANGED
@@ -2,7 +2,7 @@ Spree::Sample.load_sample("tax_categories")
|
|
2
2
|
Spree::Sample.load_sample("shipping_categories")
|
3
3
|
|
4
4
|
clothing = Spree::TaxCategory.find_by_name!("Clothing")
|
5
|
-
shipping_category = Spree::ShippingCategory.find_by_name!("Default
|
5
|
+
shipping_category = Spree::ShippingCategory.find_by_name!("Default")
|
6
6
|
|
7
7
|
default_attrs = {
|
8
8
|
:description => Faker::Lorem.paragraph,
|
@@ -125,12 +125,10 @@ products.each do |product_attrs|
|
|
125
125
|
eur_price = product_attrs.delete(:eur_price)
|
126
126
|
Spree::Config[:currency] = "USD"
|
127
127
|
|
128
|
-
default_shipping_category = Spree::ShippingCategory.find_by_name!("Default Shipping")
|
129
128
|
product = Spree::Product.create!(default_attrs.merge(product_attrs), :without_protection => true)
|
130
129
|
Spree::Config[:currency] = "EUR"
|
131
130
|
product.reload
|
132
131
|
product.price = eur_price
|
133
|
-
product.shipping_category = default_shipping_category
|
134
132
|
product.save!
|
135
133
|
end
|
136
134
|
|
@@ -1 +1 @@
|
|
1
|
-
Spree::ShippingCategory.create!(:name => "Default
|
1
|
+
Spree::ShippingCategory.create!(:name => "Default")
|
@@ -7,31 +7,31 @@ rescue ActiveRecord::RecordNotFound
|
|
7
7
|
end
|
8
8
|
|
9
9
|
europe_vat = Spree::Zone.find_by_name!("EU_VAT")
|
10
|
-
shipping_category = Spree::ShippingCategory.
|
10
|
+
shipping_category = Spree::ShippingCategory.find_by_name!("Default")
|
11
11
|
|
12
12
|
shipping_methods = [
|
13
13
|
{
|
14
14
|
:name => "UPS Ground (USD)",
|
15
15
|
:zones => [north_america],
|
16
|
-
:calculator => Spree::Calculator::FlatRate.create!,
|
16
|
+
:calculator => Spree::Calculator::Shipping::FlatRate.create!,
|
17
17
|
:shipping_categories => [shipping_category]
|
18
18
|
},
|
19
19
|
{
|
20
20
|
:name => "UPS Two Day (USD)",
|
21
21
|
:zones => [north_america],
|
22
|
-
:calculator => Spree::Calculator::FlatRate.create!,
|
22
|
+
:calculator => Spree::Calculator::Shipping::FlatRate.create!,
|
23
23
|
:shipping_categories => [shipping_category]
|
24
24
|
},
|
25
25
|
{
|
26
26
|
:name => "UPS One Day (USD)",
|
27
27
|
:zones => [north_america],
|
28
|
-
:calculator => Spree::Calculator::FlatRate.create!,
|
28
|
+
:calculator => Spree::Calculator::Shipping::FlatRate.create!,
|
29
29
|
:shipping_categories => [shipping_category]
|
30
30
|
},
|
31
31
|
{
|
32
32
|
:name => "UPS Ground (EUR)",
|
33
33
|
:zones => [europe_vat],
|
34
|
-
:calculator => Spree::Calculator::FlatRate.create!,
|
34
|
+
:calculator => Spree::Calculator::Shipping::FlatRate.create!,
|
35
35
|
:shipping_categories => [shipping_category]
|
36
36
|
}
|
37
37
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.6
|
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: 2.0.
|
26
|
+
version: 2.0.6
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|