spree_sample 1.0.7 → 1.1.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  img_tote:
2
2
  id: 1
3
- viewable: ror_tote
4
- viewable_type: Spree::Product
3
+ viewable: ror_tote_v
4
+ viewable_type: Spree::Variant
5
5
  attachment_content_type: image/jpg
6
6
  attachment_file_name: ror_tote.jpeg
7
7
  attachment_width: 360
@@ -10,8 +10,8 @@ img_tote:
10
10
  position: 1
11
11
  img_tote_back:
12
12
  id: 2
13
- viewable: ror_tote
14
- viewable_type: Spree::Product
13
+ viewable: ror_tote_v
14
+ viewable_type: Spree::Variant
15
15
  attachment_content_type: image/jpg
16
16
  attachment_file_name: ror_tote_back.jpeg
17
17
  attachment_width: 360
@@ -20,8 +20,8 @@ img_tote_back:
20
20
  position: 2
21
21
  img_bag:
22
22
  id: 3
23
- viewable: ror_bag
24
- viewable_type: Spree::Product
23
+ viewable: ror_bag_v
24
+ viewable_type: Spree::Variant
25
25
  attachment_content_type: image/jpg
26
26
  attachment_file_name: ror_bag.jpeg
27
27
  attachment_width: 360
@@ -30,8 +30,8 @@ img_bag:
30
30
  position: 1
31
31
  img_baseball:
32
32
  id: 4
33
- viewable: ror_baseball_jersey
34
- viewable_type: Spree::Product
33
+ viewable: ror_baseball_jersey_v
34
+ viewable_type: Spree::Variant
35
35
  attachment_content_type: image/jpg
36
36
  attachment_file_name: ror_baseball.jpeg
37
37
  attachment_width: 360
@@ -40,8 +40,8 @@ img_baseball:
40
40
  position: 1
41
41
  img_baseball_back:
42
42
  id: 5
43
- viewable: ror_baseball_jersey
44
- viewable_type: Spree::Product
43
+ viewable: ror_baseball_jersey_v
44
+ viewable_type: Spree::Variant
45
45
  attachment_content_type: image/jpg
46
46
  attachment_file_name: ror_baseball_back.jpeg
47
47
  attachment_width: 360
@@ -50,8 +50,8 @@ img_baseball_back:
50
50
  position: 2
51
51
  img_jr_spaghetti:
52
52
  id: 6
53
- viewable: ror_jr_spaghetti
54
- viewable_type: Spree::Product
53
+ viewable: ror_jr_spaghetti_v
54
+ viewable_type: Spree::Variant
55
55
  attachment_content_type: image/jpg
56
56
  attachment_file_name: ror_jr_spaghetti.jpeg
57
57
  attachment_width: 360
@@ -60,8 +60,8 @@ img_jr_spaghetti:
60
60
  position: 1
61
61
  img_mug:
62
62
  id: 7
63
- viewable: ror_mug
64
- viewable_type: Spree::Product
63
+ viewable: ror_mug_v
64
+ viewable_type: Spree::Variant
65
65
  attachment_content_type: image/jpg
66
66
  attachment_file_name: ror_mug.jpeg
67
67
  attachment_width: 360
@@ -70,8 +70,8 @@ img_mug:
70
70
  position: 1
71
71
  img_mug_back:
72
72
  id: 8
73
- viewable: ror_mug
74
- viewable_type: Spree::Product
73
+ viewable: ror_mug_v
74
+ viewable_type: Spree::Variant
75
75
  attachment_content_type: image/jpg
76
76
  attachment_file_name: ror_mug_back.jpeg
77
77
  attachment_width: 360
@@ -80,8 +80,8 @@ img_mug_back:
80
80
  position: 2
81
81
  img_ringer:
82
82
  id: 9
83
- viewable: ror_ringer
84
- viewable_type: Spree::Product
83
+ viewable: ror_ringer_v
84
+ viewable_type: Spree::Variant
85
85
  attachment_content_type: image/jpg
86
86
  attachment_file_name: ror_ringer.jpeg
87
87
  attachment_width: 360
@@ -90,8 +90,8 @@ img_ringer:
90
90
  position: 1
91
91
  img_ringer_back:
