railscart 0.0.3 → 0.0.4

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.
Files changed (144) hide show
  1. data/History.txt +8 -0
  2. data/Manifest.txt +103 -33
  3. data/bin/railscart +4 -1
  4. data/lib/railscart/version.rb +1 -1
  5. data/starter_app/app/controllers/application.rb +1 -1
  6. data/starter_app/config/database.yml +21 -7
  7. data/starter_app/config/environment.rb +9 -2
  8. data/starter_app/db/migrate/{005_create_users.rb → 001_create_users.rb} +0 -0
  9. data/starter_app/db/migrate/{006_create_roles.rb → 002_create_roles.rb} +0 -0
  10. data/starter_app/db/migrate/{002_create_tags_and_taggings.rb → 003_create_tags_and_taggings.rb} +0 -0
  11. data/starter_app/db/migrate/{003_railscart_to_version_19.rb → 004_railscart_to_version_19.rb} +2 -2
  12. data/starter_app/db/sample/images.yml +252 -0
  13. data/starter_app/lib/tasks/rc_sample_data.rake +12 -10
  14. data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote.jpeg +0 -0
  15. data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_mini.jpeg +0 -0
  16. data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_product.jpeg +0 -0
  17. data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_small.jpeg +0 -0
  18. data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back.jpeg +0 -0
  19. data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_mini.jpeg +0 -0
  20. data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_product.jpeg +0 -0
  21. data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_small.jpeg +0 -0
  22. data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag.jpeg +0 -0
  23. data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_mini.jpeg +0 -0
  24. data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_product.jpeg +0 -0
  25. data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_small.jpeg +0 -0
  26. data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball.jpeg +0 -0
  27. data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_mini.jpeg +0 -0
  28. data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_product.jpeg +0 -0
  29. data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_small.jpeg +0 -0
  30. data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back.jpeg +0 -0
  31. data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_mini.jpeg +0 -0
  32. data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_product.jpeg +0 -0
  33. data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_small.jpeg +0 -0
  34. data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti.jpeg +0 -0
  35. data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_mini.jpeg +0 -0
  36. data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_product.jpeg +0 -0
  37. data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_small.jpeg +0 -0
  38. data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug.jpeg +0 -0
  39. data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_mini.jpeg +0 -0
  40. data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_product.jpeg +0 -0
  41. data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_small.jpeg +0 -0
  42. data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back.jpeg +0 -0
  43. data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_mini.jpeg +0 -0
  44. data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_product.jpeg +0 -0
  45. data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_small.jpeg +0 -0
  46. data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer.jpeg +0 -0
  47. data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_mini.jpeg +0 -0
  48. data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_product.jpeg +0 -0
  49. data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_small.jpeg +0 -0
  50. data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back.jpeg +0 -0
  51. data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_mini.jpeg +0 -0
  52. data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_product.jpeg +0 -0
  53. data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_small.jpeg +0 -0
  54. data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein.jpeg +0 -0
  55. data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_mini.jpeg +0 -0
  56. data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_product.jpeg +0 -0
  57. data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_small.jpeg +0 -0
  58. data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back.jpeg +0 -0
  59. data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_mini.jpeg +0 -0
  60. data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_product.jpeg +0 -0
  61. data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_small.jpeg +0 -0
  62. data/starter_app/vendor/plugins/attachment_fu/CHANGELOG +24 -0
  63. data/starter_app/vendor/plugins/attachment_fu/README +162 -0
  64. data/starter_app/vendor/plugins/attachment_fu/Rakefile +22 -0
  65. data/starter_app/vendor/plugins/attachment_fu/amazon_s3.yml.tpl +14 -0
  66. data/starter_app/vendor/plugins/attachment_fu/init.rb +14 -0
  67. data/starter_app/vendor/plugins/attachment_fu/install.rb +5 -0
  68. data/starter_app/vendor/plugins/attachment_fu/lib/geometry.rb +93 -0
  69. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb +410 -0
  70. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb +39 -0
  71. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb +97 -0
  72. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb +309 -0
  73. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb +61 -0
  74. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb +56 -0
  75. data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb +53 -0
  76. data/starter_app/vendor/plugins/attachment_fu/test/amazon_s3.yml +6 -0
  77. data/starter_app/vendor/plugins/attachment_fu/test/backends/db_file_test.rb +16 -0
  78. data/starter_app/vendor/plugins/attachment_fu/test/backends/file_system_test.rb +80 -0
  79. data/starter_app/vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb +103 -0
  80. data/starter_app/vendor/plugins/attachment_fu/test/base_attachment_tests.rb +57 -0
  81. data/starter_app/vendor/plugins/attachment_fu/test/basic_test.rb +64 -0
  82. data/starter_app/vendor/plugins/attachment_fu/test/database.yml +18 -0
  83. data/starter_app/vendor/plugins/attachment_fu/test/extra_attachment_test.rb +57 -0
  84. data/starter_app/vendor/plugins/attachment_fu/test/fixtures/attachment.rb +127 -0
  85. data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png +0 -0
  86. data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/foo.txt +1 -0
  87. data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/rails.png +0 -0
  88. data/starter_app/vendor/plugins/attachment_fu/test/geometry_test.rb +101 -0
  89. data/starter_app/vendor/plugins/attachment_fu/test/processors/image_science_test.rb +31 -0
  90. data/starter_app/vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb +31 -0
  91. data/starter_app/vendor/plugins/attachment_fu/test/processors/rmagick_test.rb +241 -0
  92. data/starter_app/vendor/plugins/attachment_fu/test/schema.rb +86 -0
  93. data/starter_app/vendor/plugins/attachment_fu/test/test_helper.rb +142 -0
  94. data/starter_app/vendor/plugins/attachment_fu/test/validation_test.rb +55 -0
  95. data/starter_app/vendor/plugins/paginating_find/CHANGELOG +3 -0
  96. data/starter_app/vendor/plugins/paginating_find/lib/paginating_find.rb +5 -2
  97. data/starter_app/vendor/plugins/railscart/app/controllers/admin/categories_controller.rb +8 -8
  98. data/starter_app/vendor/plugins/railscart/app/controllers/admin/images_controller.rb +44 -0
  99. data/starter_app/vendor/plugins/railscart/app/controllers/admin/products_controller.rb +4 -0
  100. data/starter_app/vendor/plugins/railscart/app/helpers/rails_cart/base_helper.rb +25 -0
  101. data/starter_app/vendor/plugins/railscart/app/models/image.rb +12 -0
  102. data/starter_app/vendor/plugins/railscart/app/models/product.rb +15 -16
  103. data/starter_app/vendor/plugins/railscart/app/views/admin/categories/_form.rhtml +0 -3
  104. data/starter_app/vendor/plugins/railscart/app/views/admin/images/new.html.erb +10 -0
  105. data/starter_app/vendor/plugins/railscart/app/views/admin/products/_form.rhtml +3 -3
  106. data/starter_app/vendor/plugins/railscart/app/views/admin/products/_option_types.rhtml +0 -1
  107. data/starter_app/vendor/plugins/railscart/app/views/admin/products/_variations.rhtml +1 -2
  108. data/starter_app/vendor/plugins/railscart/app/views/admin/products/index.rhtml +1 -1
  109. data/starter_app/vendor/plugins/railscart/app/views/admin/products/new.rhtml +1 -3
  110. data/starter_app/vendor/plugins/railscart/app/views/cart/index.rhtml +1 -1
  111. data/starter_app/vendor/plugins/railscart/app/views/shared/_images.html.erb +43 -0
  112. data/starter_app/vendor/plugins/railscart/app/views/store/list.rhtml +1 -1
  113. data/starter_app/vendor/plugins/railscart/app/views/store/show.rhtml +1 -1
  114. data/starter_app/vendor/plugins/railscart/db/migrate/{008_create_option_values.rb → 007_create_option_values.rb} +0 -0
  115. data/starter_app/vendor/plugins/railscart/db/migrate/{010_create_orders.rb → 008_create_orders.rb} +0 -0
  116. data/starter_app/vendor/plugins/railscart/db/migrate/{011_create_products.rb → 009_create_products.rb} +2 -2
  117. data/starter_app/vendor/plugins/railscart/db/migrate/{013_create_txns.rb → 010_create_txns.rb} +0 -0
  118. data/starter_app/vendor/plugins/railscart/db/migrate/{015_create_variations.rb → 011_create_variations.rb} +0 -0
  119. data/starter_app/vendor/plugins/railscart/db/migrate/{016_create_tax_treatments.rb → 012_create_tax_treatments.rb} +0 -0
  120. data/starter_app/vendor/plugins/railscart/db/migrate/{017_create_skus.rb → 013_create_skus.rb} +0 -0
  121. data/starter_app/vendor/plugins/railscart/db/migrate/{018_create_countries.rb → 014_create_countries.rb} +0 -0
  122. data/starter_app/vendor/plugins/railscart/db/migrate/{019_create_states.rb → 015_create_states.rb} +0 -0
  123. data/starter_app/vendor/plugins/railscart/db/migrate/{021_create_option_types.rb → 016_create_option_types.rb} +0 -0
  124. data/starter_app/vendor/plugins/railscart/db/migrate/{022_create_product_option_types.rb → 017_create_product_option_types.rb} +0 -0
  125. data/starter_app/vendor/plugins/railscart/db/migrate/{023_create_option_values_variations.rb → 018_create_option_values_variations.rb} +0 -0
  126. data/starter_app/vendor/plugins/railscart/db/migrate/019_create_images.rb +19 -0
  127. metadata +106 -35
  128. data/starter_app/config/database.master.yml +0 -23
  129. data/starter_app/db/migrate/001_add_sessions.rb +0 -16
  130. data/starter_app/db/migrate/004_railscart_to_version_20.rb +0 -9
  131. data/starter_app/db/migrate/007_railscart_to_version_23.rb +0 -9
  132. data/starter_app/lib/tasks/sample/images/ror_bag.jpg +0 -0
  133. data/starter_app/lib/tasks/sample/images/ror_baseball_jersey.jpg +0 -0
  134. data/starter_app/lib/tasks/sample/images/ror_jr_spaghetti.jpg +0 -0
  135. data/starter_app/lib/tasks/sample/images/ror_mug.jpg +0 -0
  136. data/starter_app/lib/tasks/sample/images/ror_ringer_tshirt.jpg +0 -0
  137. data/starter_app/lib/tasks/sample/images/ror_stein.jpg +0 -0
  138. data/starter_app/lib/tasks/sample/images/ror_tote.jpg +0 -0
  139. data/starter_app/vendor/plugins/railscart/app/models/good.rb +0 -4
  140. data/starter_app/vendor/plugins/railscart/db/migrate/007_create_option_groups.rb +0 -12
  141. data/starter_app/vendor/plugins/railscart/db/migrate/009_create_options.rb +0 -11
  142. data/starter_app/vendor/plugins/railscart/db/migrate/012_ignore_users.rb +0 -9
  143. data/starter_app/vendor/plugins/railscart/db/migrate/014_ignore_roles.rb +0 -9
  144. data/starter_app/vendor/plugins/railscart/db/migrate/020_modify_users.rb +0 -9
