diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d2d6baf --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: build +on: + push: + branches: + - master + tags: + - '!*' + pull_request: + +jobs: + test: + name: Test 3.2.2 + runs-on: ubuntu-latest + env: + CC_TEST_REPORTER_ID: 6963f51029c0c9bf6406bd1cc69ae951bc53f9bf7751b16035515b5f764c58fe + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.2.2" + bundler-cache: true + - name: Run tests + run: bundle exec rake + - name: Report Coveralls + uses: coverallsapp/github-action@v2 + + test_legacy: + strategy: + matrix: + ruby_version: + - "3.1.4" + - "3.0.6" + - "2.7.8" + - "2.6.5" + runs-on: ubuntu-latest + name: Test ${{ matrix.ruby_version }} + outputs: + version_matrix: ${{ matrix.ruby_version }} + steps: + - uses: actions/checkout@v4 + - 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 72b2693..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false -language: ruby -bundler_args: --without development -rvm: - - 2.4.0 - - 2.6.0 - - 2.7.0 - -addons: - code_climate: - repo_token: 6963f51029c0c9bf6406bd1cc69ae951bc53f9bf7751b16035515b5f764c58fe - -before_install: - - gem install bundler -v '1.17.2' - -after_success: - - bundle exec codeclimate-test-reporter diff --git a/Gemfile b/Gemfile index bebbcb2..93e9b84 100644 --- a/Gemfile +++ b/Gemfile @@ -5,9 +5,8 @@ gemspec group :test do gem 'rake' gem 'rspec', '~> 3.2' - gem 'webmock', :require => false - gem 'coveralls', :require => false - gem 'codeclimate-test-reporter', '~> 1.0.0' + gem 'webmock', require: false + gem 'coveralls_reborn', require: false end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index cbb72da..a4216ed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,19 +11,16 @@ GEM specs: addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) - codeclimate-test-reporter (1.0.9) - simplecov (<= 0.13) coderay (1.1.3) - coveralls (0.8.19) - json (>= 1.8, < 3) - simplecov (~> 0.12.0) - term-ansicolor (~> 1.3) - thor (~> 0.19.1) - tins (~> 1.6) + coveralls_reborn (0.28.0) + simplecov (~> 0.22.0) + term-ansicolor (~> 1.7) + thor (~> 1.2) + tins (~> 1.32) crack (0.4.5) rexml diff-lcs (1.5.0) - docile (1.1.5) + docile (1.4.0) faraday (1.10.3) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) @@ -72,18 +69,19 @@ GEM rspec-support (~> 3.12.0) rspec-support (3.12.1) ruby2_keywords (0.0.5) - simplecov (0.12.0) - docile (~> 1.1.0) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.2) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) sync (0.5.0) term-ansicolor (1.7.1) tins (~> 1.0) - thor (0.19.4) + thor (1.2.2) tins (1.32.1) sync - webmock (3.18.1) + webmock (3.19.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -92,8 +90,7 @@ PLATFORMS ruby DEPENDENCIES - codeclimate-test-reporter (~> 1.0.0) - coveralls + coveralls_reborn heartland-retail! pry rake @@ -101,4 +98,4 @@ DEPENDENCIES webmock BUNDLED WITH - 1.17.2 + 2.3.26 diff --git a/README.md b/README.md index c922529..511b989 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Heartland Retail API Client -[![Gem Version](https://badge.fury.io/rb/heartland-retail.png)](http://badge.fury.io/rb/heartland-retail) -[![Build Status](https://travis-ci.org/springboardretail/springboard-client-ruby.png?branch=master)](https://travis-ci.org/springboardretail/springboard-client-ruby) +[![Gem Version](https://badge.fury.io/rb/heartland-retail.svg)](https://badge.fury.io/rb/heartland-retail) +[![Build Status](https://github.com/springboardretail/springboard-client-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/springboardretail/springboard-client-ruby/actions/workflows/build.yml) [![Code Climate](https://codeclimate.com/github/springboardretail/springboard-client-ruby.png)](https://codeclimate.com/github/springboardretail/springboard-client-ruby) [![Coverage Status](https://coveralls.io/repos/github/springboardretail/springboard-client-ruby/badge.svg?branch=master)](https://coveralls.io/github/springboardretail/springboard-client-ruby?branch=master) diff --git a/heartland-retail.gemspec b/heartland-retail.gemspec index 86d6f73..267de51 100644 --- a/heartland-retail.gemspec +++ b/heartland-retail.gemspec @@ -5,8 +5,6 @@ Gem::Specification.new do |s| s.authors = ['Jay Stotz', 'Derek Stotz'] s.summary = 'Heartland Retail API client library' - s.required_rubygems_version = '>= 1.3.6' - s.add_runtime_dependency 'faraday', '~> 1.0' s.add_runtime_dependency 'json', '>= 1.7.4' s.add_runtime_dependency 'hashie' diff --git a/vendor/cache/codeclimate-test-reporter-1.0.9.gem b/vendor/cache/codeclimate-test-reporter-1.0.9.gem deleted file mode 100644 index 39c5147..0000000 Binary files a/vendor/cache/codeclimate-test-reporter-1.0.9.gem and /dev/null differ diff --git a/vendor/cache/coveralls-0.8.19.gem b/vendor/cache/coveralls-0.8.19.gem deleted file mode 100644 index dc65a41..0000000 Binary files a/vendor/cache/coveralls-0.8.19.gem and /dev/null differ diff --git a/vendor/cache/coveralls_reborn-0.28.0.gem b/vendor/cache/coveralls_reborn-0.28.0.gem new file mode 100644 index 0000000..1c72e3b Binary files /dev/null and b/vendor/cache/coveralls_reborn-0.28.0.gem differ diff --git a/vendor/cache/docile-1.1.5.gem b/vendor/cache/docile-1.1.5.gem deleted file mode 100644 index 4eb5de6..0000000 Binary files a/vendor/cache/docile-1.1.5.gem and /dev/null differ diff --git a/vendor/cache/docile-1.4.0.gem b/vendor/cache/docile-1.4.0.gem new file mode 100644 index 0000000..046fd8c Binary files /dev/null and b/vendor/cache/docile-1.4.0.gem differ diff --git a/vendor/cache/simplecov-0.12.0.gem b/vendor/cache/simplecov-0.12.0.gem deleted file mode 100644 index ea9b2ee..0000000 Binary files a/vendor/cache/simplecov-0.12.0.gem and /dev/null differ diff --git a/vendor/cache/simplecov-0.22.0.gem b/vendor/cache/simplecov-0.22.0.gem new file mode 100644 index 0000000..ce8f979 Binary files /dev/null and b/vendor/cache/simplecov-0.22.0.gem differ diff --git a/vendor/cache/simplecov-html-0.10.2.gem b/vendor/cache/simplecov-html-0.10.2.gem deleted file mode 100644 index 363619b..0000000 Binary files a/vendor/cache/simplecov-html-0.10.2.gem and /dev/null differ diff --git a/vendor/cache/simplecov-html-0.12.3.gem b/vendor/cache/simplecov-html-0.12.3.gem new file mode 100644 index 0000000..003d7ca Binary files /dev/null and b/vendor/cache/simplecov-html-0.12.3.gem differ diff --git a/vendor/cache/simplecov_json_formatter-0.1.4.gem b/vendor/cache/simplecov_json_formatter-0.1.4.gem new file mode 100644 index 0000000..75f6f6e Binary files /dev/null and b/vendor/cache/simplecov_json_formatter-0.1.4.gem differ diff --git a/vendor/cache/thor-0.19.4.gem b/vendor/cache/thor-0.19.4.gem deleted file mode 100644 index 6f42cc2..0000000 Binary files a/vendor/cache/thor-0.19.4.gem and /dev/null differ diff --git a/vendor/cache/thor-1.2.2.gem b/vendor/cache/thor-1.2.2.gem new file mode 100644 index 0000000..7b26ebe Binary files /dev/null and b/vendor/cache/thor-1.2.2.gem differ diff --git a/vendor/cache/webmock-3.18.1.gem b/vendor/cache/webmock-3.18.1.gem deleted file mode 100644 index 7901ae6..0000000 Binary files a/vendor/cache/webmock-3.18.1.gem and /dev/null differ diff --git a/vendor/cache/webmock-3.19.1.gem b/vendor/cache/webmock-3.19.1.gem new file mode 100644 index 0000000..dc2b67f Binary files /dev/null and b/vendor/cache/webmock-3.19.1.gem differ