radiant-shop-extension 0.11.6 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. data/HISTORY.md +21 -3
  2. data/LICENSE +42 -0
  3. data/README.md +62 -25
  4. data/Rakefile +4 -5
  5. data/VERSION +1 -1
  6. data/app/controllers/admin/shop/categories_controller.rb +1 -0
  7. data/app/controllers/admin/shop/orders_controller.rb +1 -1
  8. data/app/controllers/admin/shop/products_controller.rb +18 -7
  9. data/app/helpers/shop_helper.rb +8 -0
  10. data/app/models/form_address.rb +5 -5
  11. data/app/models/form_checkout.rb +25 -17
  12. data/app/models/form_line_item.rb +1 -1
  13. data/app/models/shop_category.rb +22 -7
  14. data/app/models/shop_customer.rb +1 -1
  15. data/app/models/shop_line_item.rb +26 -26
  16. data/app/models/shop_order.rb +0 -2
  17. data/app/models/shop_product.rb +15 -18
  18. data/app/views/.DS_Store +0 -0
  19. data/app/views/admin/shop/categories/edit/meta/_status.html.haml +3 -0
  20. data/app/views/admin/shop/products/edit/_foot.html.haml +1 -8
  21. data/app/views/admin/shop/products/edit/meta/_layout.html.haml +6 -0
  22. data/app/views/admin/shop/products/edit/meta/_status.html.haml +3 -0
  23. data/app/views/admin/shop/products/index/_product.html.haml +1 -1
  24. data/config/locales/en.yml +8 -7
  25. data/config/routes.rb +4 -16
  26. data/db/migrate/20101011063133_setup_shop.rb +94 -0
  27. data/db/seeds/forms.rb +113 -154
  28. data/db/seeds/layouts.rb +67 -103
  29. data/db/seeds/pages.rb +101 -0
  30. data/db/seeds/products.rb +29 -0
  31. data/db/seeds/snippets.rb +36 -21
  32. data/lib/shop/controllers/application_controller.rb +5 -3
  33. data/lib/shop/models/form_extension.rb +1 -2
  34. data/lib/shop/models/page.rb +0 -1
  35. data/lib/shop/models/user.rb +0 -1
  36. data/lib/shop/tags/card.rb +8 -2
  37. data/lib/shop/tags/cart.rb +5 -1
  38. data/lib/shop/tags/helpers.rb +35 -60
  39. data/lib/shop/tags/item.rb +2 -16
  40. data/lib/shop/tags/product.rb +7 -0
  41. data/lib/tasks/shop_extension_tasks.rake +9 -4
  42. data/public/javascripts/admin/extensions/shop/products/edit.js +0 -25
  43. data/radiant-shop-extension.gemspec +25 -201
  44. data/shop_extension.rb +18 -19
  45. data/spec/datasets/forms.rb +25 -28
  46. data/spec/datasets/shop_categories.rb +2 -2
  47. data/spec/datasets/shop_config.rb +24 -0
  48. data/spec/datasets/shop_customers.rb +1 -0
  49. data/spec/datasets/shop_line_items.rb +21 -3
  50. data/spec/datasets/shop_products.rb +4 -1
  51. data/spec/datasets/tags.rb +19 -0
  52. data/spec/lib/shop/models/page_spec.rb +1 -1
  53. data/spec/lib/shop/tags/card_spec.rb +30 -4
  54. data/spec/lib/shop/tags/cart_spec.rb +29 -12
  55. data/spec/lib/shop/tags/helpers_spec.rb +45 -66
  56. data/spec/lib/shop/tags/item_spec.rb +6 -10
  57. data/spec/lib/shop/tags/product_spec.rb +27 -2
  58. data/spec/models/form_address_spec.rb +9 -8
  59. data/spec/models/form_checkout_spec.rb +28 -22
  60. data/spec/models/shop_category_spec.rb +2 -10
  61. data/spec/models/shop_line_item_spec.rb +71 -34
  62. data/spec/models/shop_order_spec.rb +5 -5
  63. data/spec/models/shop_product_attachment_spec.rb +1 -0
  64. data/spec/models/shop_product_spec.rb +4 -47
  65. data/spec/spec.opts +3 -5
  66. metadata +60 -248
  67. data/Gemfile +0 -26
  68. data/Gemfile.lock +0 -75
  69. data/MIT-LICENSE +0 -20
  70. data/app/controllers/admin/shop/discounts/discountables_controller.rb +0 -44
  71. data/app/controllers/admin/shop/discounts_controller.rb +0 -64
  72. data/app/controllers/admin/shop/packages/packings_controller.rb +0 -90
  73. data/app/controllers/admin/shop/packages_controller.rb +0 -63
  74. data/app/controllers/admin/shop/products/variant_templates_controller.rb +0 -27
  75. data/app/controllers/admin/shop/products/variants_controller.rb +0 -60
  76. data/app/controllers/admin/shop/variants_controller.rb +0 -48
  77. data/app/models/form_discount.rb +0 -39
  78. data/app/models/shop_discount.rb +0 -37
  79. data/app/models/shop_discountable.rb +0 -64
  80. data/app/models/shop_group.rb +0 -15
  81. data/app/models/shop_grouping.rb +0 -6
  82. data/app/models/shop_package.rb +0 -74
  83. data/app/models/shop_packing.rb +0 -22
  84. data/app/models/shop_product_variant.rb +0 -34
  85. data/app/models/shop_variant.rb +0 -23
  86. data/app/views/admin/pages/_shop_category.html.haml +0 -4
  87. data/app/views/admin/pages/_shop_product.html.haml +0 -4
  88. data/app/views/admin/shop/discounts/edit/_foot.html.haml +0 -16
  89. data/app/views/admin/shop/discounts/edit/_form.html.haml +0 -15
  90. data/app/views/admin/shop/discounts/edit/_head.html.haml +0 -4
  91. data/app/views/admin/shop/discounts/edit/_inputs.html.haml +0 -2
  92. data/app/views/admin/shop/discounts/edit/_meta.html.haml +0 -8
  93. data/app/views/admin/shop/discounts/edit/_parts.html.haml +0 -9
  94. data/app/views/admin/shop/discounts/edit/_popups.html.haml +0 -4
  95. data/app/views/admin/shop/discounts/edit/buttons/_browse_categories.html.haml +0 -1
  96. data/app/views/admin/shop/discounts/edit/buttons/_browse_products.html.haml +0 -1
  97. data/app/views/admin/shop/discounts/edit/inputs/_amount.html.haml +0 -3
  98. data/app/views/admin/shop/discounts/edit/inputs/_code.html.haml +0 -3
  99. data/app/views/admin/shop/discounts/edit/inputs/_name.html.haml +0 -3
  100. data/app/views/admin/shop/discounts/edit/meta/_finish.html.haml +0 -5
  101. data/app/views/admin/shop/discounts/edit/meta/_start.html.haml +0 -5
  102. data/app/views/admin/shop/discounts/edit/parts/_categories.html.haml +0 -3
  103. data/app/views/admin/shop/discounts/edit/parts/_products.html.haml +0 -3
  104. data/app/views/admin/shop/discounts/edit/popups/_browse_categories.html.haml +0 -6
  105. data/app/views/admin/shop/discounts/edit/popups/_browse_products.html.haml +0 -6
  106. data/app/views/admin/shop/discounts/edit/shared/_category.html.haml +0 -11
  107. data/app/views/admin/shop/discounts/edit/shared/_product.html.haml +0 -12
  108. data/app/views/admin/shop/discounts/edit.html.haml +0 -11
  109. data/app/views/admin/shop/discounts/index/_discount.html.haml +0 -13
  110. data/app/views/admin/shop/discounts/index/_foot.html.haml +0 -5
  111. data/app/views/admin/shop/discounts/index/_head.html.haml +0 -2
  112. data/app/views/admin/shop/discounts/index/buttons/_new_discount.html.haml +0 -1
  113. data/app/views/admin/shop/discounts/index.html.haml +0 -13
  114. data/app/views/admin/shop/discounts/new.html.haml +0 -11
  115. data/app/views/admin/shop/discounts/remove.html.haml +0 -12
  116. data/app/views/admin/shop/packages/edit/_foot.html.haml +0 -17
  117. data/app/views/admin/shop/packages/edit/_form.html.haml +0 -15
  118. data/app/views/admin/shop/packages/edit/_head.html.haml +0 -4
  119. data/app/views/admin/shop/packages/edit/_inputs.html.haml +0 -2
  120. data/app/views/admin/shop/packages/edit/_meta.html.haml +0 -8
  121. data/app/views/admin/shop/packages/edit/_parts.html.haml +0 -9
  122. data/app/views/admin/shop/packages/edit/_popups.html.haml +0 -4
  123. data/app/views/admin/shop/packages/edit/buttons/_browse_products.html.haml +0 -1
  124. data/app/views/admin/shop/packages/edit/inputs/_name.html.haml +0 -3
  125. data/app/views/admin/shop/packages/edit/inputs/_price.html.haml +0 -3
  126. data/app/views/admin/shop/packages/edit/meta/_sku.html.haml +0 -5
  127. data/app/views/admin/shop/packages/edit/parts/_description.html.haml +0 -1
  128. data/app/views/admin/shop/packages/edit/parts/_products.html.haml +0 -3
  129. data/app/views/admin/shop/packages/edit/popups/_browse_products.html.haml +0 -7
  130. data/app/views/admin/shop/packages/edit/shared/_product.html.haml +0 -8
  131. data/app/views/admin/shop/packages/edit.html.haml +0 -11
  132. data/app/views/admin/shop/packages/index/_foot.html.haml +0 -8
  133. data/app/views/admin/shop/packages/index/_head.html.haml +0 -2
  134. data/app/views/admin/shop/packages/index/_package.html.haml +0 -9
  135. data/app/views/admin/shop/packages/index/buttons/_new_package.html.haml +0 -1
  136. data/app/views/admin/shop/packages/index.html.haml +0 -13
  137. data/app/views/admin/shop/packages/new.html.haml +0 -11
  138. data/app/views/admin/shop/packages/remove.html.haml +0 -12
  139. data/app/views/admin/shop/products/edit/buttons/_browse_templates.html.haml +0 -1
  140. data/app/views/admin/shop/products/edit/buttons/_new_variant.html.haml +0 -1
  141. data/app/views/admin/shop/products/edit/parts/_variants.html.haml +0 -3
  142. data/app/views/admin/shop/products/edit/popups/_browse_templates.html.haml +0 -6
  143. data/app/views/admin/shop/products/edit/popups/_new_variant.html.haml +0 -16
  144. data/app/views/admin/shop/products/edit/shared/_template.html.haml +0 -6
  145. data/app/views/admin/shop/products/edit/shared/_variant.html.haml +0 -10
  146. data/app/views/admin/shop/products/index/buttons/_variants.html.haml +0 -1
  147. data/app/views/admin/shop/variants/edit/_foot.html.haml +0 -9
  148. data/app/views/admin/shop/variants/edit/_form.html.haml +0 -13
  149. data/app/views/admin/shop/variants/edit/_head.html.haml +0 -4
  150. data/app/views/admin/shop/variants/edit/_inputs.html.haml +0 -2
  151. data/app/views/admin/shop/variants/edit/_meta.html.haml +0 -8
  152. data/app/views/admin/shop/variants/edit/_parts.html.haml +0 -9
  153. data/app/views/admin/shop/variants/edit/_popups.html.haml +0 -4
  154. data/app/views/admin/shop/variants/edit/inputs/_name.html.haml +0 -3
  155. data/app/views/admin/shop/variants/edit/inputs/_options.html.haml +0 -3
  156. data/app/views/admin/shop/variants/edit.html.haml +0 -11
  157. data/app/views/admin/shop/variants/index/_foot.html.haml +0 -5
  158. data/app/views/admin/shop/variants/index/_head.html.haml +0 -2
  159. data/app/views/admin/shop/variants/index/_variant.html.haml +0 -9
  160. data/app/views/admin/shop/variants/index/buttons/_add_variant.html.haml +0 -1
  161. data/app/views/admin/shop/variants/index/buttons/_categories.html.haml +0 -1
  162. data/app/views/admin/shop/variants/index.html.haml +0 -13
  163. data/app/views/admin/shop/variants/new.html.haml +0 -11
  164. data/app/views/admin/shop/variants/remove.html.haml +0 -12
  165. data/app/views/shop/categories/show.html.haml +0 -1
  166. data/app/views/shop/orders/show.html.haml +0 -1
  167. data/app/views/shop/products/index.html.haml +0 -1
  168. data/app/views/shop/products/show.html.haml +0 -1
  169. data/cucumber.yml +0 -1
  170. data/db/migrate/20100311053701_initial.rb +0 -153
  171. data/db/migrate/20100927041219_remove_payment_methods.rb +0 -16
  172. data/db/migrate/20100927041624_change_payments_add_gateway.rb +0 -11
  173. data/db/migrate/20100927140446_change_payment_add_card_type_card_number.rb +0 -11
  174. data/db/migrate/20100929011106_fix_relationship_foreign_keys.rb +0 -101
  175. data/db/migrate/20100929011607_drop_shop_addressables.rb +0 -25
  176. data/db/migrate/20100929030510_create_shop_groups.rb +0 -19
  177. data/db/migrate/20100929080301_shop_groups_change_add_description.rb +0 -11
  178. data/db/migrate/20100929081200_create_variants.rb +0 -20
  179. data/db/migrate/20100929143531_change_variants_add_updated_by.rb +0 -25
  180. data/db/migrate/20100929145641_change_created_by_to_id.rb +0 -75
  181. data/db/migrate/20100929235221_change_category_add_variant_id.rb +0 -9
  182. data/db/migrate/20100930235221_create_packages.rb +0 -31
  183. data/db/migrate/20101005231713_create_page_ids.rb +0 -11
  184. data/db/migrate/20101006051214_create_pages_for_products_and_categories.rb +0 -73
  185. data/db/migrate/20101007111845_add_default_position_to_attachment.rb +0 -9
  186. data/db/migrate/20101010071143_create_discounts.rb +0 -29
  187. data/db/migrate/20101010072225_modify_categories_remove_variant.rb +0 -9
  188. data/db/migrate/20101010130034_change_discountables_add_observer.rb +0 -15
  189. data/db/migrate/20101011063133_change_orders_set_limits_to_null.rb +0 -11
  190. data/features/support/env.rb +0 -16
  191. data/features/support/paths.rb +0 -14
  192. data/lib/shop/interface/packages.rb +0 -34
  193. data/lib/shop/interface/variants.rb +0 -34
  194. data/lib/shop/tags/package.rb +0 -95
  195. data/lib/shop/tags/product_variant.rb +0 -52
  196. data/lib/shop/tags/responses.rb +0 -34
  197. data/mockups/balsamiq/products-retro_fun_tshirt-more.bmml +0 -0
  198. data/mockups/balsamiq/products-retro_fun_tshirt.bmml +0 -0
  199. data/mockups/discounts/new-edit.bmml +0 -492
  200. data/public/javascripts/admin/extensions/shop/discounts/edit.js +0 -76
  201. data/public/javascripts/admin/extensions/shop/packages/edit.js +0 -109
  202. data/public/stylesheets/sass/admin/extensions/shop/discounts/edit.sass +0 -125
  203. data/public/stylesheets/sass/admin/extensions/shop/packages/edit.sass +0 -162
  204. data/spec/controllers/admin/shop/discounts/discountables_controller_spec.rb +0 -73
  205. data/spec/controllers/admin/shop/discounts_controller_spec.rb +0 -81
  206. data/spec/controllers/admin/shop/packages/packings_controller_spec.rb +0 -188
  207. data/spec/controllers/admin/shop/packages_controller_spec.rb +0 -32
  208. data/spec/controllers/admin/shop/products/variant_templates_controller_spec.rb +0 -53
  209. data/spec/controllers/admin/shop/products/variants_controller_spec.rb +0 -116
  210. data/spec/controllers/admin/shop/variants_controller_spec.rb +0 -67
  211. data/spec/datasets/shop_discountables.rb +0 -22
  212. data/spec/datasets/shop_discounts.rb +0 -29
  213. data/spec/datasets/shop_groups.rb +0 -15
  214. data/spec/datasets/shop_packages.rb +0 -25
  215. data/spec/datasets/shop_product_variants.rb +0 -22
  216. data/spec/datasets/shop_variants.rb +0 -17
  217. data/spec/lib/shop/tags/package_spec.rb +0 -342
  218. data/spec/lib/shop/tags/product_variant_spec.rb +0 -175
  219. data/spec/lib/shop/tags/responses_spec.rb +0 -129
  220. data/spec/models/form_discount_spec.rb +0 -63
  221. data/spec/models/shop_discount_spec.rb +0 -130
  222. data/spec/models/shop_discountable_spec.rb +0 -114
  223. data/spec/models/shop_group_spec.rb +0 -38
  224. data/spec/models/shop_package_spec.rb +0 -117
  225. data/spec/models/shop_packing_spec.rb +0 -67
  226. data/spec/models/shop_product_variant_spec.rb +0 -92
  227. data/spec/models/shop_variant_spec.rb +0 -32