@@ -1,3 +1,11 @@
1
+ == 0.0.4 2008-02-12
2
+
3
+ * Cookie sessions (no more db sessions)
4
+ * Streamlined migration stuff
5
+ * Removed database.master.yml configuration stuff (no longer really necessary)
6
+ * Improved data model for images
7
+ * Fixed --edge option to point to new railscart SVN location
8
+
1
9
  == 0.0.3 2008-02-07
2
10
 
3
11
  * Added --edge option to railscart command (which gets latest version of all plugins from SVN.)
@@ -22,23 +22,20 @@ starter_app/app/models/tagging.rb
22
22
  starter_app/app/models/user.rb
23
23
  starter_app/app/views/layouts/application.rhtml
24
24
  starter_app/config/boot.rb
25
- starter_app/config/database.master.yml
26
25
  starter_app/config/database.yml
27
26
  starter_app/config/environment.rb
28
27
  starter_app/config/environments/development.rb
29
28
  starter_app/config/environments/production.rb
30
29
  starter_app/config/environments/test.rb
31
30
  starter_app/config/routes.rb
32
- starter_app/db/migrate/001_add_sessions.rb
33
- starter_app/db/migrate/002_create_tags_and_taggings.rb
34
- starter_app/db/migrate/003_railscart_to_version_19.rb
35
- starter_app/db/migrate/004_railscart_to_version_20.rb
36
- starter_app/db/migrate/005_create_users.rb
37
- starter_app/db/migrate/006_create_roles.rb
38
- starter_app/db/migrate/007_railscart_to_version_23.rb
31
+ starter_app/db/migrate/001_create_users.rb
32
+ starter_app/db/migrate/002_create_roles.rb
33
+ starter_app/db/migrate/003_create_tags_and_taggings.rb
34
+ starter_app/db/migrate/004_railscart_to_version_19.rb
39
35
  starter_app/db/sample/addresses.yml
