rack-static_fallback 1.0.3 → 1.0.4
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.
- data/lib/rack/static_fallback.rb +3 -2
- data/rack-static_fallback.gemspec +1 -1
- metadata +31 -53
data/lib/rack/static_fallback.rb
CHANGED
|
@@ -63,7 +63,7 @@ module Rack
|
|
|
63
63
|
|
|
64
64
|
when :fallback
|
|
65
65
|
# redirect request to the production server
|
|
66
|
-
[ 302, { "Location" => ::File.join(@fallback_static_url, env["PATH_INFO"]) }, [] ]
|
|
66
|
+
[ 302, { "Location" => ::File.join(@fallback_static_url, env["PATH_INFO"]), "Content-Type" => "" }, [] ]
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
else
|
|
@@ -75,4 +75,5 @@ module Rack
|
|
|
75
75
|
[ 404, { "Content-Type" => "text/html", "Content-Length" => "0" }, [] ]
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
|
-
end
|
|
78
|
+
end
|
|
79
|
+
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rack-static_fallback"
|
|
6
|
-
s.version = '1.0.
|
|
6
|
+
s.version = '1.0.4'
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.authors = ["Evgeniy Dolzhenko", "Mike Fulcher"]
|
|
9
9
|
s.email = ["dolzenko@gmail.com", "mike@plan9design.co.uk"]
|
metadata
CHANGED
|
@@ -1,88 +1,66 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-static_fallback
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 1
|
|
8
|
-
- 0
|
|
9
|
-
- 3
|
|
10
|
-
version: 1.0.3
|
|
11
6
|
platform: ruby
|
|
12
|
-
authors:
|
|
7
|
+
authors:
|
|
13
8
|
- Evgeniy Dolzhenko
|
|
14
9
|
- Mike Fulcher
|
|
15
10
|
autorequire:
|
|
16
11
|
bindir: bin
|
|
17
12
|
cert_chain: []
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
dependencies:
|
|
22
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
+
date: 2012-01-16 00:00:00.000000000Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
23
16
|
name: rack
|
|
24
|
-
|
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
17
|
+
requirement: &70236650330140 !ruby/object:Gem::Requirement
|
|
26
18
|
none: false
|
|
27
|
-
requirements:
|
|
28
|
-
- -
|
|
29
|
-
- !ruby/object:Gem::Version
|
|
30
|
-
|
|
31
|
-
segments:
|
|
32
|
-
- 0
|
|
33
|
-
version: "0"
|
|
19
|
+
requirements:
|
|
20
|
+
- - ! '>='
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '0'
|
|
34
23
|
type: :runtime
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: *70236650330140
|
|
26
|
+
description: Bounces or redirects requests to missing static files. Could be useful
|
|
27
|
+
when you want to run the server with production database locally and have user uploaded
|
|
28
|
+
content fetched transparently from production site.
|
|
29
|
+
email:
|
|
38
30
|
- dolzenko@gmail.com
|
|
39
31
|
- mike@plan9design.co.uk
|
|
40
32
|
executables: []
|
|
41
|
-
|
|
42
33
|
extensions: []
|
|
43
|
-
|
|
44
34
|
extra_rdoc_files: []
|
|
45
|
-
|
|
46
|
-
files:
|
|
35
|
+
files:
|
|
47
36
|
- Gemfile
|
|
48
37
|
- README.md
|
|
49
38
|
- Rakefile
|
|
50
39
|
- lib/rack/generate_readme.rb
|
|
51
40
|
- lib/rack/static_fallback.rb
|
|
52
41
|
- rack-static_fallback.gemspec
|
|
53
|
-
has_rdoc: true
|
|
54
42
|
homepage: http://github.com/6twenty/rack-static_fallback
|
|
55
43
|
licenses: []
|
|
56
|
-
|
|
57
44
|
post_install_message:
|
|
58
45
|
rdoc_options: []
|
|
59
|
-
|
|
60
|
-
require_paths:
|
|
46
|
+
require_paths:
|
|
61
47
|
- lib
|
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
49
|
none: false
|
|
64
|
-
requirements:
|
|
65
|
-
- -
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
- 0
|
|
70
|
-
version: "0"
|
|
71
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ! '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
55
|
none: false
|
|
73
|
-
requirements:
|
|
74
|
-
- -
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
|
|
77
|
-
segments:
|
|
78
|
-
- 0
|
|
79
|
-
version: "0"
|
|
56
|
+
requirements:
|
|
57
|
+
- - ! '>='
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
80
60
|
requirements: []
|
|
81
|
-
|
|
82
61
|
rubyforge_project: rack-static_fallback
|
|
83
|
-
rubygems_version: 1.
|
|
62
|
+
rubygems_version: 1.8.10
|
|
84
63
|
signing_key:
|
|
85
64
|
specification_version: 3
|
|
86
65
|
summary: Bounces or redirects requests to missing static files
|
|
87
66
|
test_files: []
|
|
88
|
-
|