Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rubyonrails error when update to gem 1.8.1

I update gem to the latest 1.8.1 and now when i use rails command i got errors as below

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.7.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 /Users/Haxrat/.gem/ruby/1.8/specifications/RedCloth-4.2.7.gemspec:10.
like image 742
Haxrat Avatar asked May 06 '11 18:05

Haxrat


1 Answers

Gem 1.8 adds lots of deprecation warnings, see http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

Most noise coming from the specs themselves can be cleaned up very very easily with gem pristine:

gem pristine --all --no-extensions

You could also directly edit the .gemspecs that are noisy and remove the old methods (e.g. in your case, remove line 11 of /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec)

like image 181
J-_-L Avatar answered Sep 22 '22 06:09

J-_-L