droonga-engine 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.md +27 -0
- data/lib/droonga/engine/version.rb +1 -1
- data/lib/droonga/plugins/groonga/column_create.rb +1 -1
- data/lib/droonga/plugins/groonga/column_remove.rb +3 -2
- data/lib/droonga/plugins/groonga/column_rename.rb +3 -2
- data/lib/droonga/plugins/groonga/delete.rb +1 -1
- data/lib/droonga/plugins/groonga/generic_command.rb +9 -6
- data/lib/droonga/plugins/groonga/table_remove.rb +1 -1
- data/test/command/suite/groonga/column_remove/unknown-column.expected +1 -1
- data/test/command/suite/groonga/column_rename/unknown-column.expected +1 -1
- data/test/command/suite/groonga/table_remove/unknown-table.expected +1 -1
- metadata +29 -29
data/doc/text/news.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.0.2: 2014-04-29 (planned)
|
4
|
+
|
5
|
+
The most important topic on this release is that the core component aka Droonga Engine becomes fluentd-free.
|
6
|
+
As the result, the project (and gem package) `fluent-plugin-droonga` is renamed to `droonga-engine`.
|
7
|
+
Of course the compatibility of the protocol is still there.
|
8
|
+
|
9
|
+
* Becomes fluentd-free.
|
10
|
+
* Supports new `--daemon` and `--pid-file` options for the daemon mode.
|
11
|
+
* More Groonga-compatible features are available:
|
12
|
+
* `table_list` command
|
13
|
+
* `column_list` command
|
14
|
+
* `column_remove` command
|
15
|
+
* `column_rename` command
|
16
|
+
* `delete` command
|
17
|
+
* options for `select` command
|
18
|
+
* `filter`
|
19
|
+
* `sortby`
|
20
|
+
* `drilldown`
|
21
|
+
* `drilldown_output_columns`
|
22
|
+
* `drilldown_sortby`
|
23
|
+
* `drilldown_offset`
|
24
|
+
* `drilldown_limit`
|
25
|
+
* A useful command line tool `droonga-catalog-generate` is included.
|
26
|
+
It helps you to write your custom `catalog.json`.
|
27
|
+
* Parameters for the `search` command is validated more strictly.
|
28
|
+
* The default port number is changed from 24224 (fluentd's one) to 10031.
|
29
|
+
|
3
30
|
## 1.0.1: 2014-03-29
|
4
31
|
|
5
32
|
### Improvements
|
@@ -27,7 +27,7 @@ module Droonga
|
|
27
27
|
command_class = ::Groonga::Command.find("column_create")
|
28
28
|
@command = command_class.new("column_create", request)
|
29
29
|
|
30
|
-
table_name = valid_table_name("table")
|
30
|
+
table_name = valid_table_name("table", :error_result => false)
|
31
31
|
|
32
32
|
if @command.column_index?
|
33
33
|
define_index(table_name)
|
@@ -27,8 +27,9 @@ module Droonga
|
|
27
27
|
command_class = ::Groonga::Command.find("column_remove")
|
28
28
|
@command = command_class.new("column_remove", request)
|
29
29
|
|
30
|
-
table_name = valid_table_name("table")
|
31
|
-
column_name = valid_column_name("name", table_name
|
30
|
+
table_name = valid_table_name("table", :error_result => false)
|
31
|
+
column_name = valid_column_name("name", :table_name => table_name,
|
32
|
+
:error_result => false)
|
32
33
|
|
33
34
|
remove_column(table_name, column_name)
|
34
35
|
end
|
@@ -27,8 +27,9 @@ module Droonga
|
|
27
27
|
command_class = ::Groonga::Command.find("column_rename")
|
28
28
|
@command = command_class.new("column_rename", request)
|
29
29
|
|
30
|
-
table_name = valid_table_name("table")
|
31
|
-
column_name = valid_column_name("name", table_name
|
30
|
+
table_name = valid_table_name("table", :error_result => false)
|
31
|
+
column_name = valid_column_name("name", :table_name => table_name,
|
32
|
+
:error_result => false)
|
32
33
|
|
33
34
|
new_name = @command["new_name"]
|
34
35
|
|
@@ -27,7 +27,7 @@ module Droonga
|
|
27
27
|
command_class = ::Groonga::Command.find("delete")
|
28
28
|
@command = command_class.new("delete", request)
|
29
29
|
|
30
|
-
table_name = valid_table_name("table")
|
30
|
+
table_name = valid_table_name("table", :error_result => false)
|
31
31
|
|
32
32
|
key = @command["key"]
|
33
33
|
id = @command["id"]
|
@@ -59,34 +59,37 @@ module Droonga
|
|
59
59
|
header
|
60
60
|
end
|
61
61
|
|
62
|
-
def valid_table_name(name)
|
62
|
+
def valid_table_name(name, params={})
|
63
|
+
error_result = params[:error_result]
|
63
64
|
table_name = @command[name]
|
64
65
|
|
65
66
|
if table_name.nil?
|
66
67
|
message = "you must specify table via \"#{name}\""
|
67
68
|
raise CommandError.new(:status => Status::INVALID_ARGUMENT,
|
68
69
|
:message => message,
|
69
|
-
:result =>
|
70
|
+
:result => error_result)
|
70
71
|
end
|
71
72
|
|
72
73
|
if @context[table_name].nil?
|
73
74
|
message = "table not found: <#{table_name.to_s}>"
|
74
75
|
raise CommandError.new(:status => Status::INVALID_ARGUMENT,
|
75
76
|
:message => message,
|
76
|
-
:result =>
|
77
|
+
:result => error_result)
|
77
78
|
end
|
78
79
|
|
79
80
|
table_name
|
80
81
|
end
|
81
82
|
|
82
|
-
def valid_column_name(name,
|
83
|
+
def valid_column_name(name, params={})
|
84
|
+
table_name = params[:table_name]
|
85
|
+
error_result = params[:error_result]
|
83
86
|
column_name = @command[name]
|
84
87
|
|
85
88
|
if column_name.nil?
|
86
89
|
message = "you must specify column via \"#{name}\""
|
87
90
|
raise CommandError.new(:status => Status::INVALID_ARGUMENT,
|
88
91
|
:message => message,
|
89
|
-
:result =>
|
92
|
+
:result => error_result)
|
90
93
|
end
|
91
94
|
|
92
95
|
if @context[table_name].column(column_name).nil?
|
@@ -94,7 +97,7 @@ module Droonga
|
|
94
97
|
"<#{table_name.to_s}>"
|
95
98
|
raise CommandError.new(:status => Status::INVALID_ARGUMENT,
|
96
99
|
:message => message,
|
97
|
-
:result =>
|
100
|
+
:result => error_result)
|
98
101
|
end
|
99
102
|
|
100
103
|
column_name
|
@@ -27,7 +27,7 @@ module Droonga
|
|
27
27
|
command_class = ::Groonga::Command.find("table_remove")
|
28
28
|
@command = command_class.new("table_remove", request)
|
29
29
|
|
30
|
-
name = valid_table_name("name")
|
30
|
+
name = valid_table_name("name", :error_result => false)
|
31
31
|
|
32
32
|
::Groonga::Schema.define(:context => @context) do |schema|
|
33
33
|
schema.remove_table(name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droonga-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2014-04-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rroonga
|
16
|
-
requirement: &
|
16
|
+
requirement: &81609640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *81609640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: groonga-command-parser
|
27
|
-
requirement: &
|
27
|
+
requirement: &81609430 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *81609430
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: json
|
38
|
-
requirement: &
|
38
|
+
requirement: &81609200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *81609200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cool.io
|
49
|
-
requirement: &
|
49
|
+
requirement: &81608990 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *81608990
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: serverengine
|
60
|
-
requirement: &
|
60
|
+
requirement: &81608780 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *81608780
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: droonga-message-pack-packer
|
71
|
-
requirement: &
|
71
|
+
requirement: &81608570 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *81608570
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rake
|
82
|
-
requirement: &
|
82
|
+
requirement: &81608360 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *81608360
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: bundler
|
93
|
-
requirement: &
|
93
|
+
requirement: &81608150 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *81608150
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: droonga-client
|
104
|
-
requirement: &
|
104
|
+
requirement: &81607940 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *81607940
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: test-unit
|
115
|
-
requirement: &
|
115
|
+
requirement: &81607730 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *81607730
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: test-unit-notify
|
126
|
-
requirement: &
|
126
|
+
requirement: &81607520 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *81607520
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: test-unit-rr
|
137
|
-
requirement: &
|
137
|
+
requirement: &81607310 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *81607310
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: packnga
|
148
|
-
requirement: &
|
148
|
+
requirement: &81607100 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *81607100
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: kramdown
|
159
|
-
requirement: &
|
159
|
+
requirement: &81606890 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *81606890
|
168
168
|
description: Droonga engine is a core component in Droonga system. Droonga is a scalable
|
169
169
|
data processing engine based on Groonga. Droonga means Distributed Groonga.
|
170
170
|
email:
|