diff --git a/lib/asset_sync/storage.rb b/lib/asset_sync/storage.rb index 0c65343..6e7740d 100644 --- a/lib/asset_sync/storage.rb +++ b/lib/asset_sync/storage.rb @@ -31,7 +31,11 @@ def local_files def get_remote_files raise BucketNotFound.new("AWS Bucket: #{self.config.aws_bucket} not found.") unless bucket - return bucket.files.map { |f| f.key } + # fixes: https://github.com/rumblelabs/asset_sync/issues/16 + # (work-around for https://github.com/fog/fog/issues/596) + files = [] + bucket.files.each { |f| files << f.key } + return files end def delete_file(f, remote_files_to_delete) @@ -115,4 +119,4 @@ def sync end end -end \ No newline at end of file +end