[ruby-cvs:69710] k0kubun:r62529 (trunk): erb.rb: deprecate safe_level of ERB.new

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Thu Feb 22 22:28:26 JST 2018


k0kubun	2018-02-22 22:28:25 +0900 (Thu, 22 Feb 2018)

  New Revision: 62529

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

  Log:
    erb.rb: deprecate safe_level of ERB.new
    
    Also, as it's in the middle of the list of 4 arguments, 3rd and 4th arguments
    (trim_mode, eoutvar) are changed to keyword arguments.
    Old ways to specify arguments are deprecated and warned now.
    
    bin/erb: deprecate -S option.
    
    We'll remove all of deprecated ones at Ruby 2.7+.
    
    enc/make_encmake.rb: stopped using deprecated interface
    ext/etc/mkconstants.rb: ditto
    ext/socket/mkconstants.rb: ditto
    sample/ripper/ruby2html.rb: ditto
    spec/ruby/library/erb/defmethod/def_erb_method_spec.rb: ditto
    spec/ruby/library/erb/new_spec.rb: ditto
    test/erb/test_erb.rb: ditto
    test/erb/test_erb_command.rb: ditto
    tool/generic_erb.rb: ditto
    tool/ruby_vm/helpers/dumper.rb: ditto
    tool/transcode-tblgen.rb: ditto
    lib/rdoc/erbio.rb: ditto
    lib/rdoc/generator/darkfish.rb: ditto
    
    [Feature #14256]

  Modified files:
    trunk/NEWS
    trunk/bin/erb
    trunk/enc/make_encmake.rb
    trunk/ext/etc/mkconstants.rb
    trunk/ext/socket/mkconstants.rb
    trunk/lib/erb.rb
    trunk/lib/rdoc/erbio.rb
    trunk/lib/rdoc/generator/darkfish.rb
    trunk/sample/ripper/ruby2html.rb
    trunk/spec/ruby/library/erb/defmethod/def_erb_method_spec.rb
    trunk/spec/ruby/library/erb/new_spec.rb
    trunk/test/erb/test_erb.rb
    trunk/test/erb/test_erb_command.rb
    trunk/tool/generic_erb.rb
    trunk/tool/ruby_vm/helpers/dumper.rb
    trunk/tool/transcode-tblgen.rb


More information about the ruby-cvs mailing list