biodiversity 3.1.9 → 3.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -1
- data/lib/biodiversity/parser.rb +1 -1
- data/lib/biodiversity/version.rb +1 -1
- data/spec/files/test_data.txt +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a11c6b12ca173da86c7baa1242b9639e54d93c
|
4
|
+
data.tar.gz: 8c47f66efd6f8ee2b3e3dce894927a4cc73237a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e542a0cca44cef3a63acd4dc520db4465cb2a598aafcb30e2161e65ad6110b9a146ef01325da77f3e7474c5409a0b75f1b28eda7c59a7fe1ffb0cc59162fb6e
|
7
|
+
data.tar.gz: 36f21aed88acc4405c147b908de36d6109010935fec99108c90ca73d6dabd2b942a08a1eca04fd28a644bbec51a12b5836272ef2280160b4321f2f434760f665
|
data/CHANGELOG
CHANGED
data/lib/biodiversity/parser.rb
CHANGED
@@ -165,7 +165,7 @@ class ScientificNameParser
|
|
165
165
|
phage|phages|viroid|viroids|virophage|
|
166
166
|
prion|prions|NPV)\b/ix) ||
|
167
167
|
a_string.match(/[A-Z]?[a-z]+virus\b/) ||
|
168
|
-
a_string.match(/\b[A-Za-z]*satellite[s]
|
168
|
+
a_string.match(/\b[A-Za-z]*(satellite[s]?|NPV)\b/))
|
169
169
|
end
|
170
170
|
|
171
171
|
def noparse?(a_string)
|
data/lib/biodiversity/version.rb
CHANGED
data/spec/files/test_data.txt
CHANGED
@@ -366,6 +366,13 @@ Bemisia betasatellite LW-2014|{"scientificName":{"parsed":false, "parser_version
|
|
366
366
|
Tomato leaf curl Bangladesh betasatellites [India/Patna/Chilli/2008]|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Tomato leaf curl Bangladesh betasatellites [India/Patna/Chilli/2008]", "virus":true}}
|
367
367
|
Intracisternal A-particles|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Intracisternal A-particles", "virus":true}}
|
368
368
|
Saccharomyces cerevisiae killer particle M1|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Saccharomyces cerevisiae killer particle M1", "virus":true}}
|
369
|
+
Uranotaenia sapphirina NPV|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Uranotaenia sapphirina NPV", "virus":true}}
|
370
|
+
Spodoptera exigua nuclear polyhedrosis virus SeMNPV|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Spodoptera exigua nuclear polyhedrosis virus SeMNPV", "virus":true}}
|
371
|
+
Spodoptera frugiperda MNPV|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Spodoptera frugiperda MNPV", "virus":true}}
|
372
|
+
Rachiplusia ou MNPV (strain R1)|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Rachiplusia ou MNPV (strain R1)", "virus":true}}
|
373
|
+
Orgyia pseudotsugata nuclear polyhedrosis virus OpMNPV|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Orgyia pseudotsugata nuclear polyhedrosis virus OpMNPV", "virus":true}}
|
374
|
+
Mamestra configurata NPV-A|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Mamestra configurata NPV-A", "virus":true}}
|
375
|
+
Helicoverpa armigera SNPV NNg1|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"Helicoverpa armigera SNPV NNg1", "virus":true}}
|
369
376
|
|
370
377
|
#should not parse non-virus names containing RNA
|
371
378
|
ssRNA|{"scientificName":{"parsed":false, "parser_version":"test_version", "verbatim":"ssRNA"}}
|