Groonga::Client version 0.02

ヴァージョンがあがりました。といってもテスト書いただけです。

https://github.com/okamuuu/Groonga-Client


↓こんな記事があったので、なんとなくcommit logを英語で書いてました*1

http://d.hatena.ne.jp/tokuhirom/20101124/1290595272


そしたら外国人がwatchしてくれました。


なんかうれしい。とてもうれしい。


もう、うれションしちゃうかもしれないぐらいうれしかったのでがんばってテストを英語で書いてみた。


こんな感じ

subtest 'create table' => sub {

    note "Here are ways to create table and show created table."
      . " Make sure this table has _id and _key columns.";

    test_cmd($client, "table_create --name Site --flags TABLE_HASH_KEY --key_type ShortText");
    test_cmd($client, "select --table Site" );

};


verboseモードでproveを実行するとこんな感じ

    # Here are ways to create table and show created table. Make sure this table has _id and _key columns.
    # cmd      : table_create --name Site --flags TABLE_HASH_KEY --key_type ShortText
    # elapsed  : 0.003198
    # get json : [[0,1292593840.21832,0.003198],true]    ok 1    
    # cmd      : select --table Site       
    # elapsed  : 0.000771
    # get json : [[0,1292593840.23348,0.000771],[[[0],[["_id","UInt32"],["_key","ShortText"]]]]]
    ok 2
    1..2
ok 2 - create table


プチドキュメント完成。役に立つといーなー

*1:文法があってるとか、文法があってないとか、そんなことは関係ないぜ!!