Skip to content

Commit

Permalink
use uri.open
Browse files Browse the repository at this point in the history
open-uri's implicit open no longer works for uris in ruby3 (I think)
  • Loading branch information
hsitter committed Apr 29, 2022
1 parent 3fdc55c commit 10b781c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nci/lint_bin/test_log.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
# SPDX-FileCopyrightText: 2016-2021 Harald Sitter <[email protected]>
# SPDX-FileCopyrightText: 2016-2022 Harald Sitter <[email protected]>
# SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL

require 'open-uri'
Expand All @@ -17,7 +17,7 @@ def log_orig
@log_orig ||= Retry.retry_it(times: 2, sleep: 8) do
uri = ENV.fetch('LOG_URL')
warn "Loading Build Log: #{uri}"
io = open(uri)
io = URI.open(uri)
io.read.freeze
end
end
Expand Down

0 comments on commit 10b781c

Please sign in to comment.