Skip to content

Commit 694648f

Browse files
authored
Merge pull request #39 from ncbo/upgrade/ruby-3.1.6
Prepare for Ruby 3.1.6 upgrade
2 parents 0ea672f + 69386ee commit 694648f

File tree

6 files changed

+76
-53
lines changed

6 files changed

+76
-53
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
ruby-version: ['3.0', '3.1']
22+
ruby-version: ['3.1']
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Ruby

Gemfile.lock

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ontologies_api_client (2.4.0)
4+
ontologies_api_client (2.5.0)
55
activesupport (= 7.0.8)
66
addressable (~> 2.8)
77
excon
@@ -23,73 +23,75 @@ GEM
2323
addressable (2.8.7)
2424
public_suffix (>= 2.0.2, < 7.0)
2525
ast (2.4.2)
26-
bigdecimal (3.1.8)
26+
bigdecimal (3.1.9)
2727
coderay (1.1.3)
28-
concurrent-ruby (1.3.3)
29-
excon (0.111.0)
30-
faraday (2.10.0)
31-
faraday-net_http (>= 2.0, < 3.2)
28+
concurrent-ruby (1.3.5)
29+
excon (1.2.3)
30+
faraday (2.12.2)
31+
faraday-net_http (>= 2.0, < 3.5)
32+
json
3233
logger
33-
faraday-excon (2.1.0)
34-
excon (>= 0.27.4)
35-
faraday (~> 2.0)
34+
faraday-excon (2.3.0)
35+
excon (>= 1.0.0)
36+
faraday (>= 2.11.0, < 3)
3637
faraday-follow_redirects (0.3.0)
3738
faraday (>= 1, < 3)
38-
faraday-multipart (1.0.4)
39-
multipart-post (~> 2)
40-
faraday-net_http (3.1.0)
41-
net-http
42-
i18n (1.14.5)
39+
faraday-multipart (1.1.0)
40+
multipart-post (~> 2.0)
41+
faraday-net_http (3.4.0)
42+
net-http (>= 0.5.0)
43+
i18n (1.14.7)
4344
concurrent-ruby (~> 1.0)
44-
json (2.7.2)
45-
language_server-protocol (3.17.0.3)
46-
logger (1.6.0)
45+
json (2.9.1)
46+
language_server-protocol (3.17.0.4)
47+
logger (1.6.5)
4748
lz4-ruby (0.3.3)
4849
method_source (1.1.0)
49-
minitest (5.25.1)
50-
minitest-hooks (1.5.1)
50+
minitest (5.25.4)
51+
minitest-hooks (1.5.2)
5152
minitest (> 5.3)
5253
multi_json (1.15.0)
5354
multipart-post (2.4.1)
54-
net-http (0.4.1)
55+
net-http (0.6.0)
5556
uri
56-
oj (3.16.4)
57+
oj (3.16.9)
5758
bigdecimal (>= 3.0)
58-
parallel (1.25.1)
59-
parser (3.3.4.0)
59+
ostruct (>= 0.2)
60+
ostruct (0.6.1)
61+
parallel (1.26.3)
62+
parser (3.3.7.1)
6063
ast (~> 2.4.1)
6164
racc
62-
pry (0.14.2)
65+
pry (0.15.2)
6366
coderay (~> 1.1)
6467
method_source (~> 1.0)
65-
public_suffix (6.0.0)
66-
racc (1.8.0)
68+
public_suffix (6.0.1)
69+
racc (1.8.1)
6770
rainbow (3.1.1)
6871
rake (13.2.1)
69-
regexp_parser (2.9.2)
70-
rexml (3.3.2)
71-
strscan
72-
rubocop (1.65.0)
72+
regexp_parser (2.10.0)
73+
rubocop (1.71.2)
7374
json (~> 2.3)
7475
language_server-protocol (>= 3.17.0)
7576
parallel (~> 1.10)
7677
parser (>= 3.3.0.2)
7778
rainbow (>= 2.2.2, < 4.0)
78-
regexp_parser (>= 2.4, < 3.0)
79-
rexml (>= 3.2.5, < 4.0)
80-
rubocop-ast (>= 1.31.1, < 2.0)
79+
regexp_parser (>= 2.9.3, < 3.0)
80+
rubocop-ast (>= 1.38.0, < 2.0)
8181
ruby-progressbar (~> 1.7)
82-
unicode-display_width (>= 2.4.0, < 3.0)
83-
rubocop-ast (1.31.3)
82+
unicode-display_width (>= 2.4.0, < 4.0)
83+
rubocop-ast (1.38.0)
8484
parser (>= 3.3.1.0)
8585
ruby-progressbar (1.13.0)
86-
strscan (3.1.0)
8786
tzinfo (2.0.6)
8887
concurrent-ruby (~> 1.0)
89-
unicode-display_width (2.5.0)
90-
uri (0.13.0)
88+
unicode-display_width (3.1.4)
89+
unicode-emoji (~> 4.0, >= 4.0.4)
90+
unicode-emoji (4.0.4)
91+
uri (1.0.2)
9192

