bananomia 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74d4fd4a9fd7bc41252730fc5aff86078f90dae153495ca70e1c9042207d49d2
4
- data.tar.gz: 48b0d9f01205194aaf5afd501541f4e059edb830bd32f53af2604afefde81bb6
3
+ metadata.gz: eec1ec79571129e0f3260415227d3df5a2c7972921960464734df2be0b00544f
4
+ data.tar.gz: aeb46824845a4aec6ef13eeae8f1f98fd0e968bb9e3c4cdc78ffeb68ffd891ff
5
5
  SHA512:
6
- metadata.gz: 51681e131a00e0e391f2541d831005689d49325e42bb5289df43cf10ee1ea34db231cc5fd1b578c7fa3face57e7ed1ce308707ea11e1184ddef4662eeb14baac
7
- data.tar.gz: 1a9ed0d7462fcc37c050016b99dbe2e804c1a340864141b06fa0016cc02deed4393b41a08f850baab07e9d1de9d27e9fae126b6f5588bd273080ee17e6434eb4
6
+ metadata.gz: f428b572e441dadfc6378a44ebf0d034c66947a9d0e2a6d77028fc4e26dd59feb6c751da7a4906ac03136bc18dbed78472dd2473b6a942836778a02bb4e2f616
7
+ data.tar.gz: d681ce225f29ec09cd6dd110fca5c539d5018302760ff1d3ad60538b3186149bb5c0444ea1f36070b5050eb7c6c84fcd235b457d80728b07c822679d036ede73
@@ -5,12 +5,15 @@ on: [push,pull_request]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version: ['3.3.4', '4.0.0']
8
11
  steps:
9
12
  - uses: actions/checkout@v2
10
- - name: Set up Ruby
13
+ - name: Set up Ruby ${{ matrix.ruby-version }}
11
14
  uses: ruby/setup-ruby@v1
12
15
  with:
13
- ruby-version: 3.3.4
16
+ ruby-version: ${{ matrix.ruby-version }}
14
17
  bundler-cache: true
15
18
  - name: Run the default task
16
19
  run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2026-06-17
4
+ - Allow Ruby 4.0.0:
5
+ - Relaxed `required_ruby_version` to `>= 2.5.0, < 5.0`
6
+ - Added Ruby 4.0.0 to the CI matrix
7
+ - Bumped `faraday-follow_redirects` upper bound to allow 0.5+ (which lifts the Ruby < 4 cap)
8
+ - Dropped the `bundler` development dependency
9
+ - Added `irb` development dependency (no longer in stdlib)
10
+ - Fixed `Bananomia.search_occurrences` (and other endpoints) being blocked by Bionomia's Cloudflare bot mitigation by requesting strictly `Accept: application/ld+json` instead of `application/ld+json,*/*`
11
+ - Updated license from NCSA to MIT
12
+
3
13
  ## [0.1.1] - 2024-09-11
4
14
  - Updated documentation
5
15
  - Removed Gemfile.lock
data/LICENSE.txt CHANGED
@@ -1,13 +1,10 @@
1
- Copyright © 2023 Species File Group. All rights reserved.
1
+ The MIT License (MIT)
2
2
 
3
- Developed by: Species File Group
4
- Illinois Natural History Survey
5
- https://github.com/SpeciesFileGroup/bananomia
3
+ Copyright © 2024 Species File Group
6
4
 
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:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in 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:
8
6
 
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.
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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 AUTHORS 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 IN THE SOFTWARE.
12
10
 
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
@@ -124,7 +124,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Specie
124
124
 
125
125
  ## License
126
126
 