40
36
  starter_app/db/sample/categories.yml
41
37
  starter_app/db/sample/countries.yml
38
+ starter_app/db/sample/images.yml
42
39
  starter_app/db/sample/line_items.yml
43
40
  starter_app/db/sample/option_types.yml
44
41
  starter_app/db/sample/option_values.yml
@@ -62,13 +59,54 @@ starter_app/lib/role_requirement_system.rb
62
59
  starter_app/lib/role_requirement_test_helper.rb
63
60
  starter_app/lib/tagging_extensions.rb
64
61
  starter_app/lib/tasks/rc_sample_data.rake
65
- starter_app/lib/tasks/sample/images/ror_bag.jpg
66
- starter_app/lib/tasks/sample/images/ror_baseball_jersey.jpg
67
- starter_app/lib/tasks/sample/images/ror_jr_spaghetti.jpg
68
- starter_app/lib/tasks/sample/images/ror_mug.jpg
69
- starter_app/lib/tasks/sample/images/ror_ringer_tshirt.jpg
70
- starter_app/lib/tasks/sample/images/ror_stein.jpg
71
- starter_app/lib/tasks/sample/images/ror_tote.jpg
62
+ starter_app/lib/tasks/sample/products/0000/0001/ror_tote.jpeg
63
+ starter_app/lib/tasks/sample/products/0000/0001/ror_tote_mini.jpeg
64
+ starter_app/lib/tasks/sample/products/0000/0001/ror_tote_product.jpeg
65
+ starter_app/lib/tasks/sample/products/0000/0001/ror_tote_small.jpeg
66
+ starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back.jpeg
67
+ starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_mini.jpeg
68
+ starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_product.jpeg
69
+ starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_small.jpeg
70
+ starter_app/lib/tasks/sample/products/0000/0003/ror_bag.jpeg
71
+ starter_app/lib/tasks/sample/products/0000/0003/ror_bag_mini.jpeg
72
+ starter_app/lib/tasks/sample/products/0000/0003/ror_bag_product.jpeg
73
+ starter_app/lib/tasks/sample/products/0000/0003/ror_bag_small.jpeg
74
+ starter_app/lib/tasks/sample/products/0000/0004/ror_baseball.jpeg
75
+ starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_mini.jpeg
76
+ starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_product.jpeg
77
+ starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_small.jpeg
78
+ starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back.jpeg
79
+ starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_mini.jpeg
80
+ starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_product.jpeg
81
+ starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_small.jpeg
82
+ starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti.jpeg
83
+ starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_mini.jpeg
84
+ starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_product.jpeg
85
+ starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_small.jpeg
86
+ starter_app/lib/tasks/sample/products/0000/0007/ror_mug.jpeg
87
+ starter_app/lib/tasks/sample/products/0000/0007/ror_mug_mini.jpeg
88
+ starter_app/lib/tasks/sample/products/0000/0007/ror_mug_product.jpeg
89
+ starter_app/lib/tasks/sample/products/0000/0007/ror_mug_small.jpeg
90
+ starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back.jpeg
91
+ starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_mini.jpeg
92
+ starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_product.jpeg
93
+ starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_small.jpeg
94
+ starter_app/lib/tasks/sample/products/0000/0009/ror_ringer.jpeg
95
+ starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_mini.jpeg
96
+ starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_product.jpeg
97
+ starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_small.jpeg
98
+ starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back.jpeg
99
+ starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_mini.jpeg
100
+ starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_product.jpeg
101
+ starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_small.jpeg
102
+ starter_app/lib/tasks/sample/products/0000/0011/ror_stein.jpeg
103
+ starter_app/lib/tasks/sample/products/0000/0011/ror_stein_mini.jpeg
104
+ starter_app/lib/tasks/sample/products/0000/0011/ror_stein_product.jpeg
105
+ starter_app/lib/tasks/sample/products/0000/0011/ror_stein_small.jpeg
106
+ starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back.jpeg
107
+ starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_mini.jpeg
108
+ starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_product.jpeg
109
+ starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_small.jpeg
72
110
  starter_app/public/.htaccess
