Project

chorewheel

0.0
No commit activity in last 3 years
No release in over 3 years
Make a chore wheel, with options for specifying multiple people, vacation days, etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.11
 Project Readme

chorewheel

travis-ci

Simple chore scheduler in Ruby.

Usage

# a chore needs to be done every day, assign adit or maggie to do it
cw = ChoreWheel.new([:adit, :maggie], Timespan::WEEK, Interval::DAY)
p cw.chunks

# a chore needs to be done every tuesday and thursday
# the month of sept 2015, and two people are required.
timespan = Timespan::MONTH.new(Date.parse("2015-09-01"))
interval = Interval::SPECIFIC_DAYS.new(["tuesday", "thursday"])
opts = {
  :workers_per_shift => 2
}
cw = ChoreWheel.new([:adit, :maggie, :samosa], timespan, interval)
p cw.chunks