From ab0e7e08cbf914401fbb4a4c8e6526c7d971558b Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 30 Dec 2010 12:54:22 -0800 Subject: [PATCH] [aws,google|storage] let parsers convert time closes #125 --- lib/fog/aws/models/storage/file.rb | 4 ++-- lib/fog/google/models/storage/file.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/aws/models/storage/file.rb b/lib/fog/aws/models/storage/file.rb index 7ea39811b..06df53bc9 100644 --- a/lib/fog/aws/models/storage/file.rb +++ b/lib/fog/aws/models/storage/file.rb @@ -15,12 +15,12 @@ module Fog attribute :cache_control, :aliases => 'Cache-Control' attribute :content_disposition, :aliases => 'Content-Disposition' attribute :content_encoding, :aliases => 'Content-Encoding' - attribute :content_length, :aliases => ['Content-Length', 'Size'], :type => :integer + attribute :content_length, :aliases => ['Content-Length', 'Size'] attribute :content_md5, :aliases => 'Content-MD5' attribute :content_type, :aliases => 'Content-Type' attribute :etag, :aliases => ['Etag', 'ETag'] attribute :expires, :aliases => 'Expires' - attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'], :type => :time + attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'] attribute :owner, :aliases => 'Owner' attribute :storage_class, :aliases => ['x-amz-storage-class', 'StorageClass'] diff --git a/lib/fog/google/models/storage/file.rb b/lib/fog/google/models/storage/file.rb index e1e74792c..1a2f51456 100644 --- a/lib/fog/google/models/storage/file.rb +++ b/lib/fog/google/models/storage/file.rb @@ -14,12 +14,12 @@ module Fog attribute :cache_control, :aliases => 'Cache-Control' attribute :content_disposition, :aliases => 'Content-Disposition' attribute :content_encoding, :aliases => 'Content-Encoding' - attribute :content_length, :aliases => ['Content-Length', 'Size'], :type => :integer + attribute :content_length, :aliases => ['Content-Length', 'Size'] attribute :content_md5, :aliases => 'Content-MD5' attribute :content_type, :aliases => 'Content-Type' attribute :etag, :aliases => ['Etag', 'ETag'] attribute :expires, :aliases => 'Expires' - attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'], :type => :time + attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'] attribute :owner, :aliases => 'Owner' attribute :storage_class, :aliases => ['x-goog-storage-class', 'StorageClass']