127
- The gem is available as open source under the terms of the [NCSA/Illinois](https://github.com/SpeciesFileGroup/bananomia/blob/main/LICENSE.txt) license. You can learn more about the NCSA license on [Wikipedia](https://en.wikipedia.org/wiki/University_of_Illinois/NCSA_Open_Source_License) and compare it with other open source licenses at the [Open Source Initiative](https://opensource.org/license/uoi-ncsa-php/).
127
+ The gem is available as open source under the terms of the [MIT license](https://github.com/SpeciesFileGroup/bananomia/blob/main/LICENSE.txt). You can learn more about the MIT license on [Wikipedia](https://en.wikipedia.org/wiki/MIT_License) and compare it with other open source licenses at the [Open Source Initiative](https://opensource.org/license/mit/).
128
128
 
129
129
  ## Code of Conduct
130
130
 
data/bananomia.gemspec CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.summary = "Bionomia Client"
12
12
  s.description = "Bananomia is a low-level wrapper around the Bionomia API."
13
13
  s.homepage = "https://github.com/SpeciesFileGroup/bananomia"
14
- s.license = "NCSA"
15
- s.required_ruby_version = ">= 2.5.0"
14
+ s.license = "MIT"
15
+ s.required_ruby_version = [">= 2.5.0", "< 5.0"]
16
16
 
17
17
  # s.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
18
18
 
@@ -32,16 +32,16 @@ Gem::Specification.new do |s|
32
32
  # Uncomment to register a new dependency of your gem
33
33
  # s.add_dependency "example-gem", "~> 1.0"
34
34
 
35
- s.add_development_dependency "bundler", "~> 2.1", ">= 2.1.4"
36
35
  s.add_development_dependency "rake", "~> 13.0", ">= 13.0.1"
37
36
  s.add_development_dependency "test-unit", "~> 3.3", ">= 3.3.6"
38
37
  s.add_development_dependency "vcr", "~> 6.0"
39
38
  s.add_development_dependency "webmock", "~> 3.18"
40
39
  s.add_development_dependency "rexml", "~> 3.3", ">= 3.3.6"
40
+ s.add_development_dependency "irb", "~> 1.0"
41
41
  # s.add_development_dependency "byebug"
42
42
 
43
43
  s.add_runtime_dependency "faraday", "~> 2.2"
44
- s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.4"
44
+ s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.6"
45
45
  s.add_runtime_dependency "multi_json", "~> 1.15"
46
46
 
47
47
  # s.add_runtime_dependency "thor", "~> 1.0", ">= 1.0.1"
@@ -64,7 +64,7 @@ module Bananomia
64
64
  end
65
65
  end
66
66
 
67
- conn.headers['Accept'] = 'application/ld+json,*/*'
67
+ conn.headers['Accept'] = 'application/ld+json'
68
68
  conn.headers[:user_agent] = make_user_agent
69
69
  conn.headers["X-USER-AGENT"] = make_user_agent
70
70
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bananomia
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,35 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bananomia
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
7
  - Geoff Ower, Matt Yoder
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-09-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 2.1.4
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 2.1.4
33
12
  - !ruby/object:Gem::Dependency
34
13
  name: rake
35
14
  requirement: !ruby/object:Gem::Requirement
@@ -118,6 +97,20 @@ dependencies:
118
97
  - - ">="
119
98
  - !ruby/object:Gem::Version
120
99
  version: 3.3.6
100
+ - !ruby/object:Gem::Dependency
101
+ name: irb
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '1.0'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '1.0'
121
114
  - !ruby/object:Gem::Dependency
122
115
  name: faraday
123
116
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +134,7 @@ dependencies:
141
134
  version: '0.1'
142
135
  - - "<"
143
136
  - !ruby/object:Gem::Version
144
- version: '0.4'
137
+ version: '0.6'
145
138
  type: :runtime
146
139
  prerelease: false
147
140
  version_requirements: !ruby/object:Gem::Requirement
@@ -151,7 +144,7 @@ dependencies:
151
144
  version: '0.1'
152
145
  - - "<"
153
146
  - !ruby/object:Gem::Version
154
- version: '0.4'
147
+ version: '0.6'
155
148
  - !ruby/object:Gem::Dependency
156
149
  name: multi_json
157
150
  requirement: !ruby/object:Gem::Requirement
@@ -193,12 +186,11 @@ files:
193
186
  - lib/bananomia/version.rb
194
187
  homepage: https://github.com/SpeciesFileGroup/bananomia
195
188
  licenses:
196
- - NCSA
189
+ - MIT
197
190
  metadata:
198
191
  homepage_uri: https://github.com/SpeciesFileGroup/bananomia
199
192
  source_code_uri: https://github.com/SpeciesFileGroup/bananomia
200
- changelog_uri: https://github.com/SpeciesFileGroup/bananomia/releases/tag/v0.1.1
201
- post_install_message:
193
+ changelog_uri: https://github.com/SpeciesFileGroup/bananomia/releases/tag/v0.1.2
202
194
  rdoc_options: []
203
195
  require_paths:
204
196
  - lib
@@ -207,14 +199,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
199
  - - ">="
208
200
  - !ruby/object:Gem::Version
209
201
  version: 2.5.0
202
+ - - "<"
203
+ - !ruby/object:Gem::Version
204
+ version: '5.0'
210
205
  required_rubygems_version: !ruby/object:Gem::Requirement
211
206
  requirements:
212
207
  - - ">="
213
208
  - !ruby/object:Gem::Version
214
209
  version: '0'
215
210
  requirements: []
216
- rubygems_version: 3.5.11
217
- signing_key:
211
+ rubygems_version: 4.0.3
218
212
  specification_version: 4
219
213
  summary: Bionomia Client
220
214
  test_files: []