[Groonga-commit] droonga/grn2drn at 564f0d3 [master] Shorten class name

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 9 10:10:18 JST 2014


Kouhei Sutou	2014-02-09 10:10:18 +0900 (Sun, 09 Feb 2014)

  New Revision: 564f0d3fd04bac6e18149e2b9c2e170bf941d5b3
  https://github.com/droonga/grn2drn/commit/564f0d3fd04bac6e18149e2b9c2e170bf941d5b3

  Message:
    Shorten class name

  Modified files:
    bin/grn2drn
  Renamed files:
    lib/grn2drn/converter.rb
      (from lib/grn2drn/groonga-command-converter.rb)
    test/test-converter.rb
      (from test/test-groonga-command-converter.rb)

  Modified: bin/grn2drn (+1 -1)
===================================================================
--- bin/grn2drn    2014-02-09 10:08:37 +0900 (26c52e9)
+++ bin/grn2drn    2014-02-09 10:10:18 +0900 (d861c35)
@@ -55,7 +55,7 @@ convert_options = {
   :reply_to => options.reply_to,
   :dataset => options.dataset,
 }
-converter = Grn2Drn::GroongaCommandConverter.new(convert_options)
+converter = Grn2Drn::Converter.new(convert_options)
 
 source_file = args[0]
 result_file = args[1]

  Renamed: lib/grn2drn/converter.rb (+1 -1) 99%
===================================================================
--- lib/grn2drn/groonga-command-converter.rb    2014-02-09 10:08:37 +0900 (bc414bf)
+++ lib/grn2drn/converter.rb    2014-02-09 10:10:18 +0900 (2cb4721)
@@ -22,7 +22,7 @@ require "json"
 require "groonga/command/parser"
 
 module Grn2Drn
-  class GroongaCommandConverter
+  class Converter
     def initialize(options={})
       @options = options
       @count = 0

  Renamed: test/test-converter.rb (+3 -3) 97%
===================================================================
--- test/test-groonga-command-converter.rb    2014-02-09 10:08:37 +0900 (e8dfbe3)
+++ test/test-converter.rb    2014-02-09 10:10:18 +0900 (d41e9ce)
@@ -13,9 +13,9 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "grn2drn/groonga-command-converter"
+require "grn2drn/converter"
 
-class GroongaCommandConverterTest < Test::Unit::TestCase
+class ConverterTest < Test::Unit::TestCase
   def setup
     options = {
       :id => "test",
@@ -23,7 +23,7 @@ class GroongaCommandConverterTest < Test::Unit::TestCase
       :reply_to => reply_to,
       :dataset => dataset,
     }
-    @converter = Grn2Drn::GroongaCommandConverter.new(options)
+    @converter = Grn2Drn::Converter.new(options)
   end
 
   def test_table_create
-------------- next part --------------
HTML����������������������������...
Download 



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