[Groonga-commit] ranguba/chupa-text at c722875 [master] Fix a typo...

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 1 23:27:15 JST 2014


Kouhei Sutou	2014-01-01 23:27:15 +0900 (Wed, 01 Jan 2014)

  New Revision: c722875afc6aca28d860544ff9440c31877f21e3
  https://github.com/ranguba/chupa-text/commit/c722875afc6aca28d860544ff9440c31877f21e3

  Message:
    Fix a typo...
    
    registory ->
    regist ry
          -

  Modified files:
    lib/chupa-text/command/chupa-text.rb
    lib/chupa-text/content-type.rb
    lib/chupa-text/data.rb
    lib/chupa-text/decomposer.rb
    lib/chupa-text/plugin/decomposer/tar.rb
    test/test-data.rb
  Renamed files:
    lib/chupa-text/content-type-registry.rb
      (from lib/chupa-text/content-type-registory.rb)
    lib/chupa-text/decomposer-registry.rb
      (from lib/chupa-text/decomposer-registory.rb)
    test/test-decomposer-registry.rb
      (from test/test-decomposer-registory.rb)

  Modified: lib/chupa-text/command/chupa-text.rb (+1 -1)
===================================================================
--- lib/chupa-text/command/chupa-text.rb    2014-01-01 23:23:41 +0900 (52fe6f4)
+++ lib/chupa-text/command/chupa-text.rb    2014-01-01 23:27:15 +0900 (0027f2b)
@@ -44,7 +44,7 @@ module ChupaText
       def create_feeder
         Decomposer.load
         feeder = Feeder.new
-        Decomposer.registory.decomposers.each do |decomposer|
+        Decomposer.registry.decomposers.each do |decomposer|
           feeder.add_decomposer(decomposer)
         end
         feeder

  Renamed: lib/chupa-text/content-type-registry.rb (+1 -1) 97%
===================================================================
--- lib/chupa-text/content-type-registory.rb    2014-01-01 23:23:41 +0900 (0109106)
+++ lib/chupa-text/content-type-registry.rb    2014-01-01 23:27:15 +0900 (20130a5)
@@ -15,7 +15,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 module ChupaText
-  class ContentTypeRegistory
+  class ContentTypeRegistry
     def initialize
       @from_extension_map = {}
     end

  Modified: lib/chupa-text/content-type.rb (+3 -3)
===================================================================
--- lib/chupa-text/content-type.rb    2014-01-01 23:23:41 +0900 (23dbb57)
+++ lib/chupa-text/content-type.rb    2014-01-01 23:27:15 +0900 (80fa05a)
@@ -14,13 +14,13 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "chupa-text/content-type-registory"
+require "chupa-text/content-type-registry"
 
 module ChupaText
   module ContentType
     class << self
-      def registory
-        @@registory ||= ContentTypeRegistory.new
+      def registry
+        @@registry ||= ContentTypeRegistry.new
       end
     end
   end

  Modified: lib/chupa-text/data.rb (+1 -1)
===================================================================
--- lib/chupa-text/data.rb    2014-01-01 23:23:41 +0900 (4c51fa3)
+++ lib/chupa-text/data.rb    2014-01-01 23:27:15 +0900 (2590904)
@@ -83,7 +83,7 @@ module ChupaText
     end
 
     def guess_content_type_from_path
-      ContentType.registory.find(extension)
+      ContentType.registry.find(extension)
     end
 
     def guess_content_type_from_body

  Renamed: lib/chupa-text/decomposer-registry.rb (+1 -1) 97%
===================================================================
--- lib/chupa-text/decomposer-registory.rb    2014-01-01 23:23:41 +0900 (03f8a2f)
+++ lib/chupa-text/decomposer-registry.rb    2014-01-01 23:27:15 +0900 (2904aaa)
@@ -15,7 +15,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 module ChupaText
-  class DecomposerRegistory
+  class DecomposerRegistry
     include Enumerable
 
     def initialize

  Modified: lib/chupa-text/decomposer.rb (+3 -3)
===================================================================
--- lib/chupa-text/decomposer.rb    2014-01-01 23:23:41 +0900 (9a38b58)
+++ lib/chupa-text/decomposer.rb    2014-01-01 23:27:15 +0900 (50aed95)
@@ -14,13 +14,13 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-require "chupa-text/decomposer-registory"
+require "chupa-text/decomposer-registry"
 
 module ChupaText
   class Decomposer
     class << self
-      def registory
-        @@registory ||= DecomposerRegistory.new
+      def registry
+        @@registry ||= DecomposerRegistry.new
       end
 
       def load

  Modified: lib/chupa-text/plugin/decomposer/tar.rb (+1 -1)
===================================================================
--- lib/chupa-text/plugin/decomposer/tar.rb    2014-01-01 23:23:41 +0900 (c4b8979)
+++ lib/chupa-text/plugin/decomposer/tar.rb    2014-01-01 23:27:15 +0900 (78ea183)
@@ -21,7 +21,7 @@ require "chupa-text"
 
 module ChupaText
   class TarDecomposer < Decomposer
-    registory.register(self)
+    registry.register(self)
 
     def target?(data)
       data.extension == "tar" or

  Modified: test/test-data.rb (+2 -2)
===================================================================
--- test/test-data.rb    2014-01-01 23:23:41 +0900 (bc7b1fa)
+++ test/test-data.rb    2014-01-01 23:27:15 +0900 (c1fc560)
@@ -17,7 +17,7 @@
 class TestData < Test::Unit::TestCase
   def setup
     @data = ChupaText::Data.new
-    ChupaText::ContentType.registory.clear
+    ChupaText::ContentType.registry.clear
   end
 
   sub_test_case("content-type") do
@@ -30,7 +30,7 @@ class TestData < Test::Unit::TestCase
 
       sub_test_case("extension") do
         def test_txt
-          ChupaText::ContentType.registory.register("txt", "text/plain")
+          ChupaText::ContentType.registry.register("txt", "text/plain")
           assert_equal("text/plain", guess("README.txt"))
         end
       end

  Renamed: test/test-decomposer-registry.rb (+7 -7) 72%
===================================================================
--- test/test-decomposer-registory.rb    2014-01-01 23:23:41 +0900 (8b9c5f3)
+++ test/test-decomposer-registry.rb    2014-01-01 23:27:15 +0900 (bd344c6)
@@ -14,22 +14,22 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-class TestDecomposerRegistory < Test::Unit::TestCase
+class TestDecomposerRegistry < Test::Unit::TestCase
   class CSVDecomposer < ChupaText::Decomposer
   end
 
   def setup
-    @registory = ChupaText::DecomposerRegistory.new
+    @registry = ChupaText::DecomposerRegistry.new
   end
 
   def test_register
-    assert_equal([], @registory.to_a)
-    @registory.register(CSVDecomposer)
-    assert_equal([CSVDecomposer], @registory.to_a)
+    assert_equal([], @registry.to_a)
+    @registry.register(CSVDecomposer)
+    assert_equal([CSVDecomposer], @registry.to_a)
   end
 
   def test_decomposers
-    @registory.register(CSVDecomposer)
-    assert_equal([CSVDecomposer], @registory.decomposers.collect(&:class))
+    @registry.register(CSVDecomposer)
+    assert_equal([CSVDecomposer], @registry.decomposers.collect(&:class))
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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