No commit activity in last 3 years
No release in over 3 years
Schedules migration to future versions created by Vidibus::Versioning.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 0
>= 0
>= 0
~> 2

Runtime

 Project Readme

Vidibus::VersionScheduler Build Status Code Climate

Schedules migration to future versions created by Vidibus::Versioning.

This gem is part of Vidibus, an open source toolset for building distributed (video) applications.

Installation

Add gem "vidibus-version_scheduler" to your Gemfile. Then call bundle install on your console.

Usage

To use scheduling on a versioned model, just include the lib and you're done:

class Book
  include Mongoid::Document
  include Vidibus::Versioning::Mongoid
  include Vidibus::VersionScheduler::Mongoid
end

Whenever a version gets created that has a future created_at timestamp, a DelayedJob will be created to migrate your model to that version at the specified time. The job will be added to a queue named "versioning".

TODO

  • Solve the serious bug with DelayedJob and Mongoid. See ISSUES.md

Copyright

© 2011-2013 Andre Pankratz. See LICENSE for details.