Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] RubyGems 1.2.0

1 view
Skip to first unread message

Eric Hodel

unread,
Jun 21, 2008, 11:30:32 PM6/21/08
to
= Announce: RubyGems Release 1.2.0

Release 1.2.0 adds new features and fixes some bugs.

New features:

* RubyGems no longer performs bulk updates and instead only fetches
the gemspec
files it needs. Alternate sources will need to upgrade to RubyGems
1.2 to
allow RubyGems to take advantage of the new metadata updater. If a
pre 1.2
remote source is in the sources list, RubyGems will revert to the
bulk update
code for compatibility.
* RubyGems now has runtime and development dependency types. Use
#add_development_dependency and #add_runtime_dependency. All
typeless
dependencies are considered to be runtime dependencies.
* RubyGems will now require rubygems/defaults/operating_system.rb and
rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This allows
packagers and
ruby implementers to add custom behavior to RubyGems via these
files. (If
the RubyGems API is insufficient, please suggest improvements via the
RubyGems list.)
* /etc/gemrc (and windows equivalent) for global settings
* setup.rb now handles --vendor and --destdir for packagers
* `gem stale` command that lists gems by last access time

Bugs Fixed:

* File modes from gems are now honored, patch #19737
* Marshal Gem::Specification objects from the future can now be loaded.
* A trailing / is now added to remote sources when missing, bug #20134
* Gems with legacy platforms will now be correctly uninstalled, patch
#19877
* `gem install --no-wrappers` followed by `gem install --wrappers` no
longer
overwrites executables
* `gem pristine` now forces reinstallation of gems, bug #20387
* RubyGems gracefully handles ^C while loading .gemspec files from
disk, bug
#20523
* Paths are expanded in more places, bug #19317, bug #19896
* Gem::DependencyInstaller resets installed gems every install, bug
#19444
* Gem.default_path is now honored if GEM_PATH is not set, patch #19502

Other Changes Include:

* setup.rb
* stub files created by RubyGems 0.7.x and older are no longer
removed. When
upgrading from these ancient versions, upgrade to 1.1.x first to
clean up
stubs.
* RDoc is no longer required until necessary, patch #20414
* `gem server`
* Now completely matches the output of `gem generate_index` and
has correct content types
* Refreshes from source directories for every hit. The server will
no longer
need to be restarted after installing gems.
* `gem query --details` and friends now display author, homepage,
rubyforge url
and installed location
* `gem install` without -i no longer reinstalls dependencies if they
are in
GEM_PATH but not in GEM_HOME
* Gem::RemoteFetcher now performs persistent connections for HEAD
requests,
bug #7973

For a full list of changes to RubyGems and the contributor for each
change, see
the ChangeLog file.

Special thanks to Chad Wooley for backwards compatibility testing and
Luis
Lavena for continuing windows support.

== 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.

If you have a recent version of RubyGems (0.8.5 or later), then all
you need to do is:

$ gem update --system (you might need to be admin/root)

(Note: You may have to run the command twice if you have any previosly
installed rubygems-update gems).

If you have an older version of RubyGems installed, then you can still
do it in two steps:

$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (... here too)

If you don't have any gems install, there is still the pre-gem
approach to getting software ... doing it manually:

1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)

== To File Bugs

The RubyGems bug tracker can be found on RubyForge at:
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575

When filing a bug, `gem env` output will be helpful in diagnosing the
issue.

If you find a bug where RubyGems crashes, please provide debug output.
You can
do that with `gem --debug the_command`.

== Thanks

Keep those gems coming!

-- Jim & Chad & Eric (for the RubyGems team)

Peña, Botp

unread,
Jun 23, 2008, 12:17:41 AM6/23/08
to
From: Eric Hodel [mailto:drb...@segment7.net]
# = Announce: RubyGems Release 1.2.0

thank you very much for the update. it's now a lot faster and all my gems installed/uninstalled fine. all gems truelly updated.


Ripta Pasay

unread,
Jun 23, 2008, 12:44:21 AM6/23/08
to

I second that thank you! I was worried because gem kept updating the
cache on every single command. Updating to 1.2.0 solved that.

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

Leslie Viljoen

