[Groonga-commit] droonga/drntest at f57b5d4 [master] Use meaningful name

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 27 10:57:50 JST 2013


YUKI Hiroshi	2013-11-27 10:57:50 +0900 (Wed, 27 Nov 2013)

  New Revision: f57b5d457797b78b2d5b689d2a3a73ba7f326b50
  https://github.com/droonga/drntest/commit/f57b5d457797b78b2d5b689d2a3a73ba7f326b50

  Message:
    Use meaningful name
    
    OPTION =>
    DIRECTIVE

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

  Modified: lib/drntest/test-runner.rb (+3 -3)
===================================================================
--- lib/drntest/test-runner.rb    2013-11-27 10:55:27 +0900 (32dbe2f)
+++ lib/drntest/test-runner.rb    2013-11-27 10:57:50 +0900 (6900fab)
@@ -202,12 +202,12 @@ module Drntest
       results
     end
 
-    OPTION_MATCHER = /\A\#\@([^\s]+)(?:\s+(.+))?\n?\z/.freeze
+    DIRECTIVE_MATCHER = /\A\#\@([^\s]+)(?:\s+(.+))?\n?\z/.freeze
 
     def load_options(path, options={})
       options = {}
       Pathname(path).read.each_line do |line|
-        next unless OPTION_MATCHER =~ line
+        next unless DIRECTIVE_MATCHER =~ line
         key = $1.gsub(/-/, "_").to_sym
         # nil value means that it is a boolean option.
         value = $2 || true
@@ -243,7 +243,7 @@ module Drntest
       end
       Pathname(path).read.each_line do |line|
         if line[0] == "#"
-          if OPTION_MATCHER =~ line
+          if DIRECTIVE_MATCHER =~ line
             key = $1.gsub(/-/, "_").to_sym
             value = $2
             case key
-------------- next part --------------
HTML����������������������������...
다운로드 



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