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? -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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 wrote in post #1108958:> 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?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/. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Tue, May 14, 2013 at 9:37 AM, John Merlino <stoicism1-YDxpq3io04c@public.gmane.org> 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?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.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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. > >-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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? On May 14, 12:53 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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.-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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? On May 14, 1:06 pm, John Merlino <stoici...-YDxpq3io04c@public.gmane.org> wrote:> 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? > > On May 14, 12:53 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > > > > > > > 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > 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.-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.