73
111
  starter_app/public/404.html
74
112
  starter_app/public/500.html
@@ -117,6 +155,39 @@ starter_app/vendor/plugins/acts_as_tree/test/database.yml
117
155
  starter_app/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb
118
156
  starter_app/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml
119
157
  starter_app/vendor/plugins/acts_as_tree/test/schema.rb
158
+ starter_app/vendor/plugins/attachment_fu/CHANGELOG
159
+ starter_app/vendor/plugins/attachment_fu/README
160
+ starter_app/vendor/plugins/attachment_fu/Rakefile
161
+ starter_app/vendor/plugins/attachment_fu/amazon_s3.yml.tpl
162
+ starter_app/vendor/plugins/attachment_fu/init.rb
163
+ starter_app/vendor/plugins/attachment_fu/install.rb
164
+ starter_app/vendor/plugins/attachment_fu/lib/geometry.rb
165
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb
166
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
167
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb
168
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb
169
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb
170
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb
171
+ starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb
172
+ starter_app/vendor/plugins/attachment_fu/test/amazon_s3.yml
173
+ starter_app/vendor/plugins/attachment_fu/test/backends/db_file_test.rb
174
+ starter_app/vendor/plugins/attachment_fu/test/backends/file_system_test.rb
175
+ starter_app/vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb
176
+ starter_app/vendor/plugins/attachment_fu/test/base_attachment_tests.rb
177
+ starter_app/vendor/plugins/attachment_fu/test/basic_test.rb
178
+ starter_app/vendor/plugins/attachment_fu/test/database.yml
179
+ starter_app/vendor/plugins/attachment_fu/test/extra_attachment_test.rb
180
+ starter_app/vendor/plugins/attachment_fu/test/fixtures/attachment.rb
181
+ starter_app/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png
182
+ starter_app/vendor/plugins/attachment_fu/test/fixtures/files/foo.txt
183
+ starter_app/vendor/plugins/attachment_fu/test/fixtures/files/rails.png
184
+ starter_app/vendor/plugins/attachment_fu/test/geometry_test.rb
185
+ starter_app/vendor/plugins/attachment_fu/test/processors/image_science_test.rb
186
+ starter_app/vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb
187
+ starter_app/vendor/plugins/attachment_fu/test/processors/rmagick_test.rb
188
+ starter_app/vendor/plugins/attachment_fu/test/schema.rb
189
+ starter_app/vendor/plugins/attachment_fu/test/test_helper.rb
190
+ starter_app/vendor/plugins/attachment_fu/test/validation_test.rb
120
191
  starter_app/vendor/plugins/calendar_date_select/CHANGELOG
121
192
  starter_app/vendor/plugins/calendar_date_select/MIT-LICENSE
122
193
  starter_app/vendor/plugins/calendar_date_select/README
