[Groonga-commit] groonga/groonga-command-parser at c796f14 [master] Ensure Array

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Thu May 21 23:25:58 JST 2015


Kouhei Sutou	2015-05-21 23:25:58 +0900 (Thu, 21 May 2015)

  New Revision: c796f14ac31d71cb40986a88bbc9fded1598b46d
  https://github.com/groonga/groonga-command-parser/commit/c796f14ac31d71cb40986a88bbc9fded1598b46d

  Message:
    Ensure Array
    
    It's for Ruby 1.9.3 and JRuby.

  Modified files:
    lib/groonga/command/parser/error.rb

  Modified: lib/groonga/command/parser/error.rb (+2 -2)
===================================================================
--- lib/groonga/command/parser/error.rb    2015-05-21 23:10:14 +0900 (765ed49)
+++ lib/groonga/command/parser/error.rb    2015-05-21 23:25:58 +0900 (271dac6)
@@ -42,8 +42,8 @@ module Groonga
             location << " " * before.bytesize + "^"
             location << after
           else
-            before_lines = before.lines
-            after_lines = after.lines
+            before_lines = before.lines.to_a
+            after_lines = after.lines.to_a
             last_before_line = before_lines.last
             if last_before_line
               error_offset = last_before_line.bytesize
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る