Hey gang.<div><br></div><div>Jed noticed an issue with the &#39;dependency&#39;/&#39;dependencies&#39; macro the other day when working on the Collective wiki. &nbsp;Namely, if you make RedCloth a dependency Merb gets a little cranky. &nbsp;I think I have this figured out when doing some mods to Collective today too. &nbsp;However, before I go trying to fix this in Merb, I wanted to run this by the community.</div>
<div><br></div><div>The problem is simple: RedCloth requires you first load Rubygems. &nbsp;That is...</div><div><br></div><div><span class="Apple-style-span" style="font-family: Times; font-size: 16px; "><div style="margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px; font: normal normal normal small/normal arial; ">
Hey Jed.<div><br></div><div>I think I have this &#39;dependency&#39; and RedCloth thing figured out. &nbsp;When I was trying to make the Viking gem a dependency Merb complained. &nbsp;Do you know what both RedCloth and Viking (gem) require? &nbsp;Rubygems! &nbsp;That is...</div>
<div><br></div></div></span></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"># In IRB...<br>irb&gt; require &#39;redcloth&#39;<br>LoadError: no such file to load -- redcloth<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;from (irb):1:in `require&#39;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;from (irb):1<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;from :0<br>irb&gt; require &#39;rubygems&#39;<br>true<br>irb&gt; require &#39;redcloth&#39;<br>true<br></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<br></blockquote>My question is this: do we change the dependencies macro to load rubygems when this happens, or do we ignore it and demand that the user explicitly require a library outside of the dependencies macro (see&nbsp;<a href="http://github.com/meekish/collective/tree/master/config/init.rb#L25">http://github.com/meekish/collective/tree/master/config/init.rb#L25</a> for an illustration)?<div>
<br></div><div>James H.</div>