>>> Seems like when spec gem is installed on IronRuby and Ruby then IronRuby 
>>> looks in the Ruby folder for the gem.

No, that's not a correct assumption. :) RubyGems will look for gems in a path 
relative to itself if the GEM_PATH environment variable isn't set. If it is set 
(which dev.bat sets it), then RubyGems will always look on that path, 
regardless of what Ruby implementation you use.

Are you running IronRuby from a dev.bat prompt, or some other way? If that's 
not the behavior you want, make sure to unset that variable at the command line 
(set GEM_PATH=) or from your Ruby scripts themselves (ENV['GEM_PATH'] = nil), 
but the latter is preferred.

~js

________________________________
From: ironruby-core-boun...@rubyforge.org [ironruby-core-boun...@rubyforge.org] 
on behalf of Mohammad Azam [azamsh...@gmail.com]
Sent: Tuesday, September 22, 2009 9:08 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries 
instead of IronRuby gems

I uninstall Ruby spec gem and it worked fine. Seems like when spec gem is 
installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the 
gem.

On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville 
<jdevi...@microsoft.com<mailto:jdevi...@microsoft.com>> wrote:

More info please :)



From: 
ironruby-core-boun...@rubyforge.org<mailto:ironruby-core-boun...@rubyforge.org> 
[mailto:ironruby-core-boun...@rubyforge.org<mailto:ironruby-core-boun...@rubyforge.org>]
 On Behalf Of Mohammad Azam
Sent: Tuesday, September 22, 2009 2:33 PM
To: ironruby-core@rubyforge.org<mailto:ironruby-core@rubyforge.org>
Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries 
instead of IronRuby gems




--
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com<http://www.highoncoding.com>
www.azamsharp.com<http://www.azamsharp.com>

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core




--
Mohammad Azam
MVP (Microsoft Valuable Professional)
www.highoncoding.com<http://www.highoncoding.com>
www.azamsharp.com<http://www.azamsharp.com>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to