Skip to content
Browse files

only run ruby_version once even if @ruby_version is nil

  • Loading branch information...
1 parent 524fcbe commit ca99326cddb356a8078d674112c8083fc4e14440 @hone hone committed
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"

0 comments on commit ca99326

Please sign in to comment.
Something went wrong with that request. Please try again.