Also, change dup and clone to call super instead of using DUPSETUP and CLONESETUP. This makes dup and clone work correctly on rubinius. It also makes dup and clone work correctly for Date on jruby, but not for DateTime due to a bug in JRuby. allocate is defined to use the julian day 0 for simplicity.
Thanks to clifton for reporting this issue.
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'".
With Ragel parsers for ISO8601, RFC2822, and the Common Log Format, there's not a need for separate ragel versions of the 1.9 date parsing functions, since most of those call into _parse.
It's good to know that there aren't any strict alignment issues.
We should have 100% line coverage for both ruby 1.8 and 1.9, though it's hard to tell with rcov, especially on 1.9. More specs will probably be added in the future, but until I can figure out a good way to test code coverage in the C code, it won't be for code coverage.
As the README notes, this should only be used as a last resort.
Some other minor changes too.
Also note the Date::Format::STYLE feature.
Date::Format::STYLE[:slash] and Date::Format::STYLE[:dot] can be set to :ymd, :mdy, or :dmy to specify how to parse DD/DD/DD and DD.DD.DD formatted dates. The default is set to the way that was previously hard coded for each ruby version.