metadata CHANGED
@@ -1,28 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-shop-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 375
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 11
9
- - 6
10
- version: 0.11.6
8
+ - 90
9
+ - 0
10
+ version: 0.90.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Kelly
14
14
  - John Barker
15
+ - Darcy Laycock
15
16
  autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-10-14 00:00:00 +08:00
20
+ date: 2010-11-10 00:00:00 +08:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
- name: radiant
24
+ type: :runtime
24
25
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
27
  none: false
27
28
  requirements:
28
29
  - - ">="
@@ -33,12 +34,12 @@ dependencies:
33
34
  - 9
34
35
  - 1
35
36
  version: 0.9.1
36
- type: :runtime
37
- version_requirements: *id001
37
+ name: radiant
38
+ requirement: *id001
38
39
  - !ruby/object:Gem::Dependency
39
- name: activemerchant
40
+ type: :runtime
40
41
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
42
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  requirements:
44
45
  - - ">="
@@ -49,12 +50,12 @@ dependencies:
49
50
  - 8
50
51
  - 0
51
52
  version: 1.8.0
52
- type: :runtime
53
- version_requirements: *id002
53
+ name: activemerchant
54
+ requirement: *id002
54
55
  - !ruby/object:Gem::Dependency
55
- name: fastercsv
56
+ type: :runtime
56
57
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
58
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
59
  none: false
