On Wed, May 19, 2010 at 10:55 AM, Luis Lavena <luislav...@gmail.com> wrote:
> On Tue, May 18, 2010 at 7:50 PM, Trans <transf...@gmail.com> wrote:
>> I know about platform gems. But can RubyGems differentiate a jruby gem
>> from, say, an mri gem? What about an mri 1.8 from a 1.9? Or is there
>> only supposed to one gem that handle these distinctions internally?
>>
>
> I've raised this question not long ago:
>
> http://rubyforge.org/pipermail/rubygems-developers/2009-April/004522.html
>
> For a project I'm working now, using the platform I can separate
> mri/java and now ironruby gems.
>
> But of course, I cannot individualize Ruby versions, so I ended doing
> that in the code.
>
>> Personally I like the later notion, but I need to understand if
>> RubyGems can distinguish them in the sense that it distinguishes
>> platform gems.
>
> Not at this time, and highly unlikely is going to happen, as that will
> require change in the Specification, indexing and fetching mechanisms,
> which if you read the above thread, will see not going to happen.

Well rubygems can't do it by it self, but for POSIX systems supporting
bash or zsh at least RVM allows very fine-grained control over
gemsets, not just for different Ruby implementations, but for
different versions, and even for individual projects.

http://rvm.beginrescueend.com/

With apologies to Luis, I don't think this helps Windows users.
Perhaps it might inspire a windows solution though for those who want
that.

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to