Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only run ruby_version once even if @ruby_version is nil

  • Loading branch information...
commit ca99326cddb356a8078d674112c8083fc4e14440 1 parent 524fcbe
@hone hone authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/language_pack/ruby.rb
4 lib/language_pack/ruby.rb
@@ -86,7 +86,9 @@ def build_ruby_path
# fetch the ruby version from bundler
# @return [String, nil] returns the ruby version if detected or nil if none is detected
def ruby_version
- return @ruby_version if @ruby_version
+ return @ruby_version if @ruby_version_run
+ @ruby_version_run = true
bootstrap_bundler do |bundler_path|
old_system_path = "/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
Please sign in to comment.
Something went wrong with that request. Please try again.