Commit 389c0904 authored by Balasankar C's avatar Balasankar C
Browse files

Merge branch 'ruby-2-7-fix' into '7.0.10-stable'

Fixes running omnibus on ruby 2.7

See merge request gitlab-org/omnibus!14
parents fcabf142 fc0e0f8d
......@@ -77,7 +77,11 @@ module Omnibus
end
end
file = open(from_url, options)
if RUBY_VERSION.to_f < 2.7
file = open(from_url, options)
else
file = URI.open(from_url, options)
end
# This is a temporary file. Close and flush it before attempting to copy
# it over.
file.close
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment