rroonga 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/NEWS.ja.rdoc +47 -0
  2. data/NEWS.rdoc +48 -0
  3. data/README.ja.rdoc +1 -0
  4. data/README.rdoc +1 -0
  5. data/Rakefile +32 -13
  6. data/benchmark/create-wikipedia-database.rb +212 -0
  7. data/benchmark/repeat-load.rb +213 -0
  8. data/benchmark/select.rb +1052 -0
  9. data/ext/groonga/mkmf.log +99 -0
  10. data/ext/groonga/rb-grn-column.c +57 -6
  11. data/ext/groonga/rb-grn-context.c +15 -9
  12. data/ext/groonga/rb-grn-expression.c +7 -7
  13. data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
  14. data/ext/groonga/rb-grn-patricia-trie.c +5 -5
  15. data/ext/groonga/rb-grn-query.c +4 -4
  16. data/ext/groonga/rb-grn-table.c +16 -19
  17. data/ext/groonga/rb-grn.h +3 -3
  18. data/ext/groonga/rb-groonga.c +1 -1
  19. data/html/index.html +4 -4
  20. data/lib/groonga/context.rb +34 -0
  21. data/lib/groonga/expression-builder.rb +34 -2
  22. data/lib/groonga/record.rb +8 -6
  23. data/lib/groonga/schema.rb +40 -4
  24. data/rroonga-build.rb +2 -2
  25. data/test-unit/Rakefile +5 -18
  26. data/test-unit/html/classic.html +15 -0
  27. data/test-unit/html/index.html +13 -235
  28. data/test-unit/html/index.html.ja +15 -258
  29. data/test-unit/lib/test/unit.rb +1 -6
  30. data/test-unit/lib/test/unit/assertions.rb +11 -115
  31. data/test-unit/lib/test/unit/autorunner.rb +2 -5
  32. data/test-unit/lib/test/unit/collector/load.rb +1 -1
  33. data/test-unit/lib/test/unit/color-scheme.rb +2 -6
  34. data/test-unit/lib/test/unit/diff.rb +1 -17
  35. data/test-unit/lib/test/unit/testcase.rb +0 -7
  36. data/test-unit/lib/test/unit/testresult.rb +2 -34
  37. data/test-unit/lib/test/unit/ui/console/testrunner.rb +45 -9
  38. data/test-unit/lib/test/unit/ui/tap/testrunner.rb +12 -2
  39. data/test-unit/lib/test/unit/ui/testrunner.rb +0 -25
  40. data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -1
  41. data/test-unit/lib/test/unit/version.rb +1 -1
  42. data/test-unit/test/test-color-scheme.rb +2 -4
  43. data/test-unit/test/test_assertions.rb +5 -51
  44. data/test/test-column.rb +31 -1
  45. data/test/test-context-select.rb +45 -14
  46. data/test/test-context.rb +36 -0
  47. data/test/test-database.rb +13 -0
  48. data/test/test-expression-builder.rb +32 -5
  49. data/test/test-record.rb +34 -1
  50. data/test/test-schema.rb +52 -2
  51. data/test/test-table-select-weight.rb +20 -1
  52. data/test/test-table.rb +58 -0
  53. metadata +13 -41
  54. data/test-unit-notify/Rakefile +0 -47
  55. data/test-unit-notify/lib/test/unit/notify.rb +0 -104
  56. data/test-unit/COPYING +0 -56
  57. data/test-unit/GPL +0 -340
  58. data/test-unit/PSFL +0 -271
  59. data/test-unit/html/bar.svg +0 -153
  60. data/test-unit/html/developer.svg +0 -469
  61. data/test-unit/html/favicon.ico +0 -0
  62. data/test-unit/html/favicon.svg +0 -82
  63. data/test-unit/html/heading-mark.svg +0 -393
  64. data/test-unit/html/install.svg +0 -636
  65. data/test-unit/html/logo.svg +0 -483
  66. data/test-unit/html/test-unit.css +0 -339
  67. data/test-unit/html/tutorial.svg +0 -559
  68. data/test-unit/lib/test/unit/util/output.rb +0 -31
  69. data/test-unit/test/ui/test_tap.rb +0 -33
  70. data/test-unit/test/util/test-output.rb +0 -11
@@ -1,31 +0,0 @@
1
- module Test
2
- module Unit
3
- module Util
4
- module Output
5
- ##
6
- # Returns output for standard output and standard
7
- # error as string.
8
- #
9
- # Example:
10
- # capture_output do
11
- # puts("stdout")
12
- # warn("stderr")
13
- # end # -> ["stdout\n", "stderr\n"]
14
- def capture_output
15
- require 'stringio'
16
-
17
- output = StringIO.new
18
- error = StringIO.new
19
- stdout_save, stderr_save = $stdout, $stderr
20
- $stdout, $stderr = output, error
21
- begin
22
- yield
23
- [output.string, error.string]
24
- ensure
25
- $stdout, $stderr = stdout_save, stderr_save
26
- end
27
- end
28
- end
29
- end
30
- end
31
- end
@@ -1,33 +0,0 @@
1
- require 'stringio'
2
- require 'test/unit/ui/tap/testrunner'
3
-
4
- class TestTap < Test::Unit::TestCase
5
- def test_run
6
- fail_line = nil
7
- test_case = Class.new(Test::Unit::TestCase) do
8
- def test_success
9
- assert_equal(3, 1 + 2)
10
- end
11
-
12
- def test_fail; assert_equal(3, 1 - 2); end; fail_line = __LINE__
13
- end
14
- output = StringIO.new
15
- runner = Test::Unit::UI::Tap::TestRunner.new(test_case.suite,
16
- :output => output)
17
- result = runner.start; start_line = __LINE__
18
- assert_equal(<<-EOR, output.string.gsub(/[\d\.]+ seconds/, "0.001 seconds"))
19
- 1..2
20
- not ok 1 - test_fail(): <3> expected but was
21
- # Failure:
22
- # test_fail()
23
- # [#{__FILE__}:#{fail_line}:in `test_fail'
24
- # #{__FILE__}:#{start_line}:in `test_run']:
25
- # <3> expected but was
26
- # <-1>.
27
- ok 2 - test_success()
28
- # Finished in 0.001 seconds.
29
- # 2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
30
- EOR
31
- assert_true(result.passed?)
32
- end
33
- end
@@ -1,11 +0,0 @@
1
- require 'test/unit'
2
-
3
- class TestUnitOutput < Test::Unit::TestCase
4
- def test_capture_output
5
- assert_equal(["stdout\n", "stderr\n"],
6
- capture_output do
7
- puts("stdout")
8
- warn("stderr")
9
- end)
10
- end
11
- end