spree_sample 1.2.5 → 1.3.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ ship_<%= i %>:
18
18
  amount: 5
19
19
  source: shipment_<%= i %>
20
20
  source_type: Spree::Shipment
21
- originator: ups_ground
21
+ originator: ups_ground_usd
22
22
  originator_type: Spree::ShippingMethod
23
23
  label: Shipping
24
24
  locked: true
@@ -1,13 +1,17 @@
1
- ups_ground:
2
- calculable: ups_ground
1
+ ups_ground_usd:
2
+ calculable: ups_ground_usd
3
3
  calculable_type: Spree::ShippingMethod
4
4
  type: Spree::Calculator::FlatRate
5
- ups_two_day:
6
- calculable: ups_two_day
5
+ ups_two_day_usd:
6
+ calculable: ups_two_day_usd
7
7
  calculable_type: Spree::ShippingMethod
8
8
  type: Spree::Calculator::FlatRate
9
- ups_one_day:
10
- calculable: ups_one_day
9
+ ups_one_day_usd:
10
+ calculable: ups_one_day_usd
11
+ calculable_type: Spree::ShippingMethod
12
+ type: Spree::Calculator::FlatRate
13
+ ups_ground_eur:
14
+ calculable: ups_ground_eur
11
15
  calculable_type: Spree::ShippingMethod
12
16
  type: Spree::Calculator::FlatRate
13
17
  flat_rate_coupon_calculator:
@@ -8,10 +8,6 @@ Spree::Gateway.class_eval do
8
8
  end
9
9
  end
10
10
 
11
- # This table was previously called spree_creditcards, and older migrations
12
- # reference it as such. Make it explicit here that this table has been renamed.
13
- Spree::CreditCard.table_name = 'spree_credit_cards'
14
-
15
11
  creditcard = Spree::CreditCard.create({ :cc_type => 'visa', :month => 12, :year => 2014, :last_digits => '1111',
16
12
  :first_name => 'Sean', :last_name => 'Schofield',
17
13
  :gateway_customer_profile_id => 'BGS-1234' }, :without_protection => true)
@@ -1,11 +1,18 @@
1
- shipping_method = Spree::ShippingMethod.find_by_name("UPS Ground")
1
+ shipping_method = Spree::ShippingMethod.find_by_name("UPS Ground (USD)")
2
2
  shipping_method.calculator.preferred_amount = 5
3
+ shipping_method.calculator.preferred_currency = 'USD'
3
4
 
4
- shipping_method = Spree::ShippingMethod.find_by_name("UPS One Day")
5
+ shipping_method = Spree::ShippingMethod.find_by_name("UPS Ground (EUR)")
6
+ shipping_method.calculator.preferred_amount = 5
7
+ shipping_method.calculator.preferred_currency = 'EUR'
8
+
9
+ shipping_method = Spree::ShippingMethod.find_by_name("UPS One Day (USD)")
5
10
  shipping_method.calculator.preferred_amount = 15
11
+ shipping_method.calculator.preferred_currency = 'USD'
6
12
 
7
- shipping_method = Spree::ShippingMethod.find_by_name("UPS Two Day")
13
+ shipping_method = Spree::ShippingMethod.find_by_name("UPS Two Day (USD)")
8
14
  shipping_method.calculator.preferred_amount = 10
15
+ shipping_method.calculator.preferred_currency = 'USD'
9
16
 
10
17
  # flat_rate_five_dollars:
11
18
  # name: amount
