Quick Introduction to RubyGems

Hi folks,

If any of you are not aware of the power and ease of use of RubyGems,
then you might find the following introduction entertaining and
useful. It covers all the important operations, but is short enough
to read right through.

http://rubygems.rubyforge.org/wiki/wiki.pl?Quick_Introduction

Cheers,
Gavin

[snip]

http://rubygems.rubyforge.org/wiki/wiki.pl?Quick_Introduction

Nice work Gavin, provides a good insight how to use rubygems.

···

On Thu, 25 Mar 2004 06:49:43 +0900, Gavin Sinclair wrote:


Simon Strandgaard

Gavin Sinclair wrote:

Hi folks,

If any of you are not aware of the power and ease of use of RubyGems,
then you might find the following introduction entertaining and
useful. It covers all the important operations, but is short enough
to read right through.

http://rubygems.rubyforge.org/wiki/wiki.pl?Quick_Introduction

Cheers,
Gavin

I’m running WinXP 1.8 ruby and get this error.

C:\ruby\gems\rubygems-0.2.0>gem --remote -list
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:78:in
find_latest_v alid_package_in_caches': Could not find -list > 0.0.0 (RuntimeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:15:in
install’
from c:/ruby/bin/gem:74

C:\ruby\gems\rubygems-0.2.0>

···

What did i do wrong ?:slight_smile: The install went smoothe…Which remote server
am i accessing?

Also, when i tried --remote-list, like it looks on the page of course i
get an error because a space is necessary --remote -list(for people who
dont know about options like me)

Also, on http://rubygems.rubyforge.org/wiki/wiki.pl?Quick_Introduction,
a couple typos.

Searching re>mr< Ruby platform!

I notice the paths(\ to /) are different. does c:/ === c:\ ?

Seems cool, i’d like to check it out, so clue me.

:stuck_out_tongue:

Fantastic! Thanks for this, Gavin S. This was exactly the sort of thing
I needed to stop ignoring this blossoming tool and figure out what it’s
all about.

···

On Mar 24, 2004, at 2:49 PM, Gavin Sinclair wrote:

If any of you are not aware of the power and ease of use of RubyGems,
then you might find the following introduction entertaining and
useful. It covers all the important operations, but is short enough
to read right through.

http://rubygems.rubyforge.org/wiki/wiki.pl?Quick_Introduction


