Skip to content

Commit 79dd244

Browse files
committed
Regenerated binstubs of bundler, rdoc and irb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 5dbc658 commit 79dd244

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

bin/bundle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ require 'rubygems'
1010

1111
version = ">= 0.a"
1212

13-
if ARGV.first
14-
str = ARGV.first
15-
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16-
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17-
version = $1
13+
str = ARGV.first
14+
if str
15+
str = str.b[/\A_(.*)_\z/, 1]
16+
if str and Gem::Version.correct?(str)
17+
version = str
1818
ARGV.shift
1919
end
2020
end

bin/bundler

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ require 'rubygems'
1010

1111
version = ">= 0.a"
1212

13-
if ARGV.first
14-
str = ARGV.first
15-
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16-
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17-
version = $1
13+
str = ARGV.first
14+
if str
15+
str = str.b[/\A_(.*)_\z/, 1]
16+
if str and Gem::Version.correct?(str)
17+
version = str
1818
ARGV.shift
1919
end
2020
end

bin/irb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ require 'rubygems'
1010

1111
version = ">= 0.a"
1212

13-
if ARGV.first
14-
str = ARGV.first
15-
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16-
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17-
version = $1
13+
str = ARGV.first
14+
if str
15+
str = str.b[/\A_(.*)_\z/, 1]
16+
if str and Gem::Version.correct?(str)
17+
version = str
1818
ARGV.shift
1919
end
2020
end

bin/rdoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ require 'rubygems'
1010

1111
version = ">= 0.a"
1212

13-
if ARGV.first
14-
str = ARGV.first
15-
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16-
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17-
version = $1
13+
str = ARGV.first
14+
if str
15+
str = str.b[/\A_(.*)_\z/, 1]
16+
if str and Gem::Version.correct?(str)
17+
version = str
1818
ARGV.shift
1919
end
2020
end

bin/ri

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ require 'rubygems'
1010

1111
version = ">= 0.a"
1212

13-
if ARGV.first
14-
str = ARGV.first
15-
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
16-
if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
17-
version = $1
13+
str = ARGV.first
14+
if str
15+
str = str.b[/\A_(.*)_\z/, 1]
16+
if str and Gem::Version.correct?(str)
17+
version = str
1818
ARGV.shift
1919
end
2020
end

0 commit comments

Comments
 (0)