spree_sample 3.0.0.rc4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/prototypes.rb +1 -1
- data/db/samples/taxons.rb +1 -1
- data/db/samples/variants.rb +7 -7
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfa09cbf3ac234b7034f9788e364ee054d78b5ae
|
4
|
+
data.tar.gz: 60439ef0d35426996303b3c9d7f1bead11132375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe27077106fd441c623ef624b7e30f3d82675f1312ee9fdd26076e04cb4148b7a7242f420e993e92bdb73f7d528987412f9ad0f7b4a2308218d28fdea127b980
|
7
|
+
data.tar.gz: 6d99931a97e5dc9ee60ae0decc7a9b7a54b39ad4030a731055939dcef2587f6d0f9fabb38de4a08e0f2bb5fd7ddcd11ba4d4ff4138f15488b4afb92703032e0b
|
data/db/samples/prototypes.rb
CHANGED
@@ -16,6 +16,6 @@ prototypes = [
|
|
16
16
|
prototypes.each do |prototype_attrs|
|
17
17
|
prototype = Spree::Prototype.create!(:name => prototype_attrs[:name])
|
18
18
|
prototype_attrs[:properties].each do |property|
|
19
|
-
prototype.properties << Spree::Property.
|
19
|
+
prototype.properties << Spree::Property.where(name: property).first
|
20
20
|
end
|
21
21
|
end
|
data/db/samples/taxons.rb
CHANGED
@@ -139,7 +139,7 @@ taxons = [
|
|
139
139
|
|
140
140
|
taxons.each do |taxon_attrs|
|
141
141
|
if taxon_attrs[:parent]
|
142
|
-
taxon_attrs[:parent] = Spree::Taxon.
|
142
|
+
taxon_attrs[:parent] = Spree::Taxon.where(name: taxon_attrs[:parent]).first
|
143
143
|
Spree::Taxon.create!(taxon_attrs)
|
144
144
|
end
|
145
145
|
end
|
data/db/samples/variants.rb
CHANGED
@@ -18,14 +18,14 @@ spree_bag = Spree::Product.find_by_name!("Spree Bag")
|
|
18
18
|
ruby_baseball_jersey = Spree::Product.find_by_name!("Ruby Baseball Jersey")
|
19
19
|
apache_baseball_jersey = Spree::Product.find_by_name!("Apache Baseball Jersey")
|
20
20
|
|
21
|
-
small = Spree::OptionValue.
|
22
|
-
medium = Spree::OptionValue.
|
23
|
-
large = Spree::OptionValue.
|
24
|
-
extra_large = Spree::OptionValue.
|
21
|
+
small = Spree::OptionValue.where(name: "Small").first
|
22
|
+
medium = Spree::OptionValue.where(name: "Medium").first
|
23
|
+
large = Spree::OptionValue.where(name: "Large").first
|
24
|
+
extra_large = Spree::OptionValue.where(name: "Extra Large").first
|
25
25
|
|
26
|
-
red = Spree::OptionValue.
|
27
|
-
blue = Spree::OptionValue.
|
28
|
-
green = Spree::OptionValue.
|
26
|
+
red = Spree::OptionValue.where(name: "Red").first
|
27
|
+
blue = Spree::OptionValue.where(name: "Blue").first
|
28
|
+
green = Spree::OptionValue.where(name: "Green").first
|
29
29
|
|
30
30
|
variants = [
|
31
31
|
{
|
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: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 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: 3.0.0
|
19
|
+
version: 3.0.0
|
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: 3.0.0
|
26
|
+
version: 3.0.0
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|
@@ -102,9 +102,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - "
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
requirements:
|
109
109
|
- none
|
110
110
|
rubyforge_project:
|