Skip to content

Commit

Permalink
Fix more Ruby 3.0 kwargs issues in Fog::Storage::GoogleJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Temikus committed Jul 23, 2021
1 parent 9c60bd3 commit 694250a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/fog/storage/google_json/models/files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get(key, options = {}, &block)

def get_https_url(key, expires, options = {})
requires :directory
service.get_object_https_url(directory.key, key, expires, options)
service.get_object_https_url(directory.key, key, expires, **options)
end

def metadata(key, options = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Fog
module Storage
class GoogleJSON
module GetObjectHttpUrl
def get_object_http_url(bucket_name, object_name, expires, options = {})
def get_object_http_url(bucket_name, object_name, expires, **options)
raise ArgumentError.new("bucket_name is required") unless bucket_name
raise ArgumentError.new("object_name is required") unless object_name
http_url(options.merge(:headers => {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Fog
module Storage
class GoogleJSON
module GetObjectHttpsUrl
def get_object_https_url(bucket_name, object_name, expires, options = {})
def get_object_https_url(bucket_name, object_name, expires, **options)
raise ArgumentError.new("bucket_name is required") unless bucket_name
raise ArgumentError.new("object_name is required") unless object_name

Expand Down

0 comments on commit 694250a

Please sign in to comment.