cassiopee 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.6: Fix ambiguity and cache support in CassiopeeMT
1
2
  v0.1.5 : add CrawlerCache for basic cache management (previous result only), several fixes
2
3
  v0.1.4 : fix 0.1.3 error on index load, add filter_position management in mt
3
4
  v0.1.3 : 09/11 Olivier Sallou
data/lib/cassiopee-mt.rb CHANGED
@@ -34,7 +34,11 @@ module CassiopeeMt
34
34
  crawler.setLogLevel($log.level)
35
35
  crawler.file_suffix = @file_suffix
36
36
  crawler.loadIndex()
37
- crawler.method = method
37
+ crawler.method = @method
38
+ crawler.comments = @comments
39
+ crawler.useAmbiguity = @useAmbiguity
40
+ crawler.ambiguous = @ambiguous
41
+ crawler.useCache = @useCache
38
42
  #crawler.file_suffix = @file_suffix+"."+threadId.to_s
39
43
  end
40
44
 
data/lib/cassiopee.rb CHANGED
@@ -261,6 +261,9 @@ module Cassiopee
261
261
 
262
262
  # Manage basic cache to store previous match
263
263
  attr_accessor :useCache
264
+
265
+ # Ambiguity map (Hash)
266
+ attr_accessor :ambiguous
264
267
 
265
268
  # Method for search FORCE or SUFFIX
266
269
  # * SUFFIX loads all suffixes and search through them afterwards, interesting for multiple searches (suffixes are reused)
@@ -278,7 +281,6 @@ module Cassiopee
278
281
  @prev_min_position = 0
279
282
  @prev_max_position = 0
280
283
 
281
- @ambiguous = nil
282
284
 
283
285
  @pattern = nil
284
286
 
@@ -298,6 +300,7 @@ module Cassiopee
298
300
 
299
301
  def initialize
300
302
  @useAmbiguity = false
303
+ @ambiguous = nil
301
304
  @useCache = false
302
305
  @file_suffix = "crawler"
303
306
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassiopee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olivier Sallou
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-20 00:00:00 +02:00
18
+ date: 2011-09-24 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency