diff --git a/Gemfile b/Gemfile index d24e9e77..08890e8e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,8 @@ source 'https://rubygems.org' +# The Ruby version should match the lowest acceptable version of the application +raise "Ruby 3.1 required" unless RUBY_VERSION >= "3.1" && RUBY_VERSION < "3.2" + plugin 'bundler-inject' require File.join(Bundler::Plugin.index.load_paths("bundler-inject")[0], "bundler-inject") rescue nil diff --git a/Gemfile.lock b/Gemfile.lock index 3ea71ef0..97a28aa8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -64,60 +64,43 @@ GEM public_suffix (>= 2.0.2, < 7.0) ast (2.4.2) awesome_spawn (1.6.0) - base64 (0.1.1) - bigdecimal (3.1.8) + base64 (0.1.2) + bigdecimal (3.1.9) builder (3.3.0) concurrent-ruby (1.3.4) config (5.5.2) deep_merge (~> 1.2, >= 1.2.1) ostruct - connection_pool (2.4.1) - crack (0.4.6) + connection_pool (2.5.0) + crack (1.0.0) bigdecimal rexml crass (1.0.6) date (3.4.1) deep_merge (1.2.2) - default_value_for (4.0.0) - activerecord (>= 6.1, < 7.3) + default_value_for (4.1.1) + activerecord (>= 6.1, < 8.1) diff-lcs (1.5.1) - docile (1.4.0) + docile (1.4.1) erubi (1.13.1) et-orbi (1.2.11) tzinfo - factory_bot (6.4.6) + factory_bot (6.5.0) activesupport (>= 5.0.0) - factory_bot_rails (6.4.3) - factory_bot (~> 6.4) + factory_bot_rails (6.4.4) + factory_bot (~> 6.5) railties (>= 5.0.0) - faraday (1.10.4) - faraday-em_http (~> 1.0) - faraday-em_synchrony (~> 1.0) - faraday-excon (~> 1.1) - faraday-httpclient (~> 1.0) - faraday-multipart (~> 1.0) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.0) - faraday-patron (~> 1.0) - faraday-rack (~> 1.0) - faraday-retry (~> 1.0) - ruby2_keywords (>= 0.0.4) - faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) - faraday-excon (1.1.0) + faraday (2.12.2) + faraday-net_http (>= 2.0, < 3.5) + json + logger faraday-http-cache (2.5.1) faraday (>= 0.8) - faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) - faraday-net_http (1.0.2) - faraday-net_http_persistent (1.2.0) - faraday-patron (1.0.0) - faraday-rack (1.0.0) - faraday-retry (1.0.3) - ffi (1.17.0) - ffi (1.17.0-arm64-darwin) - ffi (1.17.0-x86_64-linux-gnu) + faraday-net_http (3.4.0) + net-http (>= 0.5.0) + ffi (1.17.1) + ffi (1.17.1-arm64-darwin) + ffi (1.17.1-x86_64-linux-gnu) foreman (0.88.1) fugit (1.11.1) et-orbi (~> 1, >= 1.2.11) @@ -134,7 +117,7 @@ GEM rainbow rubocop (>= 1.0) sysexits (~> 1.1) - hashdiff (1.1.1) + hashdiff (1.1.2) i18n (1.14.7) concurrent-ruby (~> 1.0) io-console (0.8.0) @@ -146,13 +129,13 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) - json (2.7.2) + json (2.9.1) language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) logger (1.6.5) - loofah (2.22.0) + loofah (2.24.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) mail (2.8.1) @@ -160,9 +143,10 @@ GEM net-imap net-pop net-smtp - manageiq-style (1.5.2) + manageiq-style (1.5.3) more_core_extensions optimist + rexml (>= 3.3.9) rubocop (= 1.56.3) rubocop-performance rubocop-rails @@ -175,7 +159,8 @@ GEM more_core_extensions (4.5.0) activesupport sync - multipart-post (2.4.1) + net-http (0.6.0) + uri net-imap (0.5.5) date net-protocol @@ -197,10 +182,10 @@ GEM octokit (4.25.1) faraday (>= 1, < 3) sawyer (~> 0.9) - optimist (3.1.0) - ostruct (0.6.0) + optimist (3.2.0) + ostruct (0.6.1) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.7.0) ast (~> 2.4.1) racc pg (1.5.9) @@ -210,13 +195,13 @@ GEM psych (5.2.3) date stringio - public_suffix (5.1.1) + public_suffix (6.0.1) puma (6.5.0) nio4r (~> 2.0) raabro (1.4.0) racc (1.8.1) rack (2.2.10) - rack-test (2.1.0) + rack-test (2.2.0) rack (>= 1.3) rails (6.1.7.10) actioncable (= 6.1.7.10) @@ -253,24 +238,24 @@ GEM ffi (~> 1.0) rdoc (6.11.0) psych (>= 4.0.0) - redis-client (0.22.2) + redis-client (0.23.2) connection_pool redlock (2.0.6) redis-client (>= 0.14.1, < 1.0.0) - regexp_parser (2.9.2) + regexp_parser (2.10.0) reline (0.6.0) io-console (~> 0.5) - rexml (3.3.9) + rexml (3.4.0) rspec (3.13.0) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) rspec-mocks (~> 3.13.0) - rspec-core (3.13.1) + rspec-core (3.13.2) rspec-support (~> 3.13.0) rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.1) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-rails (6.1.5) @@ -281,7 +266,7 @@ GEM rspec-expectations (~> 3.13) rspec-mocks (~> 3.13) rspec-support (~> 3.13) - rspec-support (3.13.1) + rspec-support (3.13.2) rubocop (1.56.3) base64 (~> 0.1.1) json (~> 2.3) @@ -294,21 +279,20 @@ GEM rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.3) + rubocop-ast (1.37.0) parser (>= 3.3.1.0) - rubocop-performance (1.22.1) + rubocop-performance (1.23.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rails (2.26.2) + rubocop-rails (2.29.0) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.52.0, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (1.13.0) - ruby2_keywords (0.0.5) - rufus-scheduler (3.9.1) - fugit (~> 1.1, >= 1.1.6) - rugged (1.7.2) + rufus-scheduler (3.9.2) + fugit (~> 1.1, >= 1.11.1) + rugged (1.9.0) sass (3.7.4) sass-listen (~> 4.0.0) sass-listen (4.0.0) @@ -339,7 +323,7 @@ GEM docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) + simplecov-html (0.13.1) simplecov_json_formatter (0.1.4) sprockets (3.7.5) base64 @@ -354,7 +338,7 @@ GEM sysexits (1.2.0) temple (0.10.3) thor (1.3.2) - tilt (2.4.0) + tilt (2.6.0) timecop (0.9.10) timeout (0.4.3) turbolinks (5.2.1) @@ -363,6 +347,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) + uri (1.0.2) webmock (3.24.0) addressable (>= 2.8.0) crack (>= 0.3.2) diff --git a/lib/github_service/response/ratelimit_logger.rb b/lib/github_service/response/ratelimit_logger.rb index 439235b4..035cc4e7 100644 --- a/lib/github_service/response/ratelimit_logger.rb +++ b/lib/github_service/response/ratelimit_logger.rb @@ -2,7 +2,7 @@ module GithubService module Response - class RatelimitLogger < Faraday::Response::Middleware + class RatelimitLogger < Faraday::Middleware attr_accessor :logger def initialize(app, logger = nil)