railscart 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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,4 +0,0 @@
1
- class Good < ActiveRecord::Base
2
- belongs_to :product
3
- has_and_belongs_to_many :option_values
4
- end
@@ -1,12 +0,0 @@
1
- class CreateOptionGroups < ActiveRecord::Migration
2
- def self.up
3
- #create_table "option_groups", :force => true do |t|
4
- # t.column "option_id", :integer, :null => false
5
- # t.column "option_value_id", :integer, :null => false
6
- #end
7
- end
8
-
9
- def self.down
10
- #drop_table "option_groups"
11
- end
12
- end
@@ -1,11 +0,0 @@
1
- class CreateOptions < ActiveRecord::Migration
2
- def self.up
3
- #create_table "options", :force => true do |t|
4
- # t.column "name", :string, :default => "", :null => false
5
- #end
6
- end
7
-
8
- def self.down
9
- #drop_table "options"
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- class IgnoreUsers < ActiveRecord::Migration
2
- def self.up
3
- # Do nothing. This should be handled outside of the plugin (by your host application).
4
- end
5
-
6
- def self.down
7
- # Do nothing. This should be handled outside of the plugin (by your host application).
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class IgnoreRoles < ActiveRecord::Migration
2
- def self.up
3
- # Do nothing. This should be handled outside of the plugin (by your host application).
4
- end
5
-
6
- def self.down
7
- # Do nothing. This should be handled outside of the plugin (by your host application).
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class ModifyUsers < ActiveRecord::Migration
2
- def self.up
3
- # Do nothing. This should be handled outside of the plugin (by your host application).
4
- end
5
-
6
- def self.down
7
- # Do nothing. This should be handled outside of the plugin (by your host application).
8
- end
9
- end