From be7b5929126cb3e696ef222339237faba9b8fe5a Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 1 Nov 2017 23:29:38 +0000 Subject: Update bundled bundler to 1.16.0. * lib/bundler, spec/bundler: Merge bundler-1.16.0. * common.mk: rspec examples of bundler-1.16.0 needs require option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/bundler/current_ruby.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/bundler/current_ruby.rb') 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") -- cgit v1.2.3