9293
PLATFORMS
94+
arm64-darwin-24
9395
ruby
9496
x86_64-darwin-16
9597
x86_64-darwin-17
@@ -105,4 +107,4 @@ DEPENDENCIES
105107
rubocop (~> 1.43)
106108

107109
BUNDLED WITH
108-
2.4.18
110+
2.5.11

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021, The Board of Trustees of Leland Stanford Junior University
1+
Copyright (c) 2025, The Board of Trustees of Leland Stanford Junior University
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,4 @@ For questions please email [support@bioontology.org](support@bioontology.org.)
153153

154154
## License
155155

156-
Copyright (c) 2024, The Board of Trustees of Leland Stanford Junior University All rights reserved.
157-
158-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
159-
160-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
161-
162-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
163-
164-
THIS SOFTWARE IS PROVIDED BY THE BOARD OF TRUSTEES OF LELAND STANFORD JUNIOR UNIVERSITY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL The Board of Trustees of Leland Stanford Junior University OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
165-
166-
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of The Board of Trustees of Leland Stanford Junior University.
156+
This project is licensed under the [FreeBSD License](LICENSE.txt) © 2025 The Board of Trustees of Leland Stanford Junior University.

lib/ontologies_api_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module LinkedData
44
module Client
5-
VERSION = '2.4.0'
5+
VERSION = '2.5.0'
66
end
77
end

test/test_link_explorer.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# frozen_string_literal: true
2+
3+
require_relative 'test_case'
4+
5+
class LinkExplorerTest < LinkedData::Client::TestCase
6+
def test_explore_ontology_submission_by_id
7+
ont = LinkedData::Client::Models::Ontology.get('FMA')
8+
sub = ont.explore.submissions('29')
9+
refute_nil(sub)
10+
assert_instance_of(LinkedData::Client::Models::OntologySubmission, sub)
11+
assert_equal(29, sub.submissionId)
12+
end
13+
14+
def test_explore_ontology_class_by_id
15+
ont = LinkedData::Client::Models::Ontology.get('FMA')
16+
cls = ont.explore.classes('http://purl.org/sig/ont/fma/fma70742')
17+
refute_nil(cls)
18+
assert_instance_of(LinkedData::Client::Models::Class, cls)
19+
assert_equal('http://purl.org/sig/ont/fma/fma70742', cls.id)
20+
assert_equal('Set of eyelashes', cls.prefLabel)
21+
end
22+
23+
def test_explore_ontology_single_class
24+
ont = LinkedData::Client::Models::Ontology.get('FMA')
25+
cls = ont.explore.single_class('http://purl.org/sig/ont/fma/fma322428')
26+
refute_nil(cls)
27+
assert_instance_of(LinkedData::Client::Models::Class, cls)
28+
assert_equal('http://purl.org/sig/ont/fma/fma322428', cls.id)
29+
assert_equal('Set of salivary glands', cls.prefLabel)
30+
end
31+
end

0 commit comments

Comments
 (0)