(-, /\ / / //

Paul Vudmaska said:

I’m running WinXP 1.8 ruby and get this error.

C:\ruby\gems\rubygems-0.2.0>gem --remote -list

Did you get the CVS version of RubyGems? The latest CVS version has been
refactored to make the --remote/–local destinction orthoganal to the
other options. So you would need to say …

gem --remote --list

(Notice the two dashes on the list option).

Give that a try.

···


– Jim Weirich jim@weirichhouse.org http://onestepback.org

“Beware of bugs in the above code; I have only proved it correct,
not tried it.” – Donald Knuth (in a memo to Peter van Emde Boas)

Jim Weirich wrote:

Paul Vudmaska said:

I’m running WinXP 1.8 ruby and get this error.

C:\ruby\gems\rubygems-0.2.0>gem --remote -list

Did you get the CVS version of RubyGems? The latest CVS version has been
refactored to make the --remote/–local destinction orthoganal to the
other options. So you would need to say …

gem --remote --list

(Notice the two dashes on the list option).

Give that a try.

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

···

C:\ruby\gems\rubygems-0.2.0>cvs
‘cvs’ is not recognized as an internal or external command,
operable program or batch file.

C:\ruby\gems\rubygems-0.2.0>gem --remote --list
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:78:in
find_latest_v alid_package_in_caches': Could not find --list > 0.0.0 (RuntimeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:15:in
install’
from c:/ruby/bin/gem:74

:stuck_out_tongue:

“Jim Weirich” jim@weirichhouse.org writes:

Paul Vudmaska said:

I’m running WinXP 1.8 ruby and get this error.

C:\ruby\gems\rubygems-0.2.0>gem --remote -list

Did you get the CVS version of RubyGems? The latest CVS version has been
refactored to make the --remote/–local destinction orthoganal to the
other options. So you would need to say …

gem --remote --list

(Notice the two dashes on the list option).

Give that a try.

gem --remote --list
/usr/local/lib/ruby/site_ruby/1.9/rubygems/remote_installer.rb:78:in find_latest_valid_package_in_caches': Could not find --list > 0.0.0 (RuntimeError) from /usr/local/lib/ruby/site_ruby/1.9/rubygems/remote_installer.rb:15:in install’
from /usr/local/bin/gem:74

This is with a new RubyGems installation.

Jim

···


Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“Any sufficiently complicated C or Fortran program contains an ad hoc
informally-specified bug-ridden slow implementation of half of Common Lisp.”
– Greenspun’s Tenth Rule of Programming

“Paul Vudmaska” paul@vudmaska.com wrote in message

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

C:\ruby\gems\rubygems-0.2.0>cvs
‘cvs’ is not recognized as an internal or external command,
operable program or batch file.

You may want to try TortoiseCVS from:

HTH,
– shanko

Paul Vudmaska wrote:

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

I did not see the error you got when you tried

gem --remote-list
···


– Jim Weirich jim@weirichhouse.org http://onestepback.org

“Beware of bugs in the above code; I have only proved it correct,
not tried it.” – Donald Knuth (in a memo to Peter van Emde Boas)

Paul Vudmaska wrote:

Jim Weirich wrote:

Paul Vudmaska said:

I’m running WinXP 1.8 ruby and get this error.

C:\ruby\gems\rubygems-0.2.0>gem --remote -list

Did you get the CVS version of RubyGems? The latest CVS version
has been refactored to make the --remote/–local destinction
orthoganal to the other options. So you would need to say …

gem --remote --list

(Notice the two dashes on the list option).

Give that a try.

Okay…I did not get the cvs - have to find out how on windows 2
dashes did not work :frowning: --------- C:\ruby\gems\rubygems-0.2.0>cvs
‘cvs’ is not recognized as an internal or external command,
operable program or batch file.

C:\ruby\gems\rubygems-0.2.0>gem --remote --list
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:78:in
find_latest_v alid_package_in_caches': Could not find --list > 0.0.0 (RuntimeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:15:in
install’ from c:/ruby/bin/gem:74

:stuck_out_tongue:

try:
gem --search=“[0-z]”

for some reason --remote-list doesn’t seem to be working for me, but
search does, and most gems have some letter from [0-z] in their name.

Jim Weirich jim@weirichhouse.org writes:

Paul Vudmaska wrote:

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

I did not see the error you got when you tried

gem --remote-list

It looks like Paul is having a different problem than I am. BTW, I’m using Mac
OS X.

~> gem --remote-list
gem: invalid option: --remote-list
~> gem --remote --list
/usr/local/lib/ruby/site_ruby/1.9/rubygems/remote_installer.rb:78:in find_latest_valid_package_in_caches': Could not find --list > 0.0.0 (RuntimeError) from /usr/local/lib/ruby/site_ruby/1.9/rubygems/remote_installer.rb:15:in install’
from /usr/local/bin/gem:74

Jim

···


Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“Don’t eat crackers in the bed of your future or you’ll get … scratchy!”
– The Tick

Jim Weirich wrote:

Paul Vudmaska wrote:

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

I did not see the error you got when you tried

gem --remote-list

Here ya go with both…–remote-list and --remote --list, i think they
are the same.
WinXP, ruby 1.8
------------------------> --remote -list
C:\Documents and Settings\paul vudmaska>gem --remote -list
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:78:in
find_latest_v alid_package_in_caches': Could not find -list > 0.0.0 (RuntimeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:15:in
install’
from c:/ruby/bin/gem:74

----------------------> --remote --list
C:\Documents and Settings\paul vudmaska>gem --remote --list
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:78:in
find_latest_v alid_package_in_caches': Could not find --list > 0.0.0 (RuntimeError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:15:in
install’
from c:/ruby/bin/gem:74

Jim Weirich jim@weirichhouse.org writes:

Paul Vudmaska wrote:

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

I did not see the error you got when you tried

gem --remote-list

It looks like Paul is having a different problem than I am. BTW, I’m using Mac
OS X.

~>> gem --remote-list

gem: invalid option: --remote-list

Do you have the CVS version or the released version? What does ‘gem
–help’ say? What does ‘gem --list’ do?

NOTE: everybosy who is currently using RubyGems please take a quick
look at

http://rubygems.rubyforge.org/wiki/wiki.pl?NewVsOldInterface

It will clear up some of this confusion.

Cheers,
Gavin

···

On Thursday, March 25, 2004, 10:49:27 PM, Jim wrote:

Hi Paul.

C:\Documents and Settings\paul vudmaska>gem --remote -list

try “–remote-list” (no space between “–remote” and “-list”).

Regards,
Pit

Gavin Sinclair wrote:

Jim Weirich jim@weirichhouse.org writes:

Paul Vudmaska wrote:

Okay…I did not get the cvs - have to find out how on windows
2 dashes did not work :frowning:

I did not see the error you got when you tried

gem --remote-list

It looks like Paul is having a different problem than I am. BTW, I’m using Mac
OS X.

~>> gem --remote-list

gem: invalid option: --remote-list

Do you have the CVS version or the released version? What does ‘gem
–help’ say? What does ‘gem --list’ do?

%>gem --list
sources-0.0.1

%> gem --help
C:\Documents and Settings\paul vudmaska>gem --help
Usage: gem [options]
-b, --build=GEMSPEC Build a gem file from spec
-i, --install=GEMFILE Install a gem from local gem file
-u, --uninstall=GEMNAME Uninstall a previously installed gem
–info=GEMNAME Display details about an installed Gem
–dir=DIRNAME Installation directory for the Gem
–gen-rdoc Generate RDoc documentation for the Gem
–list List installed Gems
–search=SEARCHPATTERN Search for Gems in the remote
repository
–force Force Gem to intall, bypassing
dependency c
hecks
–remote-install=GEMNAME Auto-download and install a Gem and
its dep
endencies
–http-proxy=HTTPPROXYHOST (unimplemented) HTTP Proxy to use
for remot
e operations
–version=GEMVERSION Version of Gem to perform operation on
–verify=GEMFILE Verify Gem file against its
internal checks
um
–alien Report ‘unmanaged’ or rogue files
in the Ge
m repository
–help show this message

C:\Documents and Settings\paul vudmaska>

···

On Thursday, March 25, 2004, 10:49:27 PM, Jim wrote:


Seems to look like it should, i guess,

Thanks,:paul

Gavin Sinclair gsinclair@soyabean.com.au writes:

[snip]

It looks like Paul is having a different problem than I am. BTW, I’m using Mac
OS X.

~>> gem --remote-list

gem: invalid option: --remote-list

Do you have the CVS version or the released version?

The released version.

What does ‘gem --help’ say?

~> gem --help
Usage: gem [options]
-b, --build=GEMSPEC Build a gem file from spec

What does ‘gem --list’ do?

~> gem --list
rake-0.3.1
sources-0.0.1
log4r-1.0.5
RedCloth-2.0.2
lafcadio-0.3.4

NOTE: everybosy who is currently using RubyGems please take a quick
look at

http://rubygems.rubyforge.org/wiki/wiki.pl?NewVsOldInterface

It will clear up some of this confusion.

It certainly does. The released version doesn’t support ‘–remote --list’,
which explains why it didn’t work for me.

Thanks for your help, Gavin.

Jim

···

On Thursday, March 25, 2004, 10:49:27 PM, Jim wrote:

Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“Abraham Lincoln didn’t die in vain. He died in Washington, D.C.”
– Firesign Theatre

Pit Capitain wrote:

Hi Paul.

C:\Documents and Settings\paul vudmaska>gem --remote -list

try “–remote-list” (no space between “–remote” and “-list”).

Regards,
Pit

Hello, I tried

gem --remote --list
gem --remote -list
gem --remote-list

The last gives me an invalid option error.

No big deal, i’ve got other fires to put out for now.

Thanks,paul