After adding to buildr.cmd -I parameter

like this
@ruby -I C:/work/opensource/ruby/buildr/lib "c:/PROGRA~1/ruby/bin/buildr" %*

I have an exception

c:/PROGRA~1/ruby/bin/buildr:16:in `load': no such file to load -- buildr
(LoadError)
       from c:/PROGRA~1/ruby/bin/buildr:16

bin/buildr is a standard

#!c:/PROGRA~1/ruby/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'buildr' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'
version = "> 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
 version = $1
 ARGV.shift
end
gem 'buildr', version
load 'buildr'    # <========== EXCEPTION GOES FROM HERE


What does it mean??

I have exception both with space and without in -I parameter
-I path
-Ipath

PS

ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
gem --version
0.9.4

On 7/11/07, Jim Weirich <[EMAIL PROTECTED]> wrote:


On Jul 11, 2007, at 9:50 AM, Anatol Pomozov wrote:

[...]
> But I constantly develop this project and after change in buildr
> sources I want to check how it works. To it I need to install build
> and install gem again. It is 3 quite long steps. I would like to
> avoid it.
>
> What I want is that gem pickup sources of some gem from directory
> not from gem library directory. Is it possible??
[... GEM_SKIP elided ...]
>
> What is the correct way of doing such thing??

All you need to do is arrange that the development directories appear
on the Ruby Load path.  Then rubygems will never kick in and activate
the gem installed versions.  Generally, I do this from the project root:

    ruby -Ilib test/test_something.rb

(Actually, Rake does it, but you get the idea).


--
anatol
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to