-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync: merge releases 2.2.3 and 2.2.4 from ncbo (#3)
* Configure a PURL prefix for test purposes * Fix some RuboCop warnings * Add faraday-follow_redirects gem * Fix some RuboCop warnings * Add unit tests for the purl method * Configure a PURL host * Modify purl method to check class IDs for purl_host Resolves #28 * Provide default value for purl_host * Fix some RuboCop warnings * Move gem version to a module * Move faraday-follow_redirects to a dev dependency * Add require_relative for version * Bump version from 2.2.2 to 2.2.3 * Replace test-unit with minitest * Modify unit test code to use Minitest * Fix some RuboCop warnings * Use more appropriate assertions * Bump version from 2.2.3 to 2.2.4 * Remove Ruby 2.7 and add 3.1 to test matrix
- Loading branch information
Showing
12 changed files
with
126 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'pry' | ||
gem 'rake' | ||
gem 'rubocop', '~> 1.43' | ||
gem 'pry' | ||
gem 'test-unit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
# config.rb is required for testing | ||
# unit test makes calls to bioportal api so it needs a valid API key which can | ||
# be set via ENV variable UT_APIKEY | ||
abort('UT_APIKEY env variable is not set. Canceling tests') unless ENV.include?('UT_APIKEY') | ||
abort('UT_APIKEY env variable is set to an empty value. Canceling tests') unless ENV['UT_APIKEY'].size > 5 | ||
|
||
LinkedData::Client.config do |config| | ||
config.rest_url = 'https://data.bioontology.org' | ||
config.apikey = ENV['UT_APIKEY'] | ||
# config.apikey = 'xxxxx-xxxxx-xxxxxxxxxx' | ||
config.links_attr = 'links' | ||
config.cache = false | ||
config.rest_url = 'https://data.bioontology.org' | ||
config.apikey = ENV['UT_APIKEY'] | ||
# config.apikey = 'xxxxx-xxxxx-xxxxxxxxxx' | ||
config.links_attr = 'links' | ||
config.purl_host = 'purl.bioontology.org' | ||
config.purl_prefix = 'https://purl.bioontology.org/ontology' | ||
config.cache = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module LinkedData | ||
module Client | ||
VERSION = '2.2.4' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'lib/ontologies_api_client/version' | ||
|
||
Gem::Specification.new do |gem| | ||
gem.authors = ['Paul R Alexander'] | ||
gem.email = ['[email protected]'] | ||
|
@@ -14,7 +16,7 @@ Gem::Specification.new do |gem| | |
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.name = 'ontologies_api_client' | ||
gem.require_paths = ['lib'] | ||
gem.version = '2.2.2' | ||
gem.version = LinkedData::Client::VERSION | ||
|
||
gem.add_dependency('activesupport', '6.1.7.3') | ||
gem.add_dependency('addressable', '~> 2.8') | ||
|
@@ -26,4 +28,7 @@ Gem::Specification.new do |gem| | |
gem.add_dependency('multi_json') | ||
gem.add_dependency('oj') | ||
gem.add_dependency('spawnling', '2.1.5') | ||
|
||
gem.add_development_dependency('faraday-follow_redirects', '~> 0.3') | ||
gem.add_development_dependency('minitest', '~> 5.18') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
require 'test-unit' | ||
# frozen_string_literal: true | ||
|
||
require 'minitest/autorun' | ||
require_relative '../lib/ontologies_api_client' | ||
require_relative '../config/config' | ||
|
||
module LinkedData | ||
module Client | ||
class TestCase < Test::Unit::TestCase | ||
class TestCase < Minitest::Test | ||
end | ||
end | ||
end |