[Rubygems-developers] Re: Rubygems options...

Richard Kilmer rich at infoether.com
Mon Jul 12 14:50:53 EDT 2004


Cool...I will get it patched into RubyGems and then we can figure out how to
solve things 'correctly'.

-rich


On 7/12/04 2:37 PM, "Andreas Schwarz" <andreas at andreas-s.net> wrote:

> It works, thank you.
> 
> Andreas
> 
> Richard Kilmer wrote:
> 
>> Ok...this feels evil...but replace the ARGV.clone with this:
>> 
>> !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
>> 
>> We can properly fix this, but until then, I am trying to get this to work
>> for you.
>> 
>> -rich
>> 
>> 
>> On 7/12/04 2:20 PM, "Andreas Schwarz" <andreas at andreas-s.net> wrote:
>> 
>> 
>>> Richard Kilmer wrote:
>>> 
>>> 
>>>> Andreas,
>>>> 
>>>> Could you try to change your gem script, which you can find with:
>>>> 
>>>>  which gem
>>>> 
>>>> And apply the following patch:
>>>> 
>>>> Index: gem
>>>> ===================================================================
>>>> RCS file: /var/cvs/rubygems//rubygems/bin/gem,v
>>>> retrieving revision 1.79
>>>> diff -r1.79 gem
>>>> 6c6
>>>> < Gem::GemRunner.new.run(ARGV)
>>>> ---
>>>> 
>>>> 
>>>>> Gem::GemRunner.new.run(ARGV.clone)
>>>> 
>>>> 
>>>> NOTE: it just passes a ARGV.clone rather than and ARGV
>>>> 
>>>> That should get the arguments sent down to the extconf.rb...let me know if
>>>> that works.
>>> 
>>> Doesn't work, still the same problem:
>>> # gem install dbd-sqlite-0.1.0.gem -- --with-opt-dir=/sw/
>>> ERROR:  While executing gem ... (Gem::CommandLineError)
>>>     Too many gem names (dbd-sqlite-0.1.0.gem, --with-opt-dir=/sw/);
>>> please specify only one
>>> 
>> 
>> 
>> 
> 
> 




More information about the Rubygems-developers mailing list