[Rubygems-developers] Question on GEM_PATH
drbrain at segment7.net
Mon Dec 17 17:09:11 EST 2007
On Dec 16, 2007, at 12:33 PM, Chad Woolley wrote:
> On Dec 16, 2007 3:16 AM, Eric Hodel <drbrain at segment7.net> wrote:
>> On Dec 15, 2007, at 23:05 PM, Chad Woolley wrote:
>>> When I use GEM_PATH to add an additional local repository to be
>>> what dirs must be in that repository? gems? specifications? docs?
>>> cache? others?
>> The directory doesn't even need to exist. RubyGems will create it
>> everything it needs inside it when you reference it, provided you
>> permission to do so.
> I meant when I was reading an already-existing gem out of a repo on
> GEM_PATH, with the 'gem' method. What dirs does this require the gem
> to be in? just 'gem' and 'specifications', or more?
For require to work you need:
gems/<full_name> is where the files go
specifications/<full_name>.gemspec is where a Ruby gemspec goes
More information about the Rubygems-developers