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.

Henrik Nyh's latest activity

Tuesday, March 10 2009
1489 Make Inflector#parameterize correctly squeeze multi-character separators was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 9:36 PM

    Moved comment, re-attaching second patch.

  • Henrik Nyh
    Henrik Nyh commented at 9:34 PM

    Thanks, Pratik. Fixed in second patch.

Saturday, February 28 2009
1523 auto_link should not linkify URLs in the middle of a tag was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 11:32 AM

    Let's try that again.

    
    auto_link('<a href="http://google.com"><img src="http://google.com/image.jpg" /></a>')
    

    in 2.2:

    
    <a href="http://google.com"><img sr...
  • Henrik Nyh
    Henrik Nyh commented at 11:30 AM

    Just ran into this, upgrading an app from 2.2 to 2.3.

    auto_link('') in 2.2: auto_link('') in 2.3: auto_link('http://google.com/image.jpg" />')

Monday, December 01 2008
1396 Framework crashes on launch on Solaris with invalid encoding ("ascii//ignore/... was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 4:43 PM

    It'd look nicer if the rescue returned the original string rather than nil, I think. No practical difference, though.

  • Henrik Nyh
    • Tag changed from 2.2, 2.2-stable, 2.2.2, 2.2.rc2, inflector to 2.2, 2.2-stable, 2.2.2, 2.2.rc2, inflector, patch
    by Henrik Nyh at 4:41 PM

    +1 on fix, makes sense.

Friday, November 28 2008
1489 Make Inflector#parameterize correctly squeeze multi-character separators was created in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh created the ticket at 11:52 AM

    This has been bugging me a while, so I patched it. See attached.

    Inflector#parameterize allows the custom separator to be any string, but it uses squeeze which ...

Wednesday, November 19 2008
1410 Add each_key and each_value to ActiveSupport::OrderedHash was updated in Ruby on Rails
Tuesday, October 28 2008
597 "bös".chars.reverse is "s̈ob" for decomposed string was updated in Ruby on Rails
  • Henrik Nyh
    Henrik Nyh commented at 4:32 PM

    Oops, no. I forgot that the ticket was about decomposed strings, specifically, and they still fail:

    
    >> dc = "bös".mb_chars.normalize(:kd).reverse.to_s
    => "s̈...
  • Henrik Nyh
    Henrik Nyh commented at 4:30 PM

    Works fine in 2.2, so problem solved.