spree_sample 1.3.3 → 1.3.4
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 +2 -0
- data/db/samples/variants.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca2dc1f2bf0a05cda028baed155eb4e5914998ea
|
4
|
+
data.tar.gz: 8b1ffbc448301f22cac06273123dafbeb460f7e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6a7b46f0b9ed94d74c6a54e3ce1f0f70022a42a95cc96bd7e2a421cd83e96995e79b7620d86870355805407fd6f673430966041facbbbb491a7b2bdc7b9b299
|
7
|
+
data.tar.gz: 6db4a08573dc01ff49b013c0b2a363363985e123a4816a13f8eef54872d84ea8bee0a924e2e5784cdd7ad977d7bc180a4afaa7aac735392500e8f8e244b1f82d
|
data/db/samples/orders.rb
CHANGED
@@ -10,6 +10,7 @@ order = Spree::Order.create!({
|
|
10
10
|
:billing_address => Spree::Address.last
|
11
11
|
}, :without_protection => true)
|
12
12
|
order.state = "complete"
|
13
|
+
order.completed_at = Time.now - 1.day
|
13
14
|
order.save!
|
14
15
|
|
15
16
|
order = Spree::Order.create!({
|
@@ -22,5 +23,6 @@ order = Spree::Order.create!({
|
|
22
23
|
:billing_address => Spree::Address.last
|
23
24
|
}, :without_protection => true)
|
24
25
|
order.state = "complete"
|
26
|
+
order.completed_at = Time.now - 1.day
|
25
27
|
order.save!
|
26
28
|
|
data/db/samples/variants.rb
CHANGED
@@ -162,9 +162,9 @@ masters = {
|
|
162
162
|
}
|
163
163
|
|
164
164
|
variants.each do |variant_attrs|
|
165
|
-
Spree::Variant.create!(variant_attrs, :without_protection => true)
|
165
|
+
Spree::Variant.create!(variant_attrs.merge(default_attrs), :without_protection => true)
|
166
166
|
end
|
167
167
|
|
168
168
|
masters.each do |product, variant_attrs|
|
169
|
-
product.master.update_attributes!(variant_attrs)
|
169
|
+
product.master.update_attributes!(variant_attrs.merge(default_attrs), :without_protection => true)
|
170
170
|
end
|
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.4
|
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: 1.3.
|
19
|
+
version: 1.3.4
|
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.4
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
110
110
|
- none
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.1.0
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Sample data (including images) for use with Spree.
|