[ruby-cvs:60220] normal:r53068 (trunk): lib/shellwords.rb: do not change API with frozen-string-literal

normal at ruby-lang.org normal at ruby-lang.org
Sun Dec 13 12:17:29 JST 2015


normal	2015-12-13 12:17:28 +0900 (Sun, 13 Dec 2015)

  New Revision: 53068

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

  Log:
    lib/shellwords.rb: do not change API with frozen-string-literal
    
    This fixes a bug introduced in r53066 when attempting to
    shellescape an empty string.
    
    * lib/shellwords.rb (shellescape): duplicate frozen literal
    * test/test_shellwords.rb (test_stringification): new test

  Modified files:
    trunk/lib/shellwords.rb
    trunk/test/test_shellwords.rb


More information about the ruby-cvs mailing list