")
+ users_opened.add
+ assert_equal(1, users_created.size)
+ end
end
From null at cozmixng.org Thu Jun 4 07:00:30 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Thu, 04 Jun 2009 20:00:30 +0900
Subject: [groonga-commit:369] groonga [groonga (trunk) r385] * add a 0.0.2
entry.
Message-ID: <20090604110030.671F91D1C8B@mail.cozmixng.org>
retro 2009-06-04 20:00:30 +0900 (Thu, 04 Jun 2009)
New Revision: 385
Modified files:
groonga/trunk/NEWS.ja.rdoc
groonga/trunk/NEWS.rdoc
Log:
* add a 0.0.2 entry.
Modified: groonga/trunk/NEWS.rdoc (+11 -0)
===================================================================
--- groonga/trunk/NEWS.rdoc 2009-06-04 19:36:46 +09:00 (rev 384)
+++ groonga/trunk/NEWS.rdoc 2009-06-04 20:00:30 +09:00 (rev 385)
@@ -1,5 +1,16 @@
= NEWS
+== 0.0.2: 2009-06-04
+
+* Supported groonga 0.0.9 [mori]
+* Improved preformance: cache key, value, domain and range
+* Improved API
+* Added documents
+* Supported Ruby 1.9
+* Bug fixes:
+** Fixed install process [Tasuku SUENAGA]
+** Fixed memory leaks
+
== 0.0.1: 2009-04-30
* Initial release!
Modified: groonga/trunk/NEWS.ja.rdoc (+11 -0)
===================================================================
--- groonga/trunk/NEWS.ja.rdoc 2009-06-04 19:36:46 +09:00 (rev 384)
+++ groonga/trunk/NEWS.ja.rdoc 2009-06-04 20:00:30 +09:00 (rev 385)
@@ -1,5 +1,16 @@
= ????
+== 0.0.2: 2009-06-04
+
+* groonga 0.0.9?? [mori]
+* ????: ???????????????????
+* API??
+* ?????????
+* Ruby 1.9??
+* ????:
+** ??????????? [Tasuku SUENAGA]
+** ????????
+
== 0.0.1: 2009-04-30
* ????????
From null at cozmixng.org Thu Jun 4 07:00:31 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Thu, 04 Jun 2009 20:00:31 +0900
Subject: [groonga-commit:370] groonga [groonga (trunk) r386] * fix markup.
Message-ID: <20090604110031.C0A961D1C8F@mail.cozmixng.org>
retro 2009-06-04 20:00:31 +0900 (Thu, 04 Jun 2009)
New Revision: 386
Modified files:
groonga/trunk/ext/rb-grn-index-column.c
Log:
* fix markup.
Modified: groonga/trunk/ext/rb-grn-index-column.c (+3 -2)
===================================================================
--- groonga/trunk/ext/rb-grn-index-column.c 2009-06-04 19:48:29 +09:00 (rev 385)
+++ groonga/trunk/ext/rb-grn-index-column.c 2009-06-04 20:00:31 +09:00 (rev 386)
@@ -153,8 +153,9 @@
* ?????????????????1??????????
* ??
*
- * Groonga::Table#define_index_column ?{:with_section
- * => true}???????????????
+ * Groonga::Table#define_index_column?
+ * {:with_section => true}???????????
+ * ????
*
* [+:old_value+]
* ????????????????????????????
From null at cozmixng.org Thu Jun 4 21:00:28 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:28 +0900
Subject: [groonga-commit:371] groonga [groonga (trunk) r387] * 0.0.1 ->
0.0.2.
Message-ID: <20090605010028.7FBDC1D1C91@mail.cozmixng.org>
retro 2009-06-05 10:00:28 +0900 (Fri, 05 Jun 2009)
New Revision: 387
Modified files:
groonga/trunk/html/index.html
Log:
* 0.0.1 -> 0.0.2.
Modified: groonga/trunk/html/index.html (+1 -1)
===================================================================
--- groonga/trunk/html/index.html 2009-06-04 19:53:29 +09:00 (rev 386)
+++ groonga/trunk/html/index.html 2009-06-05 10:00:28 +09:00 (rev 387)
@@ -42,7 +42,7 @@
Ruby/groonga???????
- 2009-04-30????????0.0.1??????
+ 2009-06-04????????0.0.2??????
Ruby/groonga???????
From null at cozmixng.org Thu Jun 4 21:00:29 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:29 +0900
Subject: [groonga-commit:372] groonga [groonga (trunk) r388] * fix typos.
Message-ID: <20090605010029.C7ACF1D1C92@mail.cozmixng.org>
retro 2009-06-05 10:00:29 +0900 (Fri, 05 Jun 2009)
New Revision: 388
Modified files:
groonga/trunk/NEWS.ja.rdoc
groonga/trunk/NEWS.rdoc
Log:
* fix typos.
Modified: groonga/trunk/NEWS.rdoc (+1 -1)
===================================================================
--- groonga/trunk/NEWS.rdoc 2009-06-05 09:55:33 +09:00 (rev 387)
+++ groonga/trunk/NEWS.rdoc 2009-06-05 10:00:29 +09:00 (rev 388)
@@ -2,7 +2,7 @@
== 0.0.2: 2009-06-04
-* Supported groonga 0.0.9 [mori]
+* Supported groonga 0.0.8 [mori]
* Improved preformance: cache key, value, domain and range
* Improved API
* Added documents
Modified: groonga/trunk/NEWS.ja.rdoc (+1 -1)
===================================================================
--- groonga/trunk/NEWS.ja.rdoc 2009-06-05 09:55:33 +09:00 (rev 387)
+++ groonga/trunk/NEWS.ja.rdoc 2009-06-05 10:00:29 +09:00 (rev 388)
@@ -2,7 +2,7 @@
== 0.0.2: 2009-06-04
-* groonga 0.0.9?? [mori]
+* groonga 0.0.8?? [mori]
* ????: ???????????????????
* API??
* ?????????
From null at cozmixng.org Thu Jun 4 21:00:31 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:31 +0900
Subject: [groonga-commit:373] groonga [groonga (trunk) r389] * add tag task.
Message-ID: <20090605010031.201621D1C93@mail.cozmixng.org>
retro 2009-06-05 10:00:30 +0900 (Fri, 05 Jun 2009)
New Revision: 389
Modified files:
groonga/trunk/Rakefile
Log:
* add tag task.
Modified: groonga/trunk/Rakefile (+5 -0)
===================================================================
--- groonga/trunk/Rakefile 2009-06-05 09:55:43 +09:00 (rev 388)
+++ groonga/trunk/Rakefile 2009-06-05 10:00:30 +09:00 (rev 389)
@@ -202,6 +202,11 @@
sh "rsync #{rsync_args} html/ #{host}:#{remote_dir}"
end
+task :tag do
+ repository = "svn+ssh://rubyforge.org/var/svn/groonga/groonga"
+ sh "svn cp #{repository}/trunk #{repository}/tags/#{version}"
+end
+
# fix Hoe's incorrect guess.
project.spec.executables.clear
# project.lib_files = project.spec.files.grep(%r|^src/lib/|)
From null at cozmixng.org Thu Jun 4 21:00:32 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:32 +0900
Subject: [groonga-commit:374] groonga [groonga (trunk) r390] * set release
log message.
Message-ID: <20090605010032.8C7BA1D1C91@mail.cozmixng.org>
retro 2009-06-05 10:00:32 +0900 (Fri, 05 Jun 2009)
New Revision: 390
Modified files:
groonga/trunk/Rakefile
Log:
* set release log message.
Modified: groonga/trunk/Rakefile (+2 -1)
===================================================================
--- groonga/trunk/Rakefile 2009-06-05 09:55:51 +09:00 (rev 389)
+++ groonga/trunk/Rakefile 2009-06-05 10:00:32 +09:00 (rev 390)
@@ -204,7 +204,8 @@
task :tag do
repository = "svn+ssh://rubyforge.org/var/svn/groonga/groonga"
- sh "svn cp #{repository}/trunk #{repository}/tags/#{version}"
+ sh("svn cp -m 'release #{version}!!!' " +
+ "#{repository}/trunk #{repository}/tags/#{version}")
end
# fix Hoe's incorrect guess.
From null at cozmixng.org Thu Jun 4 21:00:33 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:33 +0900
Subject: [groonga-commit:373] groonga [groonga (trunk) r391] * follow the
recent Hoe changes.
Message-ID: <20090605010033.D78DA1D1C92@mail.cozmixng.org>
retro 2009-06-05 10:00:33 +0900 (Fri, 05 Jun 2009)
New Revision: 391
Modified files:
groonga/trunk/Rakefile
Log:
* follow the recent Hoe changes.
Modified: groonga/trunk/Rakefile (+1 -1)
===================================================================
--- groonga/trunk/Rakefile 2009-06-05 09:56:00 +09:00 (rev 390)
+++ groonga/trunk/Rakefile 2009-06-05 10:00:33 +09:00 (rev 391)
@@ -88,7 +88,7 @@
ENV["VERSION"] ||= guess_version
version = ENV["VERSION"]
-project = Hoe.new('groonga', version) do |project|
+project = Hoe.spec('groonga', version) do |project|
project.rubyforge_name = 'groonga'
authors = File.join(base_dir, "AUTHORS")
project.author = File.readlines(authors).collect do |line|
From null at cozmixng.org Thu Jun 4 21:00:36 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:36 +0900
Subject: [groonga-commit:374] groonga [groonga (trunk) r393] * update ignore
files.
Message-ID: <20090605010036.73A5A1D1C96@mail.cozmixng.org>
retro 2009-06-05 10:00:36 +0900 (Fri, 05 Jun 2009)
New Revision: 393
Modified files:
groonga/trunk/.gitignore
Log:
* update ignore files.
Modified: groonga/trunk/.gitignore (+1 -0)
===================================================================
--- groonga/trunk/.gitignore 2009-06-05 09:58:50 +09:00 (rev 392)
+++ groonga/trunk/.gitignore 2009-06-05 10:00:36 +09:00 (rev 393)
@@ -2,6 +2,7 @@
/.gdb_history
/Makefile
/doc
+/email.txt
/mkmf.log
/pkg
/test-unit
From null at cozmixng.org Thu Jun 4 21:00:35 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:35 +0900
Subject: [groonga-commit:375] groonga [groonga (trunk) r392] * follow the
recent Hoe changes.
Message-ID: <20090605010035.2B0C11D1C93@mail.cozmixng.org>
retro 2009-06-05 10:00:34 +0900 (Fri, 05 Jun 2009)
New Revision: 392
Modified files:
groonga/trunk/Rakefile
Log:
* follow the recent Hoe changes.
Modified: groonga/trunk/Rakefile (+4 -1)
===================================================================
--- groonga/trunk/Rakefile 2009-06-05 09:56:20 +09:00 (rev 391)
+++ groonga/trunk/Rakefile 2009-06-05 10:00:34 +09:00 (rev 392)
@@ -88,7 +88,10 @@
ENV["VERSION"] ||= guess_version
version = ENV["VERSION"]
-project = Hoe.spec('groonga', version) do |project|
+project = nil
+Hoe.spec('groonga') do |_project|
+ project = _project
+ project.version = version
project.rubyforge_name = 'groonga'
authors = File.join(base_dir, "AUTHORS")
project.author = File.readlines(authors).collect do |line|
From null at cozmixng.org Thu Jun 4 21:15:24 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:15:24 +0900
Subject: [groonga-commit:376] groonga [groonga (trunk) r395] * 0.0.2 ->
0.0.3.
Message-ID: <20090605011524.096A71D1C7A@mail.cozmixng.org>
retro 2009-06-05 10:15:23 +0900 (Fri, 05 Jun 2009)
New Revision: 395
Modified files:
groonga/trunk/ext/rb-grn.h
Log:
* 0.0.2 -> 0.0.3.
Modified: groonga/trunk/ext/rb-grn.h (+1 -1)
===================================================================
--- groonga/trunk/ext/rb-grn.h 2009-06-05 09:59:38 +09:00 (rev 394)
+++ groonga/trunk/ext/rb-grn.h 2009-06-05 10:15:23 +09:00 (rev 395)
@@ -59,7 +59,7 @@
#define RB_GRN_MAJOR_VERSION 0
#define RB_GRN_MINOR_VERSION 0
-#define RB_GRN_MICRO_VERSION 2
+#define RB_GRN_MICRO_VERSION 3
typedef int rb_grn_boolean;
#define RB_GRN_FALSE (0)
From null at cozmixng.org Thu Jun 4 21:00:37 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:00:37 +0900
Subject: [groonga-commit:377] groonga [groonga (0.0.2) r394] release 0.0.2!!!
Message-ID: <20090605010037.DA4751D1C99@mail.cozmixng.org>
retro 2009-06-05 10:00:37 +0900 (Fri, 05 Jun 2009)
New Revision: 394
Copied directories:
groonga/tags/0.0.2/ (from rev 393, groonga/trunk/)
Log:
release 0.0.2!!!
Copied: groonga/tags/0.0.2/
(from rev 393, groonga/trunk/)
From null at cozmixng.org Thu Jun 4 21:30:29 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:30:29 +0900
Subject: [groonga-commit:378] groonga [activegroonga (trunk) r396] * specify
required libraries.
Message-ID: <20090605013029.AD1551D1C7A@mail.cozmixng.org>
retro 2009-06-05 10:30:29 +0900 (Fri, 05 Jun 2009)
New Revision: 396
Modified files:
activegroonga/trunk/Rakefile
Log:
* specify required libraries.
Modified: activegroonga/trunk/Rakefile (+1 -0)
===================================================================
--- activegroonga/trunk/Rakefile 2009-06-05 10:00:43 +09:00 (rev 395)
+++ activegroonga/trunk/Rakefile 2009-06-05 10:30:29 +09:00 (rev 396)
@@ -104,6 +104,7 @@
:extra_rdoc_files => Dir.glob("*.rdoc"),
}
project.readme_file = "README.ja.rdoc"
+ project.extra_deps = [["groonga", "=#{version}"], ["activerecord", "=2.3.2"]]
news_of_current_release = File.read("NEWS.rdoc").split(/^==\s.*$/)[1]
project.changes = cleanup_white_space(news_of_current_release)
From null at cozmixng.org Thu Jun 4 21:30:30 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:30:30 +0900
Subject: [groonga-commit:379] groonga [activegroonga (trunk) r397] * follow
the recent Hoe changes.
Message-ID: <20090605013031.0074F1D1C8B@mail.cozmixng.org>
retro 2009-06-05 10:30:30 +0900 (Fri, 05 Jun 2009)
New Revision: 397
Modified files:
activegroonga/trunk/Rakefile
Log:
* follow the recent Hoe changes.
* add tag task.
Modified: activegroonga/trunk/Rakefile (+11 -2)
===================================================================
--- activegroonga/trunk/Rakefile 2009-06-05 10:20:16 +09:00 (rev 396)
+++ activegroonga/trunk/Rakefile 2009-06-05 10:30:30 +09:00 (rev 397)
@@ -27,7 +27,7 @@
ENV["NODOT"] = "yes"
-Hoe::SUPPORTED_TEST_FRAMEWORKS[:testunit2] = "test/run-test.rb"
+Hoe::Test::SUPPORTED_TEST_FRAMEWORKS[:testunit2] = "test/run-test.rb"
base_dir = File.join(File.dirname(__FILE__))
truncate_base_dir = Proc.new do |x|
@@ -85,7 +85,10 @@
ENV["VERSION"] ||= guess_version
version = ENV["VERSION"]
-project = Hoe.new('activegroonga', version) do |project|
+project = nil
+Hoe.spec('activegroonga') do |_project|
+ project = _project
+ project.version = version
project.rubyforge_name = 'groonga'
authors = File.join(base_dir, "AUTHORS")
project.author = File.readlines(authors).collect do |line|
@@ -173,3 +176,9 @@
end
end
end
+
+task :tag do
+ repository = "svn+ssh://rubyforge.org/var/svn/groonga/activegroonga"
+ sh("svn cp -m 'release #{version}!!!' " +
+ "#{repository}/trunk #{repository}/tags/#{version}")
+end
From null at cozmixng.org Thu Jun 4 21:30:32 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:30:32 +0900
Subject: [groonga-commit:380] groonga [activegroonga (trunk) r398] * add
entries for 0.0.2.
Message-ID: <20090605013032.47A6D1D1C8D@mail.cozmixng.org>
retro 2009-06-05 10:30:31 +0900 (Fri, 05 Jun 2009)
New Revision: 398
Modified files:
activegroonga/trunk/NEWS.ja.rdoc
activegroonga/trunk/NEWS.rdoc
Log:
* add entries for 0.0.2.
Modified: activegroonga/trunk/NEWS.rdoc (+4 -0)
===================================================================
--- activegroonga/trunk/NEWS.rdoc 2009-06-05 10:24:45 +09:00 (rev 397)
+++ activegroonga/trunk/NEWS.rdoc 2009-06-05 10:30:31 +09:00 (rev 398)
@@ -1,5 +1,9 @@
= NEWS
+== 0.0.2: 2009-06-05
+
+* Support Ruby/groonga 0.0.2.
+
== 0.0.1: 2009-04-30
* Initial release!
Modified: activegroonga/trunk/NEWS.ja.rdoc (+4 -0)
===================================================================
--- activegroonga/trunk/NEWS.ja.rdoc 2009-06-05 10:24:45 +09:00 (rev 397)
+++ activegroonga/trunk/NEWS.ja.rdoc 2009-06-05 10:30:31 +09:00 (rev 398)
@@ -1,5 +1,9 @@
= ????
+== 0.0.2: 2009-06-05
+
+* Ruby/groonga 0.0.2??
+
== 0.0.1: 2009-04-30
* ????????
From null at cozmixng.org Thu Jun 4 21:30:33 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:30:33 +0900
Subject: [groonga-commit:381] groonga [activegroonga (0.0.2) r399] release
0.0.2!!!
Message-ID: <20090605013033.A4ACD1D1C91@mail.cozmixng.org>
retro 2009-06-05 10:30:33 +0900 (Fri, 05 Jun 2009)
New Revision: 399
Copied directories:
activegroonga/tags/0.0.2/ (from rev 398, activegroonga/trunk/)
Log:
release 0.0.2!!!
Copied: activegroonga/tags/0.0.2/
(from rev 398, activegroonga/trunk/)
From null at cozmixng.org Thu Jun 4 21:45:40 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 10:45:40 +0900
Subject: [groonga-commit:381] groonga [activegroonga (trunk) r400] * 0.0.2
-> 0.0.3.
Message-ID: <20090605014540.A7AA11D1C7A@mail.cozmixng.org>
retro 2009-06-05 10:45:40 +0900 (Fri, 05 Jun 2009)
New Revision: 400
Modified files:
activegroonga/trunk/lib/active_groonga/version.rb
Log:
* 0.0.2 -> 0.0.3.
Modified: activegroonga/trunk/lib/active_groonga/version.rb (+1 -1)
===================================================================
--- activegroonga/trunk/lib/active_groonga/version.rb 2009-06-05 10:30:23 +09:00 (rev 399)
+++ activegroonga/trunk/lib/active_groonga/version.rb 2009-06-05 10:45:40 +09:00 (rev 400)
@@ -17,7 +17,7 @@
module VERSION
MAJOR = 0
MINOR = 0
- TINY = 2
+ TINY = 3
STRING = [MAJOR, MINOR, TINY].join(".")
end
From null at cozmixng.org Fri Jun 5 10:45:26 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 05 Jun 2009 23:45:26 +0900
Subject: [groonga-commit:382] groonga [groonga (trunk) r401] * add
Groonga::TableKeySupport#has_key? [#26145]
Message-ID: <20090605144526.E08711D1C6D@mail.cozmixng.org>
retro 2009-06-05 23:45:26 +0900 (Fri, 05 Jun 2009)
New Revision: 401
Modified files:
groonga/trunk/NEWS.ja.rdoc
groonga/trunk/ext/rb-grn-table-key-support.c
groonga/trunk/test/test-hash.rb
groonga/trunk/test/test-patricia-trie.rb
Log:
* add Groonga::TableKeySupport#has_key? [#26145]
Suggested by Tasuku SUENAGA. Thanks!!!
Modified: groonga/trunk/ext/rb-grn-table-key-support.c (+20 -0)
===================================================================
--- groonga/trunk/ext/rb-grn-table-key-support.c 2009-06-05 10:30:46 +09:00 (rev 400)
+++ groonga/trunk/ext/rb-grn-table-key-support.c 2009-06-05 23:45:26 +09:00 (rev 401)
@@ -183,6 +183,24 @@
}
static VALUE
+rb_grn_table_key_support_has_key (VALUE self, VALUE rb_key)
+{
+ grn_ctx *context;
+ grn_obj *table, *key, *domain;
+ grn_id id, domain_id;
+
+ rb_grn_table_key_support_deconstruct(SELF(self), &table, &context,
+ &key, &domain_id, &domain,
+ NULL, NULL, NULL);
+
+ GRN_BULK_REWIND(key);
+ RVAL2GRNKEY(rb_key, context, key, domain_id, domain, self);
+ id = grn_table_get(context, table, GRN_BULK_HEAD(key), GRN_BULK_VSIZE(key));
+
+ return id == GRN_ID_NIL ? Qfalse : Qtrue;
+}
+
+static VALUE
rb_grn_table_key_support_delete_by_key (VALUE self, VALUE rb_key)
{
grn_ctx *context;
@@ -383,6 +401,8 @@
rb_grn_table_key_support_add, -1);
rb_define_method(rb_mGrnTableKeySupport, "key",
rb_grn_table_key_support_get_key, 1);
+ rb_define_method(rb_mGrnTableKeySupport, "has_key?",
+ rb_grn_table_key_support_has_key, 1);
rb_define_method(rb_mGrnTableKeySupport, "delete",
rb_grn_table_key_support_delete, 1);
Modified: groonga/trunk/NEWS.ja.rdoc (+4 -0)
===================================================================
--- groonga/trunk/NEWS.ja.rdoc 2009-06-05 10:30:46 +09:00 (rev 400)
+++ groonga/trunk/NEWS.ja.rdoc 2009-06-05 23:45:26 +09:00 (rev 401)
@@ -1,5 +1,9 @@
= ????
+== 0.0.3: 2009-XX-XX
+
+* [#26145] Groonga::TableKeySupport#has_key???? [Tasuku SUENAGA]
+
== 0.0.2: 2009-06-04
* groonga 0.0.8?? [mori]
Modified: groonga/trunk/test/test-patricia-trie.rb (+7 -0)
===================================================================
--- groonga/trunk/test/test-patricia-trie.rb 2009-06-05 10:30:46 +09:00 (rev 400)
+++ groonga/trunk/test/test-patricia-trie.rb 2009-06-05 23:45:26 +09:00 (rev 401)
@@ -79,4 +79,11 @@
users_opened.add("morita")
assert_equal(1, users_created.size)
end
+
+ def test_has_key?
+ users = Groonga::PatriciaTrie.create(:name => "")
+ assert_false(users.has_key?("morita"))
+ users.add("morita")
+ assert_true(users.has_key?("morita"))
+ end
end
Modified: groonga/trunk/test/test-hash.rb (+7 -0)
===================================================================
--- groonga/trunk/test/test-hash.rb 2009-06-05 10:30:46 +09:00 (rev 400)
+++ groonga/trunk/test/test-hash.rb 2009-06-05 23:45:26 +09:00 (rev 401)
@@ -191,4 +191,11 @@
users_opened.add("morita")
assert_equal(1, users_created.size)
end
+
+ def test_has_key?
+ users = Groonga::Hash.create(:name => "")
+ assert_false(users.has_key?("morita"))
+ users.add("morita")
+ assert_true(users.has_key?("morita"))
+ end
end
From null at cozmixng.org Sat Jun 6 00:00:33 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Sat, 06 Jun 2009 13:00:33 +0900
Subject: [groonga-commit:383] groonga [groonga (trunk) r402] * fix format.
Message-ID: <20090606040033.7CFE31D1C91@mail.cozmixng.org>
retro 2009-06-06 13:00:32 +0900 (Sat, 06 Jun 2009)
New Revision: 402
Modified files:
groonga/trunk/NEWS.ja.rdoc
groonga/trunk/NEWS.rdoc
Log:
* fix format.
Modified: groonga/trunk/NEWS.rdoc (+2 -2)
===================================================================
--- groonga/trunk/NEWS.rdoc 2009-06-05 23:37:13 +09:00 (rev 401)
+++ groonga/trunk/NEWS.rdoc 2009-06-06 13:00:32 +09:00 (rev 402)
@@ -8,8 +8,8 @@
* Added documents
* Supported Ruby 1.9
* Bug fixes:
-** Fixed install process [Tasuku SUENAGA]
-** Fixed memory leaks
+ * Fixed install process [Tasuku SUENAGA]
+ * Fixed memory leaks
== 0.0.1: 2009-04-30
Modified: groonga/trunk/NEWS.ja.rdoc (+2 -2)
===================================================================
--- groonga/trunk/NEWS.ja.rdoc 2009-06-05 23:37:13 +09:00 (rev 401)
+++ groonga/trunk/NEWS.ja.rdoc 2009-06-06 13:00:32 +09:00 (rev 402)
@@ -12,8 +12,8 @@
* ?????????
* Ruby 1.9??
* ????:
-** ??????????? [Tasuku SUENAGA]
-** ????????
+ * ??????????? [Tasuku SUENAGA]
+ * ????????
== 0.0.1: 2009-04-30
From null at cozmixng.org Sat Jun 6 06:45:44 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Sat, 06 Jun 2009 19:45:44 +0900
Subject: [groonga-commit:384] groonga [groonga (trunk) r403] * fix format.
Message-ID: <20090606104544.7A0611D1C8B@mail.cozmixng.org>
retro 2009-06-06 19:45:43 +0900 (Sat, 06 Jun 2009)
New Revision: 403
Modified files:
groonga/trunk/TUTORIAL.ja.rdoc
Log:
* fix format.
Modified: groonga/trunk/TUTORIAL.ja.rdoc (+3 -3)
===================================================================
--- groonga/trunk/TUTORIAL.ja.rdoc 2009-06-06 12:45:47 +09:00 (rev 402)
+++ groonga/trunk/TUTORIAL.ja.rdoc 2009-06-06 19:45:43 +09:00 (rev 403)
@@ -261,9 +261,9 @@
+add_bookmark+??????????????????
- * ??????????????????????????
- * ??????????????
- * ???????????????
+* ??????????????????????????
+* ??????????????
+* ???????????????
??????????????????????????????
?????
From null at cozmixng.org Sat Jun 6 06:45:46 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Sat, 06 Jun 2009 19:45:46 +0900
Subject: [groonga-commit:385] groonga [groonga (trunk) r404] * omit
inspection.
Message-ID: <20090606104547.028681D1C8E@mail.cozmixng.org>
retro 2009-06-06 19:45:45 +0900 (Sat, 06 Jun 2009)
New Revision: 404
Modified files:
groonga/trunk/TUTORIAL.ja.rdoc
Log:
* omit inspection.
Modified: groonga/trunk/TUTORIAL.ja.rdoc (+2 -2)
===================================================================
--- groonga/trunk/TUTORIAL.ja.rdoc 2009-06-06 19:38:28 +09:00 (rev 403)
+++ groonga/trunk/TUTORIAL.ja.rdoc 2009-06-06 19:45:45 +09:00 (rev 404)
@@ -28,7 +28,7 @@
???????????????????????????
>> Groonga::Database.create(:path => "/tmp/bookmark.db")
- => #, name: (anonymous), path: , domain: , range: >
+ => #
??????????????????????????????
??????????????????????????????
@@ -54,7 +54,7 @@
?????????
>> items = Groonga::Hash.create(:name => "", :persistent => true)
- => #, name: <>, path: , domain: , range: , encoding: <:utf8>, size: <0>>
+ => #
??????????????????????
From null at cozmixng.org Sat Jun 6 06:45:49 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Sat, 06 Jun 2009 19:45:49 +0900
Subject: [groonga-commit:386] groonga [groonga (trunk) r405] *
Groonga::Record#[] raises an exception for nonexistent
Message-ID: <20090606104550.1E48D1D1C92@mail.cozmixng.org>
retro 2009-06-06 19:45:49 +0900 (Sat, 06 Jun 2009)
New Revision: 405
Modified files:
groonga/trunk/lib/groonga/record.rb
groonga/trunk/test/test-record.rb
Log:
* Groonga::Record#[] raises an exception for nonexistent
column name. [#26146]
Suggested by Tasuku SUENAGA. Thanks!!!
Modified: groonga/trunk/test/test-record.rb (+3 -1)
===================================================================
--- groonga/trunk/test/test-record.rb 2009-06-06 19:39:10 +09:00 (rev 404)
+++ groonga/trunk/test/test-record.rb 2009-06-06 19:45:49 +09:00 (rev 405)
@@ -117,7 +117,9 @@
def test_get_nonexistent_column
groonga = @bookmarks.add
- assert_nil(groonga["nonexistent"])
+ assert_raise(Groonga::Error) do
+ groonga["nonexistent"]
+ end
end
def test_set_nonexistent_column
Modified: groonga/trunk/lib/groonga/record.rb (+1 -1)
===================================================================
--- groonga/trunk/lib/groonga/record.rb 2009-06-06 19:39:10 +09:00 (rev 404)
+++ groonga/trunk/lib/groonga/record.rb 2009-06-06 19:45:49 +09:00 (rev 405)
@@ -34,7 +34,7 @@
end
def [](column_name)
- (column(column_name) || {})[@id]
+ column(column_name, true)[@id]
end
def []=(column_name, value)
From null at cozmixng.org Mon Jun 8 21:45:45 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Tue, 09 Jun 2009 10:45:45 +0900
Subject: [groonga-commit:387] groonga [groonga (trunk) r406] * update to the
latest ActiveGrooga.
Message-ID: <20090609014545.4506D1D1C74@mail.cozmixng.org>
retro 2009-06-09 10:45:44 +0900 (Tue, 09 Jun 2009)
New Revision: 406
Modified files:
groonga/trunk/html/index.html
Log:
* update to the latest ActiveGrooga.
Modified: groonga/trunk/html/index.html (+1 -1)
===================================================================
--- groonga/trunk/html/index.html 2009-06-06 19:44:16 +09:00 (rev 405)
+++ groonga/trunk/html/index.html 2009-06-09 10:45:44 +09:00 (rev 406)
@@ -79,7 +79,7 @@
ActiveGroonga???????
- 2009-04-30????????0.0.1??????
+ 2009-06-05????????0.0.2??????
ActiveGroonga???????
From null at cozmixng.org Mon Jun 8 22:00:33 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Tue, 09 Jun 2009 11:00:33 +0900
Subject: [groonga-commit:388] groonga [groonga (trunk) r407] * guard
database from GC until context is alive.
Message-ID: <20090609020033.BFD1F1D1C88@mail.cozmixng.org>
retro 2009-06-09 11:00:33 +0900 (Tue, 09 Jun 2009)
New Revision: 407
Modified files:
groonga/trunk/ext/rb-grn-database.c
Log:
* guard database from GC until context is alive.
Modified: groonga/trunk/ext/rb-grn-database.c (+32 -2)
===================================================================
--- groonga/trunk/ext/rb-grn-database.c 2009-06-09 10:32:52 +09:00 (rev 406)
+++ groonga/trunk/ext/rb-grn-database.c 2009-06-09 11:00:33 +09:00 (rev 407)
@@ -51,7 +51,28 @@
}
/*
+ * Document-method: close
+ *
* call-seq:
+ * database.close
+ *
+ * _database_?????????????????????_database_?
+ * ??????????
+ */
+static VALUE
+rb_grn_database_close (VALUE self)
+{
+ VALUE rb_context;
+
+ rb_context = rb_iv_get(self, "context");
+ if (!NIL_P(rb_context))
+ rb_iv_set(rb_context, "database", Qnil);
+
+ return rb_grn_object_close(self);
+}
+
+/*
+ * call-seq:
* Groonga::Database.create(options=nil) -> Groonga::Database
*
* ???????????????
@@ -106,11 +127,13 @@
rb_grn_object_assign(rb_database, rb_context, context,
database, RB_GRN_TRUE);
rb_iv_set(rb_database, "context", rb_context);
+ if (!NIL_P(rb_context))
+ rb_iv_set(rb_context, "database", rb_database);
rb_grn_context_check(context, rb_ary_new4(argc, argv));
if (rb_block_given_p())
return rb_ensure(rb_yield, rb_database,
- rb_grn_object_close, rb_database);
+ rb_grn_database_close, rb_database);
else
return rb_database;
}
@@ -152,6 +175,10 @@
rb_grn_object_assign(self, rb_context, context, database, RB_GRN_TRUE);
rb_grn_context_check(context, self);
+ rb_iv_set(self, "context", rb_context);
+ if (!NIL_P(rb_context))
+ rb_iv_set(rb_context, "database", self);
+
return Qnil;
}
@@ -179,7 +206,7 @@
database = rb_grn_object_alloc(klass);
rb_grn_database_initialize(argc, argv, database);
if (rb_block_given_p())
- return rb_ensure(rb_yield, database, rb_grn_object_close, database);
+ return rb_ensure(rb_yield, database, rb_grn_database_close, database);
else
return database;
}
@@ -239,4 +266,7 @@
rb_define_method(rb_cGrnDatabase, "each",
rb_grn_database_each, 0);
+
+ rb_define_method(rb_cGrnDatabase, "close",
+ rb_grn_database_close, 0);
}
From null at cozmixng.org Fri Jun 12 08:51:14 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Fri, 12 Jun 2009 21:51:14 +0900
Subject: [groonga-commit:389] groonga [groonga (trunk) r408] * fix typos.
Message-ID: <20090612125114.623F11D1C79@mail.cozmixng.org>
retro 2009-06-12 21:51:13 +0900 (Fri, 12 Jun 2009)
New Revision: 408
Log:
* fix typos.
Reported by Tasuku SUENAGA. Thanks!!!
Modified files:
groonga/trunk/TUTORIAL.ja.rdoc
Modified: groonga/trunk/TUTORIAL.ja.rdoc (+5 -5)
===================================================================
--- groonga/trunk/TUTORIAL.ja.rdoc 2009-06-09 10:46:08 +09:00 (rev 407)
+++ groonga/trunk/TUTORIAL.ja.rdoc 2009-06-12 21:51:13 +09:00 (rev 408)
@@ -93,7 +93,7 @@
???????+title+????????????????
- >> title_colum = items.define_column("title", "", :persistent => true)
+ >> title_column = items.define_column("title", "", :persistent => true)
=> #
2???????????????????????????
@@ -125,9 +125,9 @@
??????????????????????
??+title+????????????????????
- >> terms.define_index_column("item_title", items,
- :persistent => true,
- :source => ".title")
+ >> title_index_column = terms.define_index_column("item_title", items,
+ :persistent => true,
+ :source => ".title")
=> #
??????????????????????
@@ -155,7 +155,7 @@
????????????????????
- >> title_index_column.saerch("Ruby").collect {|record| record.key.key}
+ >> title_index_column.search("Ruby").collect {|record| record.key.key}
["http://ja.wikipedia.org/wiki/Ruby", "http://www.ruby-lang.org/"]
?????Groonga::Hash???????????????????
From null at cozmixng.org Sun Jun 21 22:00:41 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Mon, 22 Jun 2009 11:00:41 +0900
Subject: [groonga-commit:390] groonga [groonga (trunk) r409] * Fixed typo.
Message-ID: <20090622020041.21AF21D1C1C@mail.cozmixng.org>
retro 2009-06-22 11:00:40 +0900 (Mon, 22 Jun 2009)
New Revision: 409
Log:
* Fixed typo.
Modified files:
groonga/trunk/ext/rb-grn-table-cursor.c
Modified: groonga/trunk/ext/rb-grn-table-cursor.c (+1 -1)
===================================================================
--- groonga/trunk/ext/rb-grn-table-cursor.c 2009-06-12 21:35:50 +09:00 (rev 408)
+++ groonga/trunk/ext/rb-grn-table-cursor.c 2009-06-22 11:00:40 +09:00 (rev 409)
@@ -259,7 +259,7 @@
void
rb_grn_init_table_cursor (VALUE mGrn)
{
- rb_cGrnTableCursor = rb_define_class_under(mGrn, "TableCurosr", rb_cObject);
+ rb_cGrnTableCursor = rb_define_class_under(mGrn, "TableCursor", rb_cObject);
rb_define_alloc_func(rb_cGrnTableCursor, rb_grn_table_cursor_alloc);
rb_include_module(rb_cGrnTableCursor, rb_mEnumerable);
From null at cozmixng.org Sun Jun 28 20:50:45 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Mon, 29 Jun 2009 09:50:45 +0900
Subject: [groonga-commit:391] groonga [groonga (trunk) r410] * fix wrong key
type on 32bit environment.
Message-ID: <20090629005045.6F7631D1C1C@mail.cozmixng.org>
retro 2009-06-29 09:50:44 +0900 (Mon, 29 Jun 2009)
New Revision: 410
Log:
* fix wrong key type on 32bit environment.
Reported by niku. Thanks!!!
Modified files:
groonga/trunk/README.ja.rdoc
groonga/trunk/README.rdoc
groonga/trunk/ext/rb-grn-context.c
Modified: groonga/trunk/README.ja.rdoc (+2 -0)
===================================================================
--- groonga/trunk/README.ja.rdoc 2009-06-22 10:49:21 +09:00 (rev 409)
+++ groonga/trunk/README.ja.rdoc 2009-06-29 09:50:44 +09:00 (rev 410)
@@ -52,3 +52,5 @@
* ???: ??groonga????????????
* ??????: ??????????????
+* ????: ??????????????
+
Modified: groonga/trunk/ext/rb-grn-context.c (+9 -2)
===================================================================
--- groonga/trunk/ext/rb-grn-context.c 2009-06-22 10:49:21 +09:00 (rev 409)
+++ groonga/trunk/ext/rb-grn-context.c 2009-06-29 09:50:44 +09:00 (rev 410)
@@ -69,14 +69,21 @@
objects = grn_ctx_get(context,
OBJECTS_TABLE_NAME,
strlen(OBJECTS_TABLE_NAME));
- if (!objects)
+ if (!objects) {
+ grn_obj *key_type;
+
+ if (sizeof(RbGrnObject *) == 4)
+ key_type = grn_ctx_at(context, GRN_DB_UINT32);
+ else
+ key_type = grn_ctx_at(context, GRN_DB_UINT64);
objects = grn_table_create(context,
OBJECTS_TABLE_NAME,
strlen(OBJECTS_TABLE_NAME),
NULL,
GRN_OBJ_TABLE_HASH_KEY,
- grn_ctx_at(context, GRN_DB_UINT64),
+ key_type,
0);
+ }
grn_table_add(context, objects,
&object, sizeof(RbGrnObject *),
Modified: groonga/trunk/README.rdoc (+1 -0)
===================================================================
--- groonga/trunk/README.rdoc 2009-06-22 10:49:21 +09:00 (rev 409)
+++ groonga/trunk/README.rdoc 2009-06-29 09:50:44 +09:00 (rev 410)
@@ -53,3 +53,4 @@
* mori: sent patches to support the latest groonga.
* Tasuku SUENAGA: sent bug reports.
+* niku: sent bug reports.
From null at cozmixng.org Tue Jun 30 07:50:31 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Tue, 30 Jun 2009 20:50:31 +0900
Subject: [groonga-commit:392] groonga [groonga (trunk) r411] * add a test
for N-gram index search.
Message-ID: <20090630115031.7F5E81D1C1C@mail.cozmixng.org>
retro 2009-06-30 20:50:31 +0900 (Tue, 30 Jun 2009)
New Revision: 411
Log:
* add a test for N-gram index search.
Patch by dara. Thanks!!!
Modified files:
groonga/trunk/README.ja.rdoc
groonga/trunk/README.rdoc
groonga/trunk/test/test-index-column.rb
Modified: groonga/trunk/README.ja.rdoc (+1 -1)
===================================================================
--- groonga/trunk/README.ja.rdoc 2009-06-29 09:45:59 +09:00 (rev 410)
+++ groonga/trunk/README.ja.rdoc 2009-06-30 20:50:31 +09:00 (rev 411)
@@ -53,4 +53,4 @@
* ???: ??groonga????????????
* ??????: ??????????????
* ????: ??????????????
-
+* dara??: ?????????????
Modified: groonga/trunk/test/test-index-column.rb (+24 -0)
===================================================================
--- groonga/trunk/test/test-index-column.rb 2009-06-29 09:45:59 +09:00 (rev 410)
+++ groonga/trunk/test/test-index-column.rb 2009-06-30 20:50:31 +09:00 (rev 411)
@@ -54,4 +54,28 @@
assert_equal([groonga],
content_index.search("????").collect {|record| record.key})
end
+
+ def test_shorter_query_than_ngram
+ articles = Groonga::Array.create(:name => "")
+ articles.define_column("content", "")
+
+ terms = Groonga::PatriciaTrie.create(:name => "",
+ :default_tokenizer => "")
+ content_index = terms.define_index_column("content", articles,
+ :source => ".content")
+ articles.add(:content => 'l')
+ articles.add(:content => 'll')
+ articles.add(:content => 'hello')
+
+ assert_search(["hello"], content_index, "he")
+ assert_search(["ll", "hello"], content_index, "ll")
+ assert_search(["l", "ll", "hello"], content_index, "l")
+ end
+
+ def assert_search(expected, content_index, keyword)
+ result = content_index.search(keyword).collect do |entry|
+ entry.key["content"]
+ end
+ assert_equal(expected, result)
+ end
end
Modified: groonga/trunk/README.rdoc (+1 -0)
===================================================================
--- groonga/trunk/README.rdoc 2009-06-29 09:45:59 +09:00 (rev 410)
+++ groonga/trunk/README.rdoc 2009-06-30 20:50:31 +09:00 (rev 411)
@@ -54,3 +54,4 @@
* mori: sent patches to support the latest groonga.
* Tasuku SUENAGA: sent bug reports.
* niku: sent bug reports.
+* dara: wrote tests.
From null at cozmixng.org Tue Jun 30 07:50:33 2009
From: null at cozmixng.org (null at cozmixng.org)
Date: Tue, 30 Jun 2009 20:50:33 +0900
Subject: [groonga-commit:393] groonga [groonga (trunk) r412] * remove
needless object names.
Message-ID: <20090630115033.135A91D1C7A@mail.cozmixng.org>
retro 2009-06-30 20:50:32 +0900 (Tue, 30 Jun 2009)
New Revision: 412
Log:
* remove needless object names.
Reported by dara. Thanks!!!
Modified files:
groonga/trunk/test/test-database.rb
Modified: groonga/trunk/test/test-database.rb (+0 -4)
===================================================================
--- groonga/trunk/test/test-database.rb 2009-06-30 20:36:37 +09:00 (rev 411)
+++ groonga/trunk/test/test-database.rb 2009-06-30 20:50:32 +09:00 (rev 412)
@@ -67,10 +67,6 @@
"",
"",
"",
- "",
- "",
- "",
- "",
"",
"",
"",