bell_pepper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/.gitignore +2 -1
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +9 -17
- data/README.md +4 -2
- data/bell_pepper.gemspec +3 -9
- data/lib/bell_pepper/error.rb +6 -6
- data/lib/bell_pepper/version.rb +1 -1
- metadata +26 -21
- data/Gemfile.lock +0 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecb5378e7ec3d28981d82ecf7e1ead4dbf58f3da027ee0f023c404d195e4245a
|
4
|
+
data.tar.gz: 64855c0c198ade14e2f4672cc8914abfc9465021743e3013a7712047b9cf6f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60eabbb19242353d5ca7ca1379e29fb7dbef5899827f47e10538b43845d474eb469d983ae0c340675428052035e3244239a748b490d73eb9f54c9f9e88130d05
|
7
|
+
data.tar.gz: df3a5da203c15007e919ddc0291d760f4df514f80ced1a214d13f14464e342f8306168698b94efdcd44a556aeb8a4bdc49d69248f8058ae227ff3dca0b598b7d
|
data/.github/workflows/main.yml
CHANGED
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,21 +1,13 @@
|
|
1
|
-
|
1
|
+
Copyright © 2023 Species File Group. All rights reserved.
|
2
2
|
|
3
|
-
|
3
|
+
Developed by: Species File Group
|
4
|
+
Illinois Natural History Survey
|
5
|
+
https://github.com/SpeciesFileGroup/bonamia
|
4
6
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
11
8
|
|
12
|
-
|
13
|
-
|
9
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution.
|
11
|
+
Neither the names of <Name of Development Group, Name of Institution>, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.
|
14
12
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
13
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# BellPepper
|
2
2
|
|
3
|
+
![bell_pepper-tiny2](https://github.com/SpeciesFileGroup/bell_pepper/assets/8573609/361aaf60-df59-4d2b-b068-b441ec32ae21)
|
4
|
+
|
3
5
|
This is a wrapper on the [Biodiversity Enhanced Location Services (BELS) Georeference API](https://github.com/VertNet/bels). Code follow the spirit/approach of the Gem [serrano](https://github.com/sckott/serrano), and indeed much of the wrapping utility is copied 1:1 from that repo, thanks [@sckott](https://github.com/sckott).
|
4
6
|
|
5
7
|
## Installation
|
@@ -28,7 +30,7 @@ Or install it yourself as:
|
|
28
30
|
|
29
31
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
32
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, update the `CHANGELOG.md`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
34
|
|
33
35
|
## Contributing
|
34
36
|
|
@@ -36,7 +38,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Specie
|
|
36
38
|
|
37
39
|
## License
|
38
40
|
|
39
|
-
The gem is available as open source under the terms of the [NCSA/Illinois](https://
|
41
|
+
The gem is available as open source under the terms of the [NCSA/Illinois](https://github.com/SpeciesFileGroup/bell_pepper/blob/main/LICENSE.txt).
|
40
42
|
|
41
43
|
## Code of Conduct
|
42
44
|
|
data/bell_pepper.gemspec
CHANGED
@@ -5,14 +5,14 @@ require_relative "lib/bell_pepper/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "bell_pepper"
|
7
7
|
s.version = BellPepper::VERSION
|
8
|
-
s.authors = ["Geoff Ower"]
|
8
|
+
s.authors = ["Geoff Ower, Matt Yoder"]
|
9
9
|
s.email = ["gdower@illinois.edu"]
|
10
10
|
|
11
11
|
s.summary = "Biodiversity Enhanced Location Services (BELS) Georeference Client"
|
12
12
|
s.description = "bell_pepper is a low-level wrapper around the BELS API."
|
13
13
|
s.homepage = "https://github.com/SpeciesFileGroup/bell_pepper"
|
14
14
|
s.license = "NCSA"
|
15
|
-
s.required_ruby_version = ">= 2.
|
15
|
+
s.required_ruby_version = ">= 2.5.0"
|
16
16
|
|
17
17
|
# s.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
|
18
18
|
|
@@ -33,22 +33,16 @@ Gem::Specification.new do |s|
|
|
33
33
|
# s.add_dependency "example-gem", "~> 1.0"
|
34
34
|
|
35
35
|
s.add_development_dependency "bundler", "~> 2.1", ">= 2.1.4"
|
36
|
-
# s.add_development_dependency "codecov", "~> 0.5.0"
|
37
|
-
# s.add_development_dependency "json", "~> 2.3", ">= 2.3.1"
|
38
36
|
s.add_development_dependency "rake", "~> 13.0", ">= 13.0.1"
|
39
|
-
# s.add_development_dependency "standard", "~> 1.0"
|
40
|
-
# s.add_development_dependency "simplecov", "~> 0.21.2"
|
41
37
|
s.add_development_dependency "test-unit", "~> 3.3", ">= 3.3.6"
|
42
38
|
s.add_development_dependency "vcr", "~> 6.0"
|
43
39
|
s.add_development_dependency "webmock", "~> 3.18"
|
40
|
+
s.add_development_dependency "rexml", "~> 3.3", ">= 3.3.6"
|
44
41
|
|
45
42
|
s.add_runtime_dependency "faraday", "~> 2.2"
|
46
43
|
s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.4"
|
47
44
|
s.add_runtime_dependency "multi_json", "~> 1.15"
|
48
45
|
|
49
|
-
# TODO: comment out
|
50
|
-
s.add_development_dependency "byebug"
|
51
|
-
|
52
46
|
# s.add_runtime_dependency "thor", "~> 1.0", ">= 1.0.1"
|
53
47
|
|
54
48
|
# For more information and examples about making a new gem, checkout our
|
data/lib/bell_pepper/error.rb
CHANGED
@@ -4,21 +4,21 @@ module BellPepper
|
|
4
4
|
# Custom error class for rescuing from all BellPepper errors
|
5
5
|
class Error < StandardError; end
|
6
6
|
|
7
|
-
# Raised when
|
7
|
+
# Raised when BELS returns the HTTP status code 400
|
8
8
|
class BadRequest < Error; end
|
9
9
|
|
10
|
-
# Raised when
|
10
|
+
# Raised when BELS returns the HTTP status code 404
|
11
11
|
class NotFound < Error; end
|
12
12
|
|
13
|
-
# Raised when
|
13
|
+
# Raised when BELS returns the HTTP status code 500
|
14
14
|
class InternalServerError < Error; end
|
15
15
|
|
16
|
-
# Raised when
|
16
|
+
# Raised when BELS returns the HTTP status code 502
|
17
17
|
class BadGateway < Error; end
|
18
18
|
|
19
|
-
# Raised when
|
19
|
+
# Raised when BELS returns the HTTP status code 503
|
20
20
|
class ServiceUnavailable < Error; end
|
21
21
|
|
22
|
-
# Raised when
|
22
|
+
# Raised when BELS returns the HTTP status code 504
|
23
23
|
class GatewayTimeout < Error; end
|
24
24
|
end
|
data/lib/bell_pepper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bell_pepper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Geoff Ower
|
7
|
+
- Geoff Ower, Matt Yoder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,6 +98,26 @@ dependencies:
|
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '3.18'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: rexml
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '3.3'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.3.6
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.3'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 3.3.6
|
101
121
|
- !ruby/object:Gem::Dependency
|
102
122
|
name: faraday
|
103
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,20 +166,6 @@ dependencies:
|
|
146
166
|
- - "~>"
|
147
167
|
- !ruby/object:Gem::Version
|
148
168
|
version: '1.15'
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
name: byebug
|
151
|
-
requirement: !ruby/object:Gem::Requirement
|
152
|
-
requirements:
|
153
|
-
- - ">="
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: '0'
|
156
|
-
type: :development
|
157
|
-
prerelease: false
|
158
|
-
version_requirements: !ruby/object:Gem::Requirement
|
159
|
-
requirements:
|
160
|
-
- - ">="
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: '0'
|
163
169
|
description: bell_pepper is a low-level wrapper around the BELS API.
|
164
170
|
email:
|
165
171
|
- gdower@illinois.edu
|
@@ -172,7 +178,6 @@ files:
|
|
172
178
|
- CHANGELOG.md
|
173
179
|
- CODE_OF_CONDUCT.md
|
174
180
|
- Gemfile
|
175
|
-
- Gemfile.lock
|
176
181
|
- LICENSE.txt
|
177
182
|
- README.md
|
178
183
|
- Rakefile
|
@@ -192,7 +197,7 @@ licenses:
|
|
192
197
|
metadata:
|
193
198
|
homepage_uri: https://github.com/SpeciesFileGroup/bell_pepper
|
194
199
|
source_code_uri: https://github.com/SpeciesFileGroup/bell_pepper
|
195
|
-
changelog_uri: https://github.com/SpeciesFileGroup/bell_pepper/releases/tag/v0.1.
|
200
|
+
changelog_uri: https://github.com/SpeciesFileGroup/bell_pepper/releases/tag/v0.1.2
|
196
201
|
post_install_message:
|
197
202
|
rdoc_options: []
|
198
203
|
require_paths:
|
@@ -201,14 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
206
|
requirements:
|
202
207
|
- - ">="
|
203
208
|
- !ruby/object:Gem::Version
|
204
|
-
version: 2.
|
209
|
+
version: 2.5.0
|
205
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
211
|
requirements:
|
207
212
|
- - ">="
|
208
213
|
- !ruby/object:Gem::Version
|
209
214
|
version: '0'
|
210
215
|
requirements: []
|
211
|
-
rubygems_version: 3.4.
|
216
|
+
rubygems_version: 3.4.19
|
212
217
|
signing_key:
|
213
218
|
specification_version: 4
|
214
219
|
summary: Biodiversity Enhanced Location Services (BELS) Georeference Client
|
data/Gemfile.lock
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
bell_pepper (0.1.1)
|
5
|
-
faraday (~> 2.2)
|
6
|
-
faraday-follow_redirects (>= 0.1, < 0.4)
|
7
|
-
multi_json (~> 1.15)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
addressable (2.8.1)
|
13
|
-
public_suffix (>= 2.0.2, < 6.0)
|
14
|
-
byebug (11.1.3)
|
15
|
-
crack (0.4.5)
|
16
|
-
rexml
|
17
|
-
faraday (2.7.4)
|
18
|
-
faraday-net_http (>= 2.0, < 3.1)
|
19
|
-
ruby2_keywords (>= 0.0.4)
|
20
|
-
faraday-follow_redirects (0.3.0)
|
21
|
-
faraday (>= 1, < 3)
|
22
|
-
faraday-net_http (3.0.2)
|
23
|
-
hashdiff (1.0.1)
|
24
|
-
minitest (5.15.0)
|
25
|
-
multi_json (1.15.0)
|
26
|
-
power_assert (2.0.1)
|
27
|
-
public_suffix (5.0.1)
|
28
|
-
rake (13.0.6)
|
29
|
-
rexml (3.2.5)
|
30
|
-
ruby2_keywords (0.0.5)
|
31
|
-
rubyzip (2.3.2)
|
32
|
-
test-unit (3.5.3)
|
33
|
-
power_assert
|
34
|
-
vcr (6.0.0)
|
35
|
-
webmock (3.18.1)
|
36
|
-
addressable (>= 2.8.0)
|
37
|
-
crack (>= 0.3.2)
|
38
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
39
|
-
|
40
|
-
PLATFORMS
|
41
|
-
x86_64-linux
|
42
|
-
|
43
|
-
DEPENDENCIES
|
44
|
-
bell_pepper!
|
45
|
-
bundler (~> 2.1, >= 2.1.4)
|
46
|
-
byebug
|
47
|
-
minitest (~> 5.0)
|
48
|
-
rake (~> 13.0)
|
49
|
-
rubyzip
|
50
|
-
test-unit (~> 3.3, >= 3.3.6)
|
51
|
-
vcr (~> 6.0)
|
52
|
-
webmock (~> 3.18)
|
53
|
-
|
54
|
-
BUNDLED WITH
|
55
|
-
2.3.24
|