spree_essential_press 0.1.0.pre3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -3
- data/.travis.yml +8 -0
- data/Gemfile +0 -2
- data/LICENSE +21 -17
- data/README.md +26 -16
- data/Rakefile +3 -33
- data/Versionfile +4 -2
- data/app/controllers/admin/press_controller.rb +2 -2
- data/app/controllers/press_controller.rb +1 -1
- data/app/overrides/spree_essential_press.rb +5 -0
- data/app/views/admin/press/_form.html.erb +6 -17
- data/app/views/admin/press/edit.html.erb +2 -2
- data/app/views/admin/press/index.html.erb +6 -23
- data/config/locales/en.yml +19 -17
- data/lib/generators/essentials_base.rb +12 -3
- data/lib/generators/spree_essentials/press_generator.rb +1 -1
- data/lib/spree_essential_press.rb +17 -8
- data/lib/spree_essential_press/version.rb +1 -1
- data/spree_essential_press.gemspec +5 -15
- data/test/dummy_hooks/after_migrate.rb.sample +1 -0
- data/test/dummy_hooks/before_migrate.rb +13 -0
- data/test/dummy_hooks/templates/admin/all.css +3 -0
- data/test/dummy_hooks/templates/admin/all.js +1 -0
- data/test/dummy_hooks/templates/store/all.css +3 -0
- data/test/dummy_hooks/templates/store/all.js +1 -0
- data/test/support/factories.rb +2 -2
- data/test/support/images/1.png +0 -0
- data/test/test_helper.rb +9 -52
- data/test/unit/press_image_test.rb +2 -2
- data/test/unit/press_test.rb +1 -1
- metadata +77 -1063
- data/app/controllers/admin/resource_controller.rb +0 -225
- data/lib/spree_essential_press/custom_hooks.rb +0 -9
- data/public/javascripts/date.js +0 -145
- data/public/javascripts/jquery.autodate.js +0 -112
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -44
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -22
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -26
- data/test/dummy/config/environments/production.rb +0 -49
- data/test/dummy/config/environments/test.rb +0 -35
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/db/default/countries.yml +0 -1583
- data/test/dummy/db/default/roles.yml +0 -7
- data/test/dummy/db/default/states.yml +0 -256
- data/test/dummy/db/default/zone_members.yml +0 -169
- data/test/dummy/db/default/zones.yml +0 -13
- data/test/dummy/db/migrate/20090823005402_spree_zero_nine_zero.rb +0 -442
- data/test/dummy/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +0 -12
- data/test/dummy/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +0 -36
- data/test/dummy/db/migrate/20091007134354_change_taxons_to_nested_set.rb +0 -40
- data/test/dummy/db/migrate/20091008091614_move_to_configurable_gateways.rb +0 -55
- data/test/dummy/db/migrate/20091012120519_product_groups_and_scopes.rb +0 -25
- data/test/dummy/db/migrate/20091015110842_add_open_id_authentication_tables.rb +0 -20
- data/test/dummy/db/migrate/20091015153048_add_openid_field_to_users.rb +0 -19
- data/test/dummy/db/migrate/20091016174634_change_preference_value_type.rb +0 -10
- data/test/dummy/db/migrate/20091017175558_create_billing_integrations.rb +0 -16
- data/test/dummy/db/migrate/20091021133257_charge_refactoring.rb +0 -35
- data/test/dummy/db/migrate/20091104151730_add_some_indexes.rb +0 -21
- data/test/dummy/db/migrate/20091126190904_checkout_state_machine.rb +0 -13
- data/test/dummy/db/migrate/20091209153045_state_for_shipments.rb +0 -9
- data/test/dummy/db/migrate/20091209202200_make_state_events_polymorphic.rb +0 -12
- data/test/dummy/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +0 -9
- data/test/dummy/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +0 -9
- data/test/dummy/db/migrate/20091213222815_creditcard_last_four_digits.rb +0 -19
- data/test/dummy/db/migrate/20091214183826_populate_legacy_shipment_state.rb +0 -19
- data/test/dummy/db/migrate/20100105090147_add_cost_price.rb +0 -9
- data/test/dummy/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +0 -21
- data/test/dummy/db/migrate/20100111205525_cim_fields_for_creditcards.rb +0 -11
- data/test/dummy/db/migrate/20100112151511_create_return_authorizations.rb +0 -16
- data/test/dummy/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +0 -9
- data/test/dummy/db/migrate/20100113203104_create_trackers.rb +0 -14
- data/test/dummy/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +0 -9
- data/test/dummy/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +0 -9
- data/test/dummy/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +0 -11
- data/test/dummy/db/migrate/20100126103714_create_products_product_groups.rb +0 -12
- data/test/dummy/db/migrate/20100209025806_create_payment_methods.rb +0 -20
- data/test/dummy/db/migrate/20100209144531_polymorphic_payments.rb +0 -29
- data/test/dummy/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +0 -11
- data/test/dummy/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +0 -16
- data/test/dummy/db/migrate/20100223170312_sti_for_transactions.rb +0 -14
- data/test/dummy/db/migrate/20100223183812_drop_billing_integrations.rb +0 -16
- data/test/dummy/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +0 -13
- data/test/dummy/db/migrate/20100301163454_add_adjustments_index.rb +0 -10
- data/test/dummy/db/migrate/20100306153445_fix_by_popularity.rb +0 -8
- data/test/dummy/db/migrate/20100317120946_add_alt_text_to_images.rb +0 -9
- data/test/dummy/db/migrate/20100427121301_add_display_to_payment_methods.rb +0 -9
- data/test/dummy/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +0 -16
- data/test/dummy/db/migrate/20100506180619_add_icon_to_taxons.rb +0 -18
- data/test/dummy/db/migrate/20100506185838_add_description_to_taxons.rb +0 -11
- data/test/dummy/db/migrate/20100528155333_index_for_shipments_number.rb +0 -9
- data/test/dummy/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +0 -9
- data/test/dummy/db/migrate/20100605152042_add_default_to_tax_categories.rb +0 -9
- data/test/dummy/db/migrate/20100624110730_add_display_to_shipping_methods.rb +0 -9
- data/test/dummy/db/migrate/20100624123336_rename_payment_method_display.rb +0 -9
- data/test/dummy/db/migrate/20100624175547_rename_preferences_field.rb +0 -8
- data/test/dummy/db/migrate/20100811163637_add_guest_flag.rb +0 -13
- data/test/dummy/db/migrate/20100811205836_drop_order_token.rb +0 -11
- data/test/dummy/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +0 -11
- data/test/dummy/db/migrate/20100813023502_create_address_keys_for_order.rb +0 -15
- data/test/dummy/db/migrate/20100813185745_payment_total_for_orders.rb +0 -9
- data/test/dummy/db/migrate/20100816212146_shipping_method_id_for_orders.rb +0 -9
- data/test/dummy/db/migrate/20100817152723_add_shipment_and_payment_state.rb +0 -15
- data/test/dummy/db/migrate/20100819170125_refactor_adjustments.rb +0 -19
- data/test/dummy/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +0 -11
- data/test/dummy/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +0 -13
- data/test/dummy/db/migrate/20100903203949_email_for_orders.rb +0 -9
- data/test/dummy/db/migrate/20100923162011_create_mail_methods.rb +0 -12
- data/test/dummy/db/migrate/20100929151905_rename_frozen_to_locked.rb +0 -8
- data/test/dummy/db/migrate/20101008190536_move_special_instructions_to_orders.rb +0 -11
- data/test/dummy/db/migrate/20101026184700_create_log_entries.rb +0 -15
- data/test/dummy/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +0 -94
- data/test/dummy/db/migrate/20101026184746_delete_in_progress_orders.rb +0 -18
- data/test/dummy/db/migrate/20101026184808_migrate_checkout_to_orders.rb +0 -27
- data/test/dummy/db/migrate/20101026184833_migrate_adjustments.rb +0 -9
- data/test/dummy/db/migrate/20101026184855_remove_shipped_state.rb +0 -14
- data/test/dummy/db/migrate/20101026184916_prevent_nil_payment_total.rb +0 -8
- data/test/dummy/db/migrate/20101026184932_prevent_nil_email.rb +0 -9
- data/test/dummy/db/migrate/20101026184959_generate_anonymous_users.rb +0 -14
- data/test/dummy/db/migrate/20101026185022_update_order_state.rb +0 -8
- data/test/dummy/db/migrate/20101026192225_cleanup_legacy_tables.rb +0 -11
- data/test/dummy/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +0 -9
- data/test/dummy/db/migrate/20101101185116_rename_columns_for_devise.rb +0 -38
- data/test/dummy/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +0 -8
- data/test/dummy/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +0 -10
- data/test/dummy/db/migrate/20101117031806_fix_problematic_index_names.rb +0 -13
- data/test/dummy/db/migrate/20101214150824_convert_user_remember_field.rb +0 -11
- data/test/dummy/db/migrate/20101217012656_create_tokenized_permissions.rb +0 -18
- data/test/dummy/db/migrate/20101219201531_tokens_for_legacy_orders.rb +0 -12
- data/test/dummy/db/migrate/20110421185054_create_press.rb +0 -16
- data/test/dummy/db/sample/users.rb +0 -53
- data/test/dummy/db/schema.rb +0 -548
- data/test/dummy/db/seeds.rb +0 -3
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/assets/posts/1/large/02tii.jpg +0 -0
- data/test/dummy/public/assets/posts/1/mini/02tii.jpg +0 -0
- data/test/dummy/public/assets/posts/1/original/02tii.jpg +0 -0
- data/test/dummy/public/assets/posts/1/preview/02tii.jpg +0 -0
- data/test/dummy/public/assets/posts/1/small/02tii.jpg +0 -0
- data/test/dummy/public/assets/posts/2/large/sailing-avatar.jpg +0 -0
- data/test/dummy/public/assets/posts/2/mini/sailing-avatar.jpg +0 -0
- data/test/dummy/public/assets/posts/2/original/sailing-avatar.jpg +0 -0
- data/test/dummy/public/assets/posts/2/preview/sailing-avatar.jpg +0 -0
- data/test/dummy/public/assets/posts/2/small/sailing-avatar.jpg +0 -0
- data/test/dummy/public/assets/posts/3/large/fractals_generative.jpg +0 -0
- data/test/dummy/public/assets/posts/3/mini/fractals_generative.jpg +0 -0
- data/test/dummy/public/assets/posts/3/original/fractals_generative.jpg +0 -0
- data/test/dummy/public/assets/posts/3/preview/fractals_generative.jpg +0 -0
- data/test/dummy/public/assets/posts/3/small/fractals_generative.jpg +0 -0
- data/test/dummy/public/assets/products/4/large/bmw2002tii.jpg +0 -0
- data/test/dummy/public/assets/products/4/mini/bmw2002tii.jpg +0 -0
- data/test/dummy/public/assets/products/4/original/bmw2002tii.jpg +0 -0
- data/test/dummy/public/assets/products/4/product/bmw2002tii.jpg +0 -0
- data/test/dummy/public/assets/products/4/small/bmw2002tii.jpg +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/images/add-to-cart.png +0 -0
- data/test/dummy/public/images/admin/bg/active-tab.png +0 -0
- data/test/dummy/public/images/admin/bg/admin_tab_back.png +0 -0
- data/test/dummy/public/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/test/dummy/public/images/admin/bg/content-back-blue.png +0 -0
- data/test/dummy/public/images/admin/bg/content-back-green.png +0 -0
- data/test/dummy/public/images/admin/bg/content-back.png +0 -0
- data/test/dummy/public/images/admin/bg/flash-error.png +0 -0
- data/test/dummy/public/images/admin/bg/flash-notice.png +0 -0
- data/test/dummy/public/images/admin/bg/green-stripes.gif +0 -0
- data/test/dummy/public/images/admin/bg/green-stripes.png +0 -0
- data/test/dummy/public/images/admin/bg/grid_header_back.png +0 -0
- data/test/dummy/public/images/admin/bg/grid_header_back_green.png +0 -0
- data/test/dummy/public/images/admin/bg/header-bg.png +0 -0
- data/test/dummy/public/images/admin/bg/header.png +0 -0
- data/test/dummy/public/images/admin/bg/header_bg.jpg +0 -0
- data/test/dummy/public/images/admin/bg/menu-current.png +0 -0
- data/test/dummy/public/images/admin/bg/red-stripes.gif +0 -0
- data/test/dummy/public/images/admin/bg/red-stripes.png +0 -0
- data/test/dummy/public/images/admin/bg/spree_50.png +0 -0
- data/test/dummy/public/images/admin/bg/subnav-divider.png +0 -0
- data/test/dummy/public/images/admin/bg/subnav.png +0 -0
- data/test/dummy/public/images/admin/bg/tab-back.png +0 -0
- data/test/dummy/public/images/admin/buttons/blue/left_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/blue/right_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/drag-handle-green.png +0 -0
- data/test/dummy/public/images/admin/buttons/green/left_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/green/right_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/left_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/left_01_small.png +0 -0
- data/test/dummy/public/images/admin/buttons/orange/left_03.png +0 -0
- data/test/dummy/public/images/admin/buttons/orange/right_03.png +0 -0
- data/test/dummy/public/images/admin/buttons/right_01.png +0 -0
- data/test/dummy/public/images/admin/buttons/right_01_small.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/1.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/10.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/2.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/3.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/4.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/5.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/6.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/7.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/8.png +0 -0
- data/test/dummy/public/images/admin/icons/16x16/9.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/1.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/10.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/11.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/2.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/3.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/4.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/5.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/6.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/7.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/8.png +0 -0
- data/test/dummy/public/images/admin/icons/32x32/9.png +0 -0
- data/test/dummy/public/images/admin/icons/accept.png +0 -0
- data/test/dummy/public/images/admin/icons/add.gif +0 -0
- data/test/dummy/public/images/admin/icons/add.png +0 -0
- data/test/dummy/public/images/admin/icons/arrow-down.gif +0 -0
- data/test/dummy/public/images/admin/icons/cross.png +0 -0
- data/test/dummy/public/images/admin/icons/delete.gif +0 -0
- data/test/dummy/public/images/admin/icons/delete.png +0 -0
- data/test/dummy/public/images/admin/icons/drag.gif +0 -0
- data/test/dummy/public/images/admin/icons/edit.gif +0 -0
- data/test/dummy/public/images/admin/icons/edit.png +0 -0
- data/test/dummy/public/images/admin/icons/email.png +0 -0
- data/test/dummy/public/images/admin/icons/error.png +0 -0
- data/test/dummy/public/images/admin/icons/exclamation.png +0 -0
- data/test/dummy/public/images/admin/icons/feed.png +0 -0
- data/test/dummy/public/images/admin/icons/pdf.png +0 -0
- data/test/dummy/public/images/admin/icons/reorder.gif +0 -0
- data/test/dummy/public/images/admin/icons/search.gif +0 -0
- data/test/dummy/public/images/admin/icons/send-email.png +0 -0
- data/test/dummy/public/images/admin/icons/stop.png +0 -0
- data/test/dummy/public/images/admin/icons/tick.png +0 -0
- data/test/dummy/public/images/admin/icons/up.gif +0 -0
- data/test/dummy/public/images/admin/icons/xls.png +0 -0
- data/test/dummy/public/images/admin/tabs/off-left.png +0 -0
- data/test/dummy/public/images/admin/tabs/off-right.png +0 -0
- data/test/dummy/public/images/admin/tabs/on-left.png +0 -0
- data/test/dummy/public/images/admin/tabs/on-right.png +0 -0
- data/test/dummy/public/images/ajax_loader.gif +0 -0
- data/test/dummy/public/images/amex_cid.gif +0 -0
- data/test/dummy/public/images/bg-button-hover.png +0 -0
- data/test/dummy/public/images/bg-button-pressed.png +0 -0
- data/test/dummy/public/images/bg-button.gif +0 -0
- data/test/dummy/public/images/bg-button.png +0 -0
- data/test/dummy/public/images/blue/left_01.png +0 -0
- data/test/dummy/public/images/blue/right_01.png +0 -0
- data/test/dummy/public/images/body-back.png +0 -0
- data/test/dummy/public/images/bottom_shine.png +0 -0
- data/test/dummy/public/images/breadcrumb.gif +0 -0
- data/test/dummy/public/images/button-dark-hover.png +0 -0
- data/test/dummy/public/images/button-dark.png +0 -0
- data/test/dummy/public/images/buttons/bg-button-hover.png +0 -0
- data/test/dummy/public/images/buttons/bg-button-pressed.png +0 -0
- data/test/dummy/public/images/buttons/bg-button.gif +0 -0
- data/test/dummy/public/images/buttons/bg-button.png +0 -0
- data/test/dummy/public/images/buttons/blue/left_01.png +0 -0
- data/test/dummy/public/images/buttons/blue/right_01.png +0 -0
- data/test/dummy/public/images/buttons/button-dark-hover.png +0 -0
- data/test/dummy/public/images/buttons/button-dark.png +0 -0
- data/test/dummy/public/images/buttons/drag-handle-green.png +0 -0
- data/test/dummy/public/images/buttons/green/left_01.png +0 -0
- data/test/dummy/public/images/buttons/green/right_01.png +0 -0
- data/test/dummy/public/images/buttons/left_01.png +0 -0
- data/test/dummy/public/images/buttons/left_01_small.png +0 -0
- data/test/dummy/public/images/buttons/orange/left_03.png +0 -0
- data/test/dummy/public/images/buttons/orange/right_03.png +0 -0
- data/test/dummy/public/images/buttons/right_01.png +0 -0
- data/test/dummy/public/images/buttons/right_01_small.png +0 -0
- data/test/dummy/public/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/test/dummy/public/images/buttons/top-shine.png +0 -0
- data/test/dummy/public/images/calendar_date_select/calendar.gif +0 -0
- data/test/dummy/public/images/cart-empty.png +0 -0
- data/test/dummy/public/images/cart-empty_x32.png +0 -0
- data/test/dummy/public/images/cart-full.png +0 -0
- data/test/dummy/public/images/cart-full_x32.png +0 -0
- data/test/dummy/public/images/checkout.png +0 -0
- data/test/dummy/public/images/creditcard.gif +0 -0
- data/test/dummy/public/images/datepicker/backstripes.gif +0 -0
- data/test/dummy/public/images/datepicker/bg_header.jpg +0 -0
- data/test/dummy/public/images/datepicker/bullet1.gif +0 -0
- data/test/dummy/public/images/datepicker/bullet2.gif +0 -0
- data/test/dummy/public/images/datepicker/cal.gif +0 -0
- data/test/dummy/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/test/dummy/public/images/discover_cid.gif +0 -0
- data/test/dummy/public/images/drag-handle-green.png +0 -0
- data/test/dummy/public/images/favicon.ico +0 -0
- data/test/dummy/public/images/green/left_01.png +0 -0
- data/test/dummy/public/images/green/right_01.png +0 -0
- data/test/dummy/public/images/grid.png +0 -0
- data/test/dummy/public/images/left_01.png +0 -0
- data/test/dummy/public/images/left_01_small.png +0 -0
- data/test/dummy/public/images/master_cid.jpg +0 -0
- data/test/dummy/public/images/menu-current.png +0 -0
- data/test/dummy/public/images/menu-hover.png +0 -0
- data/test/dummy/public/images/noimage/mini.jpg +0 -0
- data/test/dummy/public/images/noimage/product.jpg +0 -0
- data/test/dummy/public/images/noimage/small.jpg +0 -0
- data/test/dummy/public/images/openid-inputicon.gif +0 -0
- data/test/dummy/public/images/orange/left_03.png +0 -0
- data/test/dummy/public/images/orange/right_03.png +0 -0
- data/test/dummy/public/images/progress.gif +0 -0
- data/test/dummy/public/images/right_01.png +0 -0
- data/test/dummy/public/images/right_01_small.png +0 -0
- data/test/dummy/public/images/separator.png +0 -0
- data/test/dummy/public/images/shadow-top.png +0 -0
- data/test/dummy/public/images/shadow_top.png +0 -0
- data/test/dummy/public/images/spinner.gif +0 -0
- data/test/dummy/public/images/spree.jpg +0 -0
- data/test/dummy/public/images/spree/progress.gif +0 -0
- data/test/dummy/public/images/spree/spinner.gif +0 -0
- data/test/dummy/public/images/spree/spree.jpg +0 -0
- data/test/dummy/public/images/step-progress/completed-completed.gif +0 -0
- data/test/dummy/public/images/step-progress/completed-current.gif +0 -0
- data/test/dummy/public/images/step-progress/completed-first.gif +0 -0
- data/test/dummy/public/images/step-progress/current-first.gif +0 -0
- data/test/dummy/public/images/step-progress/current-incomplete.gif +0 -0
- data/test/dummy/public/images/step-progress/current-right.gif +0 -0
- data/test/dummy/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/test/dummy/public/images/step-progress/incomplete-right.gif +0 -0
- data/test/dummy/public/images/steps/1.png +0 -0
- data/test/dummy/public/images/steps/1_small.png +0 -0
- data/test/dummy/public/images/steps/2.png +0 -0
- data/test/dummy/public/images/steps/2_small.png +0 -0
- data/test/dummy/public/images/steps/3.png +0 -0
- data/test/dummy/public/images/steps/3_small.png +0 -0
- data/test/dummy/public/images/steps/4.png +0 -0
- data/test/dummy/public/images/steps/4_small.png +0 -0
- data/test/dummy/public/images/steps/5.png +0 -0
- data/test/dummy/public/images/steps/5_small.png +0 -0
- data/test/dummy/public/images/steps/6.png +0 -0
- data/test/dummy/public/images/steps/6_small.png +0 -0
- data/test/dummy/public/images/sxsw-ribbon-v1.png +0 -0
- data/test/dummy/public/images/tab_bottom.gif +0 -0
- data/test/dummy/public/images/tile-header.png +0 -0
- data/test/dummy/public/images/tile-slider.png +0 -0
- data/test/dummy/public/images/top-shine.png +0 -0
- data/test/dummy/public/images/tree-nav-icons/bullet.gif +0 -0
- data/test/dummy/public/images/tree-nav-icons/minus.gif +0 -0
- data/test/dummy/public/images/tree-nav-icons/plus.gif +0 -0
- data/test/dummy/public/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/test/dummy/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/test/dummy/public/images/update.png +0 -0
- data/test/dummy/public/images/visa_cid.gif +0 -0
- data/test/dummy/public/images/wrapper-back-2.png +0 -0
- data/test/dummy/public/images/wrapper-back.png +0 -0
- data/test/dummy/public/images/yui-menubaritem_submenuindicator.png +0 -0
- data/test/dummy/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/test/dummy/public/images/yui-menuitem_checkbox.png +0 -0
- data/test/dummy/public/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/test/dummy/public/images/yui-menuitem_submenuindicator.png +0 -0
- data/test/dummy/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/test/dummy/public/images/yui-sprite.png +0 -0
- data/test/dummy/public/javascripts/additional-methods.js +0 -236
- data/test/dummy/public/javascripts/admin.js +0 -226
- data/test/dummy/public/javascripts/admin/address_states.js +0 -25
- data/test/dummy/public/javascripts/admin/checkouts/edit.js +0 -130
- data/test/dummy/public/javascripts/admin/orders/edit.js +0 -23
- data/test/dummy/public/javascripts/admin/orders/edit_form.js +0 -16
- data/test/dummy/public/javascripts/admin/payments/new.js +0 -9
- data/test/dummy/public/javascripts/admin/promotions.js +0 -26
- data/test/dummy/public/javascripts/admin/unobtrusive_handlers.js +0 -15
- data/test/dummy/public/javascripts/application.js +0 -12
- data/test/dummy/public/javascripts/calculator.js +0 -15
- data/test/dummy/public/javascripts/checkout.js +0 -75
- data/test/dummy/public/javascripts/controls.js +0 -965
- data/test/dummy/public/javascripts/dashboard.js +0 -143
- data/test/dummy/public/javascripts/datepicker.js +0 -1445
- data/test/dummy/public/javascripts/dragdrop.js +0 -974
- data/test/dummy/public/javascripts/effects.js +0 -1123
- data/test/dummy/public/javascripts/gateway.js +0 -13
- data/test/dummy/public/javascripts/jqPlot/excanvas.min.js +0 -1
- data/test/dummy/public/javascripts/jqPlot/jquery.jqplot.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +0 -14
- data/test/dummy/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +0 -14
- data/test/dummy/public/javascripts/jquery-1.4.2.min.js +0 -154
- data/test/dummy/public/javascripts/jquery-ui.js +0 -188
- data/test/dummy/public/javascripts/jquery.alerts/images/help.gif +0 -0
- data/test/dummy/public/javascripts/jquery.alerts/images/important.gif +0 -0
- data/test/dummy/public/javascripts/jquery.alerts/images/info.gif +0 -0
- data/test/dummy/public/javascripts/jquery.alerts/images/title.gif +0 -0
- data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.css +0 -57
- data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.js +0 -235
- data/test/dummy/public/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -30
- data/test/dummy/public/javascripts/jquery.autocomplete.min.js +0 -13
- data/test/dummy/public/javascripts/jquery.cookie.js +0 -96
- data/test/dummy/public/javascripts/jquery.delayedobserver.js +0 -35
- data/test/dummy/public/javascripts/jquery.js +0 -19
- data/test/dummy/public/javascripts/jquery.suggest.js +0 -276
- data/test/dummy/public/javascripts/jquery.template.js +0 -255
- data/test/dummy/public/javascripts/jquery.tokeninput.js +0 -618
- data/test/dummy/public/javascripts/jquery.validate.min.js +0 -16
- data/test/dummy/public/javascripts/jrails.autocomplete.js +0 -274
- data/test/dummy/public/javascripts/jrails.js +0 -1
- data/test/dummy/public/javascripts/jsTree/jquery.jstree.js +0 -3510
- data/test/dummy/public/javascripts/jsTree/jquery.tree.js +0 -2058
- data/test/dummy/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +0 -129
- data/test/dummy/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/test/dummy/public/javascripts/jsTree/themes/apple/d.png +0 -0
- data/test/dummy/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
- data/test/dummy/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/test/dummy/public/javascripts/jsTree/themes/apple/style.css +0 -60
- data/test/dummy/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
- data/test/dummy/public/javascripts/lang/af.js +0 -40
- data/test/dummy/public/javascripts/lang/ar.js +0 -50
- data/test/dummy/public/javascripts/lang/de.js +0 -40
- data/test/dummy/public/javascripts/lang/du.js +0 -40
- data/test/dummy/public/javascripts/lang/en.js +0 -42
- data/test/dummy/public/javascripts/lang/es.js +0 -41
- data/test/dummy/public/javascripts/lang/fi.js +0 -40
- data/test/dummy/public/javascripts/lang/fr.js +0 -44
- data/test/dummy/public/javascripts/lang/gr.js +0 -40
- data/test/dummy/public/javascripts/lang/he.js +0 -49
- data/test/dummy/public/javascripts/lang/it.js +0 -13
- data/test/dummy/public/javascripts/lang/nl.js +0 -40
- data/test/dummy/public/javascripts/lang/no.js +0 -40
- data/test/dummy/public/javascripts/lang/pt.js +0 -50
- data/test/dummy/public/javascripts/lang/ro.js +0 -40
- data/test/dummy/public/javascripts/lang/ru.js +0 -40
- data/test/dummy/public/javascripts/lang/sp.js +0 -40
- data/test/dummy/public/javascripts/lang/sv.js +0 -41
- data/test/dummy/public/javascripts/lang/ua.js +0 -40
- data/test/dummy/public/javascripts/localization/messages_cn.js +0 -24
- data/test/dummy/public/javascripts/localization/messages_cs.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_da.js +0 -21
- data/test/dummy/public/javascripts/localization/messages_de.js +0 -21
- data/test/dummy/public/javascripts/localization/messages_es.js +0 -24
- data/test/dummy/public/javascripts/localization/messages_fr.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_hu.js +0 -21
- data/test/dummy/public/javascripts/localization/messages_it.js +0 -26
- data/test/dummy/public/javascripts/localization/messages_kk.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_nl.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_no.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_pl.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_ptbr.js +0 -30
- data/test/dummy/public/javascripts/localization/messages_ro.js +0 -24
- data/test/dummy/public/javascripts/localization/messages_ru.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_se.js +0 -23
- data/test/dummy/public/javascripts/localization/messages_sk.js +0 -21
- data/test/dummy/public/javascripts/localization/messages_tr.js +0 -24
- data/test/dummy/public/javascripts/localization/messages_tw.js +0 -24
- data/test/dummy/public/javascripts/localization/messages_ua.js +0 -24
- data/test/dummy/public/javascripts/nested-attribute.js +0 -26
- data/test/dummy/public/javascripts/open_id.js +0 -15
- data/test/dummy/public/javascripts/product.js +0 -49
- data/test/dummy/public/javascripts/prototype.js +0 -6001
- data/test/dummy/public/javascripts/rails.js +0 -127
- data/test/dummy/public/javascripts/taxonomy.js +0 -197
- data/test/dummy/public/javascripts/zone.js +0 -40
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/public/stylesheets/admin/admin-forms.css +0 -159
- data/test/dummy/public/stylesheets/admin/admin-reset.css +0 -67
- data/test/dummy/public/stylesheets/admin/admin-tables.css +0 -39
- data/test/dummy/public/stylesheets/admin/admin-typography.css +0 -117
- data/test/dummy/public/stylesheets/admin/admin.css +0 -579
- data/test/dummy/public/stylesheets/admin/autocomplete.css +0 -73
- data/test/dummy/public/stylesheets/admin/dashboard.css +0 -143
- data/test/dummy/public/stylesheets/admin/edit_checkouts.css +0 -57
- data/test/dummy/public/stylesheets/admin/grids.css +0 -314
- data/test/dummy/public/stylesheets/admin/promotions.css +0 -54
- data/test/dummy/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +0 -7
- data/test/dummy/public/stylesheets/admin/token-input.css +0 -109
- data/test/dummy/public/stylesheets/admin/yui-includes.css +0 -14
- data/test/dummy/public/stylesheets/datepicker.css +0 -263
- data/test/dummy/public/stylesheets/jquery.autocomplete.css +0 -48
- data/test/dummy/public/stylesheets/scaffold.css +0 -54
- data/test/dummy/public/stylesheets/screen.css +0 -1195
- data/test/dummy/script/rails +0 -6
- data/test/functional/press_controller_test.rb +0 -13
- data/test/integration/admin/press_test.rb +0 -15
- data/test/support/helper_methods.rb +0 -11
- data/test/support/integration_case.rb +0 -25
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,23 +1,27 @@
|
|
1
|
-
|
1
|
+
Copyright (c) 2011 Spencer Steffen and Citrus Media Group.
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
2
5
|
are permitted provided that the following conditions are met:
|
3
6
|
|
4
|
-
* Redistributions of source code must retain the above copyright notice,
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
5
8
|
this list of conditions and the following disclaimer.
|
6
|
-
|
7
|
-
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
8
12
|
and/or other materials provided with the distribution.
|
9
|
-
|
10
|
-
|
13
|
+
|
14
|
+
* Neither the name of Citrus Media Group nor the names of its
|
15
|
+
contributors may be used to endorse or promote products derived from this
|
11
16
|
software without specific prior written permission.
|
12
17
|
|
13
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
@@ -1,26 +1,36 @@
|
|
1
|
-
|
1
|
+
Spree Essential Press
|
2
|
+
=====================
|
2
3
|
|
4
|
+
A Press Page extension for Spree Commerce.
|
3
5
|
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
+
Installation
|
8
|
+
------------
|
7
9
|
|
8
|
-
|
10
|
+
In your existing spree site, add the following to your Gemfile:
|
9
11
|
|
10
|
-
|
11
|
-
cd spree_essential_press
|
12
|
-
rake db:test_prep
|
13
|
-
spork
|
12
|
+
gem 'spree_essential_press'
|
14
13
|
|
15
|
-
|
14
|
+
Now run:
|
15
|
+
|
16
|
+
bundle install
|
16
17
|
|
17
|
-
cd to/your/spree_essential_press
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
Demo
|
20
|
+
----
|
21
|
+
|
22
|
+
You can easily use the test/dummy app as a demo of spree_essentials. Just `cd` to where you develop and run:
|
21
23
|
|
22
|
-
|
23
|
-
|
24
|
+
git clone git://github.com/citrus/spree_essential_press.git
|
25
|
+
cd spree_essential_press
|
26
|
+
mv lib/dummy_hooks/after_migrate.rb.sample lib/dummy_hooks/after_migrate.rb
|
27
|
+
bundle install
|
28
|
+
bundle exec dummier
|
29
|
+
cd test/dummy
|
30
|
+
bundle exec rails s
|
24
31
|
|
25
|
-
|
26
|
-
|
32
|
+
|
33
|
+
License
|
34
|
+
-------
|
35
|
+
|
36
|
+
Copyright (c) 2011 Spencer Steffen, released under the New BSD License All rights reserved.
|
data/Rakefile
CHANGED
@@ -1,40 +1,10 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
-
require
|
3
|
-
begin
|
4
|
-
require 'bundler/setup'
|
5
|
-
rescue LoadError
|
6
|
-
puts 'You must run `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
-
end
|
8
|
-
|
9
|
-
require 'rake'
|
10
|
-
require 'rake/rdoctask'
|
2
|
+
require "bundler/gem_tasks"
|
11
3
|
require 'rake/testtask'
|
12
4
|
|
13
|
-
|
14
|
-
|
15
|
-
Rake::TestTask.new(:test) do |t|
|
16
|
-
t.libs << 'lib'
|
17
|
-
t.libs << 'test'
|
5
|
+
Rake::TestTask.new do |t|
|
6
|
+
t.libs << 'lib' << 'test'
|
18
7
|
t.pattern = 'test/**/*_test.rb'
|
19
|
-
t.verbose = false
|
20
|
-
end
|
21
|
-
|
22
|
-
namespace :db do
|
23
|
-
desc "preps the test database"
|
24
|
-
task :test_prep do
|
25
|
-
dir = File.expand_path("../test/dummy/db", __FILE__)
|
26
|
-
db = File.join(dir, "test.sqlite3")
|
27
|
-
File.delete(db) if File.exists?(db)
|
28
|
-
system("cd test/dummy; rake db:migrate RAILS_ENV=test")
|
29
|
-
end
|
30
8
|
end
|
31
9
|
|
32
10
|
task :default => :test
|
33
|
-
|
34
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
35
|
-
rdoc.rdoc_dir = 'rdoc'
|
36
|
-
rdoc.title = 'SpreeEssentialPress'
|
37
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
38
|
-
rdoc.rdoc_files.include('README.rdoc')
|
39
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
40
|
-
end
|
data/Versionfile
CHANGED
@@ -7,7 +7,7 @@ class Admin::PressController < Admin::ResourceController
|
|
7
7
|
params[:search] ||= {}
|
8
8
|
params[:search][:meta_sort] ||= "published_at.desc"
|
9
9
|
@search = Press.metasearch(params[:search])
|
10
|
-
@collection = @search.
|
11
|
-
end
|
10
|
+
@collection = @search.page(params[:page]).per(Spree::Config[:admin_products_per_page])
|
11
|
+
end
|
12
12
|
|
13
13
|
end
|
@@ -1,40 +1,29 @@
|
|
1
1
|
<%= f.field_container :title do %>
|
2
|
-
<%= f.label :title, t('press.title') %><br />
|
2
|
+
<%= f.label :title, t('activerecord.attributes.press.title') %><br />
|
3
3
|
<%= f.text_field :title, :class => 'title' %>
|
4
4
|
<%= error_message_on :press, :title %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<%= f.field_container :publication do %>
|
8
|
-
<%= f.label :publication, t('press.publication') %><br />
|
8
|
+
<%= f.label :publication, t('activerecord.attributes.press.publication') %><br />
|
9
9
|
<%= f.text_field :publication, :class => 'text' %>
|
10
10
|
<%= error_message_on :press, :publication %>
|
11
11
|
<% end %>
|
12
12
|
|
13
13
|
<%= f.field_container :published_at do %>
|
14
|
-
<%= f.label :published_at, t('press.published_at') %><br />
|
15
|
-
<%= f.
|
14
|
+
<%= f.label :published_at, t('activerecord.attributes.press.published_at') %><br />
|
15
|
+
<%= f.date_select :published_at, :order => [ :month, :day, :year ] %><br />
|
16
16
|
<%= error_message_on :press, :published_at %>
|
17
17
|
<% end %>
|
18
18
|
|
19
19
|
<%= f.field_container :description do %>
|
20
|
-
<%= f.label :description, t('press.description') %><br />
|
20
|
+
<%= f.label :description, t('activerecord.attributes.press.description') %><br />
|
21
21
|
<%= f.text_area :description, :class => 'text' %>
|
22
22
|
<%= error_message_on :press, :description %>
|
23
23
|
<% end %>
|
24
24
|
|
25
25
|
<%= f.field_container :url do %>
|
26
|
-
<%= f.label :url, t('press.url') %><br />
|
26
|
+
<%= f.label :url, t('activerecord.attributes.press.url') %><br />
|
27
27
|
<%= f.text_field :url, :class => 'text' %>
|
28
28
|
<%= error_message_on :press, :url %>
|
29
29
|
<% end %>
|
30
|
-
|
31
|
-
<% content_for :head do %>
|
32
|
-
<%= javascript_include_tag 'date.js', 'jquery.autodate.js' %>
|
33
|
-
<script type="text/javascript">
|
34
|
-
//<![CDATA[
|
35
|
-
$(document).ready(function() {
|
36
|
-
$('#press_published_at').autodate();
|
37
|
-
});
|
38
|
-
//]]>
|
39
|
-
</script>
|
40
|
-
<% end %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<%= render 'admin/shared/press_tabs', :current => "Press Details" %>
|
2
2
|
|
3
|
-
|
3
|
+
<%= form_for(@press, :url => object_url, :html => { :multipart => true, :method => :put }) do |f| %>
|
4
4
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
5
5
|
<p class="form-buttons">
|
6
6
|
<%= button t('update') %> <%= link_to t('cancel'), collection_url %>
|
7
7
|
</p>
|
8
|
-
<% end %>
|
8
|
+
<% end %>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</tbody>
|
37
37
|
</table>
|
38
38
|
|
39
|
-
<%=
|
39
|
+
<%= paginate @collection %>
|
40
40
|
|
41
41
|
|
42
42
|
<% content_for :sidebar do %>
|
@@ -45,28 +45,11 @@
|
|
45
45
|
|
46
46
|
<% @press = Press.metasearch %>
|
47
47
|
<%= form_for [:admin, @press] do |f| %>
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</p>
|
54
|
-
<label><%= t('date_range') %></label><br />
|
55
|
-
<div class="yui-g date-range-filter">
|
56
|
-
<div class="yui-u sub-field first">
|
57
|
-
<%= f.spree_date_picker :published_at_greater_than %><br />
|
58
|
-
<label class="sub"><%= t('start') %></label>
|
59
|
-
</div>
|
60
|
-
<div class="yui-u sub-field">
|
61
|
-
<%= f.spree_date_picker :published_at_less_than %><br />
|
62
|
-
<label><%= t('stop') %></label>
|
63
|
-
</div>
|
64
|
-
<br class="clear"/>
|
65
|
-
</div>
|
66
|
-
<% end %>
|
67
|
-
<%= hook :admin_press_index_search_buttons, locals do %>
|
68
|
-
<p><%= button t('search') %></p>
|
69
|
-
<% end %>
|
48
|
+
<p>
|
49
|
+
<label><%= t 'activerecord.attributes.press.title' %></label><br />
|
50
|
+
<%= f.text_field :title_like, :size => 25 %>
|
51
|
+
</p>
|
52
|
+
<p><%= button t('search') %></p>
|
70
53
|
<% end %>
|
71
54
|
</div>
|
72
55
|
<% end %>
|
data/config/locales/en.yml
CHANGED
@@ -1,22 +1,29 @@
|
|
1
1
|
en:
|
2
2
|
|
3
|
+
successfully_created: "%{resource} was successfully created."
|
4
|
+
successfully_updated: "%{resource} was successfully updated."
|
5
|
+
successfully_removed: "%{resource} was successfully removed."
|
6
|
+
|
7
|
+
press: Press
|
8
|
+
|
3
9
|
activerecord:
|
10
|
+
attributes:
|
11
|
+
press:
|
12
|
+
title: Title
|
13
|
+
publication: Publication
|
14
|
+
published_at: Published On
|
15
|
+
description: Description
|
16
|
+
url: URL
|
17
|
+
|
4
18
|
errors:
|
5
19
|
messages:
|
6
20
|
invalid_date_time: is an invalid date.
|
7
|
-
|
8
|
-
press:
|
9
|
-
title: Title
|
10
|
-
publication: Publication
|
11
|
-
published_at: Published On
|
12
|
-
description: Description
|
13
|
-
url: URL
|
14
21
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
#index:
|
23
|
+
# press: Press
|
24
|
+
#
|
25
|
+
#press:
|
26
|
+
# read_more: Read More
|
20
27
|
|
21
28
|
admin:
|
22
29
|
press:
|
@@ -40,8 +47,3 @@ en:
|
|
40
47
|
press_tabs:
|
41
48
|
editing_press: Edit Press Mention
|
42
49
|
press_details: Press Mention Details
|
43
|
-
|
44
|
-
|
45
|
-
successfully_created: Successfully created
|
46
|
-
successfully_updated: Successfully updated
|
47
|
-
successfully_destroyed: Successfully destroyed
|
@@ -4,15 +4,24 @@ module SpreeEssentials
|
|
4
4
|
|
5
5
|
include Rails::Generators::Migration
|
6
6
|
|
7
|
-
def self.count
|
7
|
+
def self.count
|
8
8
|
@count ||= 0
|
9
9
|
(@count += 1) * 3
|
10
10
|
end
|
11
|
+
|
12
|
+
def self.new_migration_number
|
13
|
+
(Time.new.utc + self.count).strftime("%Y%m%d%H%M%S")
|
14
|
+
end
|
11
15
|
|
12
16
|
def self.next_migration_number(path)
|
13
17
|
@time ||= Time.new.utc
|
14
18
|
if ActiveRecord::Base.timestamped_migrations
|
15
|
-
|
19
|
+
files = Dir.entries(Rails.root.join("db/migrate"))
|
20
|
+
migration = new_migration_number
|
21
|
+
while files.join.include?(migration)
|
22
|
+
migration = new_migration_number
|
23
|
+
end
|
24
|
+
migration
|
16
25
|
else
|
17
26
|
"%.3d" % (current_migration_number(dirname) + 1)
|
18
27
|
end
|
@@ -20,4 +29,4 @@ module SpreeEssentials
|
|
20
29
|
|
21
30
|
end
|
22
31
|
end
|
23
|
-
end
|
32
|
+
end
|
@@ -1,13 +1,11 @@
|
|
1
1
|
require 'spree_core'
|
2
|
-
require 'spree_auth'
|
3
|
-
require 'meta_search'
|
4
2
|
|
5
3
|
require 'spree_essential_press/inflection'
|
6
4
|
|
7
5
|
module SpreeEssentialPress
|
8
6
|
|
9
7
|
def self.tab
|
10
|
-
|
8
|
+
{ :label => 'Press', :route => :admin_press_index }
|
11
9
|
end
|
12
10
|
|
13
11
|
def self.sub_tab
|
@@ -20,13 +18,24 @@ module SpreeEssentialPress
|
|
20
18
|
end
|
21
19
|
|
22
20
|
class Engine < Rails::Engine
|
23
|
-
|
21
|
+
|
22
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
23
|
+
|
24
|
+
if SpreeEssentialPress.independent?
|
25
|
+
config.to_prepare do
|
26
|
+
|
27
|
+
#loads application's deface view overrides
|
28
|
+
Dir.glob File.expand_path("../../app/overrides/*.rb", __FILE__) do |c|
|
29
|
+
Rails.application.config.cache_classes ? require(c) : load(c)
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
24
35
|
end
|
25
36
|
|
26
37
|
end
|
27
38
|
|
28
|
-
|
29
|
-
require 'spree_essential_press/custom_hooks'
|
30
|
-
else
|
39
|
+
unless SpreeEssentialPress.independent?
|
31
40
|
SpreeEssentials.register :press, SpreeEssentialPress
|
32
|
-
end
|
41
|
+
end
|
@@ -18,22 +18,12 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
20
|
# Spree
|
21
|
-
s.add_dependency('spree_core', '>= 0.
|
22
|
-
s.add_dependency('spree_auth', '>= 0.30.1')
|
21
|
+
s.add_dependency('spree_core', '>= 0.70.0')
|
23
22
|
|
24
|
-
# Pre 0.50.0
|
25
|
-
s.add_dependency('meta_search', '>= 1.0.1')
|
26
|
-
|
27
23
|
# Development
|
28
|
-
s.add_development_dependency('
|
29
|
-
s.add_development_dependency('shoulda', '>=
|
30
|
-
s.add_development_dependency('factory_girl', '>= 2.
|
31
|
-
s.add_development_dependency('cucumber', '>= 0.10.2')
|
32
|
-
s.add_development_dependency('capybara', '>= 0.4.1')
|
33
|
-
s.add_development_dependency('selenium-webdriver', '>= 0.1.3')
|
24
|
+
s.add_development_dependency('dummier', '>= 0.2.4')
|
25
|
+
s.add_development_dependency('shoulda', '>= 3.0.0.beta2')
|
26
|
+
s.add_development_dependency('factory_girl', '>= 2.3.2')
|
34
27
|
s.add_development_dependency('sqlite3', '>= 1.3.3')
|
35
|
-
s.add_development_dependency('faker', '>= 0.9.5')
|
36
|
-
s.add_development_dependency('spork', '>= 0.9.0.rc5')
|
37
|
-
s.add_development_dependency('spork-testunit', '>= 0.0.5')
|
38
28
|
|
39
|
-
end
|
29
|
+
end
|