92
92
  id: 10
93
- viewable: ror_ringer
94
- viewable_type: Spree::Product
93
+ viewable: ror_ringer_v
94
+ viewable_type: Spree::Variant
95
95
  attachment_content_type: image/jpg
96
96
  attachment_file_name: ror_ringer_back.jpeg
97
97
  attachment_width: 360
@@ -100,8 +100,8 @@ img_ringer_back:
100
100
  position: 2
101
101
  img_stein:
102
102
  id: 11
103
- viewable: ror_stein
104
- viewable_type: Spree::Product
103
+ viewable: ror_stein_v
104
+ viewable_type: Spree::Variant
105
105
  attachment_content_type: image/jpg
106
106
  attachment_file_name: ror_stein.jpeg
107
107
  attachment_width: 360
@@ -110,8 +110,8 @@ img_stein:
110
110
  position: 1
111
111
  img_stein_back:
112
112
  id: 12
113
- viewable: ror_stein
114
- viewable_type: Spree::Product
113
+ viewable: ror_stein_v
114
+ viewable_type: Spree::Variant
115
115
  attachment_content_type: image/jpg
116
116
  attachment_file_name: ror_stein_back.jpeg
117
117
  attachment_width: 360
@@ -120,8 +120,8 @@ img_stein_back:
120
120
  position: 2
121
121
  img_apache_baseball:
122
122
  id: 1004
123
- viewable: apache_baseball_jersey
124
- viewable_type: Spree::Product
123
+ viewable: apache_baseball_jersey_v
124
+ viewable_type: Spree::Variant
125
125
  attachment_content_type: image/png
126
126
  attachment_file_name: apache_baseball.png
127
127
  attachment_width: 504
@@ -130,8 +130,8 @@ img_apache_baseball:
130
130
  position: 1
131
131
  img_ruby_baseball:
132
132
  id: 1008
133
- viewable: ruby_baseball_jersey
134
- viewable_type: Spree::Product
133
+ viewable: ruby_baseball_jersey_v
134
+ viewable_type: Spree::Variant
135
135
  attachment_content_type: image/png
136
136
  attachment_file_name: ruby_baseball.png
137
137
  attachment_width: 495
@@ -1,4 +1,4 @@
1
1
  # create the inventory units associated with the line item (we need to do this after the fixture b/c quantity is random)
2
2
  Spree::LineItem.all.each do |li|
3
- li.quantity.times { li.order.inventory_units.create(:variant => li.variant, :state => 'sold', :shipment => li.order.shipment) }
3
+ li.quantity.times { li.order.inventory_units.create({:variant => li.variant, :state => 'sold', :shipment => li.order.shipment}, :without_protection => true) }
4
4
  end
@@ -8,15 +8,15 @@ Spree::Gateway.class_eval do
8
8
  end
9
9
  end
10
10
 
11
- creditcard = Spree::Creditcard.create(:cc_type => 'visa', :month => 12, :year => 2014, :last_digits => '1111',
11
+ creditcard = Spree::Creditcard.create({:cc_type => 'visa', :month => 12, :year => 2014, :last_digits => '1111',
12
12
  :first_name => 'Sean', :last_name => 'Schofield',
13
- :gateway_customer_profile_id => 'BGS-1234')
13
+ :gateway_customer_profile_id => 'BGS-1234'}, :without_protection => true)
14
14
 
15
15
  Spree::Order.all.each_with_index do |order,index|
16
16
  printf "\rProcessing order #{index}"
17
17
  STDOUT.flush
18
18
  order.update!
