name-spotter 0.1.2 → 0.1.3
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/VERSION +1 -1
- data/lib/name-spotter/neti_neti_client.rb +1 -1
- data/name-spotter.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -7,7 +7,7 @@ class NameSpotter
|
|
|
7
7
|
def find(text)
|
|
8
8
|
# the form does not get sent if text is nil or empty
|
|
9
9
|
return [] if text.nil? || text.empty?
|
|
10
|
-
response = RestClient.post("http://#{@host}:#{@port}", data: text)
|
|
10
|
+
response = RestClient.post("http://#{@host}:#{@port}", data: text, headers: {Connection: "Keep-Alive"})
|
|
11
11
|
response.body.split("|").collect do |info|
|
|
12
12
|
res = info.split(",")
|
|
13
13
|
name = res[0...-2].join(",")
|
data/name-spotter.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "name-spotter"
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Anthony Goddard", "Chuck Ha", "Dmitry Mozzherin"]
|
|
12
|
-
s.date = "2012-06-
|
|
12
|
+
s.date = "2012-06-06"
|
|
13
13
|
s.description = "The gem searches for scientific names in texts using socket servers running TaxonFinder (by Patrick Leary) and NetiNeti (by Lakshmi Manohar Akella)"
|
|
14
14
|
s.email = "dmozzherin@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: name-spotter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2012-06-
|
|
14
|
+
date: 2012-06-06 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rake
|
|
@@ -269,7 +269,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
269
269
|
version: '0'
|
|
270
270
|
segments:
|
|
271
271
|
- 0
|
|
272
|
-
hash:
|
|
272
|
+
hash: 3062475815512184649
|
|
273
273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
none: false
|
|
275
275
|
requirements:
|