solidus_sample 1.0.0.pre2 → 1.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/orders.rb +3 -0
- data/db/samples/stores.rb +6 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbc146f9301412ebf02bea6af4a1364fa819439
|
4
|
+
data.tar.gz: 83194cb7b6a8c6c66644ff7226fdb1fc9784984f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a9f2b327405fc5cc465316995e7a9de26841bf34e666da5e7d0881f2d4c7b98f382102f22d6f482893fb176425c520911f1ace813b3505ee51f770fb66fe20
|
7
|
+
data.tar.gz: 55f4e519a07d40639ce6b396d06851dfb85d0b22203b55ea887d4b5dc0992bedb92decd921f26800d46e0801c9d311ece9a5baf88a9273dc63970a53239acf28
|
data/db/samples/orders.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Spree::Sample.load_sample("addresses")
|
2
|
+
Spree::Sample.load_sample("stores")
|
2
3
|
|
3
4
|
payment_method = Spree::PaymentMethod::Check.first!
|
5
|
+
store = Spree::Store.first!
|
4
6
|
|
5
7
|
orders = []
|
6
8
|
orders << Spree::Order.create!(
|
@@ -33,6 +35,7 @@ orders[1].line_items.create!(
|
|
33
35
|
|
34
36
|
orders.each do |order|
|
35
37
|
order.payments.create!(payment_method: payment_method)
|
38
|
+
order.update_attributes(store: store)
|
36
39
|
|
37
40
|
order.next! while !order.can_complete?
|
38
41
|
order.complete!
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-28 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: 1.0.0.
|
19
|
+
version: 1.0.0.pre3
|
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: 1.0.0.
|
26
|
+
version: 1.0.0.pre3
|
27
27
|
description: Sample data (including images) for use with Solidus.
|
28
28
|
email: contact@solidus.io
|
29
29
|
executables: []
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- db/samples/shipping_categories.rb
|
67
67
|
- db/samples/shipping_methods.rb
|
68
68
|
- db/samples/stock.rb
|
69
|
+
- db/samples/stores.rb
|
69
70
|
- db/samples/tax_categories.rb
|
70
71
|
- db/samples/tax_rates.rb
|
71
72
|
- db/samples/taxonomies.rb
|