19
- payment = order.payments.create(:amount => order.total, :source => creditcard.clone, :payment_method => method)
19
+ payment = order.payments.create({:amount => order.total, :source => creditcard.clone, :payment_method => method}, :without_protection => true)
20
20
  payment.update_attributes_without_callbacks({
21
21
  :state => 'pending',
22
22
  :response_code => '12345'
@@ -68,7 +68,7 @@ xlarge-green-baseball:
68
68
  price: 21.99
69
69
  cost_price: 20.00
70
70
  count_on_hand: 10
71
- ror_baseball_jersey:
71
+ ror_baseball_jersey_v:
72
72
  product: ror_baseball_jersey
73
73
  sku: ROR-001
74
74
  price: 19.99
@@ -117,14 +117,14 @@ ror_stein_v:
117
117
  cost_price: 15.00
118
118
  is_master: true
119
119
  count_on_hand: 10
120
- apache_baseball_v:
120
+ apache_baseball_jersey_v:
121
121
  product: apache_baseball_jersey
122
122
  sku: APC-00001
123
123
  price: 19.99
124
124
  cost_price: 17.00
125
125
  is_master: true
126
126
  count_on_hand: 10
127
- ruby_baseball_v:
127
+ ruby_baseball_jersey_v:
128
128
  product: ruby_baseball_jersey
129
129
  sku: RUB-00001
130
130
  price: 19.99
metadata CHANGED
@@ -1,32 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
5
- prerelease:
4
+ version: 1.1.0.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Schofield
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-04 00:00:00.000000000 Z
12
+ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70305141933360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - '='
19
+ - - =
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.7
21
+ version: 1.1.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - '='
28
- - !ruby/object:Gem::Version
29
- version: 1.0.7
24
+ version_requirements: *70305141933360
30
25
  description: Required dependency for Spree
31
26
  email: sean@spreecommerce.com
32
27
  executables: []
@@ -48,10 +43,8 @@ files:
48
43
  - db/sample/spree/payment_methods.yml
49
44
  - db/sample/spree/payments.rb
50
45
  - db/sample/spree/preferences.rb
51
- - db/sample/spree/product_groups.yml
52
46
  - db/sample/spree/product_option_types.yml
53
47
  - db/sample/spree/product_properties.yml
54
- - db/sample/spree/product_scopes.yml
55
48
  - db/sample/spree/products/apache_baseball.png
56
49
  - db/sample/spree/products/ror_bag.jpeg
57
50
  - db/sample/spree/products/ror_baseball.jpeg
@@ -84,7 +77,6 @@ files:
84
77
  - db/sample/spree/taxonomies.yml
85
78
  - db/sample/spree/taxons.rb
86
79
  - db/sample/spree/taxons.yml
87
- - db/sample/spree/update_memberships.rb
88
80
  - db/sample/spree/users.yml
89
81
  - db/sample/spree/variants.yml
90
82
  homepage: http://spreecommerce.com
@@ -102,16 +94,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
94
  required_rubygems_version: !ruby/object:Gem::Requirement
103
95
  none: false
104
96
  requirements:
105
- - - ! '>='
97
+ - - ! '>'
106
98
  - !ruby/object:Gem::Version
107
- version: '0'
108
- segments:
109
- - 0
110
- hash: 1607943301030889580
99
+ version: 1.3.1
111
100
  requirements:
112
101
  - none
113
102
  rubyforge_project:
114
- rubygems_version: 1.8.23
103
+ rubygems_version: 1.8.10
115
104
  signing_key:
116
105
  specification_version: 3
117
106
  summary: Sample data (including images) for use with Spree.
@@ -1,9 +0,0 @@
1
- ---
2
- product_groups_001:
3
- name: Promotions for the Apache
4
- permalink: promotions-for-the-apache
5
- order:
6
- product_groups_002:
7
- name: most popular rails items
8
- permalink: most-popular-rails-items
9
- order:
@@ -1,35 +0,0 @@
1
- ---
2
- product_scopes_007:
3
- product_group: product_groups_001
4
- name: master_price_lte
5
- arguments: |
6
- ---
7
- - "20"
8
-
9
- product_scopes_008:
10
- product_group: product_groups_001
11
- name: descend_by_popularity
12
- arguments: |+
13
- --- []
14
-
15
- product_scopes_010:
16
- product_group: product_groups_002
17
- name: descend_by_popularity
18
- arguments: |+
19
- --- []
20
-
21
- product_scopes_009:
22
- product_group: product_groups_002
23
- name: in_name
24
- arguments: |
25
- ---
26
- - Rails
27
-
28
- product_scopes_006:
29
- product_group: product_groups_001
30
- name: in_name_or_keywords
31
- arguments: |
32
- ---
33
- - Apache
34
-
35
-
@@ -1 +0,0 @@
1
- Spree::ProductGroup.all.each { |pg| pg.update_memberships }