<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Could you change your igem.bat to the following, and set
IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having
different GEM_PATHs for MRI and for IronRuby.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>@echo off<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>setlocal<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>if defined IRONRUBY_GEM_PATH
(<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'> set
GEM_PATH=%IRONRUBY_GEM_PATH%<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>)<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>@"ir.exe"
"%~dpn0" %*<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Shri<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] <b>On Behalf Of </b>Ivan Porto
Carrero<br>
<b>Sent:</b> Thursday, March 26, 2009 1:42 PM<br>
<b>To:</b> ironruby-core@rubyforge.org<br>
<b>Subject:</b> Re: [Ironruby-core] require 'spec' not working<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><i>igem env</i> gives you all
the paths rubygems look in<br>
<br>
I actually want a separate list of gems for IronRuby and my Ruby install hence
I added a different subdir as my gem path for ironruby.<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>2009/3/26 Shri Borde <<a
href="mailto:Shri.Borde@microsoft.com">Shri.Borde@microsoft.com</a>><o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>You should not be editing
ir.exe.config as you would end up adding new paths for every new library you
want to use, which would not be a good thing. Using GEM_PATH is the right
solution as you would be using the power of rubygems to find the gems. </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>You should run “igem query
--local --name-matches spec” to make sure that RubyGems will indeed be able to
find the gem. I wish there was a verbose mode where gem could tell you the
paths it looked in, but I don’t see anything at <a
href="http://docs.rubygems.org/read/chapter/10#page35" target="_blank">http://docs.rubygems.org/read/chapter/10#page35</a>.
Does anyone know of a verbose option?</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Thanks,</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Shri</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>]
<b>On Behalf Of </b>Ivan Porto Carrero<br>
<b>Sent:</b> Thursday, March 26, 2009 12:59 PM<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt'><br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><o:p></o:p></span></p>
</div>
<p class=MsoNormal><b><span style='font-size:10.0pt'>Subject:</span></b><span
style='font-size:10.0pt'> Re: [Ironruby-core] require 'spec' not working</span><o:p></o:p></p>
</div>
<div>
<div>
<p> <o:p></o:p></p>
<p style='margin-bottom:12.0pt'>Hi<br>
<br>
Did you edit your ir.exe.config to point to the right gems dir?<br>
<br>
I don't think you still need to set the GEM_PATH do you?<br>
<br>
It works for me and all I do is edit the ir.exe.config to point to the right
directories. I am on the git layout so my paths won't make sense for you.<br>
<br>
When I did that I could do <br>
<br>
>> igem list<br>
<br>
*** LOCAL GEMS ***<br>
<br>
>> igem install rspec<br>
************************************************<br>
<br>
Thank you for installing rspec-1.2.2<br>
<br>
Please be sure to read History.rdoc and Upgrade.rdoc<br>
for useful information about this release.<br>
<br>
*************************************************<br>
Successfully installed rspec-1.2.2<br>
1 gem installed<br>
Installing ri documentation for rspec-1.2.2...<br>
Installing RDoc documentation for rspec-1.2.2...<br>
Could not find main page README.rdoc<br>
Could not find main page README.rdoc<br>
Could not find main page README.rdoc<br>
Could not find main page README.rdoc<br>
<br>
>> ir<br>
IronRuby 0.3.0.0 on .NET 2.0.50727.3074<br>
<br>
>>> require 'rubygems' <br>
=> true<br>
>>> require 'spec' <br>
=> true<br>
>>> true.should == true<br>
=> true<br>
>>> exit<br>
<br>
<o:p></o:p></p>
<div>
<p>On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde <<a
href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>>
wrote:<o:p></o:p></p>
<p>Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you
expect spec.rb to be loaded from? I don't have spec.rb on my machine.<br>
<br>
Thanks,<br>
Shri<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>]
On Behalf Of Michael Delaney<br>
Sent: Thursday, March 26, 2009 8:57 AM<br>
To: <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>
Subject: [Ironruby-core] require 'spec' not working<br>
<br>
hi,<br>
i've downloaded the latest ironruby 0.3 and built it locally.<br>
its in my path<br>
<br>
GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems<br>
PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug<br>
<br>
File: product_spec.rb<br>
<br>
require 'rubygems'<br>
require 'spec'<br>
require File.dirname(__FILE__) +<br>
'/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll'<br>
<br>
describe IronRubyInterop::Product do<br>
<br>
it "should have a name" do end<br>
it "should have a category"<br>
it "should have product lines"<br>
<br>
end<br>
<br>
running ir product_spec.rb<br>
<br>
i get:<br>
<br>
D:\IronRuby\RSpec>ir product_spec.rb<br>
:0:in `require': no such file to load -- spec (LoadError)<br>
from custom_require.rb:26:in `require'<br>
from product_spec.rb:0<br>
<br>
<br>
Is there anything I'm missing???<br>
<br>
Regards.<br>
--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><o:p></o:p></p>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>