Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.9.4
Commits on Oct 18, 2010
  1. Make DateTime methods return subclass instances

    authored
    Similar as previous changes for Date.  This requires an API change
    for rhrdt__from_jd_nanos to accept a ruby class as a first argument.
  2. Add specs to make DateTime subclass methods return subclass instances

    authored
    Similar as previous change made for Date methods.
  3. Fix extension to return subclass instances for subclass methods

    authored
    In most cases, this is solved by using rb_obj_class(self) instead
    of hard coding rhrd_class.  This does require an API change
    for rhrd__from_hash, which now takes the class as the first
    argument.
  4. Add specs for subclass methods returning subclass instances

    authored
    Previously, Date was hard coded in a few places, so that if you
    did Class.new(Date).new + 1, you got an instance of Date back,
    instead of an instance of the subclass. This adds specs for many
    cases to ensure that the correct class is used.  In some cases,
    these specs pass without code changes, in others the following
    commit is required.
    
    Problem pointed out by aquasync (ruby-ole gem author) as a comment
    on issue #15.
  5. Use INT2FIX instead of LONG2NUM where the argument is hard coded

    authored
    If it is hard coded, you know it will fit in a Fixnum, so INT2FIX
    is safe.  Many other places in the library LONG2NUM is used
    where INT2FIX may also work, but I'd have to check each case to be
    sure.
Commits on Sep 20, 2010
Commits on Sep 12, 2010
  1. Bump version to 0.9.2

    authored
  2. Modify some README text (Fixes #12)

    authored
    In certain cases, `home_run --install` or `home_run command` is
    necessary on 1.9.  Projects like Bundler that manipulate the
    load path and load things in a certain order may break when used
    with home_run unless you use one of the above.
    
    Add a special note about Rails 3, in order to help some users that
    need to use "require 'home_run'".
Commits on Sep 2, 2010
  1. Update CHANGELOG

    authored
  2. Fix DateTime#sec_fraction on ruby 1.9

    authored
    Previously, it had the 1.8 behavior of returning the fraction of
    the second as a fraction of the day, even on 1.9.  This increases
    compatibility with the 1.9 stdlib.
    
    This also adds a spec for the :sec_fraction entry of Date._parse,
    though that is the fraction of the second on both 1.8 and 1.9.
Commits on Sep 1, 2010
  1. Update CHANGELOG

    authored
  2. More explicit casting

    authored
  3. More explicit casting

    authored
  4. More explicit casting

    authored
    Use LONG2NUM instead of INT2NUM in the ragel parser.
  5. Various changes for better compatibility for standards

    authored
    This removes the use of the %hhi format specifier, by using the
    %i format specifier and manually casting to int.
    
    Other changes involve explicit casting and the use of literal
    doubles instead of integers.
    
    This also fixes a couple of places where Data_Get_Struct would
    be passed in expression where it would be evaluated twice.
  6. Include CFLAGS from environment when compiling

    authored
    Also, check the STRICT environment variable and add a bunch
    of warnings if it is present.
Commits on Aug 31, 2010
  1. Bump version to 0.9.1

    authored
  2. Fix strptime for %Y%m%d and similar formats (Fixes #9)

    authored
    Previously, strptime grabbed an arbitrary number of digits for the
    %Y and %G formats.  Now it operates like the standard library,
    checking to see if %Y or %G is followed by a numeric literal or
    format, and restricting the number of digits to 4 if so.
Commits on Aug 30, 2010
  1. Only grab source files in the regular gem install

    authored
    This can fix a potential issue if the gem builder doesn't remember
    to clean before building the gem.
  2. Switch to using rake-compiler for all compiling

    authored
    This removes the bench task and replaces it with rake-compiler's
    compile task.  It moves the cross-compiling task into
    Rakefile.cross.  Thanks to Luis Lavena for his help and advice
    in this process.
  3. Handle problems with zones in the -HH,DDD or -HH.DDD formats

    authored
    Previously, it wasn't handling the order of operations properly,
    only multipling the fractional part by the negative.
  4. Update CHANGELOG

    authored
  5. Separately compile each C file, instead of including C files in other…

    authored
    … C files
    
    Switch to the standard C way of doing things, with a shared header
    file.  This bloats the code a bit as we have to add prototypes that
    were unnecessary before, as well as add extern for some static
    variables.  However, it's probably better to do things in a standard
    way.  Thanks to Luis Lavena for suggesting this.
Something went wrong with that request. Please try again.