Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GHA, set minimal Ruby to 2.7, update dependencies #83

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
- push
- pull_request

concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
test:
name: Tests
uses: theforeman/actions/.github/workflows/test-gem.yml@v0
with:
command: bundle exec rake test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@ source "http://rubygems.org"

gemspec

rest_client = if ENV.key?('REST_CLIENT_VERSION')
["~> #{ENV['REST_CLIENT_VERSION']}"]
else
['< 3.0']
end

if RUBY_VERSION < "1.9"
rest_client << '< 1.7'
gem 'mime-types', '~> 1.0'
end

if RUBY_VERSION < "2.0"
gem 'json', '< 2.0.0'
gem 'oauth', '< 0.5.2'
end

gem 'rest-client', rest_client

# load local gemfile
local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
self.instance_eval(Bundler.read_file(local_gemfile)) if File.exist?(local_gemfile)
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'rake/testtask'
require 'bundler/gem_tasks'
require 'ci/reporter/rake/minitest'

task :default => :test

Rake::TestTask.new do |t|
t.libs.push "lib"
t.test_files = Dir.glob('test/**/*_test.rb')
t.verbose = true
t.warning = ENV.key?('RUBY_WARNINGS')
end

def inside_dummy_app(&block)
Expand Down
21 changes: 9 additions & 12 deletions apipie-bindings.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ EOF
s.extra_rdoc_files = `git ls-files -- {doc,config}/* README*`.split("\n")
s.require_paths = ["lib"]

s.add_dependency 'json', '>= 1.2.1'
s.add_dependency 'rest-client', '>= 1.6.5', '< 3.0.0' # lower versions don't allow setting infinite timeouts, higher versions have different api
s.add_dependency 'oauth'
s.add_dependency 'gssapi'
s.add_development_dependency 'rake', '>= 12.3.3'
s.add_development_dependency 'thor'
s.add_development_dependency 'minitest', '4.7.4'
s.add_development_dependency 'minitest-spec-context'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'mocha'
s.add_development_dependency 'ci_reporter', '>= 1.6.3', "< 2.0.0"
ekohl marked this conversation as resolved.
Show resolved Hide resolved
s.add_dependency 'rest-client', '~> 2.0'
s.add_dependency 'oauth', '~> 1.1'
s.add_dependency 'gssapi', '~> 1.3'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'minitest', '~> 4.7'
s.add_development_dependency 'minitest-spec-context', '~> 0.0.5'
s.add_development_dependency 'simplecov', '~> 0.22'
s.add_development_dependency 'mocha', '~> 2.7'

s.required_ruby_version = '>= 2.0.0'
s.required_ruby_version = '>= 2.7.0'
end
Loading