aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/current_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/current_ruby.rb')
-rw-r--r--lib/bundler/current_ruby.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bundler/current_ruby.rb b/lib/bundler/current_ruby.rb
index cca40100ad..31532d108d 100644
--- a/lib/bundler/current_ruby.rb
+++ b/lib/bundler/current_ruby.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
module Bundler
# Returns current version of Ruby
#
@@ -8,7 +9,7 @@ module Bundler
end
class CurrentRuby
- KNOWN_MINOR_VERSIONS = %w(
+ KNOWN_MINOR_VERSIONS = %w[
1.8
1.9
2.0
@@ -17,11 +18,11 @@ module Bundler
2.3
2.4
2.5
- ).freeze
+ ].freeze
KNOWN_MAJOR_VERSIONS = KNOWN_MINOR_VERSIONS.map {|v| v.split(".", 2).first }.uniq.freeze
- KNOWN_PLATFORMS = %w(
+ KNOWN_PLATFORMS = %w[
jruby
maglev
mingw
@@ -31,7 +32,7 @@ module Bundler
rbx
ruby
x64_mingw
- ).freeze
+ ].freeze
def ruby?
!mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")