unread,
Jun 23, 2008, 2:17:22 AM6/23/08
to
On Sun, Jun 22, 2008 at 5:30 AM, Eric Hodel <drb...@segment7.net> wrote:
> = Announce: RubyGems Release 1.2.0
>
> Release 1.2.0 adds new features and fixes some bugs.
>
> New features:
>
> * RubyGems no longer performs bulk updates and instead only fetches the
> gemspec
> files it needs. Alternate sources will need to upgrade to RubyGems 1.2 to
> allow RubyGems to take advantage of the new metadata updater. If a pre 1.2
> remote source is in the sources list, RubyGems will revert to the bulk
> update
> code for compatibility.

Yahoo! I have been waiting for this!
The slower the internet access, the more appreciation you'll get.

Les

Sandro Paganotti

unread,
Jun 23, 2008, 4:23:28 AM6/23/08
to
[Note: parts of this message were removed to make it a legal post.]

Cool !
Thanks for the update !

Sandro

On Mon, Jun 23, 2008 at 6:17 AM, Leslie Viljoen <leslie...@gmail.com>
wrote:


--
Go outside! The graphics are amazing!

Saji N. Hameed

unread,
Jun 23, 2008, 4:59:48 AM6/23/08
to
Great...thanks for the update!
For a future release, I wish the install command would not reinstall
a gem already present in the system, or could give a warning that the
gem is already installed.

thanks,
saji

* Sandro Paganotti <sandro.p...@gmail.com> [2008-06-23 17:23:28 +0900]:

--
Saji N. Hameed

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

Roger Pack

unread,
Jun 23, 2008, 12:41:54 PM6/23/08
to
> * RubyGems no longer performs bulk updates and instead only fetches
> the gemspec
> files it needs. Alternate sources will need to upgrade to RubyGems
> 1.2 to
> allow RubyGems to take advantage of the new metadata updater. If a
> pre 1.2
> remote source is in the sources list, RubyGems will revert to the
> bulk update
> code for compatibility.

Nice new features! Sweetness.

Some notes:
~ sudo gem update --system
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Nothing to update
~ gem -v
1.1.1

1) I seem to be unable to upgrade. Hopefully this will be fixed soon by
some propagating gems.
2) It always does 'mass' bulk update each time I run this command,
despite the fact that my gem cache is up to date.

I look forward to installing it eventually, though :)
-R

ara.t.howard

unread,
Jun 23, 2008, 12:48:05 PM6/23/08
to

On Jun 21, 2008, at 9:30 PM, Eric Hodel wrote:

> = Announce: RubyGems Release 1.2.0
>
> Release 1.2.0 adds new features and fixes some bugs.

yes, we really all do love eric.

keep up the fantastic work man!

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama


John Barnette

unread,
Jun 23, 2008, 1:31:47 PM6/23/08
to
On Sat, Jun 21, 2008 at 8:30 PM, Eric Hodel <drb...@segment7.net> wrote:
> = Announce: RubyGems Release 1.2.0
>
> Release 1.2.0 adds new features and fixes some bugs.
>
> New features:
> * RubyGems now has runtime and development dependency types. Use
> #add_development_dependency and #add_runtime_dependency. All typeless
> dependencies are considered to be runtime dependencies.

FYI, You can include development dependencies during an install or
update with --development.

Also, a small API addition for folks doing conditional gem loading by
manually checking the source index or rescuing LoadError:

Gem.available?(gem, *specs)


~ j.

Eric Hodel

unread,
Jun 23, 2008, 1:34:05 PM6/23/08
to
On Jun 23, 2008, at 01:59 AM, Saji N. Hameed wrote:

> For a future release, I wish the install command would not reinstall
> a gem already present in the system, or could give a warning that the
> gem is already installed.

Why do you care?

Roger Pack

unread,
Jun 23, 2008, 1:37:33 PM6/23/08
to
> 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

ara.t.howard

unread,
Jun 23, 2008, 1:49:26 PM6/23/08
to

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

> Why do you care?

because it's been modified locally.

ara.t.howard

unread,
Jun 23, 2008, 1:52:32 PM6/23/08
to

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

> Why do you care?


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.

Une Bévue

unread,
Jun 23, 2008, 2:00:47 PM6/23/08
to
Eric Hodel <drb...@segment7.net> wrote:

> Release 1.2.0 adds new features and fixes some bugs.

I'm sorry to say i was unable to upgrade :
~%> sudo gem update --system


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

