[ANN] RubyGems 1.0.0

Ok, i solved the problem (i had it in many computers, all of them
Ubuntu). The problem was /usr/bin/gem is not updated. Seems all the
files but /usr/bin/gem are updated to 1.0.1

First of all:

gem update --system

I renamed all de /usr/local/bin/gem* to /usr/local/bin/gem*.bak (if
any). All the good bins are in my /usr/bin/gem* (only one place)

Then i overwrite that /usr/bin/gem with an updated copy. I put here the
contents of an 1.0.1 /usr/bin/gem script if anyone wants to manually
copy-paste it:

···

#-------------------------------------------------------------------------
#!/usr/bin/ruby1.8
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'rubygems'
require 'rubygems/gem_runner'

required_version = Gem::Requirement.new ">= 1.8.2"

unless required_version.satisfied_by? Gem::Version.new(RUBY_VERSION)
then
  abort "Expected Ruby Version #{required_version}, was #{RUBY_VERSION}"
end

# We need to preserve the original ARGV to use for passing gem options
# to source gems. If there is a -- in the line, strip all options after
# it...its for the source building process.
args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]

Gem::GemRunner.new.run args
#-------------------------------------------------------------------------

After that, all the problems are gone:

# gem -v
1.0.1

Regards,
--
Posted via http://www.ruby-forum.com/.

Eric Hodel wrote:

···

On Dec 22, 2007, at 10:38 AM, Jonathan Hernandez wrote:

installed). If i do:

~/rubygems-0.9.2# gem update --system
(...)
~/rubygems-0.9.2# gem -v
/usr/local/bin/gem:23: uninitialized constant Gem::GemRunner
(NameError)

I know from other installs that rubygems 0.9.5 works perfectly with
ruby
1.8.6 (ubuntu's apt).

Can you get a complete install log?

For sure, I can reproduce the problem if i return back to rubygems 0.9.2
and updating again to 1.0.1 with gem update --system.

I attached the complete log.

Attachments:
http://www.ruby-forum.com/attachment/1198/rubygems-0.9.2-to-1.0.1.log

--
Posted via http://www.ruby-forum.com/\.

Use `gem1.8`.

I will add a note about the name of `gem` in the next revision of RubyGems.

···

On Dec 24, 2007, at 09:47 AM, Jonathan Hernandez wrote:

Eric Hodel wrote:

On Dec 22, 2007, at 10:38 AM, Jonathan Hernandez wrote:

installed). If i do:

~/rubygems-0.9.2# gem update --system
(...)
~/rubygems-0.9.2# gem -v
/usr/local/bin/gem:23: uninitialized constant Gem::GemRunner
(NameError)

I know from other installs that rubygems 0.9.5 works perfectly with
ruby
1.8.6 (ubuntu's apt).

Can you get a complete install log?

For sure, I can reproduce the problem if i return back to rubygems 0.9.2
and updating again to 1.0.1 with gem update --system.

I attached the complete log.

Attachments:

cp gem /tmp/gem
install -c -m 0755 /tmp/gem /usr/bin/gem1.8

Eric Hodel wrote:

I know from other installs that rubygems 0.9.5 works perfectly with

Attachments:

cp gem /tmp/gem
install -c -m 0755 /tmp/gem /usr/bin/gem1.8

Use `gem1.8`.

I will add a note about the name of `gem` in the next revision of
RubyGems.

Yes, using gem1.8 works nice.

# gem1.8 -v
1.0.1

Short workaround for others in the same situation. Do a symlink:

mv /usr/bin/gem /usr/bin/gem.bak
ln -s /usr/bin/gem1.8 /usr/bin/gem

Regards,

···

On Dec 24, 2007, at 09:47 AM, Jonathan Hernandez wrote:

--
Posted via http://www.ruby-forum.com/\.