59
60
  requirements:
60
61
  - - ">="
@@ -65,28 +66,12 @@ dependencies:
65
66
  - 5
66
67
  - 3
67
68
  version: 1.5.3
68
- type: :runtime
69
- version_requirements: *id003
69
+ name: fastercsv
70
+ requirement: *id003
70
71
  - !ruby/object:Gem::Dependency
71
- name: radiant-layouts-extension
72
- prerelease: false
73
- requirement: &id004 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 57
79
- segments:
80
- - 0
81
- - 9
82
- - 1
83
- version: 0.9.1
84
72
  type: :runtime
85
- version_requirements: *id004
86
- - !ruby/object:Gem::Dependency
87
- name: radiant-settings-extension
88
73
  prerelease: false
89
- requirement: &id005 !ruby/object:Gem::Requirement
74
+ version_requirements: &id004 !ruby/object:Gem::Requirement
90
75
  none: false
91
76
  requirements:
92
77
  - - ">="
@@ -97,60 +82,60 @@ dependencies:
97
82
  - 1
98
83
  - 1
99
84
  version: 1.1.1
100
- type: :runtime
101
- version_requirements: *id005
85
+ name: radiant-settings-extension
86
+ requirement: *id004
102
87
  - !ruby/object:Gem::Dependency
103
- name: radiant-images-extension
88
+ type: :runtime
104
89
  prerelease: false