OS : MacOS X 10.4.11
~%> ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [powerpc-darwin8.11.0]
~%> gem --version
1.1.0

--
Une Bévue

Eric Hodel

unread,
Jun 23, 2008, 2:19:12 PM6/23/08
to
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.

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

Une Bévue

unread,
Jun 23, 2008, 2:52:30 PM6/23/08
to
Une Bévue <unbewus...@weltanschauung.com.invalid> wrote:

> I'm sorry to say i was unable to upgrade :

and more :

~%> sudo gem install amalgalite
Password:


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

ERROR: could not find amalgalite locally or in a repository

--
Une Bévue

Rick DeNatale

unread,
Jun 23, 2008, 4:33:39 PM6/23/08
to
On Mon, Jun 23, 2008 at 2:53 PM, Une Bévue
<unbewus...@weltanschauung.com.invalid> wrote:

> Une Bévue <unbewus...@weltanschauung.com.invalid> wrote:
>
> > I'm sorry to say i was unable to upgrade :
>

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

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


Here's my current gem setup

Macintosh:activerecord rick$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.1.0 (1.1.0)
- RUBY VERSION: 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.11.1]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- 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
Macintosh:activerecord rick$ gem --version
1.1.0

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

Craig Demyanovich

unread,
Jun 23, 2008, 5:44:11 PM6/23/08
to
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

ara.t.howard

unread,
Jun 23, 2008, 8:04:09 PM6/23/08
to

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.

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

cheers.

Saji N. Hameed

unread,
Jun 23, 2008, 8:29:30 PM6/23/08
to
* Roger Pack <rogerp...@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
> :)
> -R

Exactly! It wastes time ..


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

--

Damien McKenna

unread,
Jun 24, 2008, 12:50:44 AM6/24/08
to
Personally I'm having a problem with the latest update - my mongrels
are throwing up on XHR:

Mon Jun 23 23:35:49 -0400 2008: HTTP parse error, malformed request
(127.0.0.1): #<Mongrel::HttpParserError: Invalid HTTP format, parsing
fails.>

It is only XHR, all plain HTML requests are fine. I tried going back
to 1.1.1 to no avail.

My submitted bug report:
http://rubyforge.org/tracker/index.php?func=detail&aid=20804&group_id=126&atid=575

Some additional details:
http://www.mc-kenna.com/2008/06/rubygems-120-causing-problems-for-anyone-else/

Any help would be greatly appreciated. Thanks.

Damien McKenna

unread,
Jun 24, 2008, 12:57:06 AM6/24/08
to
On Jun 24, 12:50 am, Damien McKenna <dam...@mc-kenna.com> wrote:
> Personally I'm having a problem with the latest update - my mongrels
> are throwing up on XHR:

Not sure if this caused the problem, but I noticed my ~/.gemrc
included two references to github. I removed one of them, restarted
the mongrels and... it started working again. Very odd.

Apologies for the wasted braincells.

Damien

Une Bévue

unread,
Jun 24, 2008, 1:02:35 AM6/24/08
to
Rick DeNatale <rick.d...@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

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.
--
Une Bévue

Roger Pack

unread,
Jun 24, 2008, 3:25:29 PM6/24/08
to
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

Tristin Davis

unread,
Jun 24, 2008, 3:49:00 PM6/24/08
to
[Note: parts of this message were removed to make it a legal post.]

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. :)

Une Bévue

unread,
Jun 25, 2008, 1:17:07 AM6/25/08
to
Roger Pack <rogerp...@gmail.com> 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 ?

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...
--
Une Bévue

Roger Pack

unread,
Jun 25, 2008, 10:08:27 AM6/25/08
to
Une Bév

ue wrote:
> Roger Pack <rogerp...@gmail.com> 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 :)
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.

Eric Hodel

