Subject: having a gem for 1.8 and one for 1.9

Original Post rahul k's Avatar

rahul k

02 Oct, 2009 04:24 PM

This is a simple query ... I am back after a long hiatus so have forgotten some basics of gem creation.

  1. I am porting my gem (rbcurse) from 1.8 to 1.9.
    I suppose if I just create a new version of the gem, it will not be clear to a user when installing which version he should install.
    Should I create 2 separate gems (2 separate names??) or use a 1.9 suffix to my gem. (rbcurse and rbcurse19)

  2. At the same time, if a person is using 1.8 he should automatically download the 1.8 version, and 1.9 users should get the 1.9 version without having to specify or know that there are 2 versions of the gem. Is this possible ?

Sorry this is more of a gem issue but there must be a way others are doing it?

  1. Support Staff 2 Posted by Tekkub on 05 Oct, 2009 04:01 AM

    Tekkub's Avatar

    There is a required_ruby_version field in the spec, I think that's what you're after.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

25 Nov, 2009 03:07 AM
25 Nov, 2009 01:41 AM
25 Nov, 2009 01:27 AM
24 Nov, 2009 10:56 PM
24 Nov, 2009 10:54 PM