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.

Nathaniel Bibler's latest activity

Sunday, April 11 2010
2182 ActiveSupport::JSON.decode cannot parse output from to_json() was updated in Ruby on Rails
  • Nathaniel Bibler
    Nathaniel Bibler commented at 5:20 AM

    Attached is a patch against master (rails 3), where the tests do still fail for this, as well.

  • Nathaniel Bibler
    Nathaniel Bibler commented at 5:12 AM

    That patch, by the way, was made against the 2.3-stable branch.

  • Nathaniel Bibler
    • Tag changed from active_support to active_support, patch
    by Nathaniel Bibler at 5:04 AM

    Attached is a patch which updates the ActiveSupport::JSON::DATE_REGEX to more accurately match date strings. I only modified the date (month and day) portions o...

  • Nathaniel Bibler
    Nathaniel Bibler commented at 4:40 AM

    This actually looks like (in Rails 2.3.5) it's not so much an error in the JSON parsing, as it is in YAML parsing:

    >> ActiveSupport::JSON.decode({"1110-39-10"=...
4076 ago (ActiveSupport::CoreExtensions::Numeric::Time) does not respect current t... was updated in Ruby on Rails
  • Nathaniel Bibler
    Nathaniel Bibler commented at 4:08 AM

    I agree with the author that this is unexpected and not a well known task that must be performed (setting Time.zone_default), but Simon's suggestion does fix th...

1114 Format extensions (.xml or .json) should be optional in request urls generate... was updated in Ruby on Rails
  • Nathaniel Bibler
    Nathaniel Bibler commented at 3:57 AM

    Just a word of warning that relying on Accept headers alone may be quite misleading. Both Internet Explorer (pretty much all versions) and Webkit-based browsers...

4334 to_param and <resource>_path() escapes forward slashes was updated in Ruby on Rails
  • Nathaniel Bibler
    Nathaniel Bibler commented at 3:47 AM

    I'm curious what the valid use case is for this functionality. Maybe I'm misunderstanding the issue.. but when would it be useful to indicate to Rails that an o...

3504 String parameterize / normalize bug was updated in Ruby on Rails
  • Nathaniel Bibler
    • Tag changed from bug, normalize, parameterize, string to bug, invalid, normalize, parameterize, string
    by Nathaniel Bibler at 3:36 AM

    I could not reproduce with Rails 2.3.5 and Ruby 1.8.7, either. HOWEVER! Attempting to recreate with 1.8.7p248 and Rails 3, I got:

    /gems/ruby-1.8.7-p248/gems/ac...
Sunday, January 24 2010
2520 [PATCH] ActiveRecord#touch without validations was updated in Ruby on Rails
  • Nathaniel Bibler
    Nathaniel Bibler commented at 6:09 PM

    Patch integrating Obie's submission with a thinner implementation of touch!, utilizing his time stamp tests.

  • Nathaniel Bibler
    Nathaniel Bibler commented at 4:00 PM

    Seems to me as though Obie's patch is pretty close to the conversation, but I believe it ultimately provides conflicting functionality. If one uses touch to upd...