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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f61d5b679c2b6d0d707d9a3ec3799d40e89fadb8
4
- data.tar.gz: 7dd4f4556d9227e69333a7344fdf2d65fd5457f5
3
+ metadata.gz: bfa09cbf3ac234b7034f9788e364ee054d78b5ae
4
+ data.tar.gz: 60439ef0d35426996303b3c9d7f1bead11132375
5
5
  SHA512:
6
- metadata.gz: 6737544ce96d139ba172d59d24e9a4cbec54dbaf68877df59e78614b716c9ccdfa4c7db0954277c0b2951fa81dc5a004abc0e841005e7f2ff2a8ee4ad1292c68
7
- data.tar.gz: b57d5b5163c0259f8be2c6713236294c3f03c4a0005d56d8c3978630292d75f3f44e881b50f8aa25c4e7576a1c53b3b23c0c62aaf2d7bebcf2c1b432c96d87d9
6
+ metadata.gz: fe27077106fd441c623ef624b7e30f3d82675f1312ee9fdd26076e04cb4148b7a7242f420e993e92bdb73f7d528987412f9ad0f7b4a2308218d28fdea127b980
7
+ data.tar.gz: 6d99931a97e5dc9ee60ae0decc7a9b7a54b39ad4030a731055939dcef2587f6d0f9fabb38de4a08e0f2bb5fd7ddcd11ba4d4ff4138f15488b4afb92703032e0b
@@ -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.find_by_name!(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.find_by_name!(taxon_attrs[:parent])
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
@@ -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.find_by_name!("Small")
22
- medium = Spree::OptionValue.find_by_name!("Medium")
23
- large = Spree::OptionValue.find_by_name!("Large")
24
- extra_large = Spree::OptionValue.find_by_name!("Extra Large")
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.find_by_name!("Red")
27
- blue = Spree::OptionValue.find_by_name!("Blue")
28
- green = Spree::OptionValue.find_by_name!("Green")
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.rc4
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-03 00:00:00.000000000 Z
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.rc4
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.rc4
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: 1.3.1
107
+ version: '0'
108
108
  requirements:
109
109
  - none
110
110
  rubyforge_project: