spree_sample 1.3.4 → 1.3.5
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 +6 -1
- data/db/samples/taxons.rb +28 -4
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f6e81766b9b1dd35cfa4012c68fd08cb24e3e6a
|
4
|
+
data.tar.gz: 30232ddc294b4ef35b11f0a3c1c56365bd2447e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a1488193251685091292e4e3a55ff13c8b12eb3b955ad18a9ae98ba326ac4796c5bcb9ee8507606051e6affc3e2ca7a334a8a9306f5b602bb856b35b1a520f
|
7
|
+
data.tar.gz: 4854860c7efc86428a107b88583478058da46cae937027afdb20ec1c2d75864804c05ab03eadf14c67e35c45aa360609d04d69e29626a76a543056a2e2cc63c9
|
data/db/samples/orders.rb
CHANGED
@@ -5,10 +5,13 @@ order = Spree::Order.create!({
|
|
5
5
|
:email => "spree@example.com",
|
6
6
|
:item_total => 150.95,
|
7
7
|
:adjustment_total => 150.95,
|
8
|
+
:shipping_method => Spree::ShippingMethod.first,
|
8
9
|
:total => 301.90,
|
9
10
|
:shipping_address => Spree::Address.first,
|
10
11
|
:billing_address => Spree::Address.last
|
11
12
|
}, :without_protection => true)
|
13
|
+
|
14
|
+
order.create_shipment!
|
12
15
|
order.state = "complete"
|
13
16
|
order.completed_at = Time.now - 1.day
|
14
17
|
order.save!
|
@@ -19,10 +22,12 @@ order = Spree::Order.create!({
|
|
19
22
|
:item_total => 15.95,
|
20
23
|
:adjustment_total => 15.95,
|
21
24
|
:total => 31.90,
|
25
|
+
:shipping_method => Spree::ShippingMethod.first,
|
22
26
|
:shipping_address => Spree::Address.first,
|
23
27
|
:billing_address => Spree::Address.last
|
24
28
|
}, :without_protection => true)
|
29
|
+
|
30
|
+
order.create_shipment!
|
25
31
|
order.state = "complete"
|
26
32
|
order.completed_at = Time.now - 1.day
|
27
33
|
order.save!
|
28
|
-
|
data/db/samples/taxons.rb
CHANGED
@@ -94,22 +94,46 @@ taxons = [
|
|
94
94
|
{
|
95
95
|
:name => "Ruby",
|
96
96
|
:taxonomy => brands,
|
97
|
-
:parent => "Brand"
|
97
|
+
:parent => "Brand",
|
98
|
+
:products => [
|
99
|
+
products[:ruby_baseball_jersey]
|
100
|
+
]
|
98
101
|
},
|
99
102
|
{
|
100
103
|
:name => "Apache",
|
101
104
|
:taxonomy => brands,
|
102
|
-
:parent => "Brand"
|
105
|
+
:parent => "Brand",
|
106
|
+
:products => [
|
107
|
+
products[:apache_baseball_jersey]
|
108
|
+
]
|
103
109
|
},
|
104
110
|
{
|
105
111
|
:name => "Spree",
|
106
112
|
:taxonomy => brands,
|
107
|
-
:parent => "Brand"
|
113
|
+
:parent => "Brand",
|
114
|
+
:products => [
|
115
|
+
products[:spree_stein],
|
116
|
+
products[:spree_mug],
|
117
|
+
products[:spree_ringer],
|
118
|
+
products[:spree_baseball_jersey],
|
119
|
+
products[:spree_tote],
|
120
|
+
products[:spree_bag],
|
121
|
+
products[:spree_jr_spaghetti],
|
122
|
+
]
|
108
123
|
},
|
109
124
|
{
|
110
125
|
:name => "Rails",
|
111
126
|
:taxonomy => brands,
|
112
|
-
:parent => "Brand"
|
127
|
+
:parent => "Brand",
|
128
|
+
:products => [
|
129
|
+
products[:ror_tote],
|
130
|
+
products[:ror_bag],
|
131
|
+
products[:ror_mug],
|
132
|
+
products[:ror_stein],
|
133
|
+
products[:ror_baseball_jersey],
|
134
|
+
products[:ror_jr_spaghetti],
|
135
|
+
products[:ror_ringer],
|
136
|
+
]
|
113
137
|
},
|
114
138
|
]
|
115
139
|
|
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: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-23 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: 1.3.
|
19
|
+
version: 1.3.5
|
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.3.
|
26
|
+
version: 1.3.5
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|
@@ -31,9 +31,7 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- LICENSE
|
34
|
-
-
|
35
|
-
- lib/spree_sample.rb
|
36
|
-
- lib/tasks/sample.rake
|
34
|
+
- db/samples.rb
|
37
35
|
- db/samples/addresses.rb
|
38
36
|
- db/samples/adjustments.rb
|
39
37
|
- db/samples/assets.rb
|
@@ -87,7 +85,9 @@ files:
|
|
87
85
|
- db/samples/taxonomies.rb
|
88
86
|
- db/samples/taxons.rb
|
89
87
|
- db/samples/variants.rb
|
90
|
-
-
|
88
|
+
- lib/spree/sample.rb
|
89
|
+
- lib/spree_sample.rb
|
90
|
+
- lib/tasks/sample.rake
|
91
91
|
homepage: http://spreecommerce.com
|
92
92
|
licenses:
|
93
93
|
- BSD-3
|
@@ -98,18 +98,18 @@ require_paths:
|
|
98
98
|
- lib
|
99
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 1.8.7
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements:
|
110
110
|
- none
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.2.0
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Sample data (including images) for use with Spree.
|