Commits on May 30, 2010
  1. The last bit of work for proper handling of timezones. If we are runn…

    …ing in the
    
    context of an ActiveSupport timezone (Time.zone = :zone), then go ahead and use
    the parser appropriate for the zone (Time.zone.parse). We use the default Time
    parser when dealing in a standard Time environment.
    Also:
    Made sure the tests that set a timezone would reset it after the test was
    complete.
    Arild Shirazi committed May 30, 2010
  2. Fixed a bunch of tests by being consistent in our use of

      Time.parse vs Time.zone.parse
    Arild Shirazi committed May 30, 2010
  3. Made a whole bunch of test output easier to read by asserting equal (…

    …so I can
    
    see what the expected and actual values were as times, instead of just
    true/false).
    Split the business_days test into 3 files to make testing easier to conduct.
    Arild Shirazi committed May 30, 2010
  4. Drastic change to get around timezone bug in Time...

    Made all of our time extension methods class methods, so we no longer need to
    refer to self in our methods (and thus get an incorrect timezone). Our
    calculations should no longer be wrong as a result.
    Changed code everywhere that made use of instance methods to now use the class
    methods.
    Arild Shirazi committed May 30, 2010
  5. Some changes made to get all of the Eastern business hours tests to p…

    …ass.
    
    Basically tried to work-around the bug where accessing self from within
    TimeWithZone could give you a Time with the wrong zone (it's always set to UTC).
    
    Note: this solution does not work well. I'm committing to show just how bad
    things have gotten. The only solution is to deal with Time objects outside of
    Time itself.
    Arild Shirazi committed May 29, 2010
  6. Some improvements to the test cases to make testing easier:

    * Need to require in active_support in order to stem Errors
    * split business_hours test into 3 tests to more easily see what is failing
    * additional clarity to the contexts
    Misc:
    * let vim do it's thing by adding a newline to a file
    Arild Shirazi committed May 29, 2010
Commits on May 28, 2010
  1. @bokmann
  2. @bokmann
Commits on Apr 25, 2010
  1. @bokmann

    Version bump to 0.2.2

    bokmann committed Apr 25, 2010
  2. @bokmann
Commits on Apr 21, 2010
  1. @bokmann

    Version bump to 0.2.1

    bokmann committed Apr 21, 2010
  2. @bokmann

    making this somewhat api-compatible with the way ActiveSupport does 5…

    ….days.since(date) and 9.days.until(date)
    bokmann committed Apr 21, 2010
  3. @bokmann

    improving the generated rdoc

    bokmann committed Apr 21, 2010
Commits on Apr 16, 2010
  1. @bokmann

    Version bump to 0.2.0

    bokmann committed Apr 16, 2010
  2. @bokmann
Commits on Apr 15, 2010
  1. @enricob

    Ruby 1.9 / ActiveSupport 3 compatibility (rake test now succeeds with…

    … ruby 1.9.1 and active_support 3.0.0.beta3)
    enricob committed Apr 14, 2010
  2. @enricob

    Turns out we don't need to require 'rails/generators' and generators …

    …in lib/generators are automatically picked up
    enricob committed Apr 14, 2010
  3. @enricob
Commits on Apr 14, 2010
  1. @bokmann
  2. @bokmann
  3. @bokmann

    adding the ability to specify the config in a yaml file that is loade…

    …d by an initializer. This includes a rails generator to pull it all together.
    bokmann committed Apr 14, 2010
Commits on Apr 13, 2010
  1. @bokmann

    finishing tests

    bokmann committed Apr 13, 2010
  2. @bokmann

    Version bump to 0.1.0

    bokmann committed Apr 13, 2010
  3. @bokmann

    Version bump to 0.0.0

    bokmann committed Apr 13, 2010
  4. @bokmann
  5. @bokmann
  6. @bokmann
  7. @bokmann
  8. @bokmann
  9. @bokmann
  10. @bokmann

    Initial commit to business_time.

    bokmann committed Apr 13, 2010