From 2af0cf97034008de9c9a561fd03ab8badaa6f337 Mon Sep 17 00:00:00 2001 From: Adam Maas Date: Wed, 20 Mar 2024 15:58:26 -0400 Subject: [PATCH] Add apprasials --- .github/workflows/ci.yml | 50 ++++++ Appraisals | 19 +++ gemfiles/.bundle/config | 2 + gemfiles/rails_5_2.gemfile | 12 ++ gemfiles/rails_5_2.gemfile.lock | 225 ++++++++++++++++++++++++++ gemfiles/rails_6.gemfile | 12 ++ gemfiles/rails_6.gemfile.lock | 241 ++++++++++++++++++++++++++++ gemfiles/rails_6_1.gemfile | 12 ++ gemfiles/rails_6_1.gemfile.lock | 244 ++++++++++++++++++++++++++++ gemfiles/rails_7.gemfile | 12 ++ gemfiles/rails_7.gemfile.lock | 243 ++++++++++++++++++++++++++++ gemfiles/rails_7_1.gemfile | 12 ++ gemfiles/rails_7_1.gemfile.lock | 271 ++++++++++++++++++++++++++++++++ lib/vertex_client.rb | 2 +- test/vertex_client_test.rb | 2 +- vertex_client.gemspec | 1 + 16 files changed, 1358 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 Appraisals create mode 100644 gemfiles/.bundle/config create mode 100644 gemfiles/rails_5_2.gemfile create mode 100644 gemfiles/rails_5_2.gemfile.lock create mode 100644 gemfiles/rails_6.gemfile create mode 100644 gemfiles/rails_6.gemfile.lock create mode 100644 gemfiles/rails_6_1.gemfile create mode 100644 gemfiles/rails_6_1.gemfile.lock create mode 100644 gemfiles/rails_7.gemfile create mode 100644 gemfiles/rails_7.gemfile.lock create mode 100644 gemfiles/rails_7_1.gemfile create mode 100644 gemfiles/rails_7_1.gemfile.lock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..21efe51 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +name: "CI" +on: push +jobs: + test: + strategy: + fail-fast: false + matrix: + ruby: ["2.5", "2.7", "3.0", "3.1", "3.2"] + gemfile: + - rails_5_2 + - rails_6 + - rails_6_1 + - rails_7 + - rails_7_1 + exclude: + - ruby: "3.2" + gemfile: "rails_6" + - ruby: "3.2" + gemfile: "rails_5_2" + - ruby: "3.1" + gemfile: "rails_6" + - ruby: "3.1" + gemfile: "rails_5_2" + - ruby: "3.0" + gemfile: "rails_6" + - ruby: "3.0" + gemfile: "rails_5_2" + - ruby: "2.7" + gemfile: "rails_5_2" + - ruby: "2.5" + gemfile: "rails_7_1" + - ruby: "2.5" + gemfile: "rails_7" + + runs-on: ubuntu-22.04 + env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + BUNDLE_PATH_RELATIVE_TO_CWD: true + steps: + - name: Checkout code + uses: actions/checkout@v3 + # Add or replace dependency steps here + - name: Install Ruby and gems + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + # Add or replace test runners here + - name: Run tests + run: bin/rake test diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..b107c31 --- /dev/null +++ b/Appraisals @@ -0,0 +1,19 @@ +appraise "rails-5-2" do + gem "rails", "~> 5.2.8.1" +end + +appraise "rails-6" do + gem "rails", "~> 6.0.6.1" +end + +appraise "rails-6-1" do + gem "rails", "~> 6.1.7.7" +end + +appraise "rails-7" do + gem "rails", "~> 7.0.8.1" +end + +appraise "rails-7-1" do + gem "rails", "~> 7.1.3.2" +end diff --git a/gemfiles/.bundle/config b/gemfiles/.bundle/config new file mode 100644 index 0000000..c127f80 --- /dev/null +++ b/gemfiles/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_RETRY: "1" diff --git a/gemfiles/rails_5_2.gemfile b/gemfiles/rails_5_2.gemfile new file mode 100644 index 0000000..f76cd30 --- /dev/null +++ b/gemfiles/rails_5_2.gemfile @@ -0,0 +1,12 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 5.2.8.1" + +group :test do + gem "minitest-ci", require: false + gem "simplecov", "< 0.18", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_5_2.gemfile.lock b/gemfiles/rails_5_2.gemfile.lock new file mode 100644 index 0000000..7968009 --- /dev/null +++ b/gemfiles/rails_5_2.gemfile.lock @@ -0,0 +1,225 @@ +PATH + remote: .. + specs: + vertex_client (0.10.2) + activesupport + savon (>= 2.11) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.8.1) + actionpack (= 5.2.8.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.8.1) + actionview (= 5.2.8.1) + activesupport (= 5.2.8.1) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.8.1) + activesupport (= 5.2.8.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.8.1) + activesupport (= 5.2.8.1) + globalid (>= 0.3.6) + activemodel (5.2.8.1) + activesupport (= 5.2.8.1) + activerecord (5.2.8.1) + activemodel (= 5.2.8.1) + activesupport (= 5.2.8.1) + arel (>= 9.0) + activestorage (5.2.8.1) + actionpack (= 5.2.8.1) + activerecord (= 5.2.8.1) + marcel (~> 1.0.0) + activesupport (5.2.8.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + akami (1.3.3) + base64 + gyoku (>= 0.4.0) + nokogiri + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + arel (9.0.0) + awesome_print (1.9.2) + base64 (0.2.0) + bigdecimal (3.1.7) + builder (3.2.4) + byebug (11.1.3) + circuitbox (2.0.0) + concurrent-ruby (1.2.3) + crack (1.0.0) + bigdecimal + rexml + crass (1.0.6) + date (3.3.4) + docile (1.4.0) + dotenv (3.1.0) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + globalid (1.1.0) + activesupport (>= 5.0) + gyoku (1.4.0) + builder (>= 2.1.2) + rexml (~> 3.0) + hashdiff (1.1.0) + httpi (4.0.1) + base64 + mutex_m + nkf + rack (>= 2.0, < 3.1) + i18n (1.14.4) + concurrent-ruby (~> 1.0) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + method_source (1.0.0) + mini_mime (1.1.5) + minitest (5.22.3) + minitest-ci (3.4.0) + minitest (>= 5.0.6) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + mutex_m (0.2.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nkf (0.2.0) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + nori (2.7.0) + bigdecimal + public_suffix (5.0.4) + racc (1.7.3) + rack (2.2.8.1) + rack-test (2.1.0) + rack (>= 1.3) + rails (5.2.8.1) + actioncable (= 5.2.8.1) + actionmailer (= 5.2.8.1) + actionpack (= 5.2.8.1) + actionview (= 5.2.8.1) + activejob (= 5.2.8.1) + activemodel (= 5.2.8.1) + activerecord (= 5.2.8.1) + activestorage (= 5.2.8.1) + activesupport (= 5.2.8.1) + bundler (>= 1.3.0) + railties (= 5.2.8.1) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (5.2.8.1) + actionpack (= 5.2.8.1) + activesupport (= 5.2.8.1) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (13.1.0) + rexml (3.2.6) + ruby2_keywords (0.0.5) + savon (2.15.0) + akami (~> 1.2) + builder (>= 2.1.2) + gyoku (~> 1.2) + httpi (>= 2.4.5, < 5) + mail (~> 2.5) + nokogiri (>= 1.8.1) + nori (~> 2.4) + wasabi (>= 3.7, < 6) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + sprockets (4.2.1) + concurrent-ruby (~> 1.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + thor (1.3.1) + thread_safe (0.3.6) + timeout (0.4.1) + tzinfo (1.2.11) + thread_safe (~> 0.1) + uri (0.13.0) + vcr (6.2.0) + wasabi (5.0.2) + addressable + faraday (~> 2.8) + nokogiri (>= 1.13.9) + webmock (3.23.0) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + appraisal + awesome_print + bundler + byebug + circuitbox + dotenv + minitest (~> 5.0) + minitest-ci + mocha + rails (~> 5.2.8.1) + rake + simplecov (< 0.18) + vcr + vertex_client! + webmock + +BUNDLED WITH + 2.4.12 diff --git a/gemfiles/rails_6.gemfile b/gemfiles/rails_6.gemfile new file mode 100644 index 0000000..5e43d6d --- /dev/null +++ b/gemfiles/rails_6.gemfile @@ -0,0 +1,12 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 6.0.6.1" + +group :test do + gem "minitest-ci", require: false + gem "simplecov", "< 0.18", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_6.gemfile.lock b/gemfiles/rails_6.gemfile.lock new file mode 100644 index 0000000..51fe0e7 --- /dev/null +++ b/gemfiles/rails_6.gemfile.lock @@ -0,0 +1,241 @@ +PATH + remote: .. + specs: + vertex_client (0.10.2) + activesupport + savon (>= 2.11) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.0.6.1) + actionpack (= 6.0.6.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.0.6.1) + actionpack (= 6.0.6.1) + activejob (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + mail (>= 2.7.1) + actionmailer (6.0.6.1) + actionpack (= 6.0.6.1) + actionview (= 6.0.6.1) + activejob (= 6.0.6.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.0.6.1) + actionview (= 6.0.6.1) + activesupport (= 6.0.6.1) + rack (~> 2.0, >= 2.0.8) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.0.6.1) + actionpack (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + nokogiri (>= 1.8.5) + actionview (6.0.6.1) + activesupport (= 6.0.6.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (6.0.6.1) + activesupport (= 6.0.6.1) + globalid (>= 0.3.6) + activemodel (6.0.6.1) + activesupport (= 6.0.6.1) + activerecord (6.0.6.1) + activemodel (= 6.0.6.1) + activesupport (= 6.0.6.1) + activestorage (6.0.6.1) + actionpack (= 6.0.6.1) + activejob (= 6.0.6.1) + activerecord (= 6.0.6.1) + marcel (~> 1.0) + activesupport (6.0.6.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + akami (1.3.3) + base64 + gyoku (>= 0.4.0) + nokogiri + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.9.2) + base64 (0.2.0) + bigdecimal (3.1.7) + builder (3.2.4) + byebug (11.1.3) + circuitbox (2.0.0) + concurrent-ruby (1.2.3) + crack (1.0.0) + bigdecimal + rexml + crass (1.0.6) + date (3.3.4) + docile (1.4.0) + dotenv (3.1.0) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + globalid (1.1.0) + activesupport (>= 5.0) + gyoku (1.4.0) + builder (>= 2.1.2) + rexml (~> 3.0) + hashdiff (1.1.0) + httpi (4.0.1) + base64 + mutex_m + nkf + rack (>= 2.0, < 3.1) + i18n (1.14.4) + concurrent-ruby (~> 1.0) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + method_source (1.0.0) + mini_mime (1.1.5) + minitest (5.22.3) + minitest-ci (3.4.0) + minitest (>= 5.0.6) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + mutex_m (0.2.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nkf (0.2.0) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + nori (2.7.0) + bigdecimal + public_suffix (5.0.4) + racc (1.7.3) + rack (2.2.8.1) + rack-test (2.1.0) + rack (>= 1.3) + rails (6.0.6.1) + actioncable (= 6.0.6.1) + actionmailbox (= 6.0.6.1) + actionmailer (= 6.0.6.1) + actionpack (= 6.0.6.1) + actiontext (= 6.0.6.1) + actionview (= 6.0.6.1) + activejob (= 6.0.6.1) + activemodel (= 6.0.6.1) + activerecord (= 6.0.6.1) + activestorage (= 6.0.6.1) + activesupport (= 6.0.6.1) + bundler (>= 1.3.0) + railties (= 6.0.6.1) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (6.0.6.1) + actionpack (= 6.0.6.1) + activesupport (= 6.0.6.1) + method_source + rake (>= 0.8.7) + thor (>= 0.20.3, < 2.0) + rake (13.1.0) + rexml (3.2.6) + ruby2_keywords (0.0.5) + savon (2.15.0) + akami (~> 1.2) + builder (>= 2.1.2) + gyoku (~> 1.2) + httpi (>= 2.4.5, < 5) + mail (~> 2.5) + nokogiri (>= 1.8.1) + nori (~> 2.4) + wasabi (>= 3.7, < 6) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + sprockets (4.2.1) + concurrent-ruby (~> 1.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + thor (1.3.1) + thread_safe (0.3.6) + timeout (0.4.1) + tzinfo (1.2.11) + thread_safe (~> 0.1) + uri (0.13.0) + vcr (6.2.0) + wasabi (5.0.2) + addressable + faraday (~> 2.8) + nokogiri (>= 1.13.9) + webmock (3.23.0) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.13) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + appraisal + awesome_print + bundler + byebug + circuitbox + dotenv + minitest (~> 5.0) + minitest-ci + mocha + rails (~> 6.0.6.1) + rake + simplecov (< 0.18) + vcr + vertex_client! + webmock + +BUNDLED WITH + 2.4.12 diff --git a/gemfiles/rails_6_1.gemfile b/gemfiles/rails_6_1.gemfile new file mode 100644 index 0000000..e087aae --- /dev/null +++ b/gemfiles/rails_6_1.gemfile @@ -0,0 +1,12 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 6.1.7.7" + +group :test do + gem "minitest-ci", require: false + gem "simplecov", "< 0.18", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_6_1.gemfile.lock b/gemfiles/rails_6_1.gemfile.lock new file mode 100644 index 0000000..123c703 --- /dev/null +++ b/gemfiles/rails_6_1.gemfile.lock @@ -0,0 +1,244 @@ +PATH + remote: .. + specs: + vertex_client (0.10.2) + activesupport + savon (>= 2.11) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (6.1.7.7) + actionpack (= 6.1.7.7) + activesupport (= 6.1.7.7) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (6.1.7.7) + actionpack (= 6.1.7.7) + activejob (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) + mail (>= 2.7.1) + actionmailer (6.1.7.7) + actionpack (= 6.1.7.7) + actionview (= 6.1.7.7) + activejob (= 6.1.7.7) + activesupport (= 6.1.7.7) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (6.1.7.7) + actionview (= 6.1.7.7) + activesupport (= 6.1.7.7) + rack (~> 2.0, >= 2.0.9) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (6.1.7.7) + actionpack (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) + nokogiri (>= 1.8.5) + actionview (6.1.7.7) + activesupport (= 6.1.7.7) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (6.1.7.7) + activesupport (= 6.1.7.7) + globalid (>= 0.3.6) + activemodel (6.1.7.7) + activesupport (= 6.1.7.7) + activerecord (6.1.7.7) + activemodel (= 6.1.7.7) + activesupport (= 6.1.7.7) + activestorage (6.1.7.7) + actionpack (= 6.1.7.7) + activejob (= 6.1.7.7) + activerecord (= 6.1.7.7) + activesupport (= 6.1.7.7) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (6.1.7.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + akami (1.3.3) + base64 + gyoku (>= 0.4.0) + nokogiri + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.9.2) + base64 (0.2.0) + bigdecimal (3.1.7) + builder (3.2.4) + byebug (11.1.3) + circuitbox (2.0.0) + concurrent-ruby (1.2.3) + crack (1.0.0) + bigdecimal + rexml + crass (1.0.6) + date (3.3.4) + docile (1.4.0) + dotenv (3.1.0) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + globalid (1.2.1) + activesupport (>= 6.1) + gyoku (1.4.0) + builder (>= 2.1.2) + rexml (~> 3.0) + hashdiff (1.1.0) + httpi (4.0.1) + base64 + mutex_m + nkf + rack (>= 2.0, < 3.1) + i18n (1.14.4) + concurrent-ruby (~> 1.0) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + method_source (1.0.0) + mini_mime (1.1.5) + minitest (5.22.3) + minitest-ci (3.4.0) + minitest (>= 5.0.6) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + mutex_m (0.2.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nkf (0.2.0) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + nori (2.7.0) + bigdecimal + public_suffix (5.0.4) + racc (1.7.3) + rack (2.2.8.1) + rack-test (2.1.0) + rack (>= 1.3) + rails (6.1.7.7) + actioncable (= 6.1.7.7) + actionmailbox (= 6.1.7.7) + actionmailer (= 6.1.7.7) + actionpack (= 6.1.7.7) + actiontext (= 6.1.7.7) + actionview (= 6.1.7.7) + activejob (= 6.1.7.7) + activemodel (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) + bundler (>= 1.15.0) + railties (= 6.1.7.7) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (6.1.7.7) + actionpack (= 6.1.7.7) + activesupport (= 6.1.7.7) + method_source + rake (>= 12.2) + thor (~> 1.0) + rake (13.1.0) + rexml (3.2.6) + ruby2_keywords (0.0.5) + savon (2.15.0) + akami (~> 1.2) + builder (>= 2.1.2) + gyoku (~> 1.2) + httpi (>= 2.4.5, < 5) + mail (~> 2.5) + nokogiri (>= 1.8.1) + nori (~> 2.4) + wasabi (>= 3.7, < 6) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + sprockets (4.2.1) + concurrent-ruby (~> 1.0) + rack (>= 2.2.4, < 4) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + sprockets (>= 3.0.0) + thor (1.3.1) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + uri (0.13.0) + vcr (6.2.0) + wasabi (5.0.2) + addressable + faraday (~> 2.8) + nokogiri (>= 1.13.9) + webmock (3.23.0) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.13) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + appraisal + awesome_print + bundler + byebug + circuitbox + dotenv + minitest (~> 5.0) + minitest-ci + mocha + rails (~> 6.1.7.7) + rake + simplecov (< 0.18) + vcr + vertex_client! + webmock + +BUNDLED WITH + 2.4.12 diff --git a/gemfiles/rails_7.gemfile b/gemfiles/rails_7.gemfile new file mode 100644 index 0000000..5d73bdd --- /dev/null +++ b/gemfiles/rails_7.gemfile @@ -0,0 +1,12 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 7.0.8.1" + +group :test do + gem "minitest-ci", require: false + gem "simplecov", "< 0.18", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_7.gemfile.lock b/gemfiles/rails_7.gemfile.lock new file mode 100644 index 0000000..b728f38 --- /dev/null +++ b/gemfiles/rails_7.gemfile.lock @@ -0,0 +1,243 @@ +PATH + remote: .. + specs: + vertex_client (0.10.2) + activesupport + savon (>= 2.11) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.0.8.1) + actionpack (= 7.0.8.1) + activesupport (= 7.0.8.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailbox (7.0.8.1) + actionpack (= 7.0.8.1) + activejob (= 7.0.8.1) + activerecord (= 7.0.8.1) + activestorage (= 7.0.8.1) + activesupport (= 7.0.8.1) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.0.8.1) + actionpack (= 7.0.8.1) + actionview (= 7.0.8.1) + activejob (= 7.0.8.1) + activesupport (= 7.0.8.1) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.0) + actionpack (7.0.8.1) + actionview (= 7.0.8.1) + activesupport (= 7.0.8.1) + rack (~> 2.0, >= 2.2.4) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.2.0) + actiontext (7.0.8.1) + actionpack (= 7.0.8.1) + activerecord (= 7.0.8.1) + activestorage (= 7.0.8.1) + activesupport (= 7.0.8.1) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.0.8.1) + activesupport (= 7.0.8.1) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activejob (7.0.8.1) + activesupport (= 7.0.8.1) + globalid (>= 0.3.6) + activemodel (7.0.8.1) + activesupport (= 7.0.8.1) + activerecord (7.0.8.1) + activemodel (= 7.0.8.1) + activesupport (= 7.0.8.1) + activestorage (7.0.8.1) + actionpack (= 7.0.8.1) + activejob (= 7.0.8.1) + activerecord (= 7.0.8.1) + activesupport (= 7.0.8.1) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (7.0.8.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + akami (1.3.3) + base64 + gyoku (>= 0.4.0) + nokogiri + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.9.2) + base64 (0.2.0) + bigdecimal (3.1.7) + builder (3.2.4) + byebug (11.1.3) + circuitbox (2.0.0) + concurrent-ruby (1.2.3) + crack (1.0.0) + bigdecimal + rexml + crass (1.0.6) + date (3.3.4) + docile (1.4.0) + dotenv (3.1.0) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + globalid (1.2.1) + activesupport (>= 6.1) + gyoku (1.4.0) + builder (>= 2.1.2) + rexml (~> 3.0) + hashdiff (1.1.0) + httpi (4.0.1) + base64 + mutex_m + nkf + rack (>= 2.0, < 3.1) + i18n (1.14.4) + concurrent-ruby (~> 1.0) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + method_source (1.0.0) + mini_mime (1.1.5) + minitest (5.22.3) + minitest-ci (3.4.0) + minitest (>= 5.0.6) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + mutex_m (0.2.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nkf (0.2.0) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + nori (2.7.0) + bigdecimal + public_suffix (5.0.4) + racc (1.7.3) + rack (2.2.8.1) + rack-test (2.1.0) + rack (>= 1.3) + rails (7.0.8.1) + actioncable (= 7.0.8.1) + actionmailbox (= 7.0.8.1) + actionmailer (= 7.0.8.1) + actionpack (= 7.0.8.1) + actiontext (= 7.0.8.1) + actionview (= 7.0.8.1) + activejob (= 7.0.8.1) + activemodel (= 7.0.8.1) + activerecord (= 7.0.8.1) + activestorage (= 7.0.8.1) + activesupport (= 7.0.8.1) + bundler (>= 1.15.0) + railties (= 7.0.8.1) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.0.8.1) + actionpack (= 7.0.8.1) + activesupport (= 7.0.8.1) + method_source + rake (>= 12.2) + thor (~> 1.0) + zeitwerk (~> 2.5) + rake (13.1.0) + rexml (3.2.6) + ruby2_keywords (0.0.5) + savon (2.15.0) + akami (~> 1.2) + builder (>= 2.1.2) + gyoku (~> 1.2) + httpi (>= 2.4.5, < 5) + mail (~> 2.5) + nokogiri (>= 1.8.1) + nori (~> 2.4) + wasabi (>= 3.7, < 6) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + thor (1.3.1) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + uri (0.13.0) + vcr (6.2.0) + wasabi (5.0.2) + addressable + faraday (~> 2.8) + nokogiri (>= 1.13.9) + webmock (3.23.0) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.13) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + appraisal + awesome_print + bundler + byebug + circuitbox + dotenv + minitest (~> 5.0) + minitest-ci + mocha + rails (~> 7.0.8.1) + rake + simplecov (< 0.18) + vcr + vertex_client! + webmock + +BUNDLED WITH + 2.4.12 diff --git a/gemfiles/rails_7_1.gemfile b/gemfiles/rails_7_1.gemfile new file mode 100644 index 0000000..96311b9 --- /dev/null +++ b/gemfiles/rails_7_1.gemfile @@ -0,0 +1,12 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", "~> 7.1.3.2" + +group :test do + gem "minitest-ci", require: false + gem "simplecov", "< 0.18", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_7_1.gemfile.lock b/gemfiles/rails_7_1.gemfile.lock new file mode 100644 index 0000000..2bcf02e --- /dev/null +++ b/gemfiles/rails_7_1.gemfile.lock @@ -0,0 +1,271 @@ +PATH + remote: .. + specs: + vertex_client (0.10.2) + activesupport + savon (>= 2.11) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.1.3.2) + actionpack (= 7.1.3.2) + activesupport (= 7.1.3.2) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + zeitwerk (~> 2.6) + actionmailbox (7.1.3.2) + actionpack (= 7.1.3.2) + activejob (= 7.1.3.2) + activerecord (= 7.1.3.2) + activestorage (= 7.1.3.2) + activesupport (= 7.1.3.2) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.1.3.2) + actionpack (= 7.1.3.2) + actionview (= 7.1.3.2) + activejob (= 7.1.3.2) + activesupport (= 7.1.3.2) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp + rails-dom-testing (~> 2.2) + actionpack (7.1.3.2) + actionview (= 7.1.3.2) + activesupport (= 7.1.3.2) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.3.2) + actionpack (= 7.1.3.2) + activerecord (= 7.1.3.2) + activestorage (= 7.1.3.2) + activesupport (= 7.1.3.2) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.1.3.2) + activesupport (= 7.1.3.2) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.3.2) + activesupport (= 7.1.3.2) + globalid (>= 0.3.6) + activemodel (7.1.3.2) + activesupport (= 7.1.3.2) + activerecord (7.1.3.2) + activemodel (= 7.1.3.2) + activesupport (= 7.1.3.2) + timeout (>= 0.4.0) + activestorage (7.1.3.2) + actionpack (= 7.1.3.2) + activejob (= 7.1.3.2) + activerecord (= 7.1.3.2) + activesupport (= 7.1.3.2) + marcel (~> 1.0) + activesupport (7.1.3.2) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + minitest (>= 5.1) + mutex_m + tzinfo (~> 2.0) + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + akami (1.3.3) + base64 + gyoku (>= 0.4.0) + nokogiri + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + awesome_print (1.9.2) + base64 (0.2.0) + bigdecimal (3.1.7) + builder (3.2.4) + byebug (11.1.3) + circuitbox (2.0.0) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) + crack (1.0.0) + bigdecimal + rexml + crass (1.0.6) + date (3.3.4) + docile (1.4.0) + dotenv (3.1.0) + drb (2.2.1) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + globalid (1.2.1) + activesupport (>= 6.1) + gyoku (1.4.0) + builder (>= 2.1.2) + rexml (~> 3.0) + hashdiff (1.1.0) + httpi (4.0.1) + base64 + mutex_m + nkf + rack (>= 2.0, < 3.1) + i18n (1.14.4) + concurrent-ruby (~> 1.0) + io-console (0.7.2) + irb (1.12.0) + rdoc + reline (>= 0.4.2) + json (2.7.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + mini_mime (1.1.5) + minitest (5.22.3) + minitest-ci (3.4.0) + minitest (>= 5.0.6) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + mutex_m (0.2.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.4.0.1) + net-protocol + nio4r (2.7.0) + nkf (0.2.0) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + nori (2.7.0) + bigdecimal + psych (5.1.2) + stringio + public_suffix (5.0.4) + racc (1.7.3) + rack (3.0.9.1) + rack-session (2.0.0) + rack (>= 3.0.0) + rack-test (2.1.0) + rack (>= 1.3) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails (7.1.3.2) + actioncable (= 7.1.3.2) + actionmailbox (= 7.1.3.2) + actionmailer (= 7.1.3.2) + actionpack (= 7.1.3.2) + actiontext (= 7.1.3.2) + actionview (= 7.1.3.2) + activejob (= 7.1.3.2) + activemodel (= 7.1.3.2) + activerecord (= 7.1.3.2) + activestorage (= 7.1.3.2) + activesupport (= 7.1.3.2) + bundler (>= 1.15.0) + railties (= 7.1.3.2) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.1.3.2) + actionpack (= 7.1.3.2) + activesupport (= 7.1.3.2) + irb + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rake (13.1.0) + rdoc (6.6.2) + psych (>= 4.0.0) + reline (0.4.3) + io-console (~> 0.5) + rexml (3.2.6) + ruby2_keywords (0.0.5) + savon (2.15.0) + akami (~> 1.2) + builder (>= 2.1.2) + gyoku (~> 1.2) + httpi (>= 2.4.5, < 5) + mail (~> 2.5) + nokogiri (>= 1.8.1) + nori (~> 2.4) + wasabi (>= 3.7, < 6) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + stringio (3.1.0) + thor (1.3.1) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + uri (0.13.0) + vcr (6.2.0) + wasabi (5.0.2) + addressable + faraday (~> 2.8) + nokogiri (>= 1.13.9) + webmock (3.23.0) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + webrick (1.8.1) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.13) + +PLATFORMS + arm64-darwin-23 + +DEPENDENCIES + appraisal + awesome_print + bundler + byebug + circuitbox + dotenv + minitest (~> 5.0) + minitest-ci + mocha + rails (~> 7.1.3.2) + rake + simplecov (< 0.18) + vcr + vertex_client! + webmock + +BUNDLED WITH + 2.4.12 diff --git a/lib/vertex_client.rb b/lib/vertex_client.rb index e93c943..d41ee85 100644 --- a/lib/vertex_client.rb +++ b/lib/vertex_client.rb @@ -78,7 +78,7 @@ def tax_area(payload) def circuit return unless configuration.circuit_config && defined?(Circuitbox) - @circuit ||= Circuitbox.circuit( + Circuitbox.circuit( Configuration::CIRCUIT_NAME, circuit_config_options ) diff --git a/test/vertex_client_test.rb b/test/vertex_client_test.rb index 51b1685..da44952 100644 --- a/test/vertex_client_test.rb +++ b/test/vertex_client_test.rb @@ -76,7 +76,7 @@ end it 'opens the circuit' do - skip "This test is flaky and I can't figure out how it get it to not be flaky. Do we really need to test that the circuit opens?" + # skip "This test is flaky and I can't figure out how it get it to not be flaky. Do we really need to test that the circuit opens?" VCR.use_cassette('circuit_breaker', allow_playback_repeats: true, match_requests_on: []) do VertexClient.configuration.circuit_config = {} diff --git a/vertex_client.gemspec b/vertex_client.gemspec index 4ec88e5..056d1be 100644 --- a/vertex_client.gemspec +++ b/vertex_client.gemspec @@ -38,6 +38,7 @@ Gem::Specification.new do |spec| spec.add_dependency "activesupport" spec.add_dependency "savon", ">= 2.11" + spec.add_development_dependency "appraisal" spec.add_development_dependency "awesome_print" spec.add_development_dependency "circuitbox" spec.add_development_dependency "bundler"