sinatra-xsendfile 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/sinatra/x_send_file.rb +2 -2
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ begin
8
8
  require 'jeweler'
9
9
  Jeweler::Tasks.new do |gemspec|
10
10
  gemspec.name = "sinatra-xsendfile"
11
- gemspec.version = "0.2.1"
11
+ gemspec.version = "0.2.2"
12
12
  gemspec.summary = gemspec.description = "X-SendFile helpers for Sinatra"
13
13
  gemspec.email = "vasily@polovnyov.ru"
14
14
  gemspec.homepage = "http://github.com/vast/sinatra-xsendfile"
@@ -13,9 +13,9 @@ module Sinatra
13
13
  response['Content-Disposition'] = 'inline'
14
14
  end
15
15
 
16
- header_key = opts[:header] || (Sinatra::Application.respond_to?(:xsf_header) && Sinatra::Application.xsf_header) ||
16
+ header_key = opts[:header] || (settings.respond_to?(:xsf_header) && settings.xsf_header) ||
17
17
  'X-SendFile'
18
- path = File.expand_path(path).gsub(Sinatra::Application.public, '') if header_key == 'X-Accel-Redirect'
18
+ path = File.expand_path(path).gsub(settings.public, '') if header_key == 'X-Accel-Redirect'
19
19
 
20
20
  response[header_key] = path
21
21
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Vasily Polovnyov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-24 00:00:00 +03:00
17
+ date: 2010-05-19 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency