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.

This project is archived and is in readonly mode.

avoid warning: method redefined; discarding old <=>

#4850

When running the test suite, there are lots of warnings.

One of these is warning: method redefined; discarding old <=>

I shall provide a patch shortly

Reported by Lenary · June 13th, 2010 @ 12:23 PM

State: committed
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. Lenary
  2. Ryan Bigg
    Ryan Bigg
    • Milestone set to 3.x
    • State changed from new to open

    +1

    Patch applies cleanly and warnings are gone from the activesupport tests. Going to assume they're gone from the others too.

    June 13th, 2010 @ 12:38 PM

  3. Lenary
    Lenary

    Sorry, for clarification, i'm using ruby 1.8.7p249

    the warnings appear in the following test suites:

    • activesupport
    • activemodel
    • actionmailer
    • activerecord MySQL tests
    • activerecord PostgreSQL tests
    • activerecord SQLite3 tests

    June 13th, 2010 @ 12:50 PM

  4. David Trasbo
    David Trasbo

    +1

    As Ryan says, the patch applies cleanly.

    June 13th, 2010 @ 07:18 PM

  5. Santiago Pastorino
    Santiago Pastorino
    • Milestone cleared.
    • Assigned user set to Yehuda Katz (wycats)

    Good work Sam, anyways seems like the <=> method is defined twice when you're on < 1.9 so i think the proper fix is this one.
    http://github.com/spastorino/rails/commit/f592c41accdf87d6c65a5cf42...
    Correct me if i'm wrong.

    June 14th, 2010 @ 01:07 AM

  6. Lenary
    Lenary

    Indeed you are correct Santiago, though please add me into the authors of that patch.

    June 14th, 2010 @ 09:13 AM

  7. Santiago Pastorino
  8. Santiago Pastorino
    Santiago Pastorino
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    As requested by Brosé!

    June 15th, 2010 @ 10:45 PM

  9. Santiago Pastorino
    Santiago Pastorino

    I'm uploading the patch file here because i need to rebase my repo ;).

    June 16th, 2010 @ 10:10 PM

  10. Repository
    Repository
    • State changed from open to committed

    June 19th, 2010 @ 11:59 PM

  11. Jeremy Kemper