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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7fa62bf46671a9dfc4d074fe51d6f59a731133410536031d486553de0bf390f
4
- data.tar.gz: 0fad9b30019bbb243766060f2b5a7adc4803978a73fb46279e9898a060e40258
3
+ metadata.gz: ecb5378e7ec3d28981d82ecf7e1ead4dbf58f3da027ee0f023c404d195e4245a
4
+ data.tar.gz: 64855c0c198ade14e2f4672cc8914abfc9465021743e3013a7712047b9cf6f8a
5
5
  SHA512:
6
- metadata.gz: 00c1a9f73ae73d5573346a9b546e187df2a1387c0971e6e7973f9d0f458f65d131f30586ebf101ff7e6b919440cbca642073f1cbb506ab6d1b7fb521e9e867fe
7
- data.tar.gz: 95a418638adfff071951c1c116cc6642b3333101238d43b976becce411ff9d8e8921bb4525522ff16d5eeea98476a19a1abef7d928ed0a15be1179f53b843d25
6
+ metadata.gz: 60eabbb19242353d5ca7ca1379e29fb7dbef5899827f47e10538b43845d474eb469d983ae0c340675428052035e3244239a748b490d73eb9f54c9f9e88130d05
7
+ data.tar.gz: df3a5da203c15007e919ddc0291d760f4df514f80ced1a214d13f14464e342f8306168698b94efdcd44a556aeb8a4bdc49d69248f8058ae227ff3dca0b598b7d
@@ -10,7 +10,7 @@ jobs:
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
13
- ruby-version: 3.1.3
13
+ ruby-version: 3.3.4
14
14
  bundler-cache: true
15
15
  - name: Run the default task
16
16
  run: bundle exec rake
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /pkg/
9
9
  /spec/reports/
10
10
  /tmp/
11
- *.gem
11
+ *.gem
12
+ Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2024-09-12
4
+ - Removed Gemfile.lock
5
+ - Bumped development depency versions to avoid CVE-2024-43398
6
+
3
7
  ## [0.1.1] - 2023-04-17
4
8
  - Updated Faraday version
5
9
 
data/LICENSE.txt CHANGED
@@ -1,21 +1,13 @@
1
- The MIT License (MIT)
1
+ Copyright © 2023 Species File Group. All rights reserved.
2
2
 
3
- Copyright (c) 2022 mjy
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
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
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 "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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://opensource.org/licenses/NCSA).
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.4.0"
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
@@ -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 ChecklistBank returns the HTTP status code 400
7
+ # Raised when BELS returns the HTTP status code 400
8
8
  class BadRequest < Error; end
9
9
 
10
- # Raised when ChecklistBank returns the HTTP status code 404
10
+ # Raised when BELS returns the HTTP status code 404
11
11
  class NotFound < Error; end
12
12
 
13
- # Raised when ChecklistBank returns the HTTP status code 500
13
+ # Raised when BELS returns the HTTP status code 500
14
14
  class InternalServerError < Error; end
15
15
 
16
- # Raised when ChecklistBank returns the HTTP status code 502
16
+ # Raised when BELS returns the HTTP status code 502
17
17
  class BadGateway < Error; end
18
18
 
19
- # Raised when ChecklistBank returns the HTTP status code 503
19
+ # Raised when BELS returns the HTTP status code 503
20
20
  class ServiceUnavailable < Error; end
21
21
 
22
- # Raised when ChecklistBank returns the HTTP status code 504
22
+ # Raised when BELS returns the HTTP status code 504
23
23
  class GatewayTimeout < Error; end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BellPepper
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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: 2023-06-30 00:00:00.000000000 Z
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.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.4.0
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.10
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