Permalink
Browse files

work with files with spaces in their names

  • Loading branch information...
Caleb Land Menno van der Sman
Caleb Land authored and Menno van der Sman committed Jul 23, 2010
1 parent 6245742 commit 08531fde82e8e8d125f8319fd183bea72eb3823f
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cloudfront_asset_host/uploader.rb
  2. +1 −1 test/uploader_test.rb
@@ -49,7 +49,7 @@ def should_upload?(key, options={})
def gzipped_path(path)
tmp = Tempfile.new("cfah-gz")
- `gzip #{path} -q -c > #{tmp.path}`
+ `gzip '#{path}' -q -c > '#{tmp.path}'`
tmp.path
end
View
@@ -109,7 +109,7 @@ class UploaderTest < Test::Unit::TestCase
contents = File.read(path)
gz_path = CloudfrontAssetHost::Uploader.gzipped_path(path)
- gunzip_contents = `gunzip #{gz_path} -q -c`
+ gunzip_contents = `gunzip '#{gz_path}' -q -c`
assert_equal contents, gunzip_contents
end

0 comments on commit 08531fd

Please sign in to comment.