bok_choy 0.0.4 → 0.0.5

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: e973871c42073b45f70862f7e513e04dcfdcc3aa9f22036e27f689e849d3c0e0
4
- data.tar.gz: f6b2202540eb7bbb7821cb79578bb2aafd42a5368dd3869992f27235098eef48
3
+ metadata.gz: 7e3c63c503bd9e51206ea7d6d854ecda2fbfaabc83c731a2b2affa805b9215cf
4
+ data.tar.gz: c193032071ef68f7d85544787e7d03ac525ab67c9940838cae7a45674d1cdcb3
5
5
  SHA512:
6
- metadata.gz: 810b566a9758fbaf49da9f36bf85eff97774813cefa0762abf1d2359197bcbfd78a9f221e6926cdb0f787a1197bb798d5d971a82f8d47fb0219167290b98a458
7
- data.tar.gz: feb4b2af45b1fe162abdf6d5c34eeed9fe0c4577b0f8012bc8f48520b8252ac1b544c06851cde78e0359399541cb498f84aa02464c4c111047459cd3f339f60b
6
+ metadata.gz: 4dd25ad34de7f6ad7ec24a3d4834269b386ddfdf525c68075d895b04506752d551c7c19da820de3bb19e0920e5ee8155f4d7ab2a1161b95b1c721481729b3c9c
7
+ data.tar.gz: 00e3ee3cf9c92f5c5c98fccdfd49749800fe04f334e47d509568fb98d035c2ca16fb1be2d7962ebe263d4c6d4abe831bc8b46bdca9b2cfc892b4d6d2ead99cbe
@@ -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,6 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.0.4]
3
+ ## [0.0.5] - 2026-06-18
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 `rexml` and `irb` development dependencies (no longer in stdlib on Ruby 4)
10
+ - Fixed copy-paste residue: 503 error message said "Crossref is rate limiting your requests." (Crossref is the upstream serrano template's API) — changed to "BHLnames is rate limiting your requests."
11
+
12
+ ## [0.0.4] - 2025-10-28
4
13
  - Updated license from NCSA to MIT
5
14
  - Added item_page endpoint
6
15
 
data/README.md CHANGED
@@ -60,8 +60,14 @@ BokChoy.items(73397) # => Hash
60
60
  ### [Items page nums](https://bhlnames.globalnames.org/apidoc/index.html#/default/get-refs-by-item-page)
61
61
  Get BHL page information by item_id and page_num:
62
62
  ```ruby
63
- BokChoy.item_page(item_id: 15402, page_num: 183) # => Hash
63
+ BokChoy.items_page_nums(item_id: 15402, page_num: 191) # => Hash
64
64
  ```
65
+ This corresponds with the identifiers in the BHL item endpoint URLs: [https://www.biodiversitylibrary.org/item/15402#page/191/mode/1up](https://www.biodiversitylibrary.org/item/15402#page/191/mode/1up)
66
+
67
+ The endpoint returns information about the page including the corresponding pageId and url:
68
+
69
+ [https://www.biodiversitylibrary.org/page/15402](https://www.biodiversitylibrary.org/page/747872)
70
+
65
71
 
66
72
  ---
67
73
  ### [Page reference metadata](https://bhlnames.globalnames.org/apidoc/index.html#/default/get-refs)
data/bok_choy.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.description = "Bok Choy is a low-level wrapper around the BHLnames API."
13
13
  s.homepage = "https://github.com/SpeciesFileGroup/bok_choy"
14
14
  s.license = "MIT"
15
- s.required_ruby_version = ">= 2.5.0"
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,7 +32,6 @@ 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 "codecov", "~> 0.5.0"
37
36
  # s.add_development_dependency "json", "~> 2.3", ">= 2.3.1"
38
37
  s.add_development_dependency "rake", "~> 13.0", ">= 13.0.1"
@@ -41,9 +40,11 @@ Gem::Specification.new do |s|
41
40
  s.add_development_dependency "test-unit", "~> 3.3", ">= 3.3.6"
42
41
  s.add_development_dependency "vcr", "~> 6.0"
43
42
  s.add_development_dependency "webmock", "~> 3.18"
43
+ s.add_development_dependency "rexml", "~> 3.3", ">= 3.3.6"
44
+ s.add_development_dependency "irb", "~> 1.0"
44
45
 
45
46
  s.add_runtime_dependency "faraday", "~> 2.2"
46
- s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.4"
47
+ s.add_runtime_dependency "faraday-follow_redirects", ">= 0.1", "< 0.6"
47
48
  s.add_runtime_dependency "multi_json", "~> 1.15"
48
49
 
49
50
  # TODO: comment out
@@ -20,7 +20,7 @@ module Faraday
20
20
  when 502
21
21
  raise BokChoy::BadGateway, error_message_500(response, "The server returned an invalid or incomplete response.")
22
22
  when 503
23
- raise BokChoy::ServiceUnavailable, error_message_500(response, "Crossref is rate limiting your requests.")
23
+ raise BokChoy::ServiceUnavailable, error_message_500(response, "BHLnames is rate limiting your requests.")
24
24
  when 504
25
25
  raise BokChoy::GatewayTimeout, error_message_500(response, "504 Gateway Time-out")
26
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BokChoy
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bok_choy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Ower, Matt Yoder
@@ -9,26 +9,6 @@ bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: bundler
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - "~>"
17
- - !ruby/object:Gem::Version
18
- version: '2.1'
19
- - - ">="
20
- - !ruby/object:Gem::Version
21
- version: 2.1.4
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: '2.1'
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- version: 2.1.4
32
12
  - !ruby/object:Gem::Dependency
33
13
  name: rake
34
14
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +77,40 @@ dependencies:
97
77
  - - "~>"
98
78
  - !ruby/object:Gem::Version
99
79
  version: '3.18'
80
+ - !ruby/object:Gem::Dependency
81
+ name: rexml
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '3.3'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 3.3.6
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.3'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
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'
100
114
  - !ruby/object:Gem::Dependency
101
115
  name: faraday
102
116
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +134,7 @@ dependencies:
120
134
  version: '0.1'
121
135
  - - "<"
122
136
  - !ruby/object:Gem::Version
123
- version: '0.4'
137
+ version: '0.6'
124
138
  type: :runtime
125
139
  prerelease: false
126
140
  version_requirements: !ruby/object:Gem::Requirement
@@ -130,7 +144,7 @@ dependencies:
130
144
  version: '0.1'
131
145
  - - "<"
132
146
  - !ruby/object:Gem::Version
133
- version: '0.4'
147
+ version: '0.6'
134
148
  - !ruby/object:Gem::Dependency
135
149
  name: multi_json
136
150
  requirement: !ruby/object:Gem::Requirement
@@ -190,7 +204,7 @@ licenses:
190
204
  metadata:
191
205
  homepage_uri: https://github.com/SpeciesFileGroup/bok_choy
192
206
  source_code_uri: https://github.com/SpeciesFileGroup/bok_choy
193
- changelog_uri: https://github.com/SpeciesFileGroup/bok_choy/releases/tag/v0.0.4
207
+ changelog_uri: https://github.com/SpeciesFileGroup/bok_choy/releases/tag/v0.0.5
194
208
  rdoc_options: []
195
209
  require_paths:
196
210
  - lib
@@ -199,13 +213,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
199
213
  - - ">="
200
214
  - !ruby/object:Gem::Version
201
215
  version: 2.5.0
216
+ - - "<"
217
+ - !ruby/object:Gem::Version
218
+ version: '5.0'
202
219
  required_rubygems_version: !ruby/object:Gem::Requirement
203
220
  requirements:
204
221
  - - ">="
205
222
  - !ruby/object:Gem::Version
206
223
  version: '0'
207
224
  requirements: []
208
- rubygems_version: 3.6.7
225
+ rubygems_version: 4.0.3
209
226
  specification_version: 4
210
227
  summary: BHL Names Client
211
228
  test_files: []