taxamatch_rb 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source "http://rubygems.org"
2
2
  require 'yaml'
3
3
  # YAML::ENGINE.yamler= 'syck'
4
4
 
5
- gem "biodiversity19","~> 0.7.3"
5
+ gem "biodiversity19",">= 1.0.9"
6
6
 
7
7
 
8
8
  group :development do
data/Gemfile.lock CHANGED
@@ -2,7 +2,10 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  archive-tar-minitar (0.5.2)
5
- biodiversity19 (0.7.3)
5
+ biodiversity19 (1.0.9)
6
+ parallel
7
+ parallel
8
+ treetop
6
9
  treetop
7
10
  builder (3.0.0)
8
11
  columnize (0.3.3)
@@ -24,7 +27,8 @@ GEM
24
27
  linecache19 (0.5.12)
25
28
  ruby_core_source (>= 0.1.4)
26
29
  mocha (0.9.12)
27
- polyglot (0.3.1)
30
+ parallel (0.5.9)
31
+ polyglot (0.3.3)
28
32
  rake (0.9.2)
29
33
  rake-compiler (0.7.9)
30
34
  rake
@@ -50,14 +54,15 @@ GEM
50
54
  archive-tar-minitar (>= 0.5.2)
51
55
  shoulda (2.11.3)
52
56
  term-ansicolor (1.0.5)
53
- treetop (1.4.9)
57
+ treetop (1.4.10)
58
+ polyglot
54
59
  polyglot (>= 0.3.1)
55
60
 
56
61
  PLATFORMS
57
62
  ruby
58
63
 
59
64
  DEPENDENCIES
60
- biodiversity19 (~> 0.7.3)
65
+ biodiversity19 (>= 1.0.9)
61
66
  bundler (~> 1.0.0)
62
67
  cucumber
63
68
  jeweler (~> 1.6.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
@@ -4,7 +4,7 @@ module Taxamatch
4
4
 
5
5
  module Normalizer
6
6
  def self.normalize(string)
7
- utf8_to_ascii(string).upcase
7
+ utf8_to_ascii(string.strip).upcase
8
8
  end
9
9
 
10
10
  def self.normalize_word(word)
@@ -17,6 +17,7 @@ module Taxamatch
17
17
 
18
18
  protected
19
19
  def self.utf8_to_ascii(string)
20
+ string = string.gsub(/\s{2,}/, ' ')
20
21
  string = string.gsub(/[ÀÂÅÃÄÁẤẠ]/, "A")
21
22
  string = string.gsub(/[ÉÈÊË]/, "E")
22
23
  string = string.gsub(/[ÍÌÎÏ]/, "I")
@@ -52,4 +53,4 @@ module Taxamatch
52
53
 
53
54
  end
54
55
 
55
- end
56
+ end
data/taxamatch_rb.gemspec CHANGED
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{taxamatch_rb}
8
- s.version = "0.8.0"
7
+ s.name = "taxamatch_rb"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Dmitry Mozzherin}]
12
- s.date = %q{2011-11-07}
13
- s.description = %q{This gem implements algorithm for fuzzy matching scientific names developed by Tony Rees}
14
- s.email = %q{dmozzherin@eol.org}
15
- s.extensions = [%q{ext/damerau_levenshtein/extconf.rb}]
11
+ s.authors = ["Dmitry Mozzherin"]
12
+ s.date = "2011-12-01"
13
+ s.description = "This gem implements algorithm for fuzzy matching scientific names developed by Tony Rees"
14
+ s.email = "dmozzherin@eol.org"
15
+ s.extensions = ["ext/damerau_levenshtein/extconf.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.rdoc"
@@ -36,18 +36,19 @@ Gem::Specification.new do |s|
36
36
  "spec/spec.opts",
37
37
  "spec/spec_helper.rb",
38
38
  "spec/taxamatch_rb_spec.rb",
39
- "spec/taxamatch_test.txt"
39
+ "spec/taxamatch_test.txt",
40
+ "taxamatch_rb.gemspec"
40
41
  ]
