Levin Alexander
Not a member
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 commented at 1:32 AMno, 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
1916
ActiveSupport::Duration#* should return a Duration, not an Integer
was updated
in Ruby on Rails
-
Levin Alexander commented at 8:48 PMhowever, 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 created the ticket at 8:35 PMActiveSupport::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 created the ticket at 7:17 PMmany 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
-
- Tag changed from 2.2.2, activesupport, timewithzone to 2.2.2, activesupport, patch, timewithzone
attached patch
Monday, January 26 2009
1796
TimeWithZone#to_formatted_s drops timezone information
was updated
in Ruby on Rails
-
-
Levin Alexander created the ticket at 3:00 PMActiveSupport::TimeWithZone#to_formatted_s drops timezone information in the created string.
>> require 'active_support/version'; ActiveSupport::VERSION::STR...