[ruby-cvs:49986] drbrain:r42844 (trunk): * lib/optparse.rb: The Integer acceptable now allows binary and

drbrain at ruby-lang.org drbrain at ruby-lang.org
Thu Sep 5 14:02:19 JST 2013


drbrain	2013-09-05 14:02:17 +0900 (Thu, 05 Sep 2013)

  New Revision: 42844

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42844

  Log:
    * lib/optparse.rb:  The Integer acceptable now allows binary and
      hexadecimal numbers per the documentation.  [ruby-trunk - Bug #8865]
    
      DecimalInteger, OctalInteger, DecimalNumeric now validate their input
      before converting to a number.  [ruby-trunk - Bug #8865]
    
    * test/optparse/test_acceptable.rb:  Tests for the above, tests for all
      numeric acceptables for existing behavior.

  Added files:
    trunk/test/optparse/test_acceptable.rb
  Modified files:
    trunk/ChangeLog
    trunk/lib/optparse.rb


More information about the ruby-cvs mailing list