unread,
Jun 25, 2008, 5:08:27 PM6/25/08
to
On Jun 23, 2008, at 13:33 PM, Rick DeNatale 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
>
> *** 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`.

Eric Hodel

unread,
Jun 25, 2008, 5:13:23 PM6/25/08
to
On Jun 23, 2008, at 11:03 AM, Une Bévue wrote:
> Eric Hodel <drb...@segment7.net> wrote:
>> Release 1.2.0 adds new features and fixes some bugs.
>
> I'm sorry to say i was unable to upgrade :
> ~%> sudo gem update --system
> 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

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.

Eric Hodel

unread,
Jun 25, 2008, 5:34:56 PM6/25/08
to
On Jun 24, 2008, at 12:25 PM, Roger Pack wrote:
>> == 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)


Une Bévue

unread,
Jun 26, 2008, 12:53:45 AM6/26/08
to
Eric Hodel <drb...@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
^^^^^^^^^^^^^^^

however :
~/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]
....

I'm running Mac OS X 10.4.11
--
Une Bévue

Neil Wilson

unread,
Jun 26, 2008, 3:58:42 AM6/26/08
to
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.

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.

https://edge.launchpad.net/~ubuntu-ruby-backports
https://edge.launchpad.net/~ubuntu-ruby

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
www.brightbox.co.uk

Sandor Szücs

unread,
Jun 27, 2008, 5:09:00 AM6/27/08
to
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.


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
--


Vassilis Rizopoulos

unread,
Jun 27, 2008, 7:07:01 AM6/27/08
to
Eric Hodel wrote:
> = Announce: RubyGems Release 1.2.0
>
> Release 1.2.0 adds new features and fixes some bugs.
>
Very cool. One thing though:
I run into an issue with multiple gem servers: I added the datamapper
server for their gems (still at 1.1.0 at the time) and one day the DM
server started returning 404s for the yaml list of gems.
Now, the 1.1.0 version wouldn't even allow me to remove the server
because it would try to do a bulk update and bomb out on the 404.
Thankfully 1.2.0 fixed this :).
Now the problem is that any problem with any of the servers interrupts
the gem operation. Gem should gracefully handle gem server failures and
attempt list, search, install and update with the remaining.
That's not much to ask for, is it? ;)
Cheers,
V.-


--
http://www.braveworld.net/riva


Une Bévue

unread,
Jun 27, 2008, 7:21:17 AM6/27/08
to
Sandor Szücs <sandor...@fu-berlin.de> wrote:

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

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,
--
Une Bévue

Sandor Szücs

unread,
Jun 27, 2008, 9:17:50 AM6/27/08
to
On 27.06.2008, at 13:22, Une Bévue wrote:

> Sandor Szücs <sandor...@fu-berlin.de> wrote:
>
>> I can not confirm this.
>> Maybe a ppc or a macports issue?
>
> Yes, i'm using G5-PPC, and have installed ruby using MacPorts.
> But, afaik, rubygems has nothing to do with MacPorts, isn't it ?

I am unsure, but I think you are right.

Btw. there is a package rb-rubygems from macports, but I
don't use it.
$ port provides /opt/local/bin/gem
/opt/local/bin/gem is not provided by a MacPorts port.
I use gem in the MacPorts path:
$ which gem
/opt/local/bin/gem
It's really a file not a symlink.
$ ls -l /opt/local/bin/gem
-rwxr-xr-x 1 root admin 788 May 6 10:18 /opt/local/bin/gem*


> my port version and mac os x version are the same as you...
>
> are you using an Intel proc ?

yes a macbook with x86

> it might be an issue on PPC only ?


It looks like that.

regards, Sandor Szücs
--

Une Bévue

unread,
Jun 27, 2008, 11:20:33 AM6/27/08
to
Sandor Szücs <sandor...@fu-berlin.de> wrote:

> > it might be an issue on PPC only ?
>
> It looks like that.

in my opinion, it's clear enough.
unfortunately the latest rubygems from MacPorts is 1.1.1 :
~%> port search rb-rubygems
rb-rubygems ruby/rb-rubygems 1.1.1 a package
management framework for Ruby

and, i think, it is not clean to install it from MacPorts after having
installed it from ruby, MacPorts will be confused and even might refuse
to install it.

i think here i have to report a sepcific issue for 10.4.11 && PPC...

best,
--
Une Bévue

Orion Delwaterman

unread,
Jun 27, 2008, 6:01:22 PM6/27/08
to
Uh something appears to be broken with sources other than the main ruby
site. We updated our gem server with ruby gems 1.2.0 and from another
server we are getting the following problems:

[root@AppFoot ~]# gem -v
1.2.0
[root@AppFoot ~]# gem list sonic_logger --remote

*** REMOTE GEMS ***

sonic_logger (0.1.3)
[root@AppFoot ~]# gem install sonic_logger
ERROR: could not find gem sonic_logger locally or in a repository

Anyone else having this issue?

Eric Hodel

unread,
Jun 30, 2008, 1:46:49 PM6/30/08
to
On Jun 25, 2008, at 21:54 PM, Une Bévue wrote:
> Eric Hodel <drb...@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
> ^^^^^^^^^^^^^^^

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

Eric Hodel

unread,
Jun 30, 2008, 2:06:33 PM6/30/08
to
On Jun 27, 2008, at 15:01 PM, Orion Delwaterman wrote:
> Uh something appears to be broken with sources other than the main
> ruby
> site. We updated our gem server with ruby gems 1.2.0 and from another
> server we are getting the following problems:
>
> [root@AppFoot ~]# gem -v
> 1.2.0
> [root@AppFoot ~]# gem list sonic_logger --remote
>
> *** REMOTE GEMS ***
>
> sonic_logger (0.1.3)
> [root@AppFoot ~]# gem install sonic_logger
> ERROR: could not find gem sonic_logger locally or in a repository

There was a bug fix post 1.2.0 for gems that have "" for a platform
instead of Gem::Platform::RUBY.

Une Bévue

unread,
Jul 1, 2008, 12:25:38 PM7/1/08
to
Eric Hodel <drb...@segment7.net> wrote:

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

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%>
--
Une Bévue

Roger Pack

unread,
Jul 1, 2008, 1:16:07 PM7/1/08
to
> 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

Orion Delwaterman

unread,
Aug 4, 2008, 12:54:20 PM8/4/08
to

How do I check or set the platform of my gem?

Roger Pack

unread,
Aug 4, 2008, 1:23:52 PM8/4/08
to
>
> How do I check or set the platform of my gem?

~ irb
>> Gem::Platform::RUBY
=> "ruby"

Orion Delwaterman

unread,
Aug 4, 2008, 3:23:04 PM8/4/08
to
Roger Pack wrote:
>>
>> How do I check or set the platform of my gem?
>
> ~ irb
>>> Gem::Platform::RUBY
> => "ruby"
>
>
> ?

Yeah mine is coming out as "ruby". Anyway I just regenerated the index
on the server and that seemed to solve the issue. Strange though

Roger Pack

unread,
Aug 16, 2008, 5:34:03 PM8/16/08
to
> /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

As a note--was able to overcome this by doing rm -rf .../lib/ruby,
reinstalling ruby, and then reinstalling gems, in case it's useful to
anyone else.
-=R

Giang Nguyen

unread,
Nov 7, 2009, 11:59:55 AM11/7/09
to
Orion Delwaterman wrote:
> Roger Pack wrote:
>>>
>>> How do I check or set the platform of my gem?
>>
>> ~ irb
>>>> Gem::Platform::RUBY
>> => "ruby"
>>
>>
>> ?
>
> Yeah mine is coming out as "ruby". Anyway I just regenerated the index
> on the server and that seemed to solve the issue. Strange though

Did you successfully install sonic_logger gem? I'm facing the same
problem as in your first post.

Can anyone tell me how to fix? where to find sonic_logger gem?
thanks

Manish Nautiyal

unread,
Nov 29, 2010, 12:55:54 AM11/29/10
to
I've just had the same problem trying to upgrade rubygems from 1.2.0 to
1.3.7.

Setp-1)
So I just downloaded rubygems-update-1.3.7.gem from
http://rubyforge.org/frs/?group_id=126

Setp-2)
gem install rubygems-update-1.3.7.gem

Setp-3)
update_rubygems


and it work for me.

Ryan Davis

unread,
Nov 29, 2010, 3:29:43 AM11/29/10
to

On Nov 28, 2010, at 21:55 , Manish Nautiyal wrote:

> I've just had the same problem trying to upgrade rubygems from 1.2.0 to
> 1.3.7.
>
> Setp-1)
> So I just downloaded rubygems-update-1.3.7.gem from
> http://rubyforge.org/frs/?group_id=126
>
> Setp-2)
> gem install rubygems-update-1.3.7.gem
>
> Setp-3)
> update_rubygems
>
> and it work for me.

This is an unfortunate bug in the self-updater of 1.2.0.


0 new messages