Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Levin Alexander's latest activity

Monday, February 09 2009
1916 ActiveSupport::Duration#* should return a Duration, not an Integer was updated in Ruby on Rails
  • Levin Alexander
    Levin Alexander commented at 1:32 AM

    no, it does not. This test fails:

    
      def test_multiplication_associativity
        assert_equal "2.months", (1.month * 2).inspect
        assert_equal "2.months", (...
Sunday, February 08 2009
879 Finding the days/weeks/months/years between two dates was updated in Ruby on Rails
1916 ActiveSupport::Duration#* should return a Duration, not an Integer was updated in Ruby on Rails
  • Levin Alexander
    Levin Alexander commented at 8:48 PM

    however, this does not make "2 * 1.day" return a duration. The only way to do that would be to overwrite Numeric#* and test for the type of the argument.

    I don'...

  • Levin Alexander
    Levin Alexander created the ticket at 8:35 PM

    ActiveSupport::Duration does not implement multiplication. This can lead to unexpected behaviour when the result is used later with an object that special cases...

1914 ActiveSupport timezone tests: silence_warnings still needed? was created in Ruby on Rails
  • Levin Alexander
    Levin Alexander created the ticket at 7:17 PM

    many of the time zone related tests in ActiveSupport are wrapped in a call to "silence_warnings"

    
    silence_warnings do # silence warnings raised by tzinfo gem
    ...
Tuesday, January 27 2009
1796 TimeWithZone#to_formatted_s drops timezone information was updated in Ruby on Rails
  • Levin Alexander
    • Tag changed from 2.2.2, activesupport, timewithzone to 2.2.2, activesupport, patch, timewithzone
    by Levin Alexander at 4:27 PM

    attached patch

Monday, January 26 2009
1796 TimeWithZone#to_formatted_s drops timezone information was updated in Ruby on Rails
Monday, November 24 2008
1425 Allow optional arguments and/or block for Object#try was updated in Ruby on Rails