ferret 0.11.8.4 → 0.11.8.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Thu Mar 08 00:18:44 +0100 2012
2
+ * Ruby 1.9 compatibility
3
+ * This release is basically the same as the now obsolete jk-ferret 0.11.8.3
4
+
1
5
  Fri Oct 20 22:25:37 JST 2006
2
6
  * Added Filter#bits method to built-in Filters.
3
7
  * Added MappingFilter < TokenFilter that can be used to map strings to other
@@ -12,13 +16,13 @@ Fri Oct 13 09:18:31 JST 2006
12
16
  ENGLISH_STOP_WORDS is a subset of FULL_ENGLISH_STOP_WORDS.
13
17
 
14
18
  Thu Oct 12 23:04:19 JST 2006
15
- * Fixed adding SortField to Sort object in Ruby. Garbage collection wasn't
19
+ * Fixed adding SortField to Sort object in Ruby. Garbage collection wasn't
16
20
  working.
17
21
  * Can now set :sort => SortField#new
18
22
 
19
23
  Tue Oct 10 14:42:17 JST 2006
20
24
  * Fixed MultiTermDocEnum bug introduced in version 0.10.10 during
21
- performance enhancements.
25
+ performance enhancements.
22
26
  * Added Filter#bits(index_reader) method to C implemented filters so that
23
27
  they can be used in Ruby.
24
28
 
data/Rakefile CHANGED
@@ -1,7 +1,9 @@
1
1
  require 'rake'
2
2
  require 'rake/clean'
3
- require 'rake/gempackagetask'
4
- require 'rake/rdoctask'
3
+ #require 'rake/gempackagetask'
4
+ require 'rubygems/package_task'
5
+ #require 'rake/rdoctask'
6
+ require 'rdoc/task'
5
7
  require 'rake/testtask'
6
8
 
7
9
  $:. << 'lib'
@@ -240,7 +242,7 @@ spec = Gem::Specification.new do |s|
240
242
  s.description = "Ferret is a super fast, highly configurable search library."
241
243
 
242
244
  #### Dependencies and requirements.
243
- s.add_dependency('rake')
245
+ s.add_development_dependency('rake')
244
246
  s.files = PKG_FILES.to_a
245
247
  s.extensions << "ext/extconf.rb"
246
248
  s.require_path = 'lib'
@@ -280,7 +282,7 @@ spec = Gem::Specification.new do |s|
280
282
  end
281
283
  end
282
284
 
283
- package_task = Rake::GemPackageTask.new(spec) do |pkg|
285
+ package_task = Gem::PackageTask.new(spec) do |pkg|
284
286
  unless windows
285
287
  pkg.need_zip = true
286
288
  pkg.need_tar = true
@@ -16,9 +16,9 @@ opts = OptionParser.new do |opts|
16
16
  opts.separator "Specific Options:"
17
17
 
18
18
  opts.on("-h", "--host HOSTNAME",
19
- "Host for web server to bind to (default is all IPs)") { |conf.host| }
19
+ "Host for web server to bind to (default is all IPs)") { |host| conf.host = host }
20
20
  opts.on("-p", "--port NUM",
21
- "Port for web server (defaults to #{conf.port})") { |conf.port| }
21
+ "Port for web server (defaults to #{conf.port})") { |port| conf.port = port }
22
22
  opts.on("-s", "--server NAME",
23
23
  "Server to force (#{SERVER_OPTIONS.join(', ')}).") { |s| conf.server = s.to_sym }
24
24
 
