patch levels and ruby

12 views
Skip to first unread message

John Merlino

unread,
May 14, 2013, 12:37:25 PM5/14/13
to rubyonra...@googlegroups.com
How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392?

Robert Walker

unread,
May 14, 2013, 12:48:53 PM5/14/13
to rubyonra...@googlegroups.com
John Merlino wrote in post #1108958:
What are you using to manage your Rubies? RVM and rbenv both have
mechanisms for setting per-project Ruby versions. Do you have a hidden
file inside the directly you cd into that specifies what version to use
for that project?

--
Posted via http://www.ruby-forum.com/.

Hassan Schroeder

unread,
May 14, 2013, 12:51:30 PM5/14/13
to rubyonra...@googlegroups.com
Given there are known security issues in -p0 and -p392, why aren't
you updating all your projects to the latest version?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Walter Lee Davis

unread,
May 14, 2013, 12:53:22 PM5/14/13
to rubyonra...@googlegroups.com

On May 14, 2013, at 12:37 PM, John Merlino wrote:

> How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392?
>

Personally, with the rash of security updates we have seen lately, I would always use the latest Ruby you can in your major branch. Make sure your tests pass in the app that runs on v.0, and then update to the latest and run them again. If you're using rvm, that's likely how you got locked into v.0 and v.[whatever] in two different apps. If so, then check to see if you have an .rvmrc file in that folder. (Or local equivalent for some other ruby-switcher.)

Walter

>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b-9443-1df67fa1a1bb%40googlegroups.com?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

John Merlino

unread,
May 14, 2013, 1:06:19 PM5/14/13
to Ruby on Rails: Talk
I'm using capistrano. I added this to the recipe:

set :rvm_ruby_string, 'ruby-1.9.3-p0@online_store' # use
the same ruby as used locally for deployment
set :rvm_autolibs_flag, "read-only" # more info: rvm help
autolibs

set :rvm_type, :system
set :rvm_install_with_sudo, true

before 'deploy:setup', 'rvm:install_rvm' # install RVM
before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create
gemset, OR:
before 'deploy:setup', 'rvm:create_gemset' # only create gemset


Thats why patch level p0 is there. If I drop the -p0, will it install
the latest rvm with each cap deploy?
> > To view this discussion on the web visithttps://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b....
> > For more options, visithttps://groups.google.com/groups/opt_out.

John Merlino

unread,
May 14, 2013, 1:17:40 PM5/14/13
to Ruby on Rails: Talk
My /usr/local/rvm/gems looks like this (on ubuntu server):

cache ruby-1.9.3-p0@global ruby-1.9.3-p194
ruby-1.9.3-p194@TrackingSystem
ruby-1.9.3-p0 ruby-1.9.3-p0@online_store ruby-1.9.3-p194@global
ruby-1.9.3-p392@TrackingSystem

Is this normal to be using so many patch levels? Obviously I want
different gemsets for different projects to manage with bundler. But
patch levels?
Reply all
Reply to author
Forward
0 new messages