Skip to content

Commit

Permalink
Add faraday-retry gem + standardrb --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaunier committed Feb 16, 2023
1 parent b1319f7 commit 325e668
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gem "octokit", "~> 4.25"
gem "activesupport", "~> 6.1.1"
gem "faraday-retry", "~> 2.0"

group :test, :development do
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ GEM
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-net_http (2.0.3)
faraday-retry (2.0.0)
faraday (~> 2.0)
i18n (1.8.7)
concurrent-ruby (~> 1.0)
minitest (5.14.3)
Expand Down Expand Up @@ -72,11 +74,13 @@ GEM

PLATFORMS
x86_64-darwin-19
x86_64-darwin-22
x86_64-linux

DEPENDENCIES
activesupport (~> 6.1.1)
byebug
faraday-retry (~> 2.0)
octokit (~> 4.25)
rspec
standard
Expand Down
2 changes: 1 addition & 1 deletion app/services/github_checks_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def wait_for_checks
fail_if_requested_check_never_run(all_checks)

until all_checks_complete(all_checks)
plural_part = all_checks.length > 1 ? "checks aren't" : "check isn't"
plural_part = (all_checks.length > 1) ? "checks aren't" : "check isn't"
puts "The requested #{plural_part} complete yet, will check back in #{wait} seconds..."
sleep(wait)
all_checks = query_check_status
Expand Down

0 comments on commit 325e668

Please sign in to comment.