[前][次][番号順一覧][スレッド一覧]

ruby-changes:45372

From: kazu <ko1@a...>
Date: Sat, 28 Jan 2017 13:36:15 +0900 (JST)
Subject: [ruby-changes:45372] kazu:r57445 (trunk): {ext, test}/dbm: Specify frozen_string_literal: true.

kazu	2017-01-28 13:36:08 +0900 (Sat, 28 Jan 2017)

  New Revision: 57445

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

  Log:
    {ext,test}/dbm: Specify frozen_string_literal: true.

  Modified files:
    trunk/ext/dbm/extconf.rb
    trunk/test/dbm/test_dbm.rb
Index: ext/dbm/extconf.rb
===================================================================
--- ext/dbm/extconf.rb	(revision 57444)
+++ ext/dbm/extconf.rb	(revision 57445)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/dbm/extconf.rb#L1
-# frozen_string_literal: false
+# frozen_string_literal: true
 # configure option:
 #   --with-dbm-type=COMMA-SEPARATED-NDBM-TYPES
 #
Index: test/dbm/test_dbm.rb
===================================================================
--- test/dbm/test_dbm.rb	(revision 57444)
+++ test/dbm/test_dbm.rb	(revision 57445)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/test/dbm/test_dbm.rb#L1
-# frozen_string_literal: false
+# frozen_string_literal: true
 require 'test/unit'
 require 'tmpdir'
 
@@ -405,7 +405,7 @@ if defined? DBM https://github.com/ruby/ruby/blob/trunk/test/dbm/test_dbm.rb#L405
       assert_equal('foo', @dbm.delete(key) {|k| k.replace 'called block'; :blockval})
       assert_equal(0, @dbm.size)
 
-      key = 'no called block'
+      key = 'no called block'.dup
       assert_equal(:blockval, @dbm.delete(key) {|k| k.replace 'called block'; :blockval})
       assert_equal(0, @dbm.size)
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]