105
- requirement: &id006 !ruby/object:Gem::Requirement
90
+ version_requirements: &id005 !ruby/object:Gem::Requirement
106
91
  none: false
107
92
  requirements:
108
93
  - - ">="
109
94
  - !ruby/object:Gem::Version
110
- hash: 23
95
+ hash: 15
111
96
  segments:
112
97
  - 0
113
- - 3
114
- - 2
115
- version: 0.3.2
116
- type: :runtime
117
- version_requirements: *id006
98
+ - 4
99
+ - 0
100
+ version: 0.4.0
101
+ name: radiant-images-extension
102
+ requirement: *id005
118
103
  - !ruby/object:Gem::Dependency
119
- name: radiant-forms-extension
104
+ type: :runtime
120
105
  prerelease: false
121
- requirement: &id007 !ruby/object:Gem::Requirement
106
+ version_requirements: &id006 !ruby/object:Gem::Requirement
122
107
  none: false
123
108
  requirements:
124
109
  - - ">="
125
110
  - !ruby/object:Gem::Version
126
- hash: 1
111
+ hash: 13
127
112
  segments:
128
113
  - 3
114
+ - 2
129
115
  - 1
130
- - 1
131
- version: 3.1.1
132
- type: :runtime
133
- version_requirements: *id007
116
+ version: 3.2.1
117
+ name: radiant-forms-extension
118
+ requirement: *id006
134
119
  - !ruby/object:Gem::Dependency
135
- name: radiant-scoped-extension
120
+ type: :runtime
136
121
  prerelease: false
137
- requirement: &id008 !ruby/object:Gem::Requirement
122
+ version_requirements: &id007 !ruby/object:Gem::Requirement
138
123
  none: false
139
124
  requirements:
140
125
  - - ">="
141
126
  - !ruby/object:Gem::Version
142
- hash: 19
127
+ hash: 29
143
128
  segments:
144
129
  - 0
145
- - 2
146
- - 2
147
- version: 0.2.2
148
- type: :runtime
149
- version_requirements: *id008
130
+ - 0
131
+ - 1
132
+ version: 0.0.1
133
+ name: radiant-users-extension
134
+ requirement: *id007
150
135
  - !ruby/object:Gem::Dependency
151
- name: radiant-drag-extension
136
+ type: :runtime
152
137
  prerelease: false
153
- requirement: &id009 !ruby/object:Gem::Requirement
138
+ version_requirements: &id008 !ruby/object:Gem::Requirement
154
139
  none: false
155
140
  requirements:
156
141
  - - ">="
@@ -161,8 +146,8 @@ dependencies:
161
146
  - 1
162
147
  - 0
163
148
  version: 0.1.0
164
- type: :runtime
165
- version_requirements: *id009
149
+ name: radiant-drag-extension
150
+ requirement: *id008
166
151
  description: Radiant Shop is an attempt at a simple but complete store. It includes Products, Categories, Orders and Credit Card Payments
167
152
  email: dk@dirkkelly.com
168
153
  executables: []
@@ -170,58 +155,39 @@ executables: []
170
155
  extensions: []
171
156
 
172
157
  extra_rdoc_files:
158
+ - LICENSE
173
159
  - README.md
174
160
  files:
175
161
  - .gitignore
176
- - Gemfile
177
- - Gemfile.lock
178
162
  - HISTORY.md
179
- - MIT-LICENSE
163
+ - LICENSE
180
164
  - README.md
181
165
  - Rakefile
182
166
  - VERSION
183
167
  - app/.DS_Store
184
168
  - app/controllers/admin/shop/categories_controller.rb
185
169
  - app/controllers/admin/shop/customers_controller.rb
186
- - app/controllers/admin/shop/discounts/discountables_controller.rb
187
- - app/controllers/admin/shop/discounts_controller.rb
188
170
  - app/controllers/admin/shop/orders_controller.rb
189
- - app/controllers/admin/shop/packages/packings_controller.rb
190
- - app/controllers/admin/shop/packages_controller.rb
191
171
  - app/controllers/admin/shop/products/images_controller.rb
192
- - app/controllers/admin/shop/products/variant_templates_controller.rb
193
- - app/controllers/admin/shop/products/variants_controller.rb
194
172
  - app/controllers/admin/shop/products_controller.rb
