[ANN] RubyGems 1.2.0

Just to add a success story.... I'm on Mac OS X 10.5.3. I had no
problems updating via

$ sudo gem update --system

earlier this morning.

Here's some system info:

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.2.0
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-9
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gems.rubyforge.org"]
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
$

Updates from the merb source were choking with an error that it wasn't
at 1.2+, but I just removed the source, since I'm not doing much w/
merb right now.

Regards,
Craig

I've heard, weeks ago, that rubygems is broken over Mac OS X 10.4.11,
for a remote install, local is OK.

I'll try that way.

···

Rick DeNatale <rick.denatale@gmail.com> wrote:

I'm also having difficulties, it would appear that I can't successfully
access http://gems.rubyforge.org. I can't find the remote rails gem:

Macintosh:activerecord rick$ gem list --both rails

--
Une Bévue

I'm also having difficulties, it would appear that I can't successfully
access http://gems.rubyforge.org. I can't find the remote rails gem:

Macintosh:activerecord rick$ gem list --both rails

*** LOCAL GEMS ***

rails (2.0.2, 1.2.5, 1.2.3)

*** REMOTE GEMS ***

Bulk updating Gem source index for: http://gems.rubyforge.org/

Macintosh:activerecord rick$

If I look at that url with firefox, I get a text page with links to get a
yaml index, look at the gems online, and download ruby gems. If I click on
the second one, I seem to get randomly redirected to different shadow
servers most of which result in a forbidden error. A sampling:

http://gemmirror.xaop.net/gems/ gives Forbiddin
http://gems.rubyforge.vm.bytemark.co.uk/gems/ gets through
http://gems.rubyforge.mmmultiworks.com/gems/ gives Forbidden
http://rubyforge-gems.ruby-forum.com/gems/ gives Forbidden
http://rubyforge.rubyuser.de/gems/ gets through

RubyGems itself never accesses these URLs. Forbidden here is ok.

Here's what happens when I try a system update:

Macintosh:activerecord rick$ sudo gem update --system
Password:
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Updating rubygems-update
ERROR: While executing gem ... (Gem::GemNotFoundException)
   could not find rubygems-update locally or in a repository

Can you try again today? There was an incompatibility in trunk before RubyGems 1.2 was released, so gems released were incompatible and broke the index. They've all been cleaned up now, re-released with RubyGems 1.2.

There is one other bug with upgrading from RubyGems 1.1.1. If an older rubygems-update is not installed RubyGems may report "nothing to update". As a work-around, run `gem install rubygems-update -v 1.1.1` before `gem update --system`.

···

On Jun 23, 2008, at 13:33 PM, Rick DeNatale wrote:

If you run sudo rubygems_update now, does it install 1.2.0?

···

On Jun 25, 2008, at 21:54 PM, Une Bévue wrote:

Eric Hodel <drbrain@segment7.net> wrote:

As I responded to Rick's message, this should now be fixed. If you
get the "nothing to update" response, the workaround is to `gem
install rubygems-update -v 1.1.1` before updating RubyGems.

unfortunately, nope ))

~%> sudo gem update --system
Password:
Updating RubyGems
Updating metadata for 34 gems from http://gems.rubyforge.org/
..................................
complete
Nothing to update^
^^^^^^^^^^^^^^^^^

~%> sudo gem install rubygems-update -v 1.1.1
ERROR: could not find rubygems-update locally or in a repository
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

then i cd to my gems dir :

~%> cd gems
~/gems%> sudo gem install rubygems-update -v 1.1.1
Successfully installed rubygems-update-1.2.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 gem installed
^^^^^^^^^^^^^^^

Why do you care?

So that if you run
gem install RedCloth mongrel hpricot

it doesn't waste time reinstalling ones whose latest version matches the
existing one on the system.

So that we can be lazy and skip the 'gem list' phase of installing gems
:slight_smile:
-R

···

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

because it's been modified locally.

a @ http://codeforpeople.com/

···

On Jun 23, 2008, at 11:34 AM, Eric Hodel wrote:

Why do you care?

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

