Kaye Ng wrote in post #1030792:
> Hi!
> I'm running windows 7.  Inside this directory, C:\Ruby192\bin , is the
> file 'gem' .   It's just 'gem' , no extension like .rb or anything.
>
> Opened it with a text editor:
> [...]
>
>
> My questions are:
> 1. Is this the main RubyGems application?  If it is, can someone explain
> to me the significance of it not having an extension like .rb ?
>

That is the RubyGems wrapper for the RubyGems CLI interface.

That script is called from gem.bat

> 2. Is RubyGems required for any simple library I would create myself?
> for example, mylibrary.rb
> Or is RubyGems used solely for downloaded gems like RedCloth?
>

gem and gem.bat are the CLI of RubyGems

Please see what RubyGems is for:

http://guides.rubygems.org/

> 3. If I have a file, test.rb , and the first line of code is:
> require 'rubygems' ,
> what file is it requiring? Is it the 'gem' file in C:\Ruby192\bin ?
>

No, is loading RubyGems loading mechanism. It will allow you libraries 
distributed as gems using simple "require"

--
Luis Lavena

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