@@ -1649,7 +1649,7 @@ LazyDoc *fr_get_lazy_doc(FieldsReader *fr, int doc_num)
1649
1649
  for (i = 0; i < stored_cnt; i++) {
1650
1650
  LazyDocField *lazy_df = lazy_doc->fields[i];
1651
1651
  const int data_cnt = lazy_df->size;
1652
- const int start = is_pos(fdt_in);
1652
+ const off_t start = is_pos(fdt_in);
1653
1653
  for (j = 0; j < data_cnt; j++) {
1654
1654
  lazy_df->data[j].start += start;
1655
1655
  }
@@ -1,3 +1,3 @@
1
1
  module Ferret
2
- VERSION = '0.11.8.4'
2
+ VERSION = '0.11.8.5'
3
3
  end
@@ -21,6 +21,6 @@ class FieldSymbolTest < Test::Unit::TestCase
21
21
  assert_equal(field_type, :sym.__send__(field_type).type)
22
22
  end
23
23
 
24
- assert(:string, :sym.integer.byte.float.string.type)
24
+ assert(:string, :sym.integer.byte.float.string.type.to_s)
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,34 +1,44 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ferret
3
- version: !ruby/object:Gem::Version
4
- version: 0.11.8.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 61
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 11
9
+ - 8
10
+ - 5
11
+ version: 0.11.8.5
6
12
  platform: ruby
7
- authors:
13
+ authors:
8
14
  - David Balmain
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
- date: 2012-03-07 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2012-11-26 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: rake
16
- requirement: &70157988874200 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70157988874200
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
25
35
  description: Ferret is a super fast, highly configurable search library.
26
36
  email: dbalmain@gmail.com
27
- executables:
37
+ executables:
28
38
  - ferret-browser
29
- extensions:
39
+ extensions:
30
40
  - ext/extconf.rb
31
- extra_rdoc_files:
41
+ extra_rdoc_files:
32
42
  - README
33
43
  - TODO
34
44
  - TUTORIAL
@@ -40,14 +50,14 @@ extra_rdoc_files:
40
50
  - ext/r_store.c
41
51
  - ext/r_utils.c
42
52
  - ext/ferret.c
43
- files:
53
+ files:
44
54
  - setup.rb
45
55
  - CHANGELOG
46
56
  - MIT-LICENSE
57
+ - Rakefile
47
58
  - README
48
59
  - RELEASE_CHANGES
49
60
  - RELEASE_NOTES
50
- - Rakefile
51
61
  - TODO
52
62
  - TUTORIAL
53
63
  - lib/ferret/browser/webrick.rb
@@ -112,92 +122,37 @@ files:
112
122
  - test/unit/utils/tc_number_tools.rb
113
123
  - test/unit/utils/tc_priority_queue.rb
114
124
  - test/utils/content_generator.rb
115
- - ext/BZLIB_blocksort.c
116
- - ext/BZLIB_bzlib.c
117
- - ext/BZLIB_compress.c
118
- - ext/BZLIB_crctable.c
119
- - ext/BZLIB_decompress.c
120
- - ext/BZLIB_huffman.c
121
- - ext/BZLIB_randtable.c
122
- - ext/STEMMER_api.c
123
- - ext/STEMMER_libstemmer.c
124
- - ext/STEMMER_stem_ISO_8859_1_danish.c
125
- - ext/STEMMER_stem_ISO_8859_1_dutch.c
126
- - ext/STEMMER_stem_ISO_8859_1_english.c
127
- - ext/STEMMER_stem_ISO_8859_1_finnish.c
128
- - ext/STEMMER_stem_ISO_8859_1_french.c
129
- - ext/STEMMER_stem_ISO_8859_1_german.c
130
- - ext/STEMMER_stem_ISO_8859_1_hungarian.c
131
- - ext/STEMMER_stem_ISO_8859_1_italian.c
132
- - ext/STEMMER_stem_ISO_8859_1_norwegian.c
133
- - ext/STEMMER_stem_ISO_8859_1_porter.c
134
- - ext/STEMMER_stem_ISO_8859_1_portuguese.c
135
- - ext/STEMMER_stem_ISO_8859_1_spanish.c
136
- - ext/STEMMER_stem_ISO_8859_1_swedish.c
137
- - ext/STEMMER_stem_ISO_8859_2_romanian.c
138
- - ext/STEMMER_stem_KOI8_R_russian.c
139
- - ext/STEMMER_stem_UTF_8_danish.c
140
- - ext/STEMMER_stem_UTF_8_dutch.c
141
- - ext/STEMMER_stem_UTF_8_english.c
142
- - ext/STEMMER_stem_UTF_8_finnish.c
143
- - ext/STEMMER_stem_UTF_8_french.c
144
- - ext/STEMMER_stem_UTF_8_german.c
145
- - ext/STEMMER_stem_UTF_8_hungarian.c
146
- - ext/STEMMER_stem_UTF_8_italian.c
147
- - ext/STEMMER_stem_UTF_8_norwegian.c
148
- - ext/STEMMER_stem_UTF_8_porter.c
149
- - ext/STEMMER_stem_UTF_8_portuguese.c
150
- - ext/STEMMER_stem_UTF_8_romanian.c
151
- - ext/STEMMER_stem_UTF_8_russian.c
152
- - ext/STEMMER_stem_UTF_8_spanish.c
153
- - ext/STEMMER_stem_UTF_8_swedish.c
154
- - ext/STEMMER_stem_UTF_8_turkish.c
155
- - ext/STEMMER_utilities.c
125
+ - ext/ferret.c
126
+ - ext/ferret.h
127
+ - ext/lang.c
128
+ - ext/lang.h
129
+ - ext/r_analysis.c
130
+ - ext/r_index.c
131
+ - ext/r_qparser.c
132
+ - ext/r_search.c
133
+ - ext/r_store.c
134
+ - ext/r_utils.c
135
+ - ext/symbol.c
136
+ - ext/symbol.h
137
+ - ext/threading.h
156
138
  - ext/analysis.c
157
- - ext/analysis.h
158
- - ext/api.h
159
139
  - ext/array.c
160
- - ext/array.h
161
140
  - ext/bitvector.c
162
- - ext/bitvector.h
163
- - ext/bzlib.h
164
- - ext/bzlib_private.h
165
141
  - ext/compound_io.c
166
- - ext/config.h
167
142
  - ext/document.c
168
- - ext/document.h
169
143
  - ext/except.c
170
- - ext/except.h
171
- - ext/ferret.c
172
- - ext/ferret.h
173
144
  - ext/field_index.c
174
- - ext/field_index.h
175
145
  - ext/filter.c
176
146
  - ext/fs_store.c
177
147
  - ext/global.c
178
- - ext/global.h
179
148
  - ext/hash.c
180
- - ext/hash.h
181
149
  - ext/hashset.c
182
- - ext/hashset.h
183
- - ext/header.h
184
150
  - ext/helper.c
185
- - ext/helper.h
186
151
  - ext/index.c
187
- - ext/index.h
188
- - ext/internal.h
189
- - ext/lang.c
190
- - ext/lang.h
191
- - ext/libstemmer.h
192
152
  - ext/mempool.c
193
- - ext/mempool.h
194
- - ext/modules.h
195
153
  - ext/multimapper.c
196
- - ext/multimapper.h
197
154
  - ext/posh.c
198
- - ext/posh.h
199
155
  - ext/priorityqueue.c
200
- - ext/priorityqueue.h
201
156
  - ext/q_boolean.c
202
157
  - ext/q_const_score.c
203
158
  - ext/q_filtered_query.c
@@ -211,67 +166,123 @@ files:
211
166
  - ext/q_span.c
212
167
  - ext/q_term.c
213
168
  - ext/q_wildcard.c
214
- - ext/r_analysis.c
215
- - ext/r_index.c
216
- - ext/r_qparser.c
217
- - ext/r_search.c
218
- - ext/r_store.c
219
- - ext/r_utils.c
220
169
  - ext/ram_store.c
221
170
  - ext/scanner.c
222
171
  - ext/scanner.h
223
172
  - ext/scanner_mb.c
224
173
  - ext/scanner_utf8.c
225
174
  - ext/search.c
226
- - ext/search.h
227
175
  - ext/similarity.c
228
- - ext/similarity.h
229
176
  - ext/sort.c
177
+ - ext/stopwords.c
178
+ - ext/store.c
179
+ - ext/term_vectors.c
180
+ - ext/analysis.h
181
+ - ext/array.h
182
+ - ext/bitvector.h
183
+ - ext/config.h
184
+ - ext/document.h
185
+ - ext/except.h
186
+ - ext/field_index.h
187
+ - ext/global.h
188
+ - ext/hash.h
189
+ - ext/hashset.h
190
+ - ext/helper.h
191
+ - ext/index.h
192
+ - ext/mempool.h
193
+ - ext/multimapper.h
194
+ - ext/posh.h
195
+ - ext/priorityqueue.h
196
+ - ext/search.h
197
+ - ext/similarity.h
198
+ - ext/store.h
199
+ - ext/win32.h
200
+ - ext/BZLIB_blocksort.c
201
+ - ext/BZLIB_bzlib.c
202
+ - ext/bzlib.h
203
+ - ext/bzlib_private.h
204
+ - ext/BZLIB_compress.c
205
+ - ext/BZLIB_crctable.c
206
+ - ext/BZLIB_decompress.c
207
+ - ext/BZLIB_huffman.c
208
+ - ext/BZLIB_randtable.c
209
+ - ext/STEMMER_stem_ISO_8859_1_danish.c
230
210
  - ext/stem_ISO_8859_1_danish.h
211
+ - ext/STEMMER_stem_ISO_8859_1_dutch.c
231
212
  - ext/stem_ISO_8859_1_dutch.h
213
+ - ext/STEMMER_stem_ISO_8859_1_english.c
232
214
  - ext/stem_ISO_8859_1_english.h
215
+ - ext/STEMMER_stem_ISO_8859_1_finnish.c
233
216
  - ext/stem_ISO_8859_1_finnish.h
217
+ - ext/STEMMER_stem_ISO_8859_1_french.c
234
218
  - ext/stem_ISO_8859_1_french.h
219
+ - ext/STEMMER_stem_ISO_8859_1_german.c
235
220
  - ext/stem_ISO_8859_1_german.h
221
+ - ext/STEMMER_stem_ISO_8859_1_hungarian.c
236
222
  - ext/stem_ISO_8859_1_hungarian.h
223
+ - ext/STEMMER_stem_ISO_8859_1_italian.c
237
224
  - ext/stem_ISO_8859_1_italian.h
225
+ - ext/STEMMER_stem_ISO_8859_1_norwegian.c
238
226
  - ext/stem_ISO_8859_1_norwegian.h
227
+ - ext/STEMMER_stem_ISO_8859_1_porter.c
239
228
  - ext/stem_ISO_8859_1_porter.h
229
+ - ext/STEMMER_stem_ISO_8859_1_portuguese.c
240
230
  - ext/stem_ISO_8859_1_portuguese.h
231
+ - ext/STEMMER_stem_ISO_8859_1_spanish.c
241
232
  - ext/stem_ISO_8859_1_spanish.h
233
+ - ext/STEMMER_stem_ISO_8859_1_swedish.c
242
234
  - ext/stem_ISO_8859_1_swedish.h
235
+ - ext/STEMMER_stem_ISO_8859_2_romanian.c
243
236
  - ext/stem_ISO_8859_2_romanian.h
237
+ - ext/STEMMER_stem_KOI8_R_russian.c
244
238
  - ext/stem_KOI8_R_russian.h
239
+ - ext/STEMMER_stem_UTF_8_danish.c
245
240
  - ext/stem_UTF_8_danish.h
241
+ - ext/STEMMER_stem_UTF_8_dutch.c
246
242
  - ext/stem_UTF_8_dutch.h
243
+ - ext/STEMMER_stem_UTF_8_english.c
247
244
  - ext/stem_UTF_8_english.h
245
+ - ext/STEMMER_stem_UTF_8_finnish.c
248
246
  - ext/stem_UTF_8_finnish.h
247
+ - ext/STEMMER_stem_UTF_8_french.c
249
248
  - ext/stem_UTF_8_french.h
249
+ - ext/STEMMER_stem_UTF_8_german.c
250
250
  - ext/stem_UTF_8_german.h
251
+ - ext/STEMMER_stem_UTF_8_hungarian.c
251
252
  - ext/stem_UTF_8_hungarian.h
253
+ - ext/STEMMER_stem_UTF_8_italian.c
252
254
  - ext/stem_UTF_8_italian.h
255
+ - ext/STEMMER_stem_UTF_8_norwegian.c
253
256
  - ext/stem_UTF_8_norwegian.h
257
+ - ext/STEMMER_stem_UTF_8_porter.c
254
258
  - ext/stem_UTF_8_porter.h
259
+ - ext/STEMMER_stem_UTF_8_portuguese.c
255
260
  - ext/stem_UTF_8_portuguese.h
261
+ - ext/STEMMER_stem_UTF_8_romanian.c
256
262
  - ext/stem_UTF_8_romanian.h
263
+ - ext/STEMMER_stem_UTF_8_russian.c
257
264
  - ext/stem_UTF_8_russian.h
265
+ - ext/STEMMER_stem_UTF_8_spanish.c
258
266
  - ext/stem_UTF_8_spanish.h
267
+ - ext/STEMMER_stem_UTF_8_swedish.c
259
268
  - ext/stem_UTF_8_swedish.h
269
+ - ext/STEMMER_stem_UTF_8_turkish.c
260
270
  - ext/stem_UTF_8_turkish.h
261
- - ext/stopwords.c
262
- - ext/store.c
263
- - ext/store.h
264
- - ext/symbol.c
265
- - ext/symbol.h
266
- - ext/term_vectors.c
267
- - ext/threading.h
268
- - ext/win32.h
271
+ - ext/STEMMER_api.c
272
+ - ext/api.h
273
+ - ext/header.h
274
+ - ext/STEMMER_utilities.c
275
+ - ext/STEMMER_libstemmer.c
276
+ - ext/modules.h
277
+ - ext/libstemmer.h
278
+ - ext/internal.h
269
279
  - bin/ferret-browser
270
280
  - ext/extconf.rb
271
281
  homepage: http://github.com/jkraemer/ferret
272
282
  licenses: []
283
+
273
284
  post_install_message:
274
- rdoc_options:
285
+ rdoc_options:
275
286
  - --title
276
287
  - Ferret -- Ruby Search Library
277
288
  - --main
@@ -279,24 +290,32 @@ rdoc_options:
279
290
  - --line-numbers
280
291
  - TUTORIAL
281
292
  - TODO
282
- require_paths:
293
+ require_paths:
283
294
  - lib
284
- required_ruby_version: !ruby/object:Gem::Requirement
295
+ required_ruby_version: !ruby/object:Gem::Requirement
285
296
  none: false
286
- requirements:
287
- - - ! '>='
288
- - !ruby/object:Gem::Version
289
- version: '0'
290
- required_rubygems_version: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - ">="
299
+ - !ruby/object:Gem::Version
300
+ hash: 3
301
+ segments:
302
+ - 0
303
+ version: "0"
304
+ required_rubygems_version: !ruby/object:Gem::Requirement
291
305
  none: false
292
- requirements:
293
- - - ! '>='
294
- - !ruby/object:Gem::Version
295
- version: '0'
306
+ requirements:
307
+ - - ">="
308
+ - !ruby/object:Gem::Version
309
+ hash: 3
310
+ segments:
311
+ - 0
312
+ version: "0"
296
313
  requirements: []
314
+
297
315
  rubyforge_project: ferret
298
- rubygems_version: 1.8.10
316
+ rubygems_version: 1.8.24
299
317
  signing_key:
300
318
  specification_version: 3
301
319
  summary: Ruby indexing library.
302
320
  test_files: []
321
+