[前][次][番号順一覧][スレッド一覧]

ruby-changes:53848

From: hsbt <ko1@a...>
Date: Wed, 28 Nov 2018 12:10:28 +0900 (JST)
Subject: [ruby-changes:53848] hsbt:r66066 (trunk): Regenerated binstubs of bundler, rdoc and irb.

hsbt	2018-11-28 12:10:09 +0900 (Wed, 28 Nov 2018)

  New Revision: 66066

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66066

  Log:
    Regenerated binstubs of bundler, rdoc and irb.

  Modified files:
    trunk/bin/bundle
    trunk/bin/bundler
    trunk/bin/irb
    trunk/bin/rdoc
    trunk/bin/ri
Index: bin/bundle
===================================================================
--- bin/bundle	(revision 66065)
+++ bin/bundle	(revision 66066)
@@ -10,11 +10,11 @@ require 'rubygems' https://github.com/ruby/ruby/blob/trunk/bin/bundle#L10
 
 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
Index: bin/ri
===================================================================
--- bin/ri	(revision 66065)
+++ bin/ri	(revision 66066)
@@ -10,11 +10,11 @@ require 'rubygems' https://github.com/ruby/ruby/blob/trunk/bin/ri#L10
 
 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
Index: bin/bundler
===================================================================
--- bin/bundler	(revision 66065)
+++ bin/bundler	(revision 66066)
@@ -10,11 +10,11 @@ require 'rubygems' https://github.com/ruby/ruby/blob/trunk/bin/bundler#L10
 
 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
Index: bin/irb
===================================================================
--- bin/irb	(revision 66065)
+++ bin/irb	(revision 66066)
@@ -10,11 +10,11 @@ require 'rubygems' https://github.com/ruby/ruby/blob/trunk/bin/irb#L10
 
 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
Index: bin/rdoc
===================================================================
--- bin/rdoc	(revision 66065)
+++ bin/rdoc	(revision 66066)
@@ -10,11 +10,11 @@ require 'rubygems' https://github.com/ruby/ruby/blob/trunk/bin/rdoc#L10
 
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]