@@ -211,6 +282,7 @@ starter_app/vendor/plugins/railscart/VERSION
211
282
  starter_app/vendor/plugins/railscart/app/controllers/account_controller.rb
212
283
  starter_app/vendor/plugins/railscart/app/controllers/admin/base_controller.rb
213
284
  starter_app/vendor/plugins/railscart/app/controllers/admin/categories_controller.rb
285
+ starter_app/vendor/plugins/railscart/app/controllers/admin/images_controller.rb
214
286
  starter_app/vendor/plugins/railscart/app/controllers/admin/option_types_controller.rb
215
287
  starter_app/vendor/plugins/railscart/app/controllers/admin/orders_controller.rb
216
288
  starter_app/vendor/plugins/railscart/app/controllers/admin/overview_controller.rb
@@ -241,7 +313,7 @@ starter_app/vendor/plugins/railscart/app/models/cart.rb
241
313
  starter_app/vendor/plugins/railscart/app/models/cart_item.rb
242
314
  starter_app/vendor/plugins/railscart/app/models/category.rb
243
315
  starter_app/vendor/plugins/railscart/app/models/country.rb
244
- starter_app/vendor/plugins/railscart/app/models/good.rb
316
+ starter_app/vendor/plugins/railscart/app/models/image.rb
245
317
  starter_app/vendor/plugins/railscart/app/models/line_item.rb
246
318
  starter_app/vendor/plugins/railscart/app/models/option_type.rb
247
319
  starter_app/vendor/plugins/railscart/app/models/option_value.rb
@@ -263,6 +335,7 @@ starter_app/vendor/plugins/railscart/app/views/admin/categories/_form.rhtml
263
335
  starter_app/vendor/plugins/railscart/app/views/admin/categories/edit.rhtml
264
336
  starter_app/vendor/plugins/railscart/app/views/admin/categories/list.rhtml
265
337
  starter_app/vendor/plugins/railscart/app/views/admin/categories/new.rhtml
338
+ starter_app/vendor/plugins/railscart/app/views/admin/images/new.html.erb
266
339
  starter_app/vendor/plugins/railscart/app/views/admin/option_types/_form.rhtml
267
340
  starter_app/vendor/plugins/railscart/app/views/admin/option_types/_new_option_value.rhtml
268
341
  starter_app/vendor/plugins/railscart/app/views/admin/option_types/_option_values.rhtml
@@ -312,6 +385,7 @@ starter_app/vendor/plugins/railscart/app/views/layouts/products.rhtml
312
385
  starter_app/vendor/plugins/railscart/app/views/layouts/simple.rhtml
313
386
  starter_app/vendor/plugins/railscart/app/views/order_mailer/cancel.rhtml
314
387
  starter_app/vendor/plugins/railscart/app/views/order_mailer/confirm.rhtml
388
+ starter_app/vendor/plugins/railscart/app/views/shared/_images.html.erb
315
389
  starter_app/vendor/plugins/railscart/app/views/shared/_order_details.rhtml
316
390
  starter_app/vendor/plugins/railscart/app/views/shared/_paginate.rhtml
317
391
  starter_app/vendor/plugins/railscart/app/views/shared/_report_criteria.rhtml
@@ -366,23 +440,19 @@ starter_app/vendor/plugins/railscart/db/migrate/003_create_carts.rb
366
440
  starter_app/vendor/plugins/railscart/db/migrate/004_create_categories.rb
367
441
  starter_app/vendor/plugins/railscart/db/migrate/005_create_categories_products.rb
368
442
  starter_app/vendor/plugins/railscart/db/migrate/006_create_line_items.rb
