From 79dd244c3aacac272120c19f36a641c5c48a08a0 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 28 Nov 2018 03:10:09 +0000 Subject: Regenerated binstubs of bundler, rdoc and irb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bin/bundler | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/bundler') diff --git a/bin/bundler b/bin/bundler index 7ef736899d..e15eb39ed7 100755 --- a/bin/bundler +++ b/bin/bundler @@ -10,11 +10,11 @@ require 'rubygems' version = ">= 0.a" -if ARGV.first - str = ARGV.first - str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding - if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then - version = $1 +str = ARGV.first +if str + str = str.b[/\A_(.*)_\z/, 1] + if str and Gem::Version.correct?(str) + version = str ARGV.shift end end -- cgit v1.2.3