The Majestic Sea Creature
    • Edit
    • Delete
    • Tags
    • Autopost

    Silencing YAML.quick_emit deprecation warnings in RubyGems tests

    In my initial explorations of the RubyGems source code, I found that the test output was very noisy due to a deprecation warning coming from Syck's implementation of YAML.quick_emit. This method will eventually be removed and has no replacement in Syck, but the new YAML library in Ruby 1.9, Psych, implements it without deprecations. The problem is that Psych itself won't be activated unless you have libyaml installed. I use rvm and homebrew, and found a post by Xavier Shay for how to get everything working.

    However, because Wayne Seguin was hanging out on the #rubygems channel at the time I was figuring this all out, he let me know that the latest rvm will build libyaml for you automatically, with no special flags. So here's the official way to get things working with Psych, let me know if it does the trick for you:  rvm get head ; rvm remove 1.9.2 ; rvm install 1.9.2

    I'll keep posting these gotchas as I dig into the RubyGems source, and then collect them somewhere centralized once I've gone through my initial explorations.

    Tags » rubygems
    • 2 June 2011
    • Views
    • 0 Comments
    • Permalink
  • majestic @seacreature

    Hello, my name is Gregory Brown. I am the founder of Mendicant University, a free online school for software developers.

    I am passionate about community service, education, and the free software movement. If you're interested in getting to know me a bit better, feel free to send me an email: gregory.t.brown@gmail.com

    Archive

    2011 (53)
    August (7)
    July (9)
    June (11)
    May (11)
    April (2)
    March (8)
    February (4)
    January (1)
    2010 (33)
    December (2)
    November (1)
    October (3)
    September (13)
    July (3)
    June (10)
    April (1)
    2009 (1)
    May (1)
    2008 (62)
    October (2)
    September (1)
    August (3)
    July (2)
    June (3)
    May (3)
    April (14)
    March (11)
    February (11)
    January (12)
    2007 (61)
    December (4)
    November (2)
    October (5)
    September (4)
    August (2)
    July (10)
    June (15)
    May (19)