also, because the environment may not be the same installing something you *know* apriori has deps (LD_LIBRARY_PATH et al) compared to having gems automatically install a dep which is already there. for example i have two mysql installs - i need to be sure a gem install compiles against a particular one in some cases. if gems auto installs deps including previously installed ones it can easily surprise me be recompiling against the wrong installation (including all deps) if i'm unprepared.

a @ http://codeforpeople.com/

···

On Jun 23, 2008, at 11:34 AM, Eric Hodel wrote:

Why do you care?

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

It appears I am destined for poor luck with this upgrade.
Tried it in a fresh ubuntu install

sudo apt-get install ruby rubygems
# worked

sudo gem update --system
# said it worked

Now I get the infamous
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Ahh well. Back to installing from scratch.
-R

···

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

I can not confirm this.
Maybe a ppc or a macports issue?

$ gem env
RubyGems Environment:
   - RUBYGEMS VERSION: 1.2.0
   - RUBY VERSION: 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin8.11.1]
   - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
   - RUBY EXECUTABLE: /opt/local/bin/ruby
   - EXECUTABLE DIRECTORY: /opt/local/bin
   - RUBYGEMS PLATFORMS:
     - ruby
     - x86-darwin-8
   - GEM PATHS:
      - /opt/local/lib/ruby/gems/1.8
   - GEM CONFIGURATION:
      - :update_sources => true
      - :verbose => true
      - :benchmark => false
      - :backtrace => false
      - :bulk_threshold => 1000
   - REMOTE SOURCES:
      - http://gems.rubyforge.org/
$ gem --version
1.2.0

OSX 10.4.11

$ port version
Version: 1.600

hth. regards, Sandor Szücs

···

On 24.06.2008, at 07:03, Une Bévue wrote:

I've heard, weeks ago, that rubygems is broken over Mac OS X 10.4.11,
for a remote install, local is OK.

--

Sorry, i'm lost, not at this time :
~/gems%> sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version' for Gem:Module
(NoMethodError)
~/gems%> gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.1.0 (1.1.0)
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111)
[powerpc-darwin8.11.0]
  - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /opt/local/bin/ruby
  - RUBYGEMS PLATFORMS:
    - ruby
    - powerpc-darwin-8
  - GEM PATHS:
     - /opt/local/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
~/gems%>

···

Eric Hodel <drbrain@segment7.net> wrote:

If you run sudo rubygems_update now, does it install 1.2.0?

--
Une Bévue

RubyGems does not reinstall dependencies that already exist, so you don't need to worry about this part.

···

On Jun 23, 2008, at 10:52 AM, ara.t.howard wrote:

if gems auto installs deps including previously installed ones it can easily surprise me be recompiling against the wrong installation (including all deps) if i'm unprepared.

* Roger Pack <rogerpack2005@gmail.com> [2008-06-24 02:37:33 +0900]:

> Why do you care?

So that if you run
gem install RedCloth mongrel hpricot

it doesn't waste time reinstalling ones whose latest version matches the
existing one on the system.

So that we can be lazy and skip the 'gem list' phase of installing gems
:slight_smile:
-R

Exactly! It wastes time ..

···

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

--
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji@apcc21.net
KOREA

You have to manually remove the old gem and everything associated with it. I
tried removing gem via apt, but it didn't work. The only way I fixed it was
the old fashioned way. :slight_smile:

···

On Tue, Jun 24, 2008 at 2:25 PM, Roger Pack <rogerpack2005@gmail.com> wrote:

It appears I am destined for poor luck with this upgrade.
Tried it in a fresh ubuntu install

sudo apt-get install ruby rubygems
# worked

sudo gem update --system
# said it worked

Now I get the infamous
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Ahh well. Back to installing from scratch.
-R
--
Posted via http://www.ruby-forum.com/\.

What do u mean by "installing from scratch" ?

that is, there is a clean way to uninstall rubygems and re-install it
afterwards ?

on Mac OS X (at least 10.4.11 version) it is known there is a prob with
rubygems remote install...

downloading the gem and installing it with the -l option works
generally, but not for rubygems itself...

···

Roger Pack <rogerpack2005@gmail.com> wrote:

Back to installing from scratch.

--
Une Bévue

== How can I get RubyGems?

