-
require_gem deprecation warnings, redux
Posted on February 13th, 2007 1 commentSo I’ve written about this before – and it turns out that a lot of the “require_gem” deprecation warnings come from tasks in your gem builds that build convenience scripts in
/usr/bin(or wherever on your system it places these). So if these convenience scripts (like/usr/bin/mongrel_rails) are left around from installs with previous versions of rubygems – just reinstall the gem (or change all therequire_gemstatements to just “gem“) yourself.A
grep require_gem /usr/bin/*is pretty convenient to get an idea for the gems you need to reinstall.However, feedtools 0.2.26 has a bunch of require_gem statements in
lib/feed_tools.rb(and littering my crons with the deprecation warnings), so I ended up building and distributing my own replacement with require_gem replaced with gem.
1 Trackbacks / Pingbacks
-
[...] Messages like Warning: require_gem is obsolete. Use gem instead. driving you nuts? Filed under: ruby, programming, gripe — February 21, 2007 @ 7:55 pm If you’re seeing tons of those messages like I’ve been and wondering what in the world that is all about. After Googling around I finally found a definitive answer on Jason Young’s Blog what it was all about. [...]
-
This work by Jason Adam Young is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States.


Al Hoang » Messages like Warning: require_gem is obsolete. Use gem instead. driving you nuts? February 21st, 2007 at 19:55