369
- starter_app/vendor/plugins/railscart/db/migrate/007_create_option_groups.rb
370
- starter_app/vendor/plugins/railscart/db/migrate/008_create_option_values.rb
371
- starter_app/vendor/plugins/railscart/db/migrate/009_create_options.rb
372
- starter_app/vendor/plugins/railscart/db/migrate/010_create_orders.rb
373
- starter_app/vendor/plugins/railscart/db/migrate/011_create_products.rb
374
- starter_app/vendor/plugins/railscart/db/migrate/012_ignore_users.rb
375
- starter_app/vendor/plugins/railscart/db/migrate/013_create_txns.rb
376
- starter_app/vendor/plugins/railscart/db/migrate/014_ignore_roles.rb
377
- starter_app/vendor/plugins/railscart/db/migrate/015_create_variations.rb
378
- starter_app/vendor/plugins/railscart/db/migrate/016_create_tax_treatments.rb
379
- starter_app/vendor/plugins/railscart/db/migrate/017_create_skus.rb
380
- starter_app/vendor/plugins/railscart/db/migrate/018_create_countries.rb
381
- starter_app/vendor/plugins/railscart/db/migrate/019_create_states.rb
382
- starter_app/vendor/plugins/railscart/db/migrate/020_modify_users.rb
383
- starter_app/vendor/plugins/railscart/db/migrate/021_create_option_types.rb
384
- starter_app/vendor/plugins/railscart/db/migrate/022_create_product_option_types.rb
385
- starter_app/vendor/plugins/railscart/db/migrate/023_create_option_values_variations.rb
443
+ starter_app/vendor/plugins/railscart/db/migrate/007_create_option_values.rb
444
+ starter_app/vendor/plugins/railscart/db/migrate/008_create_orders.rb
445
+ starter_app/vendor/plugins/railscart/db/migrate/009_create_products.rb
446
+ starter_app/vendor/plugins/railscart/db/migrate/010_create_txns.rb
447
+ starter_app/vendor/plugins/railscart/db/migrate/011_create_variations.rb
448
+ starter_app/vendor/plugins/railscart/db/migrate/012_create_tax_treatments.rb
449
+ starter_app/vendor/plugins/railscart/db/migrate/013_create_skus.rb
450
+ starter_app/vendor/plugins/railscart/db/migrate/014_create_countries.rb
451
+ starter_app/vendor/plugins/railscart/db/migrate/015_create_states.rb
452
+ starter_app/vendor/plugins/railscart/db/migrate/016_create_option_types.rb
453
+ starter_app/vendor/plugins/railscart/db/migrate/017_create_product_option_types.rb
454
+ starter_app/vendor/plugins/railscart/db/migrate/018_create_option_values_variations.rb
455
+ starter_app/vendor/plugins/railscart/db/migrate/019_create_images.rb
386
456
  starter_app/vendor/plugins/railscart/init.rb
387
457
  starter_app/vendor/plugins/railscart/install.rb
388
458
  starter_app/vendor/plugins/railscart/lib/constants/enumerable_constants.rb
@@ -90,6 +90,9 @@ if edge
90
90
  puts "\nInstalling acts_as_tree\n"
91
91
  command(plugin, "install http://svn.rubyonrails.org/rails/plugins/acts_as_tree")
92
92
 
93
+ puts "\nInstalling attachment_fu\n"
94
+ command(plugin, "install http://svn.techno-weenie.net/projects/plugins/attachment_fu")
95
+
93
96
  puts "\nInstalling calendar_date_select\n"
94
97
  command(plugin, "install http://calendardateselect.googlecode.com/svn/tags/calendar_date_select")
95
98
 
@@ -103,7 +106,7 @@ if edge
103
106
  command(plugin, "install http://svn.cardboardrocket.com/paginating_find")
104
107
 
105
108
  puts "\nInstalling railscart\n"
106
- command(plugin, "install http://railscart.googlecode.com/svn/trunk/railscart/")
109
+ command(plugin, "install http://railscart.googlecode.com/svn/railscart/trunk/")
107
110
 
108
111
  end
109
112
 
@@ -2,7 +2,7 @@ module Railscart #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
7
7
 
8
8
  # See ActionController::RequestForgeryProtection for details
9
9
  # Uncomment the :secret if you're not using the cookie session store
10
- protect_from_forgery :secret => '55a66755bef2c41d411bd5486c001b16'
10
+ protect_from_forgery #:secret => '55a66755bef2c41d411bd5486c001b16'
11
11
 
12
12
  include AuthenticatedSystem
13
13
  include RoleRequirementSystem
@@ -1,9 +1,23 @@
1
- # We currently use a single master database.yml file that exists in the repository.
2
- # If you wish to override this with your own customized version, do so using
3
- # the database.local.yml file (which does not/will not exist in the repository).
1
+ development:
2
+ adapter: mysql
3
+ database: railscart_development
4
+ username: railscart
5
+ password: railscart
6
+ host: localhost
4
7
 
5
- <%= file = File.join(RAILS_ROOT, "config", "database.master.yml")
6
- IO.read(file) %>
8
+ # Warning: The database defined as 'test' will be erased and
9
+ # re-generated from your development database when you run 'rake'.
10
+ # Do not set this db to the same as development or production.
11
+ test:
12
+ adapter: mysql
13
+ database: railscart_test
14
+ username: railscart
15
+ password: railscart
16
+ host: localhost
7
17
 
8
- <%= file = File.join(RAILS_ROOT, "config", "database.local.yml")
9
- IO.read(file) if File.exist?(file) %>
18
+ production:
19
+ adapter: mysql
20
+ database: railscart_production
21
+ username: root
22
+ password:
23
+ host: localhost
@@ -34,8 +34,14 @@ Rails::Initializer.run do |config|
34
34
 
35
35
  # Use the database for sessions instead of the file system
36
36
  # (create the session table with 'rake db:sessions:create')
37
- config.action_controller.session_store = :active_record_store
38
-
37
+ #config.action_controller.session_store = :active_record_store
38
+
39
+ # Don't worry, this info will be project specific when using the gem to create your own app
40
+ config.action_controller.session = {
41
+ :session_key => '_starter_session',
42
+ :secret => 'ae39bf980cd5709cc313e152d9997fb4f5b944845622f15e61fc4fc6323501c8e0c94a2e2017b76ef4e3b5d4cc3610303cdaee2e15068d4b45a000307e457551'
43
+ }
44
+
39
45
  # Use SQL instead of Active Record's schema dumper when creating the test database.