@@ -0,0 +1,224 @@
1
+ small-red-baseball-price-usd:
2
+ variant: small-red-baseball
3
+ amount: 19.99
4
+ currency: USD
5
+ small-blue-baseball-price-eur:
6
+ variant: small-blue-baseball
7
+ amount: 16.00
8
+ currency: EUR
9
+ small-green-baseball-price-usd:
10
+ variant: small-green-baseball
11
+ amount: 19.99
12
+ currency: USD
13
+ small-green-baseball-price-eur:
14
+ variant: small-green-baseball
15
+ amount: 16.00
16
+ currency: EUR
17
+ med-red-baseball-price-usd:
18
+ variant: med-red-baseball
19
+ amount: 19.99
20
+ currency: USD
21
+ med-red-baseball-price-eur:
22
+ variant: med-red-baseball
23
+ amount: 16.00
24
+ currency: EUR
25
+ med-blue-baseball-price-usd:
26
+ variant: med-blue-baseball
27
+ amount: 19.99
28
+ currency: USD
29
+ med-blue-baseball-price-eur:
30
+ variant: med-blue-baseball
31
+ amount: 16.00
32
+ currency: EUR
33
+ med-green-baseball-price-usd:
34
+ variant: med-green-baseball
35
+ amount: 19.99
36
+ currency: USD
37
+ med-green-baseball-price-eur:
38
+ variant: med-green-baseball
39
+ amount: 16.00
40
+ currency: EUR
41
+ large-red-baseball-price-usd:
42
+ variant: large-red-baseball
43
+ amount: 19.99
44
+ currency: USD
45
+ large-red-baseball-price-eur:
46
+ variant: large-red-baseball
47
+ amount: 16.00
48
+ currency: EUR
49
+ large-blue-baseball-price-usd:
50
+ variant: large-blue-baseball
51
+ amount: 19.99
52
+ currency: USD
53
+ large-blue-baseball-price-eur:
54
+ variant: large-blue-baseball
55
+ amount: 16.00
56
+ currency: EUR
57
+ large-green-baseball-price-usd:
58
+ variant: large-green-baseball
59
+ amount: 19.99
60
+ currency: USD
61
+ large-green-baseball-price-eur:
62
+ variant: large-green-baseball
63
+ amount: 16.00
64
+ currency: EUR
65
+ xlarge-green-baseball-price-usd:
66
+ variant: xlarge-green-baseball
67
+ amount: 21.99
68
+ currency: USD
69
+ xlarge-green-baseball-price-eur:
70
+ variant: xlarge-green-baseball
71
+ amount: 18.50
72
+ currency: EUR
73
+ ror_baseball_jersey_v-price-usd:
74
+ variant: ror_baseball_jersey_v
75
+ amount: 19.99
76
+ currency: USD
77
+ ror_baseball_jersey_v-price-eur:
78
+ variant: ror_baseball_jersey_v
79
+ amount: 16.00
80
+ currency: EUR
81
+ ror_tote_v-price-usd:
82
+ variant: ror_tote_v
83
+ amount: 15.99
84
+ currency: USD
85
+ ror_tote_v-price-eur:
86
+ variant: ror_tote_v
87
+ amount: 14.00
88
+ currency: EUR
89
+ ror_bag_v-price-usd:
90
+ variant: ror_bag_v
91
+ amount: 22.99
92
+ currency: USD
93
+ ror_bag_v-price-eur:
94
+ variant: ror_bag_v
95
+ amount: 19.00
96
+ currency: EUR
97
+ ror_jr_spaghetti_v-price-usd:
98
+ variant: ror_jr_spaghetti_v
99
+ amount: 19.99
100
+ currency: USD
101
+ ror_jr_spaghetti_v-price-eur:
102
+ variant: ror_jr_spaghetti_v
103
+ amount: 16.00
104
+ currency: EUR
105
+ ror_mug_v-price-usd:
106
+ variant: ror_mug_v
107
+ amount: 13.99
108
+ currency: USD
109
+ ror_mug_v-price-eur:
110
+ variant: ror_mug_v
111
+ amount: 12.00
112
+ currency: EUR
113
+ ror_ringer_v-price-usd:
114
+ variant: ror_ringer_v
115
+ amount: 19.99
116
+ currency: USD
117
+ ror_ringer_v-price-eur:
118
+ variant: ror_ringer_v
119
+ amount: 16.50
120
+ currency: EUR
121
+ ror_stein_v-price-usd:
122
+ variant: ror_stein_v
123
+ amount: 16.99
124
+ currency: USD
125
+ ror_stein_v-price-eur:
126
+ variant: ror_stein_v
127
+ amount: 14.00
128
+ currency: EUR
129
+ apache_baseball_jersey_v-price-usd:
130
+ variant: apache_baseball_jersey_v
131
+ amount: 19.99
132
+ currency: USD
133
+ apache_baseball_jersey_v-price-eur:
134
+ variant: apache_baseball_jersey_v
135
+ amount: 16.00
136
+ currency: EUR
137
+ ruby_baseball_jersey_v-price-usd:
138
+ variant: ruby_baseball_jersey_v
139
+ amount: 19.99
140
+ currency: USD
141
+ ruby_baseball_jersey_v-price-eur:
142
+ variant: ruby_baseball_jersey_v
143
+ amount: 16.00
144
+ currency: EUR
145
+ spree_baseball_jersey_v-price-usd:
146
+ variant: spree_baseball_jersey_v
147
+ amount: 19.99
148
+ currency: USD
149
+ spree_baseball_jersey_v-price-eur:
150
+ variant: spree_baseball_jersey_v
151
+ amount: 16.00
152
+ currency: EUR
153
+ spree_stein_v-price-usd:
154
+ variant: spree_stein_v
155
+ amount: 16.99
156
+ currency: USD
157
+ spree_stein_v-price-eur:
158
+ variant: spree_stein_v
159
+ amount: 14.00
160
+ currency: EUR
161
+ spree_jr_spaghetti_v-price-usd:
162
+ variant: spree_jr_spaghetti_v
163
+ amount: 19.99
164
+ currency: USD
165
+ spree_jr_spaghetti_v-price-eur:
166
+ variant: spree_jr_spaghetti_v
167
+ amount: 16.00
168
+ currency: EUR
169
+ spree_mug_v-price-usd:
170
+ variant: spree_mug_v
171
+ amount: 13.99
172
+ currency: USD
173
+ spree_mug_v-price-eur:
174
+ variant: spree_mug_v
175
+ amount: 12.00
176
+ currency: EUR
177
+ spree_ringer_v-price-usd:
178
+ variant: spree_ringer_v
179
+ amount: 17.99
180
+ currency: USD
181
+ spree_ringer_v-price-eur:
182
+ variant: spree_ringer_v
183
+ amount: 15.00
184
+ currency: EUR
185
+ spree_tote_v-price-usd:
186
+ variant: spree_tote_v
187
+ amount: 15.99
188
+ currency: USD
189
+ spree_tote_v-price-eur:
190
+ variant: spree_tote_v
191
+ amount: 14.00
192
+ currency: EUR
193
+ spree_bag_v-price-usd:
194
+ variant: spree_bag_v
195
+ amount: 22.99
196
+ currency: USD
197
+ spree_bag_v-price-eur:
198
+ variant: spree_bag_v
199
+ amount: 19.00
200
+ currency: EUR
201
+ small-spree-baseball-price-usd:
202
+ variant: small-spree-baseball
203
+ amount: 19.99
204
+ currency: USD
205
+ small-spree-baseball-price-eur:
206
+ variant: small-spree-baseball
207
+ amount: 16.00
208
+ currency: EUR
209
+ med-spree-baseball-price-usd:
210
+ variant: med-spree-baseball
211
+ amount: 19.99
212
+ currency: USD
213
+ med-spree-baseball-price-eur:
214
+ variant: med-spree-baseball
215
+ amount: 16.00
216
+ currency: EUR
217
+ large-spree-baseball-price-usd:
218
+ variant: large-spree-baseball
219
+ amount: 19.99
220
+ currency: USD
221
+ large-spree-baseball-price-eur:
222
+ variant: large-spree-baseball
223
+ amount: 16.00
224
+ currency: EUR
@@ -2,7 +2,7 @@
2
2
  shipment_<%= i %>:
