Masafumi Yokoyama
null+****@clear*****
Fri Oct 31 00:59:59 JST 2014
Masafumi Yokoyama 2014-10-31 00:59:59 +0900 (Fri, 31 Oct 2014) New Revision: 6db8f695826e51f305ccf4c74bb0538365db2837 https://github.com/ranguba/rroonga/commit/6db8f695826e51f305ccf4c74bb0538365db2837 Message: Support LZ4 for Groonga::Object#inspect GitHub: #28 Modified files: ext/groonga/rb-grn-object.c test/test-schema.rb Modified: ext/groonga/rb-grn-object.c (+3 -2) =================================================================== --- ext/groonga/rb-grn-object.c 2014-10-31 00:15:42 +0900 (0bf0927) +++ ext/groonga/rb-grn-object.c 2014-10-31 00:59:59 +0900 (23fb760) @@ -1,6 +1,7 @@ /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2009-2014 Kouhei Sutou <kou �� clear-code.com> + Copyright (C) 2014 Masafumi Yokoyama <myokoym �� gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -901,8 +902,8 @@ rb_grn_object_inspect_content_flags_with_label (VALUE inspected, case GRN_COLUMN_VAR_SIZE: if (flags & GRN_OBJ_COMPRESS_ZLIB) rb_ary_push(inspected_flags, rb_str_new2("COMPRESS_ZLIB")); - if (flags & GRN_OBJ_COMPRESS_LZO) - rb_ary_push(inspected_flags, rb_str_new2("COMPRESS_LZO")); + if (flags & GRN_OBJ_COMPRESS_LZ4) + rb_ary_push(inspected_flags, rb_str_new2("COMPRESS_LZ4")); break; case GRN_COLUMN_INDEX: if (flags & GRN_OBJ_WITH_SECTION) Modified: test/test-schema.rb (+2 -1) =================================================================== --- test/test-schema.rb 2014-10-31 00:15:42 +0900 (3a47ec4) +++ test/test-schema.rb 2014-10-31 00:59:59 +0900 (47c15c4) @@ -1,4 +1,5 @@ # Copyright (C) 2009-2014 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2014 Masafumi Yokoyama <myokoym �� gmail.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -341,7 +342,7 @@ class SchemaTest < Test::Unit::TestCase "path: <#{path}>, " + "domain: <Posts>, " + "range: <Niku>, " + - "flags: <KEY_VAR_SIZE|COMPRESS_LZO>>", + "flags: <KEY_VAR_SIZE|COMPRESS_LZ4>>", column.inspect) end end -------------- next part -------------- HTML����������������������������...Download