1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Ruby187 hash syntax

This commit is contained in:
Oleg Vivtash 2015-08-18 18:41:51 +03:00
parent d7bbe4265d
commit 0e2b748449

View file

@ -34,11 +34,11 @@ module Fog
sig = sig_to_hex(hmac.sign(string_to_sign))
temp_url_query = {
temp_url_sig: sig,
temp_url_expires: expires
:temp_url_sig => sig,
:temp_url_expires => expires
}
temp_url_query.merge!(inline: true) if options[:inline]
temp_url_query.merge!(filename: options[:filename]) if options[:filename]
temp_url_query.merge!(:inline => true) if options[:inline]
temp_url_query.merge!(:filename => options[:filename]) if options[:filename]
temp_url_options = {
:scheme => options[:scheme] || @uri.scheme,
:host => @uri.host,