sinatra-xsendfile 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/xsendfile.rb +1 -1
- data/lib/sinatra/xsendfile/version.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: 5faba4e77cf6ec5896aec296b8be6cc6e3cd0ee7
|
4
|
+
data.tar.gz: 007af95294b54af5acf32c29d8b77a461d295d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a4912a4f28c2f7cdb1762331f92cf78a5d2044228b2b15b623f1829c676d483cd20b10ee58e1c27f5f655a3dbe68e530fa5979de2c8dbae4dae03fa070e351
|
7
|
+
data.tar.gz: 2eed4192b5eebbc4beed99e63c2d64712c286326ba07db9c0629c0c0f662fe82ff19875e332ed9f32f4175efaa4ff1ccd24db25f052fc4d34e64b08cf188b7ca
|
data/lib/sinatra/xsendfile.rb
CHANGED
@@ -2,7 +2,7 @@ module Sinatra
|
|
2
2
|
module Xsendfile
|
3
3
|
def x_send_file(path, opts = {})
|
4
4
|
if opts[:type] or not response['Content-Type']
|
5
|
-
content_type(opts[:type] || File.extname(path)
|
5
|
+
content_type(opts[:type] || File.extname(path), :default => 'application/octet-stream')
|
6
6
|
end
|
7
7
|
|
8
8
|
if opts[:disposition] == 'attachment' || opts[:filename]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-xsendfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Polovnyov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|