YUKI Hiroshi
null+****@clear*****
Wed Feb 12 17:36:36 JST 2014
YUKI Hiroshi 2014-02-12 17:36:36 +0900 (Wed, 12 Feb 2014) New Revision: 7294d703213041fe52fd0a957a9b9ce20d2d51f9 https://github.com/droonga/fluent-plugin-droonga/commit/7294d703213041fe52fd0a957a9b9ce20d2d51f9 Message: Validate supported values Modified files: lib/droonga/catalog/base.rb test/unit/catalog/test_version1.rb Modified: lib/droonga/catalog/base.rb (+2 -2) =================================================================== --- lib/droonga/catalog/base.rb 2014-02-12 17:34:57 +0900 (87729f1) +++ lib/droonga/catalog/base.rb 2014-02-12 17:36:36 +0900 (5b2ee3e) @@ -310,13 +310,13 @@ module Droonga def validate_date_range(value, name) return if value == "infinity" - raise UnsupportedValue(name, value, @path) + raise UnsupportedValue.new(name, value, @path) end def validate_partition_key(value, name) validate_parameter_type(String, value, name) return if value == "_key" - raise UnsupportedValue(name, value, @path) + raise UnsupportedValue.new(name, value, @path) end def validate_ring(ring, name) Modified: test/unit/catalog/test_version1.rb (+1 -0) =================================================================== --- test/unit/catalog/test_version1.rb 2014-02-12 17:34:57 +0900 (1c4960b) +++ test/unit/catalog/test_version1.rb 2014-02-12 17:36:36 +0900 (49ba880) @@ -106,6 +106,7 @@ class CatalogTest < Test::Unit::TestCase "workers" => 1, "number_of_partitions" => 1, "number_of_replicas" => 1, + "date_range" => "infinity", "partition_key" => "_key", "plugins" => [], "ring" => { -------------- next part -------------- HTML����������������������������...Download