rroonga 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.textile +22 -1
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-logger.c +41 -89
- data/ext/groonga/rb-grn-object.c +1 -1
- data/ext/groonga/rb-grn-plugin.c +1 -1
- data/ext/groonga/rb-grn-query-logger.c +75 -2
- data/ext/groonga/rb-grn-table.c +658 -511
- data/ext/groonga/rb-grn-utils.c +113 -22
- data/ext/groonga/rb-grn.h +7 -1
- data/lib/groonga.rb +18 -18
- data/lib/groonga/context.rb +11 -3
- data/lib/groonga/logger.rb +26 -0
- data/lib/groonga/record.rb +25 -2
- data/rroonga-build.rb +1 -1
- data/rroonga.gemspec +1 -1
- data/test/test-column.rb +103 -1
- data/test/test-logger.rb +9 -8
- metadata +4 -4
data/test/test-logger.rb
CHANGED
@@ -17,22 +17,23 @@ class LoggerTest < Test::Unit::TestCase
|
|
17
17
|
include GroongaTestUtils
|
18
18
|
|
19
19
|
def setup
|
20
|
-
@default_log_path = Groonga::Logger.
|
21
|
-
@default_query_log_path = Groonga::
|
20
|
+
@default_log_path = Groonga::Logger.path
|
21
|
+
@default_query_log_path = Groonga::QueryLogger.path
|
22
22
|
end
|
23
23
|
|
24
24
|
def teardown
|
25
|
-
Groonga::Logger.
|
26
|
-
Groonga::
|
25
|
+
Groonga::Logger.path = @default_log_path
|
26
|
+
Groonga::QueryLogger.path = @default_query_log_path
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_reopen
|
30
30
|
Groonga::Logger.unregister
|
31
|
-
|
32
|
-
|
31
|
+
Groonga::Logger.path = @log_path.to_s
|
32
|
+
if @log_path.exist?
|
33
|
+
FileUtils.mv(@log_path, "#{@log_path}.old")
|
33
34
|
end
|
34
|
-
assert_false(
|
35
|
+
assert_false(@log_path.exist?)
|
35
36
|
Groonga::Logger.reopen
|
36
|
-
assert_true(
|
37
|
+
assert_true(@log_path.exist?)
|
37
38
|
end
|
38
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-
|
16
|
+
date: 2013-05-01 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: pkg-config
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
requirements:
|
167
167
|
- - ! '>='
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
version:
|
169
|
+
version: 0.9.7
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
172
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -174,7 +174,7 @@ dependencies:
|
|
174
174
|
requirements:
|
175
175
|
- - ! '>='
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version:
|
177
|
+
version: 0.9.7
|
178
178
|
- !ruby/object:Gem::Dependency
|
179
179
|
name: RedCloth
|
180
180
|
requirement: !ruby/object:Gem::Requirement
|