rroonga 0.9.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +13 -0
- data/NEWS.rdoc +13 -0
- data/README.ja.rdoc +2 -2
- data/README.rdoc +2 -2
- data/ext/groonga/rb-grn-exception.c +14 -0
- data/ext/groonga/rb-grn-index-column.c +13 -1
- data/ext/groonga/rb-grn-object.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +393 -0
- data/ext/groonga/rb-grn-table.c +26 -2
- data/ext/groonga/rb-grn.h +3 -3
- data/html/index.html +1 -1
- data/lib/groonga/schema.rb +1 -1
- data/rroonga-build.rb +3 -3
- data/test-unit-notify/Rakefile +47 -0
- data/test-unit-notify/lib/test/unit/notify.rb +104 -0
- data/test-unit/COPYING +56 -0
- data/test-unit/GPL +340 -0
- data/test-unit/PSFL +271 -0
- data/test-unit/Rakefile +18 -5
- data/test-unit/html/bar.svg +153 -0
- data/test-unit/html/developer.svg +469 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.svg +82 -0
- data/test-unit/html/heading-mark.svg +393 -0
- data/test-unit/html/index.html +235 -13
- data/test-unit/html/index.html.ja +258 -15
- data/test-unit/html/install.svg +636 -0
- data/test-unit/html/logo.svg +483 -0
- data/test-unit/html/test-unit.css +339 -0
- data/test-unit/html/tutorial.svg +559 -0
- data/test-unit/lib/test/unit.rb +6 -1
- data/test-unit/lib/test/unit/assertions.rb +115 -11
- data/test-unit/lib/test/unit/autorunner.rb +5 -2
- data/test-unit/lib/test/unit/collector/load.rb +1 -1
- data/test-unit/lib/test/unit/color-scheme.rb +6 -2
- data/test-unit/lib/test/unit/diff.rb +17 -1
- data/test-unit/lib/test/unit/testcase.rb +7 -0
- data/test-unit/lib/test/unit/testresult.rb +34 -2
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +9 -45
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +2 -12
- data/test-unit/lib/test/unit/ui/testrunner.rb +25 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +1 -0
- data/test-unit/lib/test/unit/util/output.rb +31 -0
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/test/test-color-scheme.rb +4 -2
- data/test-unit/test/test_assertions.rb +51 -5
- data/test-unit/test/ui/test_tap.rb +33 -0
- data/test-unit/test/util/test-output.rb +11 -0
- data/test/test-patricia-trie.rb +161 -0
- data/test/test-remote.rb +2 -1
- data/test/test-table-cursor.rb +35 -1
- metadata +26 -10
- data/test-unit/html/classic.html +0 -15
data/test/test-remote.rb
CHANGED
@@ -47,7 +47,8 @@ class RemoteTest < Test::Unit::TestCase
|
|
47
47
|
id, result = _context.receive
|
48
48
|
assert_equal(0, id)
|
49
49
|
values = JSON.load(result)
|
50
|
-
assert_equal(["alloc_count", "
|
50
|
+
assert_equal(["alloc_count", "cache_hit_rate", "n_queries",
|
51
|
+
"starttime", "uptime", "version"],
|
51
52
|
values.keys.sort)
|
52
53
|
end
|
53
54
|
|
data/test/test-table-cursor.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2009-2010 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -136,6 +136,40 @@ class TableCursorTest < Test::Unit::TestCase
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
+
def test_order_by_id
|
140
|
+
sites = Groonga::PatriciaTrie.create(:name => "Sites")
|
141
|
+
sites.add("http://qwik.jp/senna/")
|
142
|
+
sites.add("http://www.ruby-lang.org/")
|
143
|
+
sites.add("http://groonga.org/")
|
144
|
+
keys = []
|
145
|
+
sites.open_cursor(:order_by => :id) do |cursor|
|
146
|
+
while cursor.next
|
147
|
+
keys << cursor.key
|
148
|
+
end
|
149
|
+
end
|
150
|
+
assert_equal(["http://qwik.jp/senna/",
|
151
|
+
"http://www.ruby-lang.org/",
|
152
|
+
"http://groonga.org/"],
|
153
|
+
keys)
|
154
|
+
end
|
155
|
+
|
156
|
+
def test_order_by_key
|
157
|
+
sites = Groonga::PatriciaTrie.create(:name => "Sites")
|
158
|
+
sites.add("http://www.ruby-lang.org/")
|
159
|
+
sites.add("http://qwik.jp/senna/")
|
160
|
+
sites.add("http://groonga.org/")
|
161
|
+
keys = []
|
162
|
+
sites.open_cursor(:order_by => :key) do |cursor|
|
163
|
+
while cursor.next
|
164
|
+
keys << cursor.key
|
165
|
+
end
|
166
|
+
end
|
167
|
+
assert_equal(["http://groonga.org/",
|
168
|
+
"http://qwik.jp/senna/",
|
169
|
+
"http://www.ruby-lang.org/"],
|
170
|
+
keys)
|
171
|
+
end
|
172
|
+
|
139
173
|
private
|
140
174
|
def create_users
|
141
175
|
users = Groonga::Array.create(:name => "Users")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.9.5
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kouhei Sutou
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2010-
|
22
|
+
date: 2010-08-29 00:00:00 +09:00
|
23
23
|
default_executable:
|
24
24
|
dependencies: []
|
25
25
|
|
@@ -36,12 +36,12 @@ executables: []
|
|
36
36
|
extensions:
|
37
37
|
- extconf.rb
|
38
38
|
extra_rdoc_files:
|
39
|
-
- README.ja.rdoc
|
40
|
-
- NEWS.ja.rdoc
|
41
|
-
- text/TUTORIAL.ja.rdoc
|
42
|
-
- text/expression.rdoc
|
43
39
|
- README.rdoc
|
44
40
|
- NEWS.rdoc
|
41
|
+
- README.ja.rdoc
|
42
|
+
- text/expression.rdoc
|
43
|
+
- text/TUTORIAL.ja.rdoc
|
44
|
+
- NEWS.ja.rdoc
|
45
45
|
files:
|
46
46
|
- AUTHORS
|
47
47
|
- NEWS.ja.rdoc
|
@@ -126,12 +126,25 @@ files:
|
|
126
126
|
- misc/grnop2ruby.rb
|
127
127
|
- pkg-config.rb
|
128
128
|
- rroonga-build.rb
|
129
|
+
- test-unit-notify/Rakefile
|
130
|
+
- test-unit-notify/lib/test/unit/notify.rb
|
131
|
+
- test-unit/COPYING
|
132
|
+
- test-unit/GPL
|
133
|
+
- test-unit/PSFL
|
129
134
|
- test-unit/Rakefile
|
130
135
|
- test-unit/TODO
|
131
136
|
- test-unit/bin/testrb
|
132
|
-
- test-unit/html/
|
137
|
+
- test-unit/html/bar.svg
|
138
|
+
- test-unit/html/developer.svg
|
139
|
+
- test-unit/html/favicon.ico
|
140
|
+
- test-unit/html/favicon.svg
|
141
|
+
- test-unit/html/heading-mark.svg
|
133
142
|
- test-unit/html/index.html
|
134
143
|
- test-unit/html/index.html.ja
|
144
|
+
- test-unit/html/install.svg
|
145
|
+
- test-unit/html/logo.svg
|
146
|
+
- test-unit/html/test-unit.css
|
147
|
+
- test-unit/html/tutorial.svg
|
135
148
|
- test-unit/lib/test/unit.rb
|
136
149
|
- test-unit/lib/test/unit/assertionfailederror.rb
|
137
150
|
- test-unit/lib/test/unit/assertions.rb
|
@@ -169,6 +182,7 @@ files:
|
|
169
182
|
- test-unit/lib/test/unit/util/backtracefilter.rb
|
170
183
|
- test-unit/lib/test/unit/util/method-owner-finder.rb
|
171
184
|
- test-unit/lib/test/unit/util/observable.rb
|
185
|
+
- test-unit/lib/test/unit/util/output.rb
|
172
186
|
- test-unit/lib/test/unit/util/procwrapper.rb
|
173
187
|
- test-unit/lib/test/unit/version.rb
|
174
188
|
- test-unit/sample/adder.rb
|
@@ -198,8 +212,10 @@ files:
|
|
198
212
|
- test-unit/test/test_testresult.rb
|
199
213
|
- test-unit/test/test_testsuite.rb
|
200
214
|
- test-unit/test/testunit-test-util.rb
|
215
|
+
- test-unit/test/ui/test_tap.rb
|
201
216
|
- test-unit/test/ui/test_testrunmediator.rb
|
202
217
|
- test-unit/test/util/test-method-owner-finder.rb
|
218
|
+
- test-unit/test/util/test-output.rb
|
203
219
|
- test-unit/test/util/test_backtracefilter.rb
|
204
220
|
- test-unit/test/util/test_observable.rb
|
205
221
|
- test-unit/test/util/test_procwrapper.rb
|
data/test-unit/html/classic.html
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Test::Unit (Classic)</title>
|
5
|
-
</head>
|
6
|
-
<body bgcolor="red">
|
7
|
-
<p style="text-align: center">
|
8
|
-
<img height="161" width="308" src="test-unit-classic.png">
|
9
|
-
<br>
|
10
|
-
<br>
|
11
|
-
<br>
|
12
|
-
Read the <a href="classic/test-unit/">rdoc</a>
|
13
|
-
</p>
|
14
|
-
</body>
|
15
|
-
</html>
|