diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ddc69e8..dac2bee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,10 +14,10 @@ jobs: run: cat .env-example .env-dev-values > .env - name: Load .env file uses: xom9ikk/dotenv@v1.0.2 - - name: Set up Ruby 3.1.0 + - name: Set up Ruby 3.1 uses: ruby/setup-ruby@v1 with: - ruby-version: 3.1.0 + ruby-version: 3.1 bundler-cache: true - name: Run linter for Ruby run: bundle exec standardrb diff --git a/Gemfile b/Gemfile index 8df7a38..300a70c 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source "https://rubygems.org" gem "sinatra" gem "faraday" +gem "faraday-retry" gem "puma" gem "omniauth" gem "omniauth_openid_connect" diff --git a/Gemfile.lock b/Gemfile.lock index 9e24a8c..5426f6a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -26,6 +26,8 @@ GEM faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) faraday-net_http (3.0.0) + faraday-retry (2.0.0) + faraday (~> 2.0) hashdiff (1.0.1) hashie (5.0.0) httpclient (2.8.3) @@ -166,6 +168,7 @@ PLATFORMS DEPENDENCIES byebug faraday + faraday-retry net-smtp omniauth omniauth_openid_connect diff --git a/app.rb b/app.rb index e8fabd5..1ebd09c 100644 --- a/app.rb +++ b/app.rb @@ -3,6 +3,7 @@ require "omniauth_openid_connect" require "csv" require "faraday" +require "faraday/retry" require_relative "./lib/monkey_httpclient" require_relative "./lib/omniauth_setup" require_relative "./lib/catalog_solr_client"