caleb-cloudfront_asset_host 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{caleb-cloudfront_asset_host}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Menno van der Sman"]
@@ -42,7 +42,7 @@ module CloudfrontAssetHost
42
42
 
43
43
  def gzipped_path(path)
44
44
  tmp = Tempfile.new("cfah-gz")
45
- `gzip #{path} -q -c > #{tmp.path}`
45
+ `gzip '#{path}' -q -c > '#{tmp.path}'`
46
46
  tmp.path
47
47
  end
48
48
 
@@ -115,7 +115,7 @@ module CloudfrontAssetHost
115
115
  end
116
116
 
117
117
  def md5sum(path)
118
- `openssl md5 #{path}`.split(/\s/)[1].to_s
118
+ `openssl md5 '#{path}'`.split(/\s/)[1].to_s
119
119
  end
120
120
 
121
121
  end
@@ -94,7 +94,7 @@ class UploaderTest < Test::Unit::TestCase
94
94
  contents = File.read(path)
95
95
 
96
96
  gz_path = CloudfrontAssetHost::Uploader.gzipped_path(path)
97
- gunzip_contents = `gunzip #{gz_path} -q -c`
97
+ gunzip_contents = `gunzip '#{gz_path}' -q -c`
98
98
 
99
99
  assert_equal contents, gunzip_contents
100
100
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 4
9
- version: 1.0.4
8
+ - 5
9
+ version: 1.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Menno van der Sman