[Rubygems-developers] Swap library directory of some gem to development source tree
anatol.pomozov at gmail.com
Wed Jul 11 10:06:14 EDT 2007
After adding to buildr.cmd -I parameter
@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
bin/buildr is a standard
# 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.
version = "> 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
gem 'buildr', version
load 'buildr' # <========== EXCEPTION GOES FROM HERE
What does it mean??
I have exception both with space and without in -I parameter
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
On 7/11/07, Jim Weirich <jim.weirich at gmail.com> 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).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rubygems-developers