[Groonga-commit] groonga/grntest at adc5832 [master] Use Pathname#open

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 12 15:49:31 JST 2015


Kouhei Sutou	2015-03-12 15:49:31 +0900 (Thu, 12 Mar 2015)

  New Revision: adc583230988563cfd7489ae7a31ecf13625a396
  https://github.com/groonga/grntest/commit/adc583230988563cfd7489ae7a31ecf13625a396

  Message:
    Use Pathname#open

  Modified files:
    lib/grntest/test-runner.rb

  Modified: lib/grntest/test-runner.rb (+1 -1)
===================================================================
--- lib/grntest/test-runner.rb    2015-03-12 13:20:00 +0900 (1a672d6)
+++ lib/grntest/test-runner.rb    2015-03-12 15:49:31 +0900 (4c3c2d9)
@@ -228,7 +228,7 @@ module Grntest
         end
         command_line << @tester.gdb
         gdb_command_path = context.temporary_directory_path + "groonga.gdb"
-        File.open(gdb_command_path, "w") do |gdb_command|
+        gdb_command_path.open("w") do |gdb_command|
           gdb_command.puts(<<-EOC)
 break main
 run
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index