My-Commerce_sample 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +26 -0
- data/db/sample/addresses.yml +27 -0
- data/db/sample/adjustments.yml +24 -0
- data/db/sample/assets.yml +320 -0
- data/db/sample/assets/apache_baseball.png +0 -0
- data/db/sample/assets/ror_bag.jpeg +0 -0
- data/db/sample/assets/ror_baseball.jpeg +0 -0
- data/db/sample/assets/ror_baseball_back.jpeg +0 -0
- data/db/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
- data/db/sample/assets/ror_baseball_jersey_back_green.png +0 -0
- data/db/sample/assets/ror_baseball_jersey_back_red.png +0 -0
- data/db/sample/assets/ror_baseball_jersey_blue.png +0 -0
- data/db/sample/assets/ror_baseball_jersey_green.png +0 -0
- data/db/sample/assets/ror_baseball_jersey_red.png +0 -0
- data/db/sample/assets/ror_jr_spaghetti.jpeg +0 -0
- data/db/sample/assets/ror_mug.jpeg +0 -0
- data/db/sample/assets/ror_mug_back.jpeg +0 -0
- data/db/sample/assets/ror_ringer.jpeg +0 -0
- data/db/sample/assets/ror_ringer_back.jpeg +0 -0
- data/db/sample/assets/ror_stein.jpeg +0 -0
- data/db/sample/assets/ror_stein_back.jpeg +0 -0
- data/db/sample/assets/ror_tote.jpeg +0 -0
- data/db/sample/assets/ror_tote_back.jpeg +0 -0
- data/db/sample/assets/ruby_baseball.png +0 -0
- data/db/sample/calculators.yml +16 -0
- data/db/sample/inventory_units.rb +4 -0
- data/db/sample/line_items.yml +40 -0
- data/db/sample/option_types.yml +8 -0
- data/db/sample/option_values.yml +35 -0
- data/db/sample/orders.yml +20 -0
- data/db/sample/payment_methods.yml +30 -0
- data/db/sample/payments.rb +25 -0
- data/db/sample/preferences.yml +20 -0
- data/db/sample/product_groups.yml +9 -0
- data/db/sample/product_option_types.yml +8 -0
- data/db/sample/product_properties.yml +136 -0
- data/db/sample/product_scopes.yml +35 -0
- data/db/sample/products.rb +15 -0
- data/db/sample/products.yml +53 -0
- data/db/sample/properties.yml +39 -0
- data/db/sample/prototypes.yml +9 -0
- data/db/sample/shipments.yml +8 -0
- data/db/sample/shipping_categories.yml +2 -0
- data/db/sample/shipping_methods.yml +9 -0
- data/db/sample/tax_categories.yml +6 -0
- data/db/sample/taxonomies.yml +4 -0
- data/db/sample/taxons.rb +3 -0
- data/db/sample/taxons.yml +91 -0
- data/db/sample/update_memberships.rb +1 -0
- data/db/sample/users.yml +8 -0
- data/db/sample/variants.yml +133 -0
- data/lib/spree_sample.rb +6 -0
- data/lib/tasks/install.rake +24 -0
- metadata +112 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
prop_manufacturer:
|
2
|
+
name: manufacturer
|
3
|
+
presentation: Manufacturer
|
4
|
+
prop_brand:
|
5
|
+
name: brand
|
6
|
+
presentation: Brand
|
7
|
+
prop_model:
|
8
|
+
name: model
|
9
|
+
presentation: Model
|
10
|
+
prop_shirt_type:
|
11
|
+
name: shirt_type
|
12
|
+
presentation: Type
|
13
|
+
prop_shirt_sleeve_type:
|
14
|
+
name: shirt_sleeve_length
|
15
|
+
presentation: Sleeve
|
16
|
+
prop_shirt_fabric:
|
17
|
+
name: shirt_fabric
|
18
|
+
presentation: Fabric
|
19
|
+
prop_shirt_fit:
|
20
|
+
name: shirt_fit
|
21
|
+
presentation: fit
|
22
|
+
prop_gender:
|
23
|
+
name: gender
|
24
|
+
presentation: Gender
|
25
|
+
prop_mug_type:
|
26
|
+
name: mug_type
|
27
|
+
presentation: Type
|
28
|
+
prop_mug_size:
|
29
|
+
name: mug_size
|
30
|
+
presentation: Size
|
31
|
+
prop_bag_type:
|
32
|
+
name: bag_type
|
33
|
+
presentation: Type
|
34
|
+
prop_bag_material:
|
35
|
+
name: bag_material
|
36
|
+
presentation: Material
|
37
|
+
prop_bag_size:
|
38
|
+
name: bag_size
|
39
|
+
presentation: Size
|
@@ -0,0 +1,9 @@
|
|
1
|
+
proto_shirts:
|
2
|
+
name: Shirt
|
3
|
+
properties: prop_manufacturer, prop_brand, prop_model, prop_shirt_type, prop_shirt_sleeve_type, prop_shirt_fabric, prop_shirt_fit, prop_gender
|
4
|
+
proto_bags:
|
5
|
+
name: Bag
|
6
|
+
properties: prop_bag_type, prob_bag_size, prop_bag_material
|
7
|
+
proto_mugs:
|
8
|
+
name: Mug
|
9
|
+
properties: prop_mug_size, prop_mug_type
|
data/db/sample/taxons.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
mc_root:
|
2
|
+
id: 1000
|
3
|
+
name: Categories
|
4
|
+
taxonomy: master_categories
|
5
|
+
permalink: categories
|
6
|
+
position: 0
|
7
|
+
lft: 1
|
8
|
+
rgt: 12
|
9
|
+
mc_l1_n1:
|
10
|
+
id: 1002
|
11
|
+
name: Bags
|
12
|
+
taxonomy: master_categories
|
13
|
+
parent_id: 1000
|
14
|
+
position: 1
|
15
|
+
products: ror_tote, ror_bag
|
16
|
+
permalink: categories/bags
|
17
|
+
lft: 8
|
18
|
+
rgt: 9
|
19
|
+
mc_l1_n2:
|
20
|
+
id: 1003
|
21
|
+
name: Mugs
|
22
|
+
taxonomy: master_categories
|
23
|
+
parent_id: 1000
|
24
|
+
position: 2
|
25
|
+
products: ror_mug, ror_stein
|
26
|
+
permalink: categories/mugs
|
27
|
+
lft: 10
|
28
|
+
rgt: 11
|
29
|
+
clothing:
|
30
|
+
id: 1001
|
31
|
+
name: Clothing
|
32
|
+
taxonomy: master_categories
|
33
|
+
parent_id: 1000
|
34
|
+
#products: ror_baseball_jersey, ror_jr_spaghetti, ror_ringer
|
35
|
+
permalink: categories/clothing
|
36
|
+
lft: 2
|
37
|
+
rgt: 7
|
38
|
+
shirts:
|
39
|
+
id: 2000
|
40
|
+
name: Shirts
|
41
|
+
taxonomy: master_categories
|
42
|
+
parent_id: 1001
|
43
|
+
position: 0
|
44
|
+
products: ror_jr_spaghetti
|
45
|
+
permalink: categories/clothing/shirts
|
46
|
+
lft: 3
|
47
|
+
rgt: 6
|
48
|
+
t_shirts:
|
49
|
+
id: 3000
|
50
|
+
name: T-Shirts
|
51
|
+
taxonomy: master_categories
|
52
|
+
parent_id: 2000
|
53
|
+
products: ror_baseball_jersey, ror_ringer, apache_baseball_jersey, ruby_baseball_jersey
|
54
|
+
position: 0
|
55
|
+
permalink: categories/clothing/shirts/t-shirts
|
56
|
+
lft: 4
|
57
|
+
rgt: 5
|
58
|
+
brand_root:
|
59
|
+
id: 20000
|
60
|
+
name: Brands
|
61
|
+
taxonomy: brand
|
62
|
+
permalink: brands
|
63
|
+
lft: 13
|
64
|
+
rgt: 20
|
65
|
+
ruby:
|
66
|
+
name: Ruby
|
67
|
+
taxonomy: brand
|
68
|
+
parent_id: 20000
|
69
|
+
position: 0
|
70
|
+
products: ruby_baseball_jersey
|
71
|
+
permalink: brands/ruby
|
72
|
+
lft: 16
|
73
|
+
rgt: 17
|
74
|
+
rails:
|
75
|
+
name: Ruby on Rails
|
76
|
+
taxonomy: brand
|
77
|
+
parent_id: 20000
|
78
|
+
position: 1
|
79
|
+
products: ror_baseball_jersey, ror_jr_spaghetti, ror_ringer, ror_stein, ror_bag, ror_tote, ror_mug
|
80
|
+
permalink: brands/ruby-on-rails
|
81
|
+
lft: 14
|
82
|
+
rgt: 15
|
83
|
+
apache:
|
84
|
+
name: Apache
|
85
|
+
taxonomy: brand
|
86
|
+
parent_id: 20000
|
87
|
+
position: 2
|
88
|
+
products: apache_baseball_jersey
|
89
|
+
permalink: brands/apache
|
90
|
+
lft: 18
|
91
|
+
rgt: 19
|
@@ -0,0 +1 @@
|
|
1
|
+
ProductGroup.all.each {|pg| pg.update_memberships}
|
data/db/sample/users.yml
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
small-red-baseball:
|
2
|
+
product: ror_baseball_jersey
|
3
|
+
option_values: s, red
|
4
|
+
sku: ROR-00001
|
5
|
+
price: 19.99
|
6
|
+
cost_price: 17.00
|
7
|
+
count_on_hand: 10
|
8
|
+
small-blue-baseball:
|
9
|
+
product: ror_baseball_jersey
|
10
|
+
option_values: s, blue
|
11
|
+
sku: ROR-00002
|
12
|
+
price: 19.99
|
13
|
+
cost_price: 17.00
|
14
|
+
count_on_hand: 10
|
15
|
+
small-green-baseball:
|
16
|
+
product: ror_baseball_jersey
|
17
|
+
option_values: s, green
|
18
|
+
sku: ROR-00003
|
19
|
+
price: 19.99
|
20
|
+
cost_price: 17.00
|
21
|
+
count_on_hand: 10
|
22
|
+
med-red-baseball:
|
23
|
+
product: ror_baseball_jersey
|
24
|
+
option_values: m, red
|
25
|
+
sku: ROR-00004
|
26
|
+
price: 19.99
|
27
|
+
cost_price: 17.00
|
28
|
+
count_on_hand: 3
|
29
|
+
med-blue-baseball:
|
30
|
+
product: ror_baseball_jersey
|
31
|
+
option_values: m, blue
|
32
|
+
sku: ROR-00005
|
33
|
+
price: 19.99
|
34
|
+
cost_price: 17.00
|
35
|
+
count_on_hand: 10
|
36
|
+
med-green-baseball:
|
37
|
+
product: ror_baseball_jersey
|
38
|
+
option_values: m, green
|
39
|
+
sku: ROR-00006
|
40
|
+
price: 19.99
|
41
|
+
cost_price: 17.00
|
42
|
+
count_on_hand: 14
|
43
|
+
large-red-baseball:
|
44
|
+
product: ror_baseball_jersey
|
45
|
+
option_values: l, red
|
46
|
+
sku: ROR-00007
|
47
|
+
price: 19.99
|
48
|
+
cost_price: 17.00
|
49
|
+
count_on_hand: 1
|
50
|
+
large-blue-baseball:
|
51
|
+
product: ror_baseball_jersey
|
52
|
+
option_values: l, blue
|
53
|
+
sku: ROR-00008
|
54
|
+
price: 19.99
|
55
|
+
cost_price: 17.00
|
56
|
+
count_on_hand: 10
|
57
|
+
large-green-baseball:
|
58
|
+
product: ror_baseball_jersey
|
59
|
+
option_values: l, green
|
60
|
+
sku: ROR-00009
|
61
|
+
price: 19.99
|
62
|
+
cost_price: 17.00
|
63
|
+
count_on_hand: 10
|
64
|
+
xlarge-green-baseball:
|
65
|
+
product: ror_baseball_jersey
|
66
|
+
option_values: xl, red
|
67
|
+
sku: ROR-00010
|
68
|
+
price: 21.99
|
69
|
+
cost_price: 20.00
|
70
|
+
count_on_hand: 10
|
71
|
+
ror_baseball_jersey:
|
72
|
+
product: ror_baseball_jersey
|
73
|
+
sku: ROR-001
|
74
|
+
price: 19.99
|
75
|
+
cost_price: 17.00
|
76
|
+
is_master: true
|
77
|
+
count_on_hand: 10
|
78
|
+
ror_tote_v:
|
79
|
+
product: ror_tote
|
80
|
+
sku: ROR-00011
|
81
|
+
price: 15.99
|
82
|
+
cost_price: 13.00
|
83
|
+
is_master: true
|
84
|
+
count_on_hand: 10
|
85
|
+
ror_bag_v:
|
86
|
+
product: ror_bag
|
87
|
+
sku: ROR-00012
|
88
|
+
price: 22.99
|
89
|
+
cost_price: 21.00
|
90
|
+
is_master: true
|
91
|
+
count_on_hand: 10
|
92
|
+
ror_jr_spaghetti_v:
|
93
|
+
product: ror_jr_spaghetti
|
94
|
+
sku: ROR-00013
|
95
|
+
price: 19.99
|
96
|
+
cost_price: 17.00
|
97
|
+
is_master: true
|
98
|
+
count_on_hand: 10
|
99
|
+
ror_mug_v:
|
100
|
+
product: ror_mug
|
101
|
+
sku: ROR-00014
|
102
|
+
price: 13.99
|
103
|
+
cost_price: 11.00
|
104
|
+
is_master: true
|
105
|
+
count_on_hand: 10
|
106
|
+
ror_ringer_v:
|
107
|
+
product: ror_ringer
|
108
|
+
sku: ROR-00015
|
109
|
+
price: 17.99
|
110
|
+
cost_price: 17.00
|
111
|
+
is_master: true
|
112
|
+
count_on_hand: 10
|
113
|
+
ror_stein_v:
|
114
|
+
product: ror_stein
|
115
|
+
sku: ROR-00016
|
116
|
+
price: 16.99
|
117
|
+
cost_price: 15.00
|
118
|
+
is_master: true
|
119
|
+
count_on_hand: 10
|
120
|
+
apache_baseball_v:
|
121
|
+
product: apache_baseball_jersey
|
122
|
+
sku: APC-00001
|
123
|
+
price: 19.99
|
124
|
+
cost_price: 17.00
|
125
|
+
is_master: true
|
126
|
+
count_on_hand: 10
|
127
|
+
ruby_baseball_v:
|
128
|
+
product: ruby_baseball_jersey
|
129
|
+
sku: RUB-00001
|
130
|
+
price: 19.99
|
131
|
+
cost_price: 17.00
|
132
|
+
is_master: true
|
133
|
+
count_on_hand: 10
|
data/lib/spree_sample.rb
ADDED
@@ -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
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: My-Commerce_sample
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Santa
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-23 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: My-Commerce_core
|
16
|
+
requirement: &85800210 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *85800210
|
25
|
+
description: Required dependancy for My-Commerce
|
26
|
+
email: santa@gmail.com
|
27
|
+
executables: []
|
28
|
+
extensions: []
|
29
|
+
extra_rdoc_files: []
|
30
|
+
files:
|
31
|
+
- LICENSE
|
32
|
+
- lib/tasks/install.rake
|
33
|
+
- lib/spree_sample.rb
|
34
|
+
- db/sample/properties.yml
|
35
|
+
- db/sample/option_values.yml
|
36
|
+
- db/sample/orders.yml
|
37
|
+
- db/sample/assets.yml
|
38
|
+
- db/sample/products.yml
|
39
|
+
- db/sample/assets/ror_baseball.jpeg
|
40
|
+
- db/sample/assets/ror_stein_back.jpeg
|
41
|
+
- db/sample/assets/apache_baseball.png
|
42
|
+
- db/sample/assets/ror_baseball_jersey_green.png
|
43
|
+
- db/sample/assets/ror_mug.jpeg
|
44
|
+
- db/sample/assets/ror_baseball_jersey_red.png
|
45
|
+
- db/sample/assets/ror_baseball_jersey_back_red.png
|
46
|
+
- db/sample/assets/ror_ringer_back.jpeg
|
47
|
+
- db/sample/assets/ror_baseball_jersey_back_blue.png
|
48
|
+
- db/sample/assets/ror_baseball_back.jpeg
|
49
|
+
- db/sample/assets/ror_stein.jpeg
|
50
|
+
- db/sample/assets/ror_baseball_jersey_blue.png
|
51
|
+
- db/sample/assets/ror_ringer.jpeg
|
52
|
+
- db/sample/assets/ror_baseball_jersey_back_green.png
|
53
|
+
- db/sample/assets/ruby_baseball.png
|
54
|
+
- db/sample/assets/ror_tote_back.jpeg
|
55
|
+
- db/sample/assets/ror_tote.jpeg
|
56
|
+
- db/sample/assets/ror_jr_spaghetti.jpeg
|
57
|
+
- db/sample/assets/ror_bag.jpeg
|
58
|
+
- db/sample/assets/ror_mug_back.jpeg
|
59
|
+
- db/sample/option_types.yml
|
60
|
+
- db/sample/prototypes.yml
|
61
|
+
- db/sample/update_memberships.rb
|
62
|
+
- db/sample/calculators.yml
|
63
|
+
- db/sample/line_items.yml
|
64
|
+
- db/sample/adjustments.yml
|
65
|
+
- db/sample/taxonomies.yml
|
66
|
+
- db/sample/product_properties.yml
|
67
|
+
- db/sample/shipping_methods.yml
|
68
|
+
- db/sample/shipping_categories.yml
|
69
|
+
- db/sample/product_scopes.yml
|
70
|
+
- db/sample/product_option_types.yml
|
71
|
+
- db/sample/shipments.yml
|
72
|
+
- db/sample/users.yml
|
73
|
+
- db/sample/variants.yml
|
74
|
+
- db/sample/preferences.yml
|
75
|
+
- db/sample/payments.rb
|
76
|
+
- db/sample/products.rb
|
77
|
+
- db/sample/payment_methods.yml
|
78
|
+
- db/sample/taxons.rb
|
79
|
+
- db/sample/inventory_units.rb
|
80
|
+
- db/sample/tax_categories.yml
|
81
|
+
- db/sample/addresses.yml
|
82
|
+
- db/sample/product_groups.yml
|
83
|
+
- db/sample/taxons.yml
|
84
|
+
homepage: http://ecommerce.com
|
85
|
+
licenses: []
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 1.8.7
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
hash: -730358445
|
105
|
+
requirements:
|
106
|
+
- none
|
107
|
+
rubyforge_project: My-Commerce_sample
|
108
|
+
rubygems_version: 1.8.17
|
109
|
+
signing_key:
|
110
|
+
specification_version: 3
|
111
|
+
summary: Sample data (including images) for use with My-Commerce.
|
112
|
+
test_files: []
|