NOTE: If you have installed RubyGems using a package system you may want to
install a new RubyGems through the same packaging system.

It appears I am destined for poor luck with this upgrade.
Tried it in a fresh ubuntu install

sudo apt-get install ruby rubygems
# worked

sudo gem update --system
# said it worked

Now I get the infamous
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

You either ignored the NOTE in the release notes, or did not read the end of the update output. For my /usr/local/bin/ruby18 it prints:

RubyGems installed the following executables:
  /usr/local/bin/gem18

If `gem` was installed by a previous RubyGems installation, you may need
to remove it by hand.

It probably said something similar that you ignored (like RubyGems installing /usr/bin/gem1.8)

···

On Jun 24, 2008, at 12:25 PM, Roger Pack wrote:

I've kicked off a couple of groups on Launchpad to deal with the
problem of Ruby backports and Ruby packaging in general on Ubuntu.

The package archives of those groups contain a backport of 1.1.1
rubygems and Phusion passenger.

If you can help with testing the packages, or better still help us
write stuff then we can get to the nirvana where 'apt' and 'gem' play
nicely together that much sooner.

Neil Wilson
Brightbox

···

On Jun 24, 8:25 pm, Roger Pack <rogerpack2...@gmail.com> wrote:

It appears I am destined for poor luck with this upgrade.
Tried it in a fresh ubuntu install

sudo apt-get install ruby rubygems
# worked

sudo gem update --system
# said it worked

Now I get the infamous
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)

Ahh well. Back to installing from scratch.

Yes, i'm using G5-PPC, and have installed ruby using MacPorts.
But, afaik, rubygems has nothing to do with MacPorts, isn't it ?

my port version and mac os x version are the same as you...

are you using an Intel proc ?

it might be an issue on PPC only ?

regards,

···

Sandor Szücs <sandor.szuecs@fu-berlin.de> wrote:

I can not confirm this.
Maybe a ppc or a macports issue?

--
Une Bévue

Sorry, i'm lost, not at this time :
~/gems%> sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version' for Gem:Module
(NoMethodError)
~/gems%> gem env

For some reason I had a previous version of gem that was installed in
the wrong directory--like it should have been installed in
/user/rdp/home/i386/bin but instead it was in
/user/rdp/home/i386/bin/rdp/home/i386/bin or something.

Anyway, upgrading from this state,
download rubygems-1.2.0.tgz
ran ruby setup.rb on it.

now I get something similar:
/home/rdp/i386/bin/gem:14: undefined method `ruby_version' for
Gem:Module (NoMethodError)

This means that [in this one system] even installing it from scratch
again doesn't fix the problem. Not sure what to do.
Even deleting *gem*.rb from my ruby lib directory yields

/home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:29:
warning: already initialized constant OPS
/home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:32:
warning: already initialized constant OP_RE
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:24:
Platform is not a module (TypeError)
        from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15:in
`require'
        from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15
        from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7:in
`require'
        from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7
        from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769:in
`require'
        from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769
        from /home/rdp/i386/bin/gem:8:in `require'
        from /home/rdp/i386/bin/gem:8

Hmm. Thankfully it's on a system where I don't really NEED gems, but
they are convenient.
Thanks!
-R

···

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

oh yeah i see that - i guess i just tend to install deps by hand so this is perhaps partly my fault.

cheers.

a @ http://codeforpeople.com/

···

On Jun 23, 2008, at 12:19 PM, Eric Hodel wrote:

RubyGems does not reinstall dependencies that already exist, so you don't need to worry about this part.

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

Une Bév
ue wrote:

Back to installing from scratch.

What do u mean by "installing from scratch" ?

that is, there is a clean way to uninstall rubygems and re-install it
afterwards ?

In my case I download rubygems.xxx.gz, unzipped it, ran sudo ruby
setup.rb [which installed gem1.8, for some reason, instead of gem], then
I renamed gem to replace my existing gem and it was good to go. That's
what I meant :slight_smile:
Not very clean, no. I suppose I could have done an apt-get uninstall
rubygems first, but at least it seems to work this way.
-R

···

Roger Pack <rogerpack2005@gmail.com> wrote:

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