s3-publisher 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.rdoc → README.md} +0 -0
- data/lib/s3-publisher.rb +1 -1
- data/s3-publisher.gemspec +1 -1
- data/spec/s3_publisher_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5489fb65d64d60ce1c72ab6e62058913d96c4dcf
|
4
|
+
data.tar.gz: a565df15000a23fad4cf9adf7b217ed69ae3ce96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a9777bf2e42143fecde18da322a58eaebdde4b7e6d636c016fb31b1880382ca0835a62144a41f03ab0baeb3996cbc0d3197da6c511602e551c2252c9ea6a31
|
7
|
+
data.tar.gz: 11cfabd2b644cbd75246701cdeca19ee5d72ba0397aa5a95c1f2aa96ae2388519928e37b094d2dec657aaede22e1672101a6f87e14cb0e2c7383be4d301c7da6
|
data/{README.rdoc → README.md}
RENAMED
File without changes
|
data/lib/s3-publisher.rb
CHANGED
@@ -121,7 +121,7 @@ class S3Publisher
|
|
121
121
|
begin
|
122
122
|
obj = @s3.buckets[bucket_name].objects[item[:key_name]]
|
123
123
|
|
124
|
-
gzip = item[:gzip] != false && !item[:
|
124
|
+
gzip = item[:gzip] != false && !item[:write_opts][:content_type].match('image/')
|
125
125
|
|
126
126
|
if gzip
|
127
127
|
item[:write_opts][:content_encoding] = 'gzip'
|
data/s3-publisher.gemspec
CHANGED
data/spec/s3_publisher_spec.rb
CHANGED
@@ -30,7 +30,7 @@ describe S3Publisher do
|
|
30
30
|
push_test_data('myfile.txt', data: '1234', gzip: false)
|
31
31
|
end
|
32
32
|
|
33
|
-
it "does not gzip
|
33
|
+
it "does not gzip image files" do
|
34
34
|
set_put_expectation(key_name: 'myfile.jpg', data: '1234')
|
35
35
|
push_test_data('myfile.jpg', data: '1234')
|
36
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Koski
|
@@ -63,7 +63,7 @@ files:
|
|
63
63
|
- Gemfile
|
64
64
|
- Gemfile.lock
|
65
65
|
- LICENSE
|
66
|
-
- README.
|
66
|
+
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/s3-publisher.rb
|
69
69
|
- s3-publisher.gemspec
|