vendor/bundle/ruby/2.5.0/bin/rwinrm in vagrant-unbundled-2.2.2.0 vs vendor/bundle/ruby/2.5.0/bin/rwinrm in vagrant-unbundled-2.2.3.0
- old
+ new
@@ -8,14 +8,14 @@
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
if Gem.respond_to?(:activate_bin_path)