SpreeYoutubeEmbed

Spree extension to add Youtube videos to products with similar integration as images. WARNING: An override of JavaScript behavior on images Spree::Products#show will stop images from changing on mouse hover, need to do a refactoring on "app/assets/javascrips/frontend/products.js.coffee" or some adjustment on "app/assets/javascrips/frontend/spree_youtube_embed.js"

TODOS:

  • Better Commenting (Initial Release)
  • Rules for others video hosting ie.: Vimeo
  • CoffeeScript optimization to restore onmouseenter and onmouseleave behavior to images
  • CSS optimization

Installation

Add spree_youtube_embed to your Gemfile:

gem 'spree_youtube_embed', github: 'ErvalhouS/spree_youtube_embed', branch: '3-0-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_youtube_embed:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories.
Simply add this require statement to your spec_helper:

require 'spree_youtube_embed/factories'

Copyright (c) 2016 Fernando Bellincanta, released under the New BSD License

Comments

No comments yet

Please login to add comment.