195
- - app/controllers/admin/shop/variants_controller.rb
196
173
  - app/controllers/admin/shops_controller.rb
197
174
  - app/helpers/shop_helper.rb
198
175
  - app/models/form_address.rb
199
176
  - app/models/form_checkout.rb
200
- - app/models/form_discount.rb
201
177
  - app/models/form_line_item.rb
202
178
  - app/models/shop_address.rb
203
179
  - app/models/shop_category.rb
204
180
  - app/models/shop_category_page.rb
205
181
  - app/models/shop_customer.rb
206
- - app/models/shop_discount.rb
207
- - app/models/shop_discountable.rb
208
- - app/models/shop_group.rb
209
- - app/models/shop_grouping.rb
210
182
  - app/models/shop_line_item.rb
211
183
  - app/models/shop_order.rb
212
- - app/models/shop_package.rb
213
- - app/models/shop_packing.rb
214
184
  - app/models/shop_page.rb
215
185
  - app/models/shop_payment.rb
216
186
  - app/models/shop_product.rb
217
187
  - app/models/shop_product_attachment.rb
218
188
  - app/models/shop_product_page.rb
219
- - app/models/shop_product_variant.rb
220
- - app/models/shop_variant.rb
221
189
  - app/views/.DS_Store
222
190
  - app/views/admin/.DS_Store
223
- - app/views/admin/pages/_shop_category.html.haml
224
- - app/views/admin/pages/_shop_product.html.haml
225
191
  - app/views/admin/shop/categories/edit.html.haml
226
192
  - app/views/admin/shop/categories/edit/_foot.html.haml
227
193
  - app/views/admin/shop/categories/edit/_form.html.haml
@@ -234,6 +200,7 @@ files:
234
200
  - app/views/admin/shop/categories/edit/meta/_handle.html.haml
235
201
  - app/views/admin/shop/categories/edit/meta/_layouts.html.haml
236
202
  - app/views/admin/shop/categories/edit/meta/_page.html.haml
203
+ - app/views/admin/shop/categories/edit/meta/_status.html.haml
237
204
  - app/views/admin/shop/categories/edit/parts/_description.html.haml
238
205
  - app/views/admin/shop/categories/index/_category.html.haml
239
206
  - app/views/admin/shop/categories/new.html.haml
@@ -260,34 +227,6 @@ files:
260
227
  - app/views/admin/shop/customers/index/_head.html.haml
261
228
  - app/views/admin/shop/customers/new.html.haml
262
229
  - app/views/admin/shop/customers/remove.html.haml
263
- - app/views/admin/shop/discounts/edit.html.haml
264
- - app/views/admin/shop/discounts/edit/_foot.html.haml
265
- - app/views/admin/shop/discounts/edit/_form.html.haml
266
- - app/views/admin/shop/discounts/edit/_head.html.haml
267
- - app/views/admin/shop/discounts/edit/_inputs.html.haml
268
- - app/views/admin/shop/discounts/edit/_meta.html.haml
269
- - app/views/admin/shop/discounts/edit/_parts.html.haml
270
- - app/views/admin/shop/discounts/edit/_popups.html.haml
271
- - app/views/admin/shop/discounts/edit/buttons/_browse_categories.html.haml
272
- - app/views/admin/shop/discounts/edit/buttons/_browse_products.html.haml
273
- - app/views/admin/shop/discounts/edit/inputs/_amount.html.haml
274
- - app/views/admin/shop/discounts/edit/inputs/_code.html.haml
275
- - app/views/admin/shop/discounts/edit/inputs/_name.html.haml
276
- - app/views/admin/shop/discounts/edit/meta/_finish.html.haml
277
- - app/views/admin/shop/discounts/edit/meta/_start.html.haml
278
- - app/views/admin/shop/discounts/edit/parts/_categories.html.haml
279
- - app/views/admin/shop/discounts/edit/parts/_products.html.haml
280
- - app/views/admin/shop/discounts/edit/popups/_browse_categories.html.haml
281
- - app/views/admin/shop/discounts/edit/popups/_browse_products.html.haml
282
- - app/views/admin/shop/discounts/edit/shared/_category.html.haml
283
- - app/views/admin/shop/discounts/edit/shared/_product.html.haml
284
- - app/views/admin/shop/discounts/index.html.haml
285
- - app/views/admin/shop/discounts/index/_discount.html.haml
286
- - app/views/admin/shop/discounts/index/_foot.html.haml
287
- - app/views/admin/shop/discounts/index/_head.html.haml
288
- - app/views/admin/shop/discounts/index/buttons/_new_discount.html.haml
289
- - app/views/admin/shop/discounts/new.html.haml
290
- - app/views/admin/shop/discounts/remove.html.haml
291
230
  - app/views/admin/shop/orders/edit.html.haml
292
231
  - app/views/admin/shop/orders/edit/_foot.html.haml
293
232
  - app/views/admin/shop/orders/edit/_form.html.haml
@@ -308,29 +247,6 @@ files:
308
247
  - app/views/admin/shop/orders/index/buttons/_new.html.haml
309
248
  - app/views/admin/shop/orders/index/buttons/_paid.html.haml
310
249
  - app/views/admin/shop/orders/index/buttons/_shipped.html.haml
311
- - app/views/admin/shop/packages/edit.html.haml
312
- - app/views/admin/shop/packages/edit/_foot.html.haml
313
- - app/views/admin/shop/packages/edit/_form.html.haml
314
- - app/views/admin/shop/packages/edit/_head.html.haml
315
- - app/views/admin/shop/packages/edit/_inputs.html.haml
316
- - app/views/admin/shop/packages/edit/_meta.html.haml
317
- - app/views/admin/shop/packages/edit/_parts.html.haml
318
- - app/views/admin/shop/packages/edit/_popups.html.haml
319
- - app/views/admin/shop/packages/edit/buttons/_browse_products.html.haml
320
- - app/views/admin/shop/packages/edit/inputs/_name.html.haml
321
- - app/views/admin/shop/packages/edit/inputs/_price.html.haml
322
- - app/views/admin/shop/packages/edit/meta/_sku.html.haml
323
- - app/views/admin/shop/packages/edit/parts/_description.html.haml
324
- - app/views/admin/shop/packages/edit/parts/_products.html.haml
325
- - app/views/admin/shop/packages/edit/popups/_browse_products.html.haml
326
- - app/views/admin/shop/packages/edit/shared/_product.html.haml
327
- - app/views/admin/shop/packages/index.html.haml
328
- - app/views/admin/shop/packages/index/_foot.html.haml
329
- - app/views/admin/shop/packages/index/_head.html.haml
330
- - app/views/admin/shop/packages/index/_package.html.haml
331
- - app/views/admin/shop/packages/index/buttons/_new_package.html.haml
332
- - app/views/admin/shop/packages/new.html.haml
333
- - app/views/admin/shop/packages/remove.html.haml
334
250
  - app/views/admin/shop/products/edit.html.haml