3
3
  number: H<%= Array.new(11){rand(11)}.join %>
4
4
  order: order_<%= i %>
5
- shipping_method: ups_ground
5
+ shipping_method: ups_ground_usd
6
6
  address: ship_address_<%= i %>
7
7
  state: pending
8
- <% end %>
8
+ <% end %>
@@ -1,9 +1,12 @@
1
- ups_ground:
2
- name: UPS Ground
1
+ ups_ground_usd:
2
+ name: UPS Ground (USD)
3
3
  zone_id: 2
4
- ups_two_day:
5
- name: UPS Two Day
4
+ ups_two_day_usd:
5
+ name: UPS Two Day (USD)
6
+ zone_id: 2
7
+ ups_one_day_usd:
8
+ name: UPS One Day (USD)
9
+ zone_id: 2
10
+ ups_ground_eur:
11
+ name: UPS Ground (EUR)
6
12
  zone_id: 2
7
- ups_one_day:
8
- name: UPS One Day
9
- zone_id: 2
@@ -2,181 +2,155 @@ small-red-baseball:
2
2
  product: ror_baseball_jersey
3
3
  option_values: s, red
4
4
  sku: ROR-00001
5
- price: 19.99
6
5
  cost_price: 17.00
7
6
  count_on_hand: 10
8
7
  small-blue-baseball:
9
8
  product: ror_baseball_jersey
10
9
  option_values: s, blue
11
10
  sku: ROR-00002
12
- price: 19.99
13
11
  cost_price: 17.00
14
12
  count_on_hand: 10
15
13
  small-green-baseball:
16
14
  product: ror_baseball_jersey
17
15
  option_values: s, green
18
16
  sku: ROR-00003
19
- price: 19.99
20
17
  cost_price: 17.00
21
18
  count_on_hand: 10
22
19
  med-red-baseball:
23
20
  product: ror_baseball_jersey
24
21
  option_values: m, red
