<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Isn&#39;t &quot;platform&quot; used to identify a gem as a JRuby gem? Granted, it&#39;s not perfect, but having IronRuby gems set the platform to &quot;ironruby&quot; would seem to make sense with the current state of rubygems. Is there a reason not to do this, and (other than waiting for changes to rubygems) is there a better way to accomplish this?</blockquote>
<div><br></div><div>I think it is - although I&#39;m no expert here.</div><div><br></div><div>As well, I&#39;m not sure what setting the &quot;platform&quot; actually implies.</div><div><br></div><div>For instance, I have developed gems that target the MRI. I&#39;m thinking about adding native support for IronRuby. One example is diacritics_fu (<a href="http://github.com/thbar/diacritics_fu/tree/master">http://github.com/thbar/diacritics_fu/tree/master</a>) that removes accents from strings. Under .Net, I can achieve that natively using encoding stuff. So basically this gem would become usable under both MRI and IronRuby, it just doesn&#39;t use the same underlying stuff depending on who is using it.</div>
<div><br></div><div>I anticipate that more and more gems could face this situation.</div><div><br></div><div>I&#39;m not sure how to define the platform in these cases.</div><div><br></div><div>raw thoughts...</div><div><br>
</div><div>-- Thibaut</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div><div></div><div class="h5"><br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:ironruby-core-bounces@rubyforge.org">ironruby-core-bounces@rubyforge.org</a> [mailto:<a href="mailto:ironruby-core-">ironruby-core-</a><br>
&gt; <a href="mailto:bounces@rubyforge.org">bounces@rubyforge.org</a>] On Behalf Of Daniele Alessandri<br>
&gt; Sent: Saturday, February 28, 2009 6:34 AM<br>
&gt; To: <a href="mailto:ironruby-core@rubyforge.org">ironruby-core@rubyforge.org</a><br>
&gt; Subject: Re: [Ironruby-core] Recommendations for (IronRuby) gem<br>
&gt; packaging ?<br>
&gt;<br>
&gt; Hi Thibaut,<br>
&gt;<br>
&gt; AFAIK there is no way (yet) to enforce the compatibility of a gem with<br>
&gt; one or more ruby implementations, e.g. mri, jruby, ironruby, etc. If<br>
&gt; I&#39;m not going wrong there was a discussion a while back on ruby-talk<br>
&gt; about the necessity of extending the current gemspec with a new<br>
&gt; attribute to meet this kind of requirement as the existing &quot;platform&quot;<br>
&gt; attribute was not intended for something like this and, in fact, it is<br>
&gt; not quite the same.<br>
&gt;<br>
&gt; I was thinking of packaging my ironruby-hpricot as a gem for ironruby<br>
&gt; (btw the source is hosted on github, see<br>
&gt; <a href="http://github.com/nrk/ironruby-hpricot/" target="_blank">http://github.com/nrk/ironruby-hpricot/</a> ... never had the chance to<br>
&gt; announce it :-)) but I guess it is too early as ironruby&#39;s internals<br>
&gt; seem to be still a &quot;moving target&quot; (I had to push a few fixes last<br>
&gt; week due to changes).<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Feb 28, 2009 at 11:29, Thibaut Barrère<br>
&gt; &lt;<a href="mailto:thibaut.barrere@gmail.com">thibaut.barrere@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt; I&#39;m thinking about packaging some gems from github.<br>
&gt; &gt; So I&#39;m wondering if it already possible to package a gem so that:<br>
&gt; &gt; 1 - it is marked as compatible *only* with IronRuby ?<br>
&gt; &gt; 2 - it is marked as compatible also with IronRuby (as well as other<br>
&gt; &gt; platforms) ?<br>
&gt; &gt; What would be the platform indication ?<br>
&gt; &gt; I&#39;m also looking for any other useful information from people who<br>
&gt; tried to<br>
&gt; &gt; package an IronRuby gem.<br>
&gt; &gt; cheers and thanks for any feedback,<br>
&gt; &gt; -- Thibaut<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Daniele Alessandri<br>
&gt; <a href="http://www.clorophilla.net/blog/" target="_blank">http://www.clorophilla.net/blog/</a><br>
&gt; _______________________________________________<br>
&gt; Ironruby-core mailing list<br>
&gt; <a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
&gt; <a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</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>
</div></div></blockquote></div><br>