335
251
  - app/views/admin/shop/products/edit/_foot.html.haml
336
252
  - app/views/admin/shop/products/edit/_form.html.haml
@@ -340,94 +256,44 @@ files:
340
256
  - app/views/admin/shop/products/edit/_parts.html.haml
341
257
  - app/views/admin/shop/products/edit/_popups.html.haml
342
258
  - app/views/admin/shop/products/edit/buttons/_browse_images.html.haml
343
- - app/views/admin/shop/products/edit/buttons/_browse_templates.html.haml
344
259
  - app/views/admin/shop/products/edit/buttons/_new_image.html.haml
345
- - app/views/admin/shop/products/edit/buttons/_new_variant.html.haml
346
260
  - app/views/admin/shop/products/edit/inputs/_name.html.haml
347
261
  - app/views/admin/shop/products/edit/inputs/_price.html.haml
348
262
  - app/views/admin/shop/products/edit/meta/_category.html.haml
263
+ - app/views/admin/shop/products/edit/meta/_layout.html.haml
349
264
  - app/views/admin/shop/products/edit/meta/_page.html.haml
350
265
  - app/views/admin/shop/products/edit/meta/_sku.html.haml
266
+ - app/views/admin/shop/products/edit/meta/_status.html.haml
351
267
  - app/views/admin/shop/products/edit/parts/_customers.html.haml
352
268
  - app/views/admin/shop/products/edit/parts/_description.html.haml
353
269
  - app/views/admin/shop/products/edit/parts/_images.html.haml
354
- - app/views/admin/shop/products/edit/parts/_variants.html.haml
355
270
  - app/views/admin/shop/products/edit/popups/_browse_images.html.haml
356
- - app/views/admin/shop/products/edit/popups/_browse_templates.html.haml
357
271
  - app/views/admin/shop/products/edit/popups/_new_image.html.haml
358
- - app/views/admin/shop/products/edit/popups/_new_variant.html.haml
359
272
  - app/views/admin/shop/products/edit/shared/_image.html.haml
360
- - app/views/admin/shop/products/edit/shared/_template.html.haml
361
- - app/views/admin/shop/products/edit/shared/_variant.html.haml
362
273
  - app/views/admin/shop/products/index.html.haml
363
274
  - app/views/admin/shop/products/index/_foot.html.haml
364
275
  - app/views/admin/shop/products/index/_head.html.haml
365
276
  - app/views/admin/shop/products/index/_product.html.haml
366
277
  - app/views/admin/shop/products/index/buttons/_add_category.html.haml
367
- - app/views/admin/shop/products/index/buttons/_variants.html.haml
368
278
  - app/views/admin/shop/products/new.html.haml
369
279
  - app/views/admin/shop/products/remove.html.haml
370
- - app/views/admin/shop/variants/edit.html.haml
371
- - app/views/admin/shop/variants/edit/_foot.html.haml
372
- - app/views/admin/shop/variants/edit/_form.html.haml
373
- - app/views/admin/shop/variants/edit/_head.html.haml
374
- - app/views/admin/shop/variants/edit/_inputs.html.haml
375
- - app/views/admin/shop/variants/edit/_meta.html.haml
376
- - app/views/admin/shop/variants/edit/_parts.html.haml
377
- - app/views/admin/shop/variants/edit/_popups.html.haml
378
- - app/views/admin/shop/variants/edit/inputs/_name.html.haml
379
- - app/views/admin/shop/variants/edit/inputs/_options.html.haml
380
- - app/views/admin/shop/variants/index.html.haml
381
- - app/views/admin/shop/variants/index/_foot.html.haml
382
- - app/views/admin/shop/variants/index/_head.html.haml
383
- - app/views/admin/shop/variants/index/_variant.html.haml
384
- - app/views/admin/shop/variants/index/buttons/_add_variant.html.haml
385
- - app/views/admin/shop/variants/index/buttons/_categories.html.haml
386
- - app/views/admin/shop/variants/new.html.haml
387
- - app/views/admin/shop/variants/remove.html.haml
388
- - app/views/shop/categories/show.html.haml
389
- - app/views/shop/orders/show.html.haml
390
- - app/views/shop/products/index.html.haml
391
- - app/views/shop/products/show.html.haml
392
280
  - config/locales/en.yml
393
281
  - config/routes.rb
394
282
  - config/shop_cart.yml
395
- - cucumber.yml
396
- - db/migrate/20100311053701_initial.rb
397
- - db/migrate/20100927041219_remove_payment_methods.rb
398
- - db/migrate/20100927041624_change_payments_add_gateway.rb
399
- - db/migrate/20100927140446_change_payment_add_card_type_card_number.rb
400
- - db/migrate/20100929011106_fix_relationship_foreign_keys.rb
401
- - db/migrate/20100929011607_drop_shop_addressables.rb
402
- - db/migrate/20100929030510_create_shop_groups.rb
403
- - db/migrate/20100929080301_shop_groups_change_add_description.rb
404
- - db/migrate/20100929081200_create_variants.rb
405
- - db/migrate/20100929143531_change_variants_add_updated_by.rb
406
- - db/migrate/20100929145641_change_created_by_to_id.rb
407
- - db/migrate/20100929235221_change_category_add_variant_id.rb
408
- - db/migrate/20100930235221_create_packages.rb
409
- - db/migrate/20101005231713_create_page_ids.rb
410
- - db/migrate/20101006051214_create_pages_for_products_and_categories.rb
411
- - db/migrate/20101007111845_add_default_position_to_attachment.rb
412
- - db/migrate/20101010071143_create_discounts.rb
413
- - db/migrate/20101010072225_modify_categories_remove_variant.rb
414
- - db/migrate/20101010130034_change_discountables_add_observer.rb
415
- - db/migrate/20101011063133_change_orders_set_limits_to_null.rb
283
+ - db/migrate/20101011063133_setup_shop.rb
416
284
  - db/seed.rb
