[ruby-cvs:56735] mame:r49585 (trunk): * lib/base64.rb: make urlsafe mode user-friendly.

mame at ruby-lang.org mame at ruby-lang.org
Fri Feb 13 21:31:32 JST 2015


mame	2015-02-13 21:31:30 +0900 (Fri, 13 Feb 2015)

  New Revision: 49585

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

  Log:
    * lib/base64.rb: make urlsafe mode user-friendly.
    
    * lib/base64.rb (Base64.urlsafe_encode64): a new option "padding" to
      suppress the padding character ("=").
    
    * lib/base64.rb (Base64.urlsafe_decode64): now it accepts not only
      correctly-padded input but also unpadded input.
      [Feature #10740][ruby-core:67570]
    
    * test/base64/test_base64.rb: Test for above

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/lib/base64.rb
    trunk/test/base64/test_base64.rb


More information about the ruby-cvs mailing list