merges r30085 from trunk into ruby_1_9_2.

--
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-12-23 10:49:20 +00:00
parent 9afa601a90
commit 06dc853ab8
4 changed files with 18 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Dec 5 12:09:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]
Sun Dec 5 11:27:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (load_file_internal): decrement for ungotten line.

View file

@ -207,7 +207,7 @@ module IRB
IRB.print_usage
exit 0
when "--"
if opt = ARGV.shfit
if opt = ARGV.shift
@CONF[:SCRIPT] = opt
$0 = opt
end

12
test/irb/test_option.rb Normal file
View file

@ -0,0 +1,12 @@
require 'test/unit'
require_relative '../ruby/envutil'
module TestIRB
class TestOption < Test::Unit::TestCase
def test_end_of_option
bug4117 = '[ruby-core:33574]'
status = assert_in_out_err(%w[-rirb -e IRB.start(__FILE__) -- --], "", //, [], bug4117)
assert(status.success?, bug4117)
end
end
end

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 115
#define RUBY_PATCHLEVEL 116
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1