417
285
  - db/seeds/forms.rb
418
286
  - db/seeds/layouts.rb
287
+ - db/seeds/pages.rb
288
+ - db/seeds/products.rb
419
289
  - db/seeds/snippets.rb
420
- - features/support/env.rb
421
- - features/support/paths.rb
422
290
  - lib/shop/controllers/application_controller.rb
423
291
  - lib/shop/controllers/site_controller.rb
424
292
  - lib/shop/interface/categories.rb
425
293
  - lib/shop/interface/customers.rb
426
294
  - lib/shop/interface/discounts.rb
427
295
  - lib/shop/interface/orders.rb
428
- - lib/shop/interface/packages.rb
429
296
  - lib/shop/interface/products.rb
430
- - lib/shop/interface/variants.rb
431
297
  - lib/shop/models/form_extension.rb
432
298
  - lib/shop/models/image.rb
433
299
  - lib/shop/models/page.rb
@@ -439,57 +305,36 @@ files:
439
305
  - lib/shop/tags/core.rb
440
306
  - lib/shop/tags/helpers.rb
441
307
  - lib/shop/tags/item.rb
442
- - lib/shop/tags/package.rb
443
308
  - lib/shop/tags/product.rb
444
- - lib/shop/tags/product_variant.rb
445
- - lib/shop/tags/responses.rb
446
309
  - lib/shop/tags/tax.rb
447
310
  - lib/tasks/shop_extension_tasks.rake
448
- - mockups/balsamiq/products-retro_fun_tshirt-more.bmml
449
- - mockups/balsamiq/products-retro_fun_tshirt.bmml
450
- - mockups/discounts/new-edit.bmml
451
311
  - public/images/admin/extensions/shop/products/sort.png
452
- - public/javascripts/admin/extensions/shop/discounts/edit.js
453
312
  - public/javascripts/admin/extensions/shop/edit.js
454
- - public/javascripts/admin/extensions/shop/packages/edit.js
455
313
  - public/javascripts/admin/extensions/shop/products/edit.js
456
314
  - public/javascripts/admin/extensions/shop/products/index.js
457
- - public/stylesheets/sass/admin/extensions/shop/discounts/edit.sass
458
315
  - public/stylesheets/sass/admin/extensions/shop/edit.sass
459
316
  - public/stylesheets/sass/admin/extensions/shop/index.sass
460
- - public/stylesheets/sass/admin/extensions/shop/packages/edit.sass
461
317
  - public/stylesheets/sass/admin/extensions/shop/products/edit.sass
462
318
  - public/stylesheets/sass/admin/extensions/shop/products/index.sass
463
319
  - radiant-shop-extension.gemspec
464
320
  - shop_extension.rb
465
321
  - spec/controllers/admin/shop/categories_controller_spec.rb
466
322
  - spec/controllers/admin/shop/customers_controller_spec.rb
467
- - spec/controllers/admin/shop/discounts/discountables_controller_spec.rb
468
- - spec/controllers/admin/shop/discounts_controller_spec.rb
469
323
  - spec/controllers/admin/shop/orders_controller_spec.rb
470
- - spec/controllers/admin/shop/packages/packings_controller_spec.rb
471
- - spec/controllers/admin/shop/packages_controller_spec.rb
472
324
  - spec/controllers/admin/shop/products/images_controller_spec.rb
473
- - spec/controllers/admin/shop/products/variant_templates_controller_spec.rb
474
- - spec/controllers/admin/shop/products/variants_controller_spec.rb
475
325
  - spec/controllers/admin/shop/products_controller_spec.rb
476
- - spec/controllers/admin/shop/variants_controller_spec.rb
477
326
  - spec/controllers/admin/shops_controller_spec.rb
478
327
  - spec/datasets/forms.rb
479
328
  - spec/datasets/shop_addresses.rb
480
329
  - spec/datasets/shop_categories.rb
330
+ - spec/datasets/shop_config.rb
481
331
  - spec/datasets/shop_customers.rb
482
- - spec/datasets/shop_discountables.rb
483
- - spec/datasets/shop_discounts.rb
484
- - spec/datasets/shop_groups.rb
485
332
  - spec/datasets/shop_line_items.rb
486
333
  - spec/datasets/shop_orders.rb
487
- - spec/datasets/shop_packages.rb
488
334
  - spec/datasets/shop_payments.rb
489
335
  - spec/datasets/shop_product_attachments.rb
490
- - spec/datasets/shop_product_variants.rb
491
336
  - spec/datasets/shop_products.rb
492
- - spec/datasets/shop_variants.rb
337
+ - spec/datasets/tags.rb
493
338
  - spec/helpers/nested_tag_helper.rb
494
339
  - spec/lib/shop/models/image_spec.rb
495
340
  - spec/lib/shop/models/page_spec.rb
@@ -500,33 +345,22 @@ files:
500
345
  - spec/lib/shop/tags/core_spec.rb
501
346
  - spec/lib/shop/tags/helpers_spec.rb
502
347
  - spec/lib/shop/tags/item_spec.rb
503
- - spec/lib/shop/tags/package_spec.rb
504
348
  - spec/lib/shop/tags/product_spec.rb
505
- - spec/lib/shop/tags/product_variant_spec.rb
506
- - spec/lib/shop/tags/responses_spec.rb
507
349
  - spec/lib/shop/tags/tax_spec.rb
508
350
  - spec/matchers/comparison.rb
509
351
  - spec/matchers/render_matcher.rb
