rubyfish 0.0.5 → 0.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d24416b40ceacffc2b9d78b1c7ce135787858e2b
4
+ data.tar.gz: cef2c11513944b4ca239c19f63e2dc68231efff5
5
+ SHA512:
6
+ metadata.gz: d77fb0622ee6e10ed7102dc51de39498d982a08ac60a35e6863fdeedaa4da69160ec9e0f5c29a96253d61ac0dd553809b9ec570fbbf61b3c40419a9345bae56d
7
+ data.tar.gz: bde2d5952f362e3dc67eef9da3d1bb6c92df638a20e6f0408937e2720ebd2690789bcfb755799e15fccf9003e5ad5d3584b6b5a390a07278d178259571fe48ad
@@ -38,7 +38,7 @@ module RubyFish::DamerauLevenshtein
38
38
 
39
39
  d_now = [d1, d2, d3].min
40
40
 
41
- if allow_swaps && i > 2 && j > 2 && as[i - 1] == bs[j - 2] && as[i - 2] == bs[j - 1]
41
+ if allow_swaps && i > 1 && j > 1 && as[i - 1] == bs[j - 2] && as[i - 2] == bs[j - 1]
42
42
  d1 = dist[k - 2][j - 2] + cost
43
43
  d_now = [d_now, d1].min;
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module RubyFish
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yury Korolev
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-16 00:00:00.000000000 Z
11
+ date: 2013-08-13 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Port of http://github.com/sunlightlabs/jellyfish
15
14
  email:
@@ -35,29 +34,25 @@ files:
35
34
  - ROADMAP.md
36
35
  homepage: http://github.com/anjlab/rubyfish
37
36
  licenses: []
37
+ metadata: {}
38
38
  post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
43
  requirements:
45
- - - ! '>='
44
+ - - '>='
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
- segments:
49
- - 0
50
- hash: -749425856707131905
51
47
  required_rubygems_version: !ruby/object:Gem::Requirement
52
- none: false
53
48
  requirements:
54
- - - ! '>='
49
+ - - '>='
55
50
  - !ruby/object:Gem::Version
56
51
  version: 1.3.6
57
52
  requirements: []
58
53
  rubyforge_project: rubyfish
59
- rubygems_version: 1.8.24
54
+ rubygems_version: 2.0.3
60
55
  signing_key:
61
- specification_version: 3
56
+ specification_version: 4
62
57
  summary: Library for doing approximate and phonetic matching of string
63
58
  test_files: []