class Bundler::CurrentRuby

Constants

KNOWN_MAJOR_VERSIONS
KNOWN_MINOR_VERSIONS
KNOWN_PLATFORMS

Public Instance Methods

jruby?() click to toggle source
# File bundler/current_ruby.rb, line 59
def jruby?
  RUBY_ENGINE == "jruby"
end
maglev?() click to toggle source
# File bundler/current_ruby.rb, line 63
def maglev?
  RUBY_ENGINE == "maglev"
end
mingw?() click to toggle source
# File bundler/current_ruby.rb, line 87
def mingw?
  windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu != "x64"
end
mri?() click to toggle source
# File bundler/current_ruby.rb, line 51
def mri?
  !windows? && RUBY_ENGINE == "ruby"
end
mswin64?() click to toggle source
# File bundler/current_ruby.rb, line 83
def mswin64?
  windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin64" && Bundler.local_platform.cpu == "x64"
end
mswin?() click to toggle source
# File bundler/current_ruby.rb, line 75
def mswin?
  # For backwards compatibility
  windows?

  # TODO: This should correctly be:
  # windows? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin32" && Bundler.local_platform.cpu == "x86"
end
rbx?() click to toggle source
# File bundler/current_ruby.rb, line 55
def rbx?
  ruby? && RUBY_ENGINE == "rbx"
end
ruby?() click to toggle source
# File bundler/current_ruby.rb, line 45
def ruby?
  return true if Bundler::GemHelpers.generic_local_platform == Gem::Platform::RUBY

  !windows? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby")
end
truffleruby?() click to toggle source
# File bundler/current_ruby.rb, line 67
def truffleruby?
  RUBY_ENGINE == "truffleruby"
end
windows?() click to toggle source
# File bundler/current_ruby.rb, line 71
def windows?
  Gem.win_platform?
end
x64_mingw?() click to toggle source
# File bundler/current_ruby.rb, line 91
def x64_mingw?
  Gem.win_platform? && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os.start_with?("mingw") && Bundler.local_platform.cpu == "x64"
end