summaryrefslogtreecommitdiff
path: root/lib/custodian/util/timespan.rb
AgeCommit message (Collapse)Author
2015-01-30Removed executable permissions, this is a library.Steve Kemp
2015-01-29Removed shebang.Steve Kemp
This refereed to ruby1.8 in a versioned way which was wrong.
2013-06-24Updated the code to be more module.Steve Kemp
Broke down the inside? function into a function for returning the hours in a period, and for sanitizing hour strings "14" vs. "2pm", etc. Updated test-cases to match.
2013-06-24The worst-case for testing a time-period, and one used in theSteve Kemp
parser test, is matching against a period that covers the full 24 hours. Correctly terminate this case, and add a new test-case to ensure that this is always correct.
2013-06-24Removed obsolete debug-code.Steve Kemp
2013-06-24 Added Custodian::Util::TimeSpanSteve Kemp
This class is used to determine whether an "hour" is within a given hour-span. e.g. To cope with: foo must run ping except between 04-06 otherwise 'alert'. This updates issue #4551.