Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > gem update results in multiple versions

Reply
Thread Tools

gem update results in multiple versions

 
 
davetron5000
Guest
Posts: n/a
 
      11-03-2008
Working on some code I wish to distribute via gem. When I up the
version and do a gem update my-code, gem reports that both the
previous version and the new version are installed. This doesn't seem
to occur with any other gems that I have. I cannot seem to figure out
what's up with this.

Here's my gemspec:

spec = Gem::Specification.new do |s|
s.name = "My Proggy"
s.version = "0.5.3"
s.author = "David Copeland"
s.email = ""
s.homepage = "http://www.mystuff.com"
s.platform = Gem:latform::RUBY
s.summary = "Some description"
s.files = FileList["{bin,lib}/**/*"].to_a
s.require_path = "lib"
s.test_files = FileList["{test}/**/test*.rb"].to_a
s.bindir = "bin"
s.executables << "cl"
s.has_rdoc = true
s.rdoc_options << '--title' << 'Titlet' << '--main' << 'README.rdoc'
s.extra_rdoc_files = ["README.rdoc"]
end

When I changed from "0.5.3" to "0.5.4", gem just installed it
alongside the old version. Is there a way to tell it not to do that?

This happened installing the gem from a local .gem file AND from a
remote repository.
 
Reply With Quote
 
 
 
 
Stefan Lang
Guest
Posts: n/a
 
      11-03-2008
2008/11/3 davetron5000 <>:
> Working on some code I wish to distribute via gem. When I up the
> version and do a gem update my-code, gem reports that both the
> previous version and the new version are installed. This doesn't seem
> to occur with any other gems that I have. I cannot seem to figure out
> what's up with this.


It's normal behaviour. It doesn't hurt, since RubyGems
loads the newest version anyway when no specific version
is specified. And the old gem is still there in case another
gem depends on this specific version.

You can uninstall the old version with:

gem uninstall gem-name -v some.version.number

Stefan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ajax call to fetch multiple results from multiple queries and showing them 1 by 1 as the results comes. Biranchi Narayan Panda ASP .Net 0 02-21-2010 03:46 PM
Gem versions and Gem lists different after update Älphä Blüë Ruby 1 07-22-2009 07:43 PM
"gem list" and "sudo gem list" yield different results Mike Nicholaides Ruby 3 03-28-2008 02:29 PM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM
gem update for additional gem servers? Stephan Mueller Ruby 3 11-20-2006 06:15 PM



Advertisments