diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..aca3f7d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: CI +on: + pull_request: + branches: + - master + push: + branches: + - master +jobs: + test: + name: Tests with Ruby ${{ matrix.ruby-version }} Rails ${{ matrix.rails }} + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: + - 3.1 + - 3.2 + - 3.3 + - 3.4 + rails: + - '7.0.0' + - '7.1.0' + - '7.2.0' + - '8.0.0' + env: + RAILS_VERSION: ${{ matrix.rails }} + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run tests + run: | + bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 58d4379..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: ruby -rvm: - - 2.4.0 - - 2.5.0 diff --git a/Gemfile b/Gemfile index b08bb0c..1aa98e4 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,2 @@ source "http://rubygems.org" -group :test do - gem 'coveralls', '0.8.5', require: false # Test coverage website. Go to https://coveralls.io - gem 'tins', '< 1.3.4', platforms: [:ruby_19, :jruby] - gem 'term-ansicolor', '< 1.4.0', platforms: [:ruby_19, :jruby] -end - gemspec diff --git a/README.md b/README.md index 14ee310..f32712e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ ## Activeresource-response ####This gem adds possibility to access http response (Net::HTTPResponse) object from result (single object or collection) of activeresource call (methods : find, all, first, last, get ) -[![Build Status](http://img.shields.io/travis/Fivell/activeresource-response.png)](https://travis-ci.org/Fivell/activeresource-response) -[![Coverage Status](http://img.shields.io/coveralls/Fivell/activeresource-response.svg)](https://coveralls.io/r/Fivell/activeresource-response) - - #### Why It can be used? Such functionallity can be used for easily implementing pagination in a REST API so that an ActiveResource client can navigate paginated results. diff --git a/activeresource-response.gemspec b/activeresource-response.gemspec index 04257f9..3ec0b0b 100644 --- a/activeresource-response.gemspec +++ b/activeresource-response.gemspec @@ -15,8 +15,8 @@ Gem::Specification.new do |s| s.add_runtime_dependency('activeresource', ['>= 3', '< 6.2']) s.add_dependency "jruby-openssl" if RUBY_PLATFORM == "java" - s.add_development_dependency "minitest" , '~> 5.3' - s.add_development_dependency 'rake', '~> 10' + s.add_development_dependency "minitest" + s.add_development_dependency 'rake' s.add_development_dependency 'byebug' diff --git a/test/active_resource_response_test.rb b/test/active_resource_response_test.rb index 84d663b..81ad11b 100644 --- a/test/active_resource_response_test.rb +++ b/test/active_resource_response_test.rb @@ -21,7 +21,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ require_relative 'test_helper' -class ActiveResourceResponseTest < MiniTest::Test +class ActiveResourceResponseTest < Minitest::Test def setup diff --git a/test/lint_test.rb b/test/lint_test.rb index 672b49a..41538ac 100644 --- a/test/lint_test.rb +++ b/test/lint_test.rb @@ -29,7 +29,7 @@ require "active_resource_response/lint" ActiveResource::Base.send :include, ActiveResourceResponse::Lint -class ActiveResourceResponseLintTest < MiniTest::Test +class ActiveResourceResponseLintTest < Minitest::Test include ActiveModel::Lint::Tests diff --git a/test/test_helper.rb b/test/test_helper.rb index 3eb883a..c5f1c92 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,3 @@ -require 'coveralls' -Coveralls.wear! require 'minitest/autorun' require 'i18n' lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")