[Rubygems-developers] [ rubygems-Bugs-27211 ] gem contents does not show prefix by default

noreply at rubyforge.org noreply at rubyforge.org
Thu Apr 22 00:00:13 EDT 2010


Bugs item #27211, was opened at 2009-09-29 01:39
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27211&group_id=126

Category: None
>Group: v1.3.x
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Mamoru Tasaka (mtasaka)
>Assigned to: Eric Hodel (drbrain)
Summary: gem contents does not show prefix by default

Initial Comment:
On Fedora, with
rubygems-1.3.5-1.fc12.noarch
ruby-1.8.6.369-3.fc12.i686

$ gem contents --help shows:
------------------------------------------------
  Defaults:
    --no-lib-only --prefix
------------------------------------------------

However prefix is not shown by default:
------------------------------------------------
$ gem contents --lib-only gettext
lib
lib/gettext
lib/gettext/tools.rb
lib/gettext/poparser.rb
lib/gettext/textdomain.rb
lib/gettext/textdomain_manager.rb
.....
------------------------------------------------

The attached patch seems to work.

----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2010-04-21 21:00

Message:
I have updated the command's behavior to match the documented defaults.

----------------------------------------------------------------------

Comment By: Mamoru Tasaka (mtasaka)
Date: 2009-09-29 03:05

Message:
Also I think the explanation of $ gem contents:
------------------------------------------------
    --[no-]prefix  Don't include installed path prefix
------------------------------------------------
is confusing because actually with "--prefix" prefix
_is_ shown.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27211&group_id=126


More information about the Rubygems-developers mailing list