40
46
  # This is necessary if your schema can't be completely dumped by the schema dumper,
41
47
  # like if you have constraints or database-specific column types
@@ -54,6 +60,7 @@ end
54
60
  require 'active_merchant'
55
61
  require 'has_many_polymorphs'
56
62
  require 'tagging_extensions'
63
+ require 'mini_magick'
57
64
 
58
65
 
59
66
  # Add new inflection rules using the following format
@@ -1,9 +1,9 @@
1
1
  class RailscartToVersion19 < ActiveRecord::Migration
2
2
  def self.up
3
- Rails.plugins["railscart"].migrate(19)
3
+ Engines.plugins["railscart"].migrate(19)
4
4
  end
5
5
 
6
6
  def self.down
7
- Rails.plugins["railscart"].migrate(0)
7
+ Engines.plugins["railscart"].migrate(0)
8
8
  end
9
9
  end
@@ -0,0 +1,252 @@
1
+ img_tote:
2
+ id: 1
3
+ viewable: ror_tote
4
+ viewable_type: Product
5
+ content_type: image/jpg
6
+ filename: ror_tote.jpeg
7
+ img_tote_small:
8
+ id: 101
9
+ parent_id: 1
10
+ content_type: image/jpeg
11
+ filename: ror_tote_small.jpeg
12
+ img_tote_product:
13
+ id: 102
14
+ parent_id: 1
15
+ content_type: image/jpeg
16
+ filename: ror_tote_product.jpeg
17
+ img_tote_mini:
18
+ id: 103
19
+ parent_id: 1
20
+ content_type: image/jpeg
21
+ filename: ror_tote_mini.jpeg
22
+ img_tote_back:
23
+ id: 2
24
+ viewable: ror_tote
25
+ viewable_type: Product
26
+ content_type: image/jpg
27
+ filename: ror_tote_back.jpeg
28
+ img_tote_back_small:
29
+ id: 201
30
+ parent_id: 2
31
+ content_type: image/jpeg
32
+ filename: ror_tote_back_small.jpeg
33
+ img_tote_back_product:
34
+ id: 202
35
+ parent_id: 2
36
+ content_type: image/jpeg
37
+ filename: ror_tote_back_product.jpeg
38
+ img_tote_back_mini:
39
+ id: 203
40
+ parent_id: 2
41
+ content_type: image/jpeg
42
+ filename: ror_tote_back_mini.jpeg
43
+ img_bag:
44
+ id: 3
45
+ viewable: ror_bag
46
+ viewable_type: Product
47
+ content_type: image/jpg
48
+ filename: ror_bag.jpeg
49
+ img_bag_small:
50
+ id: 301
51
+ parent_id: 3
52
+ content_type: image/jpeg
53
+ filename: ror_bag_small.jpeg
54
+ img_bag_product:
55
+ id: 302
56
+ parent_id: 3
57
+ content_type: image/jpeg
58
+ filename: ror_bag_product.jpeg
59
+ img_bag_mini:
60
+ id: 303
61
+ parent_id: 3
62
+ content_type: image/jpeg
63
+ filename: ror_bag_mini.jpeg
64
+ img_baseball:
65
+ id: 4
66
+ viewable: ror_baseball_jersey
67
+ viewable_type: Product
68
+ content_type: image/jpg
69
+ filename: ror_baseball.jpeg
70
+ img_baseball_small:
71
+ id: 401
72
+ parent_id: 4
73
+ content_type: image/jpeg
74
+ filename: ror_baseball_small.jpeg
75
+ img_baseball_product:
76
+ id: 402
77
+ parent_id: 4
78
+ content_type: image/jpeg
79
+ filename: ror_baseball_product.jpeg
80
+ img_baseball_mini:
81
+ id: 403
82
+ parent_id: 4
83
+ content_type: image/jpeg
84
+ filename: ror_baseball_mini.jpeg
85
+ img_baseball_back:
86
+ id: 5
87
+ viewable: ror_baseball_jersey
88
+ viewable_type: Product
89
+ content_type: image/jpg
90
+ filename: ror_baseball_back.jpeg
91
+ img_baseball_back_small:
92
+ id: 501
93
+ parent_id: 5
94
+ content_type: image/jpeg
95
+ filename: ror_baseball_back_small.jpeg
96
+ img_baseball_back_product:
97
+ id: 502
98
+ parent_id: 5
99
+ content_type: image/jpeg
100
+ filename: ror_baseball_back_product.jpeg
101
+ img_baseball_back_mini:
102
+ id: 503
103
+ parent_id: 5
104
+ content_type: image/jpeg
105
+ filename: ror_baseball_back_mini.jpeg
106
+ img_jr_spaghetti:
107
+ id: 6
108
+ viewable: ror_jr_spaghetti
109
+ viewable_type: Product
110
+ content_type: image/jpg
111
+ filename: ror_jr_spaghetti.jpeg
112
+ img_jr_spaghetti_small:
113
+ id: 601
114
+ parent_id: 6
115
+ content_type: image/jpeg
116
+ filename: ror_jr_spaghetti_small.jpeg
117
+ img_jr_spaghetti_product:
118
+ id: 602
119
+ parent_id: 6
120
+ content_type: image/jpeg
121
+ filename: ror_jr_spaghetti_product.jpeg
122
+ img_jr_spaghetti_mini:
123
+ id: 603
124
+ parent_id: 6
125
+ content_type: image/jpeg
126
+ filename: ror_jr_spaghetti_mini.jpeg
127
+ img_mug:
128
+ id: 7
129
+ viewable: ror_mug
130
+ viewable_type: Product
131
+ content_type: image/jpg
132
+ filename: ror_mug.jpeg
133
+ img_mug_small:
134
+ id: 701
135
+ parent_id: 7
136
+ content_type: image/jpeg
137
+ filename: ror_mug_small.jpeg
138
+ img_mug_product:
139
+ id: 702
140
+ parent_id: 7
141
+ content_type: image/jpeg
142
+ filename: ror_mug_product.jpeg
143
+ img_mug_mini:
144
+ id: 703
145
+ parent_id: 7
146
+ content_type: image/jpeg
147
+ filename: ror_mug_mini.jpeg
148
+ img_mug_back:
149
+ id: 8
150
+ viewable: ror_mug
151
+ viewable_type: Product
152
+ content_type: image/jpg
153
+ filename: ror_mug_back.jpeg
154
+ img_mug_back_small:
155
+ id: 801
156
+ parent_id: 8
157
+ content_type: image/jpeg
158
+ filename: ror_mug_back_small.jpeg
159
+ img_mug_back_product:
160
+ id: 802
161
+ parent_id: 8
162
+ content_type: image/jpeg
163
+ filename: ror_mug_back_product.jpeg
164
+ img_mug_back_mini:
165
+ id: 803
166
+ parent_id: 8
167
+ content_type: image/jpeg
168
+ filename: ror_mug_back_mini.jpeg
169
+ img_ringer:
170
+ id: 9
171
+ viewable: ror_ringer
172
+ viewable_type: Product
173
+ content_type: image/jpg
174
+ filename: ror_ringer.jpeg
175
+ img_ringer_small:
176
+ id: 901
177
+ parent_id: 9
178
+ content_type: image/jpeg
179
+ filename: ror_ringer_small.jpeg
180
+ img_ringer_product:
181
+ id: 902
182
+ parent_id: 9
183
+ content_type: image/jpeg
184
+ filename: ror_ringer_product.jpeg
185
+ img_ringer_mini:
186
+ id: 903
187
+ parent_id: 9
188
+ content_type: image/jpeg
189
+ filename: ror_ringer_mini.jpeg
190
+ img_ringer_back:
191
+ id: 10
192
+ viewable: ror_ringer
193
+ viewable_type: Product
194
+ content_type: image/jpg
195
+ filename: ror_ringer_back.jpeg
196
+ img_ringer_back_small:
197
+ id: 1001
198
+ parent_id: 10
199
+ content_type: image/jpeg
200
+ filename: ror_ringer_back_small.jpeg
201
+ img_ringer_back_product:
202
+ id: 1002
203
+ parent_id: 10
204
+ content_type: image/jpeg
205
+ filename: ror_ringer_back_product.jpeg
206
+ img_ringer_back_mini:
207
+ id: 1003
208
+ parent_id: 10
209
+ content_type: image/jpeg
210
+ filename: ror_ringer_back_mini.jpeg
211
+ img_stein:
212
+ id: 11
213
+ viewable: ror_stein
214
+ viewable_type: Product
215
+ content_type: image/jpg
216
+ filename: ror_stein.jpeg
217
+ img_stein_small:
218
+ id: 111
219
+ parent_id: 11
220
+ content_type: image/jpeg
221
+ filename: ror_stein_small.jpeg
222
+ img_stein_product:
223
+ id: 112
224
+ parent_id: 11
225
+ content_type: image/jpeg
226
+ filename: ror_stein_product.jpeg
227
+ img_stein_mini:
228
+ id: 113
229
+ parent_id: 11
230
+ content_type: image/jpeg
231
+ filename: ror_stein_mini.jpeg
232
+ img_stein_back:
233
+ id: 12
234
+ viewable: ror_stein
235
+ viewable_type: Product
236
+ content_type: image/jpg
237
+ filename: ror_stein_back.jpeg
238
+ img_stein_back_small:
239
+ id: 121
240
+ parent_id: 12
241
+ content_type: image/jpeg
242
+ filename: ror_stein_back_small.jpeg
243
+ img_stein_back_product:
244
+ id: 122
245
+ parent_id: 12
246
+ content_type: image/jpeg
247
+ filename: ror_stein_back_product.jpeg
248
+ img_stein_back_mini:
249
+ id: 123
250
+ parent_id: 12
251
+ content_type: image/jpeg
252
+ filename: ror_stein_back_mini.jpeg