Is there any reason to use 1.8.7 over 1.9.1 or is it always best to use the latest stable release?
Usually, if you are not maintaining scripts written in older versions, then using the latest will be what i would choose, since there will be bug fixes, new features etc...
1.9.1 but I have run into problems.
If you don't know RVM you should look at that cause you can switch between ruby versions depending on which project or error you are getting.
There are some bugs in 1.9.1 that caused problems installing some gems, and that went away when I switched to 1.9.2, so I'd recommend 1.9.2. I'd also choose 1.9.2 over 1.8.7 for learning since there are some new features in 1.9.2 plus speed improvements.
And definitely, use RVM for your installations. It makes it easy to manage Ruby versions and sets of gems.
If you are starting fresh, I would suggest 1.9.2. There are many nice syntactic features over 1.8. I would go straight to 1.9.2, as I have heard there have been some idiosyncrasies with 1.9.1. Most gems are >= 1.9 ready by now.
I also would recommend RVM (http://rvm.beginrescueend.com/). I would start with your default ruby on your system. Install RVM, the then 'rvm install 1.9.2', and you will be on the right track. RVM has a great IRC and google group, if you need help.
RVM will let you test against all versions of Ruby available. Try 'rvm list known' to get the full list.
MRI Rubies
JRuby
Rubinius
Ruby Enterprise Edition
MacRuby
MagLev
mput
IronRuby
Hope that helps!
Related
I installed Ruby using this software:
http://rubyinstaller.org/
However, unlike rvm, I'm not sure if I can use it to update my version of Ruby.
Can I use this to update? If not, what's the best way to update Ruby on a Windows machine?
Looking at the RubyInstaller FAQ, there is this question:
Q: If I install both versions, is there some graceful way of selecting which version is active at a given time (e.g., which ruby.exe is invoked, which irb.bat is called, etc.)?
A: Pik is excellent for this coordination—check it out
One can extend the both in the question to all three (1.8, 1.9 and 2.0), so hopefully pik is forward-compatible with Ruby 2.0, so give this a try.
Just I wanted to know whether bundler concept can be introduced in ruby 1.8.6 or does it require ruby 1.8.7 ?.How it can be applied in rails 2.3.8 ?.
Your valuable feedback would be highly appreciated.
bundler requires 1.8.7 (which is pretty ancient and more or less unmaintained at this point).
You can use it with rails 2.3.x - the bundler website has instructions on how to set this up
Really, DO NOT USE the 1.8 ruby series any longer. Compared to 1.9.X it has only disadvantages and is not maintanined any longer. Even gems shouldn't be a problem after all this time since the 1.9 series releases.
Sure, not the exact answer you want to hear, but seriously: upgrade.
I am investigating cross-platform GUI toolkits with Ruby bindings.
wxRuby appears to be a pretty good one, but I am wondering if it has bindings for Ruby 1.9.2.
It does work with 1.9.2, but you have to install it this way
gem install wxruby-ruby19
Otherwise, it will not work on 1.9.2. I'm on 1.9.2 and it took me quite awhile to figure that out how to get it installed correctly. Anyways, I have used it and think that it is pretty good, although I had not used any other GUI frameworks in Ruby.
well guess that many of you have great expertise on Linux. I currently have some issues with creating a linux-live-medium.
i have a box with OpenSuse-Linux Version 11.3 with all nice things. Several languages run very well: Perl, Python, PHP! All is very well! BTW - i am very glad that Perl runs very nice.
But I am not able to install Ruby 1.9. Everytime i want to do that i end up with Ruby 1.8.7. I want to testrun some ruby-code. Therefore i need Ruby with the following gems
mechanize
nokogiri
utf8_utils
I heard of a Linux-Live-medium that is able to run with all the wanted things including Ruby 1.9.
Therefore the Live-medium is installed on a USB-Stick with R/W partitions. Is this possible.
I am not a linux-expert - but with all the expertise here i think it is possible to create such a USB-Stick. (...with Ruby 1.9 and all with all that extensions)
I love to hear from you!
best regards
zero
Debian/Ubuntu includes both Ruby 1.8.x and 1.9.x - and essentially duplicates most packages in 2 flavors: for 1.8 and 1.9. That might be enough for your purposes - although YMMV, of course.
Yet another solution is RVM that karudzo already mentioned.
Yet another solution is virtualization: simplest form of it would be just chrooting. Most modern Linux systems have an ability to install itself based from some root directory (SuSE has install into given directory functionality, Debian/Ubuntu have debootstrap - and then just running chroot /path/to/that/directory - you'd end up in essentially another system installed cleanly in separate directory.
This will actually be a better solution for you- use RVM:
https://rvm.io/
Then you can easily switch back and forth from 1.8 to 1.9 as desired and make 1.9.2 your default. Just read their docs carefully, it really makes gem management a lot easier.
What steps should I follow to upgrade a Ruby project from 1.8.6 to 1.8.7?
It should be mostly seamless, since it was mostly compatible changes to the api.
Still, check out the list of incompatibilities
If you start using the new methods offered by 1.8.7 (or newer!) but would like to remain compatible with 1.8.6, checkout my backports gem.
There are just method add in ruby 1.8.7 in compare to ruby 1.8.6. So if it's works with 1.8.6 it's works in ruby 1.8.7 too.
But if you are a great test suite, launch it and see if all works.
It's a point release. You shouldn't have to do anything.
hey, read this http://casperfabricius.com/site/2010/01/24/multiple-ruby-versions-with-rvm/
it takes you through the installation and setup of Ruby Version Manager - which makes it really easy to switch between different versions of ruby in linux (and mac I think) - if you are on windows, then use this, it's called pik http://github.com/vertiginous/pik/