Giter Site home page Giter Site logo

thelastagency / spree-blogging-spree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbeam/spree-blogging-spree

1.0 1.0 0.0 400 KB

Basic blog + news archive functionality for Spree E-Commerce app.

License: BSD 3-Clause "New" or "Revised" License

spree-blogging-spree's Introduction

This fork updates extension to work with Spree 1.0 and Rails 3.2.

It also adds the ability to have multiple images per blog post.

Originally forked from paulcc/spree-blog, this extension intends to offer a more complete blogging solution for use within the Spree E-Commerce application. It currently consists of a blog, news archive, and a news archive widget written in jQuery.

See the issue tracker for future plans.

Installation

Add to your Gemfile: gem 'spree_blogging_spree', :git => 'git://github.com/sbeam/spree-blogging-spree.git'

Run: bundle install rails g spree_blogging_spree:install rake db:migrate`

Compatibility

  • Spree 1.0-beta+

Dependencies

  • is_taggable_rails3 (requires a forked version of is_taggable because of named_scope issues)

Note about Rich Text Editors

Seems to be a lot of disagreement about which Rich Text Editor to include, if any. No need to fork just to include your favorite. Thanks to Deface, if you want TinyMCE for instance, just unroll the package in /app/assets/javascripts/admin and add an override like so

Deface::Override.new(:virtual_path => "spree/layouts/admin",
                     :name => "tinymce_tag",
                     :insert_bottom => "[data-hook='admin_footer_scripts']",
                     :text => %(
                     
                     <%= javascript_include_tag "/assets/admin/tiny_mce/tiny_mce.js","/assets/admin/tiny_mce/jquery.tinymce.js"    %>

                     <script type="text/javascript"> 
                       /* fire up the TinyMCE */
                       $(document).ready(function() {
                         $('.editor').tinymce();
                       });
                     </script>),

                     :disabled => false)

Testing

Build status: d'oh!

  • shoulda
  • factory_girl
  • Spork

The included test_helper.rb is configured for use with Spork due to Spree's extended loading time.

Following the lead of the Spree development team, all tests have been converted to shoulda from RSpec.

spree-blogging-spree's People

Contributors

divineforest avatar erikkallen avatar kennyadsl avatar pospeev avatar sbeam avatar tedchoward avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.