This might have been discussed somewhere else already, if this is the case, I apologize.
I publish a significant number of gems. These were all designed for Ruby 1.8. Apart from syntax and functional changes, how to I ensure that it is possible to use these gems with Ruby 1.9?
I haven't really used Ruby 1.9 much, but when I install a gem, it seems like it is installed for a particular version of Ruby.. on my Mac:
/Library/Ruby/Gems/1.8
Does this mean that the gem command that you use will determine where the gems are installed? Is there a different gem command for 1.8 and for 1.9?
I use the gem server to publish my gems. Do I need to use the 1.9 version of gem server in order to provide gems for Ruby 1.9? (I'm assuming I probably don't, but it would be good to clarify).
Provided everything is working okay, should I be using Ruby 1.9 gem server for publishing gems to both Ruby 1.8 and Ruby 1.9?
When I stand back a little bit, this seems fairly complicated - maybe more so than it needs to be.
This might have been discussed somewhere else already, if this is the case,
I apologize.
I publish a significant number of gems. These were all designed for Ruby
1.8. Apart from syntax and functional changes, how to I ensure that it is
possible to use these gems with Ruby 1.9?
you don't have to do anything special. If your gems (and all dependent gems)
work with ruby 1.9 everything is fine.
I haven't really used Ruby 1.9 much, but when I install a gem, it seems
like it is installed for a particular version of Ruby.. on my Mac:
/Library/Ruby/Gems/1.8
Does this mean that the gem command that you use will determine where the
gems are installed?
yes. rubygems use different places to store the gems - depending on your
Ruby version.
Is there a different gem command for 1.8 and for 1.9?
no.
-Thomas
···
2009/8/29 Space Ship Traveller <space.ship.traveller@gmail.com>
* If your ruby 1.9 installation was configured with --program-suffix, this suffix will be used to determine the gem command's name. For example ./configure --program-suffix=19 gives you ruby19 and gem19. You'll probably also want to set --format-executable in ~/.gemrc (see gem help env).
···
On Aug 29, 2009, at 11:02, Thomas Preymesser wrote:
Is there a different gem command for 1.8 and for 1.9?