[ruby-cvs:68330] k0kubun:r61149 (trunk): irb.rb: preserve ARGV on binding.irb

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Tue Dec 12 20:25:16 JST 2017


k0kubun	2017-12-12 20:25:16 +0900 (Tue, 12 Dec 2017)

  New Revision: 61149

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

  Log:
    irb.rb: preserve ARGV on binding.irb
    
    This is not perfectly good solution (at least we don't want to have ARGV
    as default value of `argv` argument), but unfortunately IRB.setup and
    IRB.parse_opts are public methods and we can't make breaking change to
    those methods.
    
    We may deprecate using them and then make them private in the future,
    but the removal should not be in Ruby 2.5. So I kept their interface for
    now.
    
    [Bug #14162] [close GH-1770]

  Added files:
    trunk/test/irb/test_init.rb
  Modified files:
    trunk/lib/irb/init.rb
    trunk/lib/irb.rb


More information about the ruby-cvs mailing list