biodiversity 1.0.4 → 1.0.5
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/biodiversity/parser.rb +1 -1
- data/spec/parser/test_data.txt +3 -0
- metadata +5 -7
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.5
|
data/lib/biodiversity/parser.rb
CHANGED
|
@@ -47,7 +47,7 @@ class ScientificNameParser
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def virus?(a_string)
|
|
50
|
-
!!(a_string.match(/\sICTV\s*$/) || a_string.match(/\
|
|
50
|
+
!!(a_string.match(/\sICTV\s*$/) || a_string.match(/\b(virus|viruses|phage|phages|viroid|viroids|satellite|satellites|prion|prions)\b/i))
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def unknown_placement?(a_string)
|
data/spec/parser/test_data.txt
CHANGED
|
@@ -265,6 +265,9 @@ Apple scar skin viroid|{"scientificName":{"parsed":false, "parser_version":"test
|
|
|
265
265
|
Australian grapevine viroid [X17101] Australian grapevine viroid ICTV|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Australian grapevine viroid [X17101] Australian grapevine viroid ICTV", "virus":true}}
|
|
266
266
|
Agents of Spongiform Encephalopathies CWD prion Chronic wasting disease|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Agents of Spongiform Encephalopathies CWD prion Chronic wasting disease", "virus":true}}
|
|
267
267
|
Fakus prioni|{"scientificName":{"parsed":true, "verbatim":"Fakus prioni", "normalized":"Fakus prioni", "canonical":"Fakus prioni", "hybrid":false, "details":[{"genus":{"string":"Fakus"}, "species":{"string":"prioni"}}], "parser_version":"test_version", "parser_run":1, "positions":{"0":["genus", 5], "6":["species", 12]}}}
|
|
268
|
+
Phi h-like viruses|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Phi h-like viruses", "virus":true}}
|
|
269
|
+
Viroids|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Viroids", "virus":true}}
|
|
270
|
+
Fungal prions|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Fungal prions", "virus":true}}
|
|
268
271
|
|
|
269
272
|
#double parenthesis
|
|
270
273
|
Eichornia crassipes ( (Martius) ) Solms-Laub.|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":2,"verbatim":"Eichornia crassipes ( (Martius) ) Solms-Laub.","normalized":"Eichornia crassipes (Martius) Solms-Laub.","canonical":"Eichornia crassipes","hybrid":false,"details":[{"genus":{"string":"Eichornia"},"species":{"string":"crassipes","authorship":"( (Martius) ) Solms-Laub.","combinationAuthorTeam":{"authorTeam":"Solms-Laub.","author":["Solms-Laub."]},"basionymAuthorTeam":{"authorTeam":"Martius","author":["Martius"]}}}],"positions":{"0":["genus",9],"10":["species",19],"23":["author_word",30],"34":["author_word",45]}}}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: biodiversity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 1.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Dmitry Mozzherin
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-08-
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2011-08-09 00:00:00 Z
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
|
22
21
|
name: treetop
|
|
@@ -97,7 +96,6 @@ files:
|
|
|
97
96
|
- spec/parser/spec_helper.rb
|
|
98
97
|
- spec/parser/test_data.txt
|
|
99
98
|
- spec/spec_helper.rb
|
|
100
|
-
has_rdoc: true
|
|
101
99
|
homepage: http://github.com/GlobalNamesArchitecture/biodiversity
|
|
102
100
|
licenses: []
|
|
103
101
|
|
|
@@ -127,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
125
|
requirements: []
|
|
128
126
|
|
|
129
127
|
rubyforge_project:
|
|
130
|
-
rubygems_version: 1.
|
|
128
|
+
rubygems_version: 1.8.6
|
|
131
129
|
signing_key:
|
|
132
130
|
specification_version: 3
|
|
133
131
|
summary: Parser of scientific names
|