railscart 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -0
- data/Manifest.txt +103 -33
- data/bin/railscart +4 -1
- data/lib/railscart/version.rb +1 -1
- data/starter_app/app/controllers/application.rb +1 -1
- data/starter_app/config/database.yml +21 -7
- data/starter_app/config/environment.rb +9 -2
- data/starter_app/db/migrate/{005_create_users.rb → 001_create_users.rb} +0 -0
- data/starter_app/db/migrate/{006_create_roles.rb → 002_create_roles.rb} +0 -0
- data/starter_app/db/migrate/{002_create_tags_and_taggings.rb → 003_create_tags_and_taggings.rb} +0 -0
- data/starter_app/db/migrate/{003_railscart_to_version_19.rb → 004_railscart_to_version_19.rb} +2 -2
- data/starter_app/db/sample/images.yml +252 -0
- data/starter_app/lib/tasks/rc_sample_data.rake +12 -10
- data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0001/ror_tote_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0002/ror_tote_back_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0003/ror_bag_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0004/ror_baseball_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0005/ror_baseball_back_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0007/ror_mug_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0008/ror_mug_back_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0009/ror_ringer_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0010/ror_ringer_back_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0011/ror_stein_small.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_mini.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_product.jpeg +0 -0
- data/starter_app/lib/tasks/sample/products/0000/0012/ror_stein_back_small.jpeg +0 -0
- data/starter_app/vendor/plugins/attachment_fu/CHANGELOG +24 -0
- data/starter_app/vendor/plugins/attachment_fu/README +162 -0
- data/starter_app/vendor/plugins/attachment_fu/Rakefile +22 -0
- data/starter_app/vendor/plugins/attachment_fu/amazon_s3.yml.tpl +14 -0
- data/starter_app/vendor/plugins/attachment_fu/init.rb +14 -0
- data/starter_app/vendor/plugins/attachment_fu/install.rb +5 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/geometry.rb +93 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb +410 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb +39 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb +97 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb +309 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb +61 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb +56 -0
- data/starter_app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb +53 -0
- data/starter_app/vendor/plugins/attachment_fu/test/amazon_s3.yml +6 -0
- data/starter_app/vendor/plugins/attachment_fu/test/backends/db_file_test.rb +16 -0
- data/starter_app/vendor/plugins/attachment_fu/test/backends/file_system_test.rb +80 -0
- data/starter_app/vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb +103 -0
- data/starter_app/vendor/plugins/attachment_fu/test/base_attachment_tests.rb +57 -0
- data/starter_app/vendor/plugins/attachment_fu/test/basic_test.rb +64 -0
- data/starter_app/vendor/plugins/attachment_fu/test/database.yml +18 -0
- data/starter_app/vendor/plugins/attachment_fu/test/extra_attachment_test.rb +57 -0
- data/starter_app/vendor/plugins/attachment_fu/test/fixtures/attachment.rb +127 -0
- data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png +0 -0
- data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/foo.txt +1 -0
- data/starter_app/vendor/plugins/attachment_fu/test/fixtures/files/rails.png +0 -0
- data/starter_app/vendor/plugins/attachment_fu/test/geometry_test.rb +101 -0
- data/starter_app/vendor/plugins/attachment_fu/test/processors/image_science_test.rb +31 -0
- data/starter_app/vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb +31 -0
- data/starter_app/vendor/plugins/attachment_fu/test/processors/rmagick_test.rb +241 -0
- data/starter_app/vendor/plugins/attachment_fu/test/schema.rb +86 -0
- data/starter_app/vendor/plugins/attachment_fu/test/test_helper.rb +142 -0
- data/starter_app/vendor/plugins/attachment_fu/test/validation_test.rb +55 -0
- data/starter_app/vendor/plugins/paginating_find/CHANGELOG +3 -0
- data/starter_app/vendor/plugins/paginating_find/lib/paginating_find.rb +5 -2
- data/starter_app/vendor/plugins/railscart/app/controllers/admin/categories_controller.rb +8 -8
- data/starter_app/vendor/plugins/railscart/app/controllers/admin/images_controller.rb +44 -0
- data/starter_app/vendor/plugins/railscart/app/controllers/admin/products_controller.rb +4 -0
- data/starter_app/vendor/plugins/railscart/app/helpers/rails_cart/base_helper.rb +25 -0
- data/starter_app/vendor/plugins/railscart/app/models/image.rb +12 -0
- data/starter_app/vendor/plugins/railscart/app/models/product.rb +15 -16
- data/starter_app/vendor/plugins/railscart/app/views/admin/categories/_form.rhtml +0 -3
- data/starter_app/vendor/plugins/railscart/app/views/admin/images/new.html.erb +10 -0
- data/starter_app/vendor/plugins/railscart/app/views/admin/products/_form.rhtml +3 -3
- data/starter_app/vendor/plugins/railscart/app/views/admin/products/_option_types.rhtml +0 -1
- data/starter_app/vendor/plugins/railscart/app/views/admin/products/_variations.rhtml +1 -2
- data/starter_app/vendor/plugins/railscart/app/views/admin/products/index.rhtml +1 -1
- data/starter_app/vendor/plugins/railscart/app/views/admin/products/new.rhtml +1 -3
- data/starter_app/vendor/plugins/railscart/app/views/cart/index.rhtml +1 -1
- data/starter_app/vendor/plugins/railscart/app/views/shared/_images.html.erb +43 -0
- data/starter_app/vendor/plugins/railscart/app/views/store/list.rhtml +1 -1
- data/starter_app/vendor/plugins/railscart/app/views/store/show.rhtml +1 -1
- data/starter_app/vendor/plugins/railscart/db/migrate/{008_create_option_values.rb → 007_create_option_values.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{010_create_orders.rb → 008_create_orders.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{011_create_products.rb → 009_create_products.rb} +2 -2
- data/starter_app/vendor/plugins/railscart/db/migrate/{013_create_txns.rb → 010_create_txns.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{015_create_variations.rb → 011_create_variations.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{016_create_tax_treatments.rb → 012_create_tax_treatments.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{017_create_skus.rb → 013_create_skus.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{018_create_countries.rb → 014_create_countries.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{019_create_states.rb → 015_create_states.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{021_create_option_types.rb → 016_create_option_types.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{022_create_product_option_types.rb → 017_create_product_option_types.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/{023_create_option_values_variations.rb → 018_create_option_values_variations.rb} +0 -0
- data/starter_app/vendor/plugins/railscart/db/migrate/019_create_images.rb +19 -0
- metadata +106 -35
- data/starter_app/config/database.master.yml +0 -23
- data/starter_app/db/migrate/001_add_sessions.rb +0 -16
- data/starter_app/db/migrate/004_railscart_to_version_20.rb +0 -9
- data/starter_app/db/migrate/007_railscart_to_version_23.rb +0 -9
- data/starter_app/lib/tasks/sample/images/ror_bag.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_baseball_jersey.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_jr_spaghetti.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_mug.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_ringer_tshirt.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_stein.jpg +0 -0
- data/starter_app/lib/tasks/sample/images/ror_tote.jpg +0 -0
- data/starter_app/vendor/plugins/railscart/app/models/good.rb +0 -4
- data/starter_app/vendor/plugins/railscart/db/migrate/007_create_option_groups.rb +0 -12
- data/starter_app/vendor/plugins/railscart/db/migrate/009_create_options.rb +0 -11
- data/starter_app/vendor/plugins/railscart/db/migrate/012_ignore_users.rb +0 -9
- data/starter_app/vendor/plugins/railscart/db/migrate/014_ignore_roles.rb +0 -9
- data/starter_app/vendor/plugins/railscart/db/migrate/020_modify_users.rb +0 -9
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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,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
|