Exception - not sure how to fix

I am running ruby 1.8.7 and rails 3.0.7 on a MacPro.

When I run a command - something as simple as 'gem list --local' I get a stack trace in the terminal.

The stack trace mentions deprecation and that something will be removed, but the exception happens every-time I issue a command?!

Any help is appreciated. Thank you.

NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/acts_as_ferret-0.5.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/bundler-1.0.10.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/erubis-2.6.6.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/jk-ferret-0.11.8.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rack-1.2.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rails-3.0.5.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.6.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/sqlite3-ruby-1.3.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/treetop-1.4.9.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/acts_as_ferret-0.5.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/bundler-1.0.10.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/erubis-2.6.6.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/jk-ferret-0.11.8.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rack-1.2.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rails-3.0.5.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.6.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/sqlite3-ruby-1.3.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/treetop-1.4.9.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/acts_as_ferret-0.5.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/bundler-1.0.10.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/erubis-2.6.6.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/jk-ferret-0.11.8.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rack-1.2.2.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rails-3.0.5.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.6.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.2.gemspec:11. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/sqlite3-ruby-1.3.3.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/treetop-1.4.9.gemspec:11.

I am running ruby 1.8.7 and rails 3.0.7 on a MacPro.

When I run a command - something as simple as 'gem list --local' I get a stack trace in the terminal.

The stack trace mentions deprecation and that something will be removed, but the exception happens every-time I issue a command?!

It's warning you that the gemspec files inside some of your gems are using a soon to deprecated option. Remove older versions of gems should make the warnings go away (assuming that the newer versions have no longer use the option in question)

Fred

Frederick Cheung wrote in post #998691:

I am running ruby 1.8.7 and rails 3.0.7 on a MacPro.

When I run a command - something as simple as 'gem list --local' I get a stack trace in the terminal.

The stack trace mentions deprecation and that something will be removed, but the exception happens every-time I issue a command?!

It's warning you that the gemspec files inside some of your gems are using a soon to deprecated option. Remove older versions of gems should make the warnings go away (assuming that the newer versions have no longer use the option in question)

Fred

Hi Fred!

Thanks for your help.

This is the first time I've run into this. After a quick search I found I can run a 'cleanup' to remove old gems.

The problem is that I notice a dependency issue.

It looks like I should not remove some gems that are causing this issue. Do others just live with the annoying messages about deprecation?

You have requested to uninstall the gem:   builder-2.1.2 actionpack-3.0.7 depends on [builder (~> 2.1.2)] activemodel-3.0.7 depends on [builder (~> 2.1.2)] rubygems-update-1.8.2 depends on [builder (~> 2.1)] tilt-1.3 depends on [builder (>= 0)] If you remove this gems, one or more dependencies will not be met. Continue with Uninstall? [Yn]

Frederick Cheung wrote in post #998691:

I am running ruby 1.8.7 and rails 3.0.7 on a MacPro.

When I run a command - something as simple as 'gem list --local' I get a stack trace in the terminal.

The stack trace mentions deprecation and that something will be removed, but the exception happens every-time I issue a command?!

It's warning you that the gemspec files inside some of your gems are using a soon to deprecated option. Remove older versions of gems should make the warnings go away (assuming that the newer versions have no longer use the option in question)

This is the first time I've run into this. After a quick search I found I can run a 'cleanup' to remove old gems.

The problem is that I notice a dependency issue.

Yes, you'll get a few dependency warnings when you run 'gem cleanup'. If A depends on B, and it is trying to remove B, then it'll warn you that A will stop working.

But chances are that A is going to be removed later on in the clean-up anyway. As long as A isn't a version that you intend to keep, it's okay to let it remove the dependency.

Just read the message and do a quick mental sanity check. You can always reinstall a gem later if it gets removed by mistake.

It looks like I should not remove some gems that are causing this issue. Do others just live with the annoying messages about deprecation?

The annoying messages about deprecation are a recent introduction:

  http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

We're all still learning how to live with them (or, more productively, trying to get gems updated to not use the deprecated APIs).

Chris