41
- s.homepage = %q{http://github.com/GlobalNamesArchitecture/taxamatch_rb}
42
- s.require_paths = [%q{lib}]
43
- s.rubygems_version = %q{1.8.6}
44
- s.summary = %q{Implementation of Tony Rees Taxamatch algorithms}
42
+ s.homepage = "http://github.com/GlobalNamesArchitecture/taxamatch_rb"
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = "1.8.10"
45
+ s.summary = "Implementation of Tony Rees Taxamatch algorithms"
45
46
 
46
47
  if s.respond_to? :specification_version then
47
48
  s.specification_version = 3
48
49
 
49
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<biodiversity19>, ["~> 0.7.3"])
51
+ s.add_runtime_dependency(%q<biodiversity19>, [">= 1.0.9"])
51
52
  s.add_development_dependency(%q<rake-compiler>, [">= 0"])
52
53
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
53
54
  s.add_development_dependency(%q<cucumber>, [">= 0"])
@@ -59,7 +60,7 @@ Gem::Specification.new do |s|
59
60
  s.add_development_dependency(%q<shoulda>, [">= 0"])
60
61
  s.add_development_dependency(%q<mocha>, [">= 0"])
61
62
  else
62
- s.add_dependency(%q<biodiversity19>, ["~> 0.7.3"])
63
+ s.add_dependency(%q<biodiversity19>, [">= 1.0.9"])
63
64
  s.add_dependency(%q<rake-compiler>, [">= 0"])
64
65
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
65
66
  s.add_dependency(%q<cucumber>, [">= 0"])
@@ -72,7 +73,7 @@ Gem::Specification.new do |s|
72
73
  s.add_dependency(%q<mocha>, [">= 0"])
73
74
  end
74
75
  else
75
- s.add_dependency(%q<biodiversity19>, ["~> 0.7.3"])
76
+ s.add_dependency(%q<biodiversity19>, [">= 1.0.9"])
76
77
  s.add_dependency(%q<rake-compiler>, [">= 0"])
77
78
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
78
79
  s.add_dependency(%q<cucumber>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taxamatch_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-07 00:00:00.000000000Z
12
+ date: 2011-12-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: biodiversity19
16
- requirement: &70320866627100 !ruby/object:Gem::Requirement
16
+ requirement: &70300657742240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.3
21
+ version: 1.0.9
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70320866627100
24
+ version_requirements: *70300657742240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake-compiler
27
- requirement: &70320866626600 !ruby/object:Gem::Requirement
27
+ requirement: &70300657741640 !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: :development
34
34
  prerelease: false
35
- version_requirements: *70320866626600
35
+ version_requirements: *70300657741640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70320866626100 !ruby/object:Gem::Requirement
38
+ requirement: &70300657741040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70320866626100
46
+ version_requirements: *70300657741040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cucumber
49
- requirement: &70320866625620 !ruby/object:Gem::Requirement
49
+ requirement: &70300657740560 !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: :development
56
56
  prerelease: false
57
- version_requirements: *70320866625620
57
+ version_requirements: *70300657740560
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &70320866625120 !ruby/object:Gem::Requirement
60
+ requirement: &70300657739960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70320866625120
68
+ version_requirements: *70300657739960
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &70320866624580 !ruby/object:Gem::Requirement
71
+ requirement: &70300657739380 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.6.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70320866624580
79
+ version_requirements: *70300657739380
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rcov
82
- requirement: &70320866624060 !ruby/object:Gem::Requirement
82
+ requirement: &70300657738780 !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: *70320866624060
90
+ version_requirements: *70300657738780
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: ruby-debug19
93
- requirement: &70320866623580 !ruby/object:Gem::Requirement
93
+ requirement: &70300657738180 !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: *70320866623580
101
+ version_requirements: *70300657738180
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: ruby-prof
104
- requirement: &70320866623100 !ruby/object:Gem::Requirement
104
+ requirement: &70300657737600 !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: *70320866623100
112
+ version_requirements: *70300657737600
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: shoulda
115
- requirement: &70320866622580 !ruby/object:Gem::Requirement
115
+ requirement: &70300657737000 !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: *70320866622580
123
+ version_requirements: *70300657737000
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: mocha
126
- requirement: &70320866622100 !ruby/object:Gem::Requirement
126
+ requirement: &70300657736420 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70320866622100
134
+ version_requirements: *70300657736420
135
135
  description: This gem implements algorithm for fuzzy matching scientific names developed
136
136
  by Tony Rees
137
137
  email: dmozzherin@eol.org
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: -270122937136728353
180
+ hash: 1976673087547619975
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 1.8.6
189
+ rubygems_version: 1.8.10
190
190
  signing_key:
191
191
  specification_version: 3
192
192
  summary: Implementation of Tony Rees Taxamatch algorithms