spree_sample 0.30.0.beta1 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{lib/generators/templates/db → db}/sample/addresses.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/adjustments.yml +2 -2
- data/{lib/generators/templates/db → db}/sample/assets.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/apache_baseball.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_bag.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_back.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_back_green.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_back_red.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_blue.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_green.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_baseball_jersey_red.png +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_jr_spaghetti.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_mug.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_mug_back.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_ringer.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_ringer_back.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_stein.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_stein_back.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_tote.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ror_tote_back.jpeg +0 -0
- data/{lib/generators/templates/db → db}/sample/assets/ruby_baseball.png +0 -0
- data/{lib/generators/templates/db → db}/sample/calculators.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/inventory_units.rb +0 -0
- data/{lib/generators/templates/db → db}/sample/line_items.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/option_types.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/option_values.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/orders.yml +3 -0
- data/{lib/generators/templates/db → db}/sample/payment_methods.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/payments.rb +4 -0
- data/{lib/generators/templates/db → db}/sample/preferences.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/product_groups.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/product_option_types.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/product_properties.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/product_scopes.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/products.rb +0 -0
- data/{lib/generators/templates/db → db}/sample/products.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/properties.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/prototypes.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/shipments.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/shipping_categories.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/shipping_methods.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/tax_categories.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/taxonomies.yml +0 -0
- data/{lib/generators/templates/db → db}/sample/taxons.rb +0 -0
- data/{lib/generators/templates/db → db}/sample/taxons.yml +0 -0
- data/db/sample/users.yml +8 -0
- data/{lib/generators/templates/db → db}/sample/variants.yml +0 -0
- data/lib/tasks/install.rake +24 -0
- metadata +65 -63
- data/lib/generators/spree_sample/install_generator.rb +0 -14
- data/lib/generators/templates/db/sample/checkouts.yml +0 -14
- data/lib/generators/templates/db/sample/users.yml +0 -6
File without changes
|
@@ -7,7 +7,7 @@ tax_<%= i %>:
|
|
7
7
|
originator:
|
8
8
|
originator_type:
|
9
9
|
label: Tax
|
10
|
-
|
10
|
+
locked: false
|
11
11
|
mandatory: true
|
12
12
|
<% end %>
|
13
13
|
<% 1.upto(100) do |i| %>
|
@@ -19,6 +19,6 @@ ship_<%= i %>:
|
|
19
19
|
originator:
|
20
20
|
originator_type:
|
21
21
|
label: Shipping
|
22
|
-
|
22
|
+
locked: true
|
23
23
|
mandatory: true
|
24
24
|
<% end %>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -9,9 +9,12 @@ order_<%= i %>:
|
|
9
9
|
number: <%= "R#{Array.new(9){rand(9)}.join}" %>
|
10
10
|
user: user_<%= i %>
|
11
11
|
state: complete
|
12
|
+
email: <%= Faker::Internet.email %>
|
12
13
|
item_total: <%= item_total %>
|
13
14
|
created_at: <%=order_date.to_s(:db)%>
|
14
15
|
completed_at: <%=order_date.to_s(:db)%>
|
15
16
|
total: <%= item_total + charges_total %>
|
16
17
|
adjustment_total: <%= charges_total %>
|
18
|
+
ship_address: ship_address_<%= i %>
|
19
|
+
bill_address: bill_address_<%= i %>
|
17
20
|
<% end %>
|
File without changes
|
@@ -17,5 +17,9 @@ Order.all.each_with_index do |order,index|
|
|
17
17
|
STDOUT.flush
|
18
18
|
order.update!
|
19
19
|
payment = order.payments.create(:amount => order.total, :source => creditcard.clone, :payment_method => method)
|
20
|
+
payment.update_attributes_without_callbacks({
|
21
|
+
:state => "pending",
|
22
|
+
:response_code => "12345"
|
23
|
+
})
|
20
24
|
end
|
21
25
|
puts
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/db/sample/users.yml
ADDED
File without changes
|
@@ -0,0 +1,24 @@
|
|
1
|
+
namespace :spree_sample do
|
2
|
+
desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
|
3
|
+
task :install do
|
4
|
+
Rake::Task['spree_sample:install:migrations'].invoke
|
5
|
+
Rake::Task['spree_sample:install:assets'].invoke
|
6
|
+
end
|
7
|
+
|
8
|
+
namespace :install do
|
9
|
+
|
10
|
+
desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
|
11
|
+
task :migrations do
|
12
|
+
source = File.join(File.dirname(__FILE__), '..', '..', 'db')
|
13
|
+
destination = File.join(Rails.root, 'db')
|
14
|
+
puts "INFO: Mirroring assets from #{source} to #{destination}"
|
15
|
+
Spree::FileUtilz.mirror_files(source, destination)
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
|
19
|
+
task :assets do
|
20
|
+
# No assets
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 103
|
5
|
+
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 30
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.30.0.beta1
|
10
|
+
version: 0.30.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sean Schofield
|
@@ -15,22 +15,23 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09
|
18
|
+
date: 2010-11-09 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: spree_core
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
25
26
|
requirements:
|
26
27
|
- - "="
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 103
|
28
30
|
segments:
|
29
31
|
- 0
|
30
32
|
- 30
|
31
33
|
- 0
|
32
|
-
|
33
|
-
version: 0.30.0.beta1
|
34
|
+
version: 0.30.0
|
34
35
|
type: :runtime
|
35
36
|
version_requirements: *id001
|
36
37
|
description: Required dependancy for Spree
|
@@ -43,58 +44,57 @@ extra_rdoc_files: []
|
|
43
44
|
|
44
45
|
files:
|
45
46
|
- LICENSE
|
46
|
-
- lib/generators/spree_sample/install_generator.rb
|
47
|
-
- lib/generators/templates/db/sample/addresses.yml
|
48
|
-
- lib/generators/templates/db/sample/adjustments.yml
|
49
|
-
- lib/generators/templates/db/sample/assets/apache_baseball.png
|
50
|
-
- lib/generators/templates/db/sample/assets/ror_bag.jpeg
|
51
|
-
- lib/generators/templates/db/sample/assets/ror_baseball.jpeg
|
52
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_back.jpeg
|
53
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_back_blue.png
|
54
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_back_green.png
|
55
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_back_red.png
|
56
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_blue.png
|
57
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_green.png
|
58
|
-
- lib/generators/templates/db/sample/assets/ror_baseball_jersey_red.png
|
59
|
-
- lib/generators/templates/db/sample/assets/ror_jr_spaghetti.jpeg
|
60
|
-
- lib/generators/templates/db/sample/assets/ror_mug.jpeg
|
61
|
-
- lib/generators/templates/db/sample/assets/ror_mug_back.jpeg
|
62
|
-
- lib/generators/templates/db/sample/assets/ror_ringer.jpeg
|
63
|
-
- lib/generators/templates/db/sample/assets/ror_ringer_back.jpeg
|
64
|
-
- lib/generators/templates/db/sample/assets/ror_stein.jpeg
|
65
|
-
- lib/generators/templates/db/sample/assets/ror_stein_back.jpeg
|
66
|
-
- lib/generators/templates/db/sample/assets/ror_tote.jpeg
|
67
|
-
- lib/generators/templates/db/sample/assets/ror_tote_back.jpeg
|
68
|
-
- lib/generators/templates/db/sample/assets/ruby_baseball.png
|
69
|
-
- lib/generators/templates/db/sample/assets.yml
|
70
|
-
- lib/generators/templates/db/sample/calculators.yml
|
71
|
-
- lib/generators/templates/db/sample/checkouts.yml
|
72
|
-
- lib/generators/templates/db/sample/inventory_units.rb
|
73
|
-
- lib/generators/templates/db/sample/line_items.yml
|
74
|
-
- lib/generators/templates/db/sample/option_types.yml
|
75
|
-
- lib/generators/templates/db/sample/option_values.yml
|
76
|
-
- lib/generators/templates/db/sample/orders.yml
|
77
|
-
- lib/generators/templates/db/sample/payment_methods.yml
|
78
|
-
- lib/generators/templates/db/sample/payments.rb
|
79
|
-
- lib/generators/templates/db/sample/preferences.yml
|
80
|
-
- lib/generators/templates/db/sample/product_groups.yml
|
81
|
-
- lib/generators/templates/db/sample/product_option_types.yml
|
82
|
-
- lib/generators/templates/db/sample/product_properties.yml
|
83
|
-
- lib/generators/templates/db/sample/product_scopes.yml
|
84
|
-
- lib/generators/templates/db/sample/products.rb
|
85
|
-
- lib/generators/templates/db/sample/products.yml
|
86
|
-
- lib/generators/templates/db/sample/properties.yml
|
87
|
-
- lib/generators/templates/db/sample/prototypes.yml
|
88
|
-
- lib/generators/templates/db/sample/shipments.yml
|
89
|
-
- lib/generators/templates/db/sample/shipping_categories.yml
|
90
|
-
- lib/generators/templates/db/sample/shipping_methods.yml
|
91
|
-
- lib/generators/templates/db/sample/tax_categories.yml
|
92
|
-
- lib/generators/templates/db/sample/taxonomies.yml
|
93
|
-
- lib/generators/templates/db/sample/taxons.rb
|
94
|
-
- lib/generators/templates/db/sample/taxons.yml
|
95
|
-
- lib/generators/templates/db/sample/users.yml
|
96
|
-
- lib/generators/templates/db/sample/variants.yml
|
97
47
|
- lib/spree_sample.rb
|
48
|
+
- lib/tasks/install.rake
|
49
|
+
- db/sample/addresses.yml
|
50
|
+
- db/sample/adjustments.yml
|
51
|
+
- db/sample/assets/apache_baseball.png
|
52
|
+
- db/sample/assets/ror_bag.jpeg
|
53
|
+
- db/sample/assets/ror_baseball.jpeg
|
54
|
+
- db/sample/assets/ror_baseball_back.jpeg
|
55
|
+
- db/sample/assets/ror_baseball_jersey_back_blue.png
|
56
|
+
- db/sample/assets/ror_baseball_jersey_back_green.png
|
57
|
+
- db/sample/assets/ror_baseball_jersey_back_red.png
|
58
|
+
- db/sample/assets/ror_baseball_jersey_blue.png
|
59
|
+
- db/sample/assets/ror_baseball_jersey_green.png
|
60
|
+
- db/sample/assets/ror_baseball_jersey_red.png
|
61
|
+
- db/sample/assets/ror_jr_spaghetti.jpeg
|
62
|
+
- db/sample/assets/ror_mug.jpeg
|
63
|
+
- db/sample/assets/ror_mug_back.jpeg
|
64
|
+
- db/sample/assets/ror_ringer.jpeg
|
65
|
+
- db/sample/assets/ror_ringer_back.jpeg
|
66
|
+
- db/sample/assets/ror_stein.jpeg
|
67
|
+
- db/sample/assets/ror_stein_back.jpeg
|
68
|
+
- db/sample/assets/ror_tote.jpeg
|
69
|
+
- db/sample/assets/ror_tote_back.jpeg
|
70
|
+
- db/sample/assets/ruby_baseball.png
|
71
|
+
- db/sample/assets.yml
|
72
|
+
- db/sample/calculators.yml
|
73
|
+
- db/sample/inventory_units.rb
|
74
|
+
- db/sample/line_items.yml
|
75
|
+
- db/sample/option_types.yml
|
76
|
+
- db/sample/option_values.yml
|
77
|
+
- db/sample/orders.yml
|
78
|
+
- db/sample/payment_methods.yml
|
79
|
+
- db/sample/payments.rb
|
80
|
+
- db/sample/preferences.yml
|
81
|
+
- db/sample/product_groups.yml
|
82
|
+
- db/sample/product_option_types.yml
|
83
|
+
- db/sample/product_properties.yml
|
84
|
+
- db/sample/product_scopes.yml
|
85
|
+
- db/sample/products.rb
|
86
|
+
- db/sample/products.yml
|
87
|
+
- db/sample/properties.yml
|
88
|
+
- db/sample/prototypes.yml
|
89
|
+
- db/sample/shipments.yml
|
90
|
+
- db/sample/shipping_categories.yml
|
91
|
+
- db/sample/shipping_methods.yml
|
92
|
+
- db/sample/tax_categories.yml
|
93
|
+
- db/sample/taxonomies.yml
|
94
|
+
- db/sample/taxons.rb
|
95
|
+
- db/sample/taxons.yml
|
96
|
+
- db/sample/users.yml
|
97
|
+
- db/sample/variants.yml
|
98
98
|
has_rdoc: true
|
99
99
|
homepage: http://spreecommerce.com
|
100
100
|
licenses: []
|
@@ -105,27 +105,29 @@ rdoc_options: []
|
|
105
105
|
require_paths:
|
106
106
|
- lib
|
107
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
108
109
|
requirements:
|
109
110
|
- - ">="
|
110
111
|
- !ruby/object:Gem::Version
|
112
|
+
hash: 57
|
111
113
|
segments:
|
112
114
|
- 1
|
113
115
|
- 8
|
114
116
|
- 7
|
115
117
|
version: 1.8.7
|
116
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
117
120
|
requirements:
|
118
|
-
- - "
|
121
|
+
- - ">="
|
119
122
|
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
120
124
|
segments:
|
121
|
-
-
|
122
|
-
|
123
|
-
- 1
|
124
|
-
version: 1.3.1
|
125
|
+
- 0
|
126
|
+
version: "0"
|
125
127
|
requirements:
|
126
128
|
- none
|
127
129
|
rubyforge_project: spree_sample
|
128
|
-
rubygems_version: 1.3.
|
130
|
+
rubygems_version: 1.3.7
|
129
131
|
signing_key:
|
130
132
|
specification_version: 3
|
131
133
|
summary: Sample data (including images) for use with Spree.
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module SpreeSample
|
2
|
-
module Generators
|
3
|
-
class InstallGenerator < Rails::Generators::Base
|
4
|
-
source_root File.expand_path("../../templates", __FILE__)
|
5
|
-
|
6
|
-
desc "Copies sample fixtures and images into your Spree application."
|
7
|
-
|
8
|
-
def copy_stuff
|
9
|
-
directory 'db'
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
require 'faker'
|
3
|
-
1.upto(100) do |i|
|
4
|
-
email = Faker::Internet.email
|
5
|
-
%>
|
6
|
-
checkout_<%= i %>:
|
7
|
-
bill_address: bill_address_<%= i %>
|
8
|
-
ship_address: ship_address_<%= i %>
|
9
|
-
email: <%= email %>
|
10
|
-
order: order_<%= i %>
|
11
|
-
ip_address: 127.0.0.1
|
12
|
-
state: "complete"
|
13
|
-
shipping_method: ups_ground
|
14
|
-
<% end %>
|