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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb641a1cdf9bfcce614bb08d1f0aba44e24c498
4
- data.tar.gz: fa83045b842e40dd3a6573516faa9cdd9652b828
3
+ metadata.gz: 5faba4e77cf6ec5896aec296b8be6cc6e3cd0ee7
4
+ data.tar.gz: 007af95294b54af5acf32c29d8b77a461d295d78
5
5
  SHA512:
6
- metadata.gz: b3e30908b0eb30953661257aef6a52afbea6b64cb97f82325bd30af0ef0496c0593575b40ebae28a208ab5dc913a582066fb6dbb14e4dd484487085a5d5b80e8
7
- data.tar.gz: d34108964092c0f50f8620fe0d704285aaa509f973f37dd3f778e49f2d438200f6423db4c69cba7ed637b59042302f5cc1355d35265672457a2d4ab377cdaf28
6
+ metadata.gz: d5a4912a4f28c2f7cdb1762331f92cf78a5d2044228b2b15b623f1829c676d483cd20b10ee58e1c27f5f655a3dbe68e530fa5979de2c8dbae4dae03fa070e351
7
+ data.tar.gz: 2eed4192b5eebbc4beed99e63c2d64712c286326ba07db9c0629c0c0f662fe82ff19875e332ed9f32f4175efaa4ff1ccd24db25f052fc4d34e64b08cf188b7ca
@@ -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) || 'application/octet-stream')
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]
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Xsendfile
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
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.1
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-01-02 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra