spree_sample 2.1.1 → 2.1.2
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 +2 -2
- data/db/samples/shipping_categories.rb +1 -1
- data/db/samples/shipping_methods.rb +4 -4
- 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: 4de8a84b5e54d8a3fba0f60b169eacc8904d0c6e
|
4
|
+
data.tar.gz: b2d1328e5114bea936963452d70bab1580d7ff36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e6700362f9a19f53564c24c327728afcc25f48b68f0451f22f51262c5b1d8d198a0846412118505cdc4f05f16bb6a43501d303281d43cc0d2b3f1a3366dbd06
|
7
|
+
data.tar.gz: 35b87fb272bdf82fe39f859c32efaa0507ad8275a4e7096bd4eb37c7285591483681be50eecedf5ed5b6e0b2943318a71b5e9f0bf19457b43cf74c14fc2391d3
|
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,7 +125,7 @@ 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
|
128
|
+
default_shipping_category = Spree::ShippingCategory.find_by_name!("Default")
|
129
129
|
product = Spree::Product.create!(default_attrs.merge(product_attrs))
|
130
130
|
Spree::Config[:currency] = "EUR"
|
131
131
|
product.reload
|
@@ -1 +1 @@
|
|
1
|
-
Spree::ShippingCategory.create!(:name => "Default
|
1
|
+
Spree::ShippingCategory.create!(:name => "Default")
|
@@ -13,25 +13,25 @@ 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.1.
|
4
|
+
version: 2.1.2
|
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.1.
|
19
|
+
version: 2.1.2
|
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.1.
|
26
|
+
version: 2.1.2
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|