510
352
  - spec/models/form_address_spec.rb
511
353
  - spec/models/form_checkout_spec.rb
512
- - spec/models/form_discount_spec.rb
513
354
  - spec/models/shop_address_spec.rb
514
355
  - spec/models/shop_category_page_spec.rb
515
356
  - spec/models/shop_category_spec.rb
516
357
  - spec/models/shop_customer_spec.rb
517
- - spec/models/shop_discount_spec.rb
518
- - spec/models/shop_discountable_spec.rb
519
- - spec/models/shop_group_spec.rb
520
358
  - spec/models/shop_line_item_spec.rb
521
359
  - spec/models/shop_order_spec.rb
522
- - spec/models/shop_package_spec.rb
523
- - spec/models/shop_packing_spec.rb
524
360
  - spec/models/shop_payment_spec.rb
525
361
  - spec/models/shop_product_attachment_spec.rb
526
362
  - spec/models/shop_product_page_spec.rb
527
363
  - spec/models/shop_product_spec.rb
528
- - spec/models/shop_product_variant_spec.rb
529
- - spec/models/shop_variant_spec.rb
530
364
  - spec/spec.opts
531
365
  - spec/spec_helper.rb
532
366
  - vendor/plugins/acts_as_list/README
@@ -570,32 +404,21 @@ summary: Shop Extension for Radiant CMS
570
404
  test_files:
571
405
  - spec/controllers/admin/shop/categories_controller_spec.rb
572
406
  - spec/controllers/admin/shop/customers_controller_spec.rb
573
- - spec/controllers/admin/shop/discounts/discountables_controller_spec.rb
574
- - spec/controllers/admin/shop/discounts_controller_spec.rb
575
407
  - spec/controllers/admin/shop/orders_controller_spec.rb
576
- - spec/controllers/admin/shop/packages/packings_controller_spec.rb
577
- - spec/controllers/admin/shop/packages_controller_spec.rb
578
408
  - spec/controllers/admin/shop/products/images_controller_spec.rb
579
- - spec/controllers/admin/shop/products/variant_templates_controller_spec.rb
580
- - spec/controllers/admin/shop/products/variants_controller_spec.rb
581
409
  - spec/controllers/admin/shop/products_controller_spec.rb
582
- - spec/controllers/admin/shop/variants_controller_spec.rb
583
410
  - spec/controllers/admin/shops_controller_spec.rb
584
411
  - spec/datasets/forms.rb
585
412
  - spec/datasets/shop_addresses.rb
586
413
  - spec/datasets/shop_categories.rb
414
+ - spec/datasets/shop_config.rb
587
415
  - spec/datasets/shop_customers.rb
588
- - spec/datasets/shop_discountables.rb
589
- - spec/datasets/shop_discounts.rb
590
- - spec/datasets/shop_groups.rb
591
416
  - spec/datasets/shop_line_items.rb
592
417
  - spec/datasets/shop_orders.rb
593
- - spec/datasets/shop_packages.rb
594
418
  - spec/datasets/shop_payments.rb
595
419
  - spec/datasets/shop_product_attachments.rb
596
- - spec/datasets/shop_product_variants.rb
597
420
  - spec/datasets/shop_products.rb
598
- - spec/datasets/shop_variants.rb
421
+ - spec/datasets/tags.rb
599
422
  - spec/helpers/nested_tag_helper.rb
600
423
  - spec/lib/shop/models/image_spec.rb
601
424
  - spec/lib/shop/models/page_spec.rb
@@ -606,31 +429,20 @@ test_files:
606
429
  - spec/lib/shop/tags/core_spec.rb
607
430
  - spec/lib/shop/tags/helpers_spec.rb
608
431
  - spec/lib/shop/tags/item_spec.rb
609
- - spec/lib/shop/tags/package_spec.rb
610
432
  - spec/lib/shop/tags/product_spec.rb
611
- - spec/lib/shop/tags/product_variant_spec.rb
612
- - spec/lib/shop/tags/responses_spec.rb
613
433
  - spec/lib/shop/tags/tax_spec.rb
614
434
  - spec/matchers/comparison.rb
615
435
  - spec/matchers/render_matcher.rb
616
436
  - spec/models/form_address_spec.rb
617
437
  - spec/models/form_checkout_spec.rb
618
- - spec/models/form_discount_spec.rb
619
438
  - spec/models/shop_address_spec.rb
620
439
  - spec/models/shop_category_page_spec.rb
621
440
  - spec/models/shop_category_spec.rb
622
441
  - spec/models/shop_customer_spec.rb
623
- - spec/models/shop_discount_spec.rb
624
- - spec/models/shop_discountable_spec.rb
625
- - spec/models/shop_group_spec.rb
626
442
  - spec/models/shop_line_item_spec.rb
627
443
  - spec/models/shop_order_spec.rb
628
- - spec/models/shop_package_spec.rb
629
- - spec/models/shop_packing_spec.rb
630
444
  - spec/models/shop_payment_spec.rb
631
445
  - spec/models/shop_product_attachment_spec.rb
632
446
  - spec/models/shop_product_page_spec.rb
633
447
  - spec/models/shop_product_spec.rb
634
- - spec/models/shop_product_variant_spec.rb
635
- - spec/models/shop_variant_spec.rb
636
448
  - spec/spec_helper.rb
data/Gemfile DELETED
@@ -1,26 +0,0 @@
1
- source :gemcutter
2
-
3
- gem 'activemerchant'
4
- gem 'will_paginate'
5
- gem 'radiant-layouts-extension', '0.9.1'
6
-
7
- group :development do
8
- gem 'reek'
9
- gem 'roodi'
10
- gem 'rspec'
11
- gem 'rspec-rails'
12
- gem 'cucumber'
13
- gem 'cucumber-rails'
14
- gem 'database_cleaner'
15
- gem 'ruby-debug'
16
- gem 'webrat'
17
- end
18
-
19
- group :test do
20
- gem 'rspec'
21
- gem 'cucumber-rails'
22
- gem 'database_cleaner'
23
- gem 'webrat'
24
- gem 'rspec-rails'
25
- gem 'rr'
26
- end