taxa 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/taxa/plants_of_the_world_online/client.rb +2 -2
- data/lib/taxa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c3d0340e64965b829135fd758847296d007e8293d5229fd2485fccb40abe0be
|
4
|
+
data.tar.gz: 9c053380d21709436c7bf9b4e0a9198eecdedab7e0e578b4c50b992dcb4bd76e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99741a996cd69e5d57b2da6af6d0c4acf04a429db6258f6cdefbeb21d3b062aeba41a6537e7f5a3c6ff78d5941c533448b7263751ec134029bb9bad2538a29a3
|
7
|
+
data.tar.gz: 01d2cee9562d2f2845fc0866c3a8a68a279e548b5eb6f1913b41aa43110e8a13cc379b980e5ce524dc8165d5b18e7d003bd74cc09ad09425a5f466fdae8e3230
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ module Taxa
|
|
10
10
|
|
11
11
|
POWO_URL = 'http://www.plantsoftheworldonline.org/api/2'
|
12
12
|
|
13
|
-
FILTERS = %w[accepted_names has_images families_f genus_f
|
13
|
+
FILTERS = %w[accepted_names has_images families_f genus_f species_f infraspecific_f].freeze
|
14
14
|
|
15
15
|
def initialize(**options)
|
16
16
|
@options = options
|
@@ -45,7 +45,7 @@ module Taxa
|
|
45
45
|
def validate_search_parameters(query, page, filters)
|
46
46
|
raise ArgumentError, 'query can not be nil' if query.nil?
|
47
47
|
|
48
|
-
if !filters.empty? &&
|
48
|
+
if !filters.empty? && !filters.all? { |f| FILTERS.include? f }
|
49
49
|
raise ArgumentError,
|
50
50
|
"filter is invalid. It must be one of these: #{FILTERS.join(', ')} can not be nil"
|
51
51
|
end
|
data/lib/taxa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taxa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Sherman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|