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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 640a8a3d4e62f00a802b71bf0e804816ab6fc345
4
- data.tar.gz: a6347fe363eff5929cf1c08c70de06597606db55
3
+ metadata.gz: 7c1875686b662267d76bca6a8c1266233eb36fde
4
+ data.tar.gz: ccae4c7468100e339820d644d2dd7de7d140be2d
5
5
  SHA512:
6
- metadata.gz: 2dccac0cfac57f1928f99f5435e0e0c8a5b748de03eed402ad9eaf24eddbde927468a81167c8926e59d1573212af047382bbbeaa3ad6cb91518062c21f5504dd
7
- data.tar.gz: 73f5b35b23d7a057a2617ca75596482a25459b2c36513627f6b91cbd00e3fe5ab8561226192673362f30ad0572efd835dadff588fcd56f1b188780eb58ea5bc7
6
+ metadata.gz: 4305c96846f0230ac46dbf7e55e1ceec3e1a0db4d4014f4e09b22f7ceb60580acba41a61bc5b5722193c801d3ddc25b0d60fa93e1073f18925915d89483e00ff
7
+ data.tar.gz: 437723818493873ee36afd01b975c81313df44834191c6dafa44f92d53921bb5b0f27a42289e55ea5e77672b8572abc99ae32b8a090e5b49c7453b5c36aa69f4
@@ -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: MIME::Types.type_for(key).first.content_type,
23
+ content_type: mime_type && mime_type.content_type || 'text/plain',
22
24
  key: key
23
25
  }
24
26
 
@@ -1,3 +1,3 @@
1
1
  module Frizz
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
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.0
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: 2017-10-04 00:00:00.000000000 Z
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.11
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