25
22
  sku: ROR-00004
26
- price: 19.99
27
23
  cost_price: 17.00
28
24
  count_on_hand: 3
29
25
  med-blue-baseball:
30
26
  product: ror_baseball_jersey
31
27
  option_values: m, blue
32
28
  sku: ROR-00005
33
- price: 19.99
34
29
  cost_price: 17.00
35
30
  count_on_hand: 10
36
31
  med-green-baseball:
37
32
  product: ror_baseball_jersey
38
33
  option_values: m, green
39
34
  sku: ROR-00006
40
- price: 19.99
41
35
  cost_price: 17.00
42
36
  count_on_hand: 14
43
37
  large-red-baseball:
44
38
  product: ror_baseball_jersey
45
39
  option_values: l, red
46
40
  sku: ROR-00007
47
- price: 19.99
48
41
  cost_price: 17.00
49
42
  count_on_hand: 1
50
43
  large-blue-baseball:
51
44
  product: ror_baseball_jersey
52
45
  option_values: l, blue
53
46
  sku: ROR-00008
54
- price: 19.99
55
47
  cost_price: 17.00
56
48
  count_on_hand: 10
57
49
  large-green-baseball:
58
50
  product: ror_baseball_jersey
59
51
  option_values: l, green
60
52
  sku: ROR-00009
61
- price: 19.99
62
53
  cost_price: 17.00
63
54
  count_on_hand: 10
64
55
  xlarge-green-baseball:
65
56
  product: ror_baseball_jersey
66
57
  option_values: xl, red
67
58
  sku: ROR-00010
68
- price: 21.99
69
59
  cost_price: 20.00
70
60
  count_on_hand: 10
71
61
  ror_baseball_jersey_v:
72
62
  product: ror_baseball_jersey
73
63
  sku: ROR-001
74
- price: 19.99
75
64
  cost_price: 17.00
76
65
  is_master: true
77
66
  count_on_hand: 10
78
67
  ror_tote_v:
79
68
  product: ror_tote
80
69
  sku: ROR-00011
81
- price: 15.99
82
70
  cost_price: 13.00
83
71
  is_master: true
84
72
  count_on_hand: 10
85
73
  ror_bag_v:
86
74
  product: ror_bag
87
75
  sku: ROR-00012
88
- price: 22.99
89
76
  cost_price: 21.00
90
77
  is_master: true
91
78
  count_on_hand: 10
92
79
  ror_jr_spaghetti_v:
93
80
  product: ror_jr_spaghetti
94
81
  sku: ROR-00013
95
- price: 19.99
96
82
  cost_price: 17.00
97
83
  is_master: true
98
84
  count_on_hand: 10
99
85
  ror_mug_v:
100
86
  product: ror_mug
101
87
  sku: ROR-00014
102
- price: 13.99
103
88
  cost_price: 11.00
104
89
  is_master: true
105
90
  count_on_hand: 10
106
91
  ror_ringer_v:
107
92
  product: ror_ringer
108
93
  sku: ROR-00015
109
- price: 17.99
110
94
  cost_price: 17.00
111
95
  is_master: true
112
96
  count_on_hand: 10
113
97
  ror_stein_v:
114
98
  product: ror_stein
115
99
  sku: ROR-00016
116
- price: 16.99
117
100
  cost_price: 15.00
118
101
  is_master: true
119
102
  count_on_hand: 10
120
103
  apache_baseball_jersey_v:
121
104
  product: apache_baseball_jersey
122
105
  sku: APC-00001
123
- price: 19.99
124
106
  cost_price: 17.00
125
107
  is_master: true
126
108
  count_on_hand: 10
127
109
  ruby_baseball_jersey_v:
128
110
  product: ruby_baseball_jersey
129
111
  sku: RUB-00001
130
- price: 19.99
131
112
  cost_price: 17.00
132
113
  is_master: true
133
114
  count_on_hand: 10
134
115
  spree_baseball_jersey_v:
135
116
  product: spree_baseball_jersey
136
117
  sku: SPR-00001
137
- price: 19.99
138
118
  cost_price: 17.00
139
119
  is_master: true
140
120
  count_on_hand: 10
141
121
  spree_stein_v:
142
122
  product: spree_stein
143
123
  sku: SPR-00016
144
- price: 16.99
145
124
  cost_price: 15.00
146
125
  is_master: true
147
126
  count_on_hand: 10
148
127
  spree_jr_spaghetti_v:
149
128
  product: spree_jr_spaghetti
150
129
  sku: SPR-00013
151
- price: 19.99
152
130
  cost_price: 17.00
153
131
  is_master: true
