frizz 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frizz/remote.rb +3 -1
- data/lib/frizz/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c1875686b662267d76bca6a8c1266233eb36fde
|
4
|
+
data.tar.gz: ccae4c7468100e339820d644d2dd7de7d140be2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4305c96846f0230ac46dbf7e55e1ceec3e1a0db4d4014f4e09b22f7ceb60580acba41a61bc5b5722193c801d3ddc25b0d60fa93e1073f18925915d89483e00ff
|
7
|
+
data.tar.gz: 437723818493873ee36afd01b975c81313df44834191c6dafa44f92d53921bb5b0f27a42289e55ea5e77672b8572abc99ae32b8a090e5b49c7453b5c36aa69f4
|
data/lib/frizz/remote.rb
CHANGED
@@ -14,11 +14,13 @@ module Frizz
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def upload(file, key, options = {})
|
17
|
+
mime_type = MIME::Types.type_for(key).first
|
18
|
+
|
17
19
|
object_options = {
|
18
20
|
bucket: bucket_name,
|
19
21
|
body: file,
|
20
22
|
acl: 'public-read',
|
21
|
-
content_type:
|
23
|
+
content_type: mime_type && mime_type.content_type || 'text/plain',
|
22
24
|
key: key
|
23
25
|
}
|
24
26
|
|
data/lib/frizz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frizz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- patbenatar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.6.
|
170
|
+
rubygems_version: 2.6.14
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: Utility for deploying static sites to S3
|