Giter Club home page Giter Club logo

spree_redirects's Introduction

Spree Redirects Build Status

Spree Redirects adds an interface for redirecting old urls to new ones. It's for when you replace an existing site with a shiny new spree site and want to avoid broken links and broken hearts.

To get a better idea of what it does, just follow the Demo instructions below...


Installation

Install spree_redirects by adding the following to your existing spree site's Gemfile:

gem 'spree_redirects', '0.2.0'

Or if you want to track the git repo, add this instead:

gem 'spree_redirects', :git => 'git://github.com/citrus/spree_redirects.git'

Now bundle up:

bundle

Then run the generator which copies the migration template into your project:

rails g spree_redirects:install

Migrate your database:

rake db:migrate

And boot up your server:

rails s

You should now be up and running at http://localhost:3000!


Testing

Clone this repo to where you develop, bundle up and run dummier to get the show started:

git clone git://github.com/citrus/spree_redirects.git
cd spree_redirects
bundle install
bundle exec dummier

This will generate a fresh rails app in test/dummy, install spree_core & spree_redirects, then migrate the test database. Sweet.

Now just run the tests with:

bundle exec rake    

Demo

You can easily use the test/dummy app as a demo of spree_redirects. Just cd to where you develop and run:

git clone git://github.com/citrus/spree_redirects.git
cd spree_redirects
cp test/dummy_hooks/after_migrate.rb.sample test/dummy_hooks/after_migrate.rb
bundle install
bundle exec dummier
cd test/dummy
rails s

Now log into the admin, click the 'Configuration' tab, then click 'Manage Redirects'. Try adding a redirect for /shop.php that points to /products, then visit http://localhost:3000/shop.php. You should be redirected to /products.


Contributors

So far it's just me; Spencer Steffen.

If you'd like to help out feel free to fork and send me pull requests!


Change Log

2012/5/7

  • Add support for spree 1.1.x

2012/3/14

  • Add support for spree 1.0.x

0.2.0 - 2012/1/5

  • Add support for spree 0.70.x and above
  • Remove spork development dependency

0.1.0 - 2011/6/1

  • Initial Release

License

Copyright (c) 2011 - 2012 Spencer Steffen and Citrus, released under the New BSD License All rights reserved.

spree_redirects's People

Contributors

citrus avatar detierno avatar iloveitaly avatar

Watchers

 avatar  avatar  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.