From c11aec150c9162e396640acbe2fb63ae80738211 Mon Sep 17 00:00:00 2001 From: Claudio Poli Date: Tue, 5 Jul 2011 20:38:23 -0700 Subject: [PATCH] Fix deprecation messages. --- lib/fog/storage/requests/aws/get_object_url.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/storage/requests/aws/get_object_url.rb b/lib/fog/storage/requests/aws/get_object_url.rb index faac7b793..4ad06bfa4 100644 --- a/lib/fog/storage/requests/aws/get_object_url.rb +++ b/lib/fog/storage/requests/aws/get_object_url.rb @@ -18,7 +18,7 @@ module Fog # http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html def get_object_url(bucket_name, object_name, expires) - Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => ##{get_object_url} is deprecated, use ##{get_object_https_url} instead[/] [light_black](#{caller.first})[/]") + Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => #get_object_url is deprecated, use #get_object_https_url instead[/] [light_black](#{caller.first})[/]") get_object_https_url(bucket_name, object_name, expires) end @@ -27,7 +27,7 @@ module Fog class Mock # :nodoc:all def get_object_url(bucket_name, object_name, expires) - Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => ##{get_object_url} is deprecated, use ##{get_object_https_url} instead[/] [light_black](#{caller.first})[/]") + Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => #get_object_url is deprecated, use #get_object_https_url instead[/] [light_black](#{caller.first})[/]") get_object_https_url(bucket_name, object_name, expires) end