From: Peter Vandenabeele Date: 2012-01-12T05:48:11+09:00 Subject: [ANN] relativity 0.0.1 released --20cf300fb11bdbe4ab04b646bfb7 Content-Type: text/plain; charset=UTF-8 relativity - time relative to a day, a week, a month, a quarter, a year https://github.com/petervandenabeele/relativity I could not find a pure Ruby implementation I liked of * a time, relative to a day (e.g. 09:30:20 on a random day) * a time, relative to a week (e.g. 09:30 on Mondays) * a time range, relative to a day (09:30 .. 18:00 on a random day) * a time range, relative to a week (Monday 13:00 .. 18:30 in a random week) So, I started making 'relativity'. The first class partially implemented is RelativeTime. Critique and reviews are very welcome. Testing is based on rspec, design methodology tries to be red-green-refactor TDD. If you know of a full solution in pure Ruby, then I am still interested ... (I checked facets, rubygems for patterns with time, date, ..., googled for relevant terms, but failed to find a solution that seemed maintained and complete). But maybe I did not search well enough? Thanks, Peter -- Peter Vandenabeele http://twitter.com/peter_v http://rails.vandenabeele.com --20cf300fb11bdbe4ab04b646bfb7--