<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;}
span.EmailStyle17
        {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'>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. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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">http://docs.rubygems.org/read/chapter/10#page35</a>.
Does anyone know of a verbose option?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</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>&nbsp;</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 12:59 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>&nbsp;</o:p></p>

<p class=MsoNormal 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>
&gt;&gt; igem list<br>
<br>
*** LOCAL GEMS ***<br>
<br>
&gt;&gt; igem install rspec<br>
************************************************<br>
<br>
&nbsp;&nbsp;&nbsp; Thank you for installing rspec-1.2.2<br>
<br>
&nbsp;&nbsp;&nbsp; Please be sure to read History.rdoc and Upgrade.rdoc<br>
&nbsp;&nbsp;&nbsp; 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>
&gt;&gt; ir<br>
IronRuby 0.3.0.0 on .NET 2.0.50727.3074<br>
<br>
&gt;&gt;&gt; require 'rubygems' <br>
=&gt; true<br>
&gt;&gt;&gt; require 'spec' <br>
=&gt; true<br>
&gt;&gt;&gt; true.should == true<br>
=&gt; true<br>
&gt;&gt;&gt; exit<br>
<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde &lt;<a
href="mailto:Shri.Borde@microsoft.com">Shri.Borde@microsoft.com</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>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">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org">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">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>
&nbsp;it &quot;should have a name&quot; do end<br>
&nbsp;it &quot;should have a category&quot;<br>
&nbsp;it &quot;should have product lines&quot;<br>
<br>
end<br>
<br>
running ir product_spec.rb<br>
<br>
i get:<br>
<br>
D:\IronRuby\RSpec&gt;ir product_spec.rb<br>
:0:in `require': no such file to load -- spec (LoadError)<br>
&nbsp; &nbsp; &nbsp; &nbsp;from custom_require.rb:26:in `require'<br>
&nbsp; &nbsp; &nbsp; &nbsp;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">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">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>&nbsp;</o:p></p>

</div>

</body>

</html>