154
132
  count_on_hand: 10
155
133
  spree_mug_v:
156
134
  product: spree_mug
157
135
  sku: SPR-00014
158
- price: 13.99
159
136
  cost_price: 11.00
160
137
  is_master: true
161
138
  count_on_hand: 10
162
139
  spree_ringer_v:
163
140
  product: spree_ringer
164
141
  sku: SPR-00015
165
- price: 17.99
166
142
  cost_price: 17.00
167
143
  is_master: true
168
144
  count_on_hand: 10
169
145
  spree_tote_v:
170
146
  product: spree_tote
171
147
  sku: SPR-00011
172
- price: 15.99
173
148
  cost_price: 13.00
174
149
  is_master: true
175
150
  count_on_hand: 10
176
151
  spree_bag_v:
177
152
  product: spree_bag
178
153
  sku: SPR-00012
179
- price: 22.99
180
154
  cost_price: 21.00
181
155
  is_master: true
182
156
  count_on_hand: 10
@@ -184,20 +158,17 @@ small-spree-baseball:
184
158
  product: spree_baseball_jersey
185
159
  option_values: s
186
160
  sku: SPR-00002
187
- price: 19.99
188
161
  cost_price: 17.00
189
162
  count_on_hand: 10
190
163
  med-spree-baseball:
191
164
  product: spree_baseball_jersey
192
165
  option_values: m
193
166
  sku: SPR-00005
194
- price: 19.99
195
167
  cost_price: 17.00
196
168
  count_on_hand: 10
197
169
  large-spree-baseball:
198
170
  product: spree_baseball_jersey
199
171
  option_values: l
200
172
  sku: SPR-00008
201
- price: 19.99
202
173
  cost_price: 17.00
203
174
  count_on_hand: 10
metadata CHANGED
@@ -1,29 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.3.0.rc1
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Sean Schofield
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-06-12 00:00:00.000000000 Z
12
+ date: 2012-12-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: spree_core
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - '='
18
20
  - !ruby/object:Gem::Version
19
- version: 1.2.5
21
+ version: 1.3.0.rc1
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - '='
25
28
  - !ruby/object:Gem::Version
26
- version: 1.2.5
29
+ version: 1.3.0.rc1
27
30
  description: Required dependency for Spree
28
31
  email: sean@spreecommerce.com
29
32
  executables: []
@@ -45,6 +48,7 @@ files:
45
48
  - db/sample/spree/payment_methods.yml
46
49
  - db/sample/spree/payments.rb
47
50
  - db/sample/spree/preferences.rb
51
+ - db/sample/spree/prices.yml
48
52
  - db/sample/spree/product_option_types.yml
49
53
  - db/sample/spree/product_properties.yml
50
54
  - db/sample/spree/products/apache_baseball.png
@@ -93,28 +97,28 @@ files:
93
97
  - db/sample/spree/taxons.yml
94
98
  - db/sample/spree/variants.yml
95
99
  homepage: http://spreecommerce.com
96
- licenses:
97
- - BSD-3
98
- metadata: {}
100
+ licenses: []
99
101
  post_install_message:
100
102
  rdoc_options: []
101
103
  require_paths:
102
104
  - lib
103
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
104
107
  requirements:
105
- - - '>='
108
+ - - ! '>='
106
109
  - !ruby/object:Gem::Version
107
110
  version: 1.8.7
108
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
109
113
  requirements:
110
- - - '>='
114
+ - - ! '>'
111
115
  - !ruby/object:Gem::Version
112
- version: '0'
116
+ version: 1.3.1
113
117
  requirements:
114
118
  - none
115
119
  rubyforge_project:
116
- rubygems_version: 2.0.0
120
+ rubygems_version: 1.8.23
117
121
  signing_key:
118
- specification_version: 4
122
+ specification_version: 3
119
123
  summary: Sample data (including images) for use with Spree.
120
124
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 455bc2103bc1347c5719ca8a0fd82a3ad1b8b717
4
- data.tar.gz: e7eb7e790f7f6864fffc816157e4499bd99dcd0d
5
- SHA512:
6
- metadata.gz: 52356e05ff7ab5dbaf8021522bc9ca54ee2d4f6e7624cfcbd7bf572ffa9da7f2b90ddc4b45bcd20fefe4a87641af958c52ab9c1cc994b3a2998e6c6dfd72fc7b
7
- data.tar.gz: 9870407db6cca9c85baf4065b980e6d96e3da2ea57af478942075cef941e0e62b26e81118312dc3965fd87acd2a946b1452ae0c921d0e8c4b40b79633242f44f