jruby/jruby — pull request #387 by jballanc (2012-11-11 16:04:46+00:00)
Title: Implement Ruby 1.9 behavior for Time#<=>

It seems that ActiveSupport::TimeWithZone and TZInfo rely on this
behavior for comparisons. For example:

```ruby
require 'active_support/time'
require 'active_support/time_with_zone'

time_zone = ActiveSupport::TimeZone.new('Eastern Time (US & Canada )')'
time_seed = Time.new(2012,11,10).in_time_zone(time_zone)
datetime_seed = DateTime.new(2012,11,10).in_time_zone(time_zone)

datetime_seed < time_seed #=> false
time_seed < datetime_seed #=> ArgumentError: comparison of ActiveSupport::TimeWithZone with ActiveSupport::TimeWithZone failed
```

This fix enables the comparison to be made in either direction.