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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a05e1ad44e218def41d0db5771448eb038a11e38
4
- data.tar.gz: 3e60dabe230eba05127b9f75043865648e9d2c54
3
+ metadata.gz: cfbc146f9301412ebf02bea6af4a1364fa819439
4
+ data.tar.gz: 83194cb7b6a8c6c66644ff7226fdb1fc9784984f
5
5
  SHA512:
6
- metadata.gz: 915f17a71032334797a052e48194cba8edd344cdc7b204794c9c4437c14b7636646d349bf79ea6fc878c06930a88dc26bf17c502e126037047f2ea09c776001a
7
- data.tar.gz: 93d68aa43c4c1774829e423cfd78195ba1ef5e456e1bb286dc07d4c5f854549b3060cf404ba4a9a3476fa1d9e4a190ebcd2372aba7ab641bd542d9242671dbb3
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!
@@ -0,0 +1,6 @@
1
+ Spree::Store.create!(
2
+ name: "Sample Store",
3
+ code: "sample-store",
4
+ url: "solidus.example.com",
5
+ mail_from_address: "store@example.com",
6
+ )
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.pre2
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-20 00:00:00.000000000 Z
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.pre2
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.pre2
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