taxonifi 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/lib/taxonifi/assessor.rb +2 -1
- data/lib/taxonifi/export.rb +3 -3
- data/lib/taxonifi/model/collection.rb +1 -1
- data/lib/taxonifi/model/name_collection.rb +1 -2
- data/lib/taxonifi/model/person.rb +1 -1
- data/lib/taxonifi/splitter/builder.rb +17 -19
- data/lib/taxonifi/version.rb +1 -1
- metadata +1 -2
- data/travis/before_install.sh +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29847eb7651d53789f92fd15c1cf6c666b96b0a8e2692121a62251a20bead687
|
4
|
+
data.tar.gz: '093239b68549f6af2e98cb2e2c5aea7acea90809e0d707fa77cc5466c6f1fd64'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb25de92a519708a2d603c0487d9ae45151fc4afba8730f616f47be250f2b6aa69c03838fe6c5fbbb67716ec20bd429c2d842b540c7c7aea089033abeb1cb14
|
7
|
+
data.tar.gz: 1e112c48702b9f74cbe5de102b92ae9e2d45e458cc583b0eb2bbea0cc20580f148f61d770591dc227cec032faca681a75290be773e5148d7b3c4a46c80f3b8a1
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/taxonifi/assessor.rb
CHANGED
data/lib/taxonifi/export.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
+
require 'require_all'
|
2
|
+
|
1
3
|
module Taxonifi
|
2
4
|
# Export related functionality.
|
3
5
|
module Export
|
4
6
|
class ExportError < TaxonifiError; end
|
5
|
-
|
6
|
-
require file
|
7
|
-
end
|
7
|
+
require_rel 'export/format'
|
8
8
|
end
|
9
9
|
end
|
@@ -2,7 +2,7 @@ module Taxonifi
|
|
2
2
|
class CollectionError < TaxonifiError; end
|
3
3
|
module Model
|
4
4
|
|
5
|
-
|
5
|
+
require_rel 'shared_class_methods'
|
6
6
|
|
7
7
|
# The base class that all collection classes are derived from.
|
8
8
|
class Collection
|
@@ -1,26 +1,24 @@
|
|
1
1
|
# Builder functionality for parsing/lexing framework.
|
2
2
|
module Taxonifi::Splitter::Builder
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
require file
|
8
|
-
end
|
4
|
+
# Load all builders (= models)
|
5
|
+
# TODO: perhaps use a different scope that doesn't require loading all at once
|
6
|
+
require_rel '../model'
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
# Build and return Taxonifi::Model::AuthorYear from a string.
|
9
|
+
def self.build_author_year(text)
|
10
|
+
lexer = Taxonifi::Splitter::Lexer.new(text)
|
11
|
+
builder = Taxonifi::Model::AuthorYear.new
|
12
|
+
Taxonifi::Splitter::Parser.new(lexer, builder).parse_author_year
|
13
|
+
builder
|
14
|
+
end
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
# Build and return Taxonifi::Model::SpeciesName from a string.
|
17
|
+
def self.build_species_name(text)
|
18
|
+
lexer = Taxonifi::Splitter::Lexer.new(text, :species_name)
|
19
|
+
builder = Taxonifi::Model::SpeciesName.new
|
20
|
+
Taxonifi::Splitter::Parser.new(lexer, builder).parse_species_name
|
21
|
+
builder
|
22
|
+
end
|
25
23
|
|
26
24
|
end
|
data/lib/taxonifi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taxonifi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Yoder
|
@@ -201,7 +201,6 @@ files:
|
|
201
201
|
- test/test_taxonifi_ref.rb
|
202
202
|
- test/test_taxonifi_ref_collection.rb
|
203
203
|
- test/test_taxonifi_species_name.rb
|
204
|
-
- travis/before_install.sh
|
205
204
|
homepage: https://github.com/SpeciesFile/taxonifi
|
206
205
|
licenses:
|
207
206
|
- MIT
|
data/travis/before_install.sh
DELETED