cassiopee 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Changelog +1 -0
  2. data/lib/cassiopee.rb +1 -1
  3. metadata +3 -3
data/Changelog CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.7: Fix in ambiguity management
1
2
  v0.1.6: Fix ambiguity and cache support in CassiopeeMT
2
3
  v0.1.5 : add CrawlerCache for basic cache management (previous result only), several fixes
3
4
  v0.1.4 : fix 0.1.3 error on index load, add filter_position management in mt
data/lib/cassiopee.rb CHANGED
@@ -137,7 +137,7 @@ module Cassiopee
137
137
  return false
138
138
  end
139
139
  end
140
- if(ambiguous[a.chr].index(b.chr)!=nil || ambiguous[b.chr].index(a.chr)!=nil || a==b)
140
+ if(a==b || (ambiguous[a.chr]!=nil && ambiguous[a.chr].index(b.chr)!=nil) || (ambiguous[b.chr]!=nil && ambiguous[b.chr].index(a.chr)!=nil))
141
141
  return true
142
142
  else
143
143
  return false
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olivier Sallou