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 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
@@ -15,6 +15,6 @@
15
15
 
16
16
  module Droonga
17
17
  class Engine
18
- VERSION = "1.0.1"
18
+ VERSION = "1.0.2"
19
19
  end
20
20
  end
@@ -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 => false)
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 => false)
77
+ :result => error_result)
77
78
  end
78
79
 
79
80
  table_name
80
81
  end
81
82
 
82
- def valid_column_name(name, table_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 => false)
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 => false)
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)
@@ -20,7 +20,7 @@
20
20
  -22,
21
21
  0.0,
22
22
  0.0,
23
- "column not found: <unknown>"
23
+ "column not found: <unknown> in <User>"
24
24
  ],
25
25
  false
26
26
  ]
@@ -20,7 +20,7 @@
20
20
  -22,
21
21
  0.0,
22
22
  0.0,
23
- "column not found: <unknown>"
23
+ "column not found: <unknown> in <User>"
24
24
  ],
25
25
  false
26
26
  ]
@@ -7,7 +7,7 @@
7
7
  -22,
8
8
  0.0,
9
9
  0.0,
10
- "table not found"
10
+ "table not found: <Unknown>"
11
11
  ],
12
12
  false
13
13
  ]
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.1
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: &71941650 !ruby/object:Gem::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: *71941650
24
+ version_requirements: *81609640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: groonga-command-parser
27
- requirement: &71941090 !ruby/object:Gem::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: *71941090
35
+ version_requirements: *81609430
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &71939710 !ruby/object:Gem::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: *71939710
46
+ version_requirements: *81609200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cool.io
49
- requirement: &71954950 !ruby/object:Gem::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: *71954950
57
+ version_requirements: *81608990
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: serverengine
60
- requirement: &71954530 !ruby/object:Gem::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: *71954530
68
+ version_requirements: *81608780
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: droonga-message-pack-packer
71
- requirement: &71953800 !ruby/object:Gem::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: *71953800
79
+ version_requirements: *81608570
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rake
82
- requirement: &71952820 !ruby/object:Gem::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: *71952820
90
+ version_requirements: *81608360
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: bundler
93
- requirement: &71952150 !ruby/object:Gem::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: *71952150
101
+ version_requirements: *81608150
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: droonga-client
104
- requirement: &71950390 !ruby/object:Gem::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: *71950390
112
+ version_requirements: *81607940
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: test-unit
115
- requirement: &71949850 !ruby/object:Gem::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: *71949850
123
+ version_requirements: *81607730
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: test-unit-notify
126
- requirement: &71948990 !ruby/object:Gem::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: *71948990
134
+ version_requirements: *81607520
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: test-unit-rr
137
- requirement: &71948260 !ruby/object:Gem::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: *71948260
145
+ version_requirements: *81607310
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: packnga
148
- requirement: &71947920 !ruby/object:Gem::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: *71947920
156
+ version_requirements: *81607100
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: kramdown
159
- requirement: &71867020 !ruby/object:Gem::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: *71867020
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: