action_dispatch-gz_static 0.0.2 → 0.0.3
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "action_dispatch-gz_static"
|
4
|
-
gem.version = '0.0.
|
4
|
+
gem.version = '0.0.3'
|
5
5
|
gem.authors = ["Jonathan Baudanza"]
|
6
6
|
gem.email = ["jon@jonb.org"]
|
7
7
|
gem.description = %q{Serves the .gz files that are created by the asset precompiler}
|
@@ -12,6 +12,14 @@ module ActionDispatch
|
|
12
12
|
@app = app
|
13
13
|
@root = root.chomp('/')
|
14
14
|
@compiled_root = /^#{Regexp.escape(@root)}/
|
15
|
+
|
16
|
+
# I wish there was a better way to do this. Rack::File changed its
|
17
|
+
# interface after 1.4.1 and I don't know of a way to sniff out the change
|
18
|
+
# without comparing the gem version
|
19
|
+
if Gem.loaded_specs['rack'].version > Gem::Version.new('1.4.1')
|
20
|
+
cache_control = {'Cache-Control' => cache_control}
|
21
|
+
end
|
22
|
+
|
15
23
|
@file_server = ::Rack::File.new(@root, cache_control)
|
16
24
|
end
|
17
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_dispatch-gz_static
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|
17
|
-
requirement: &
|
17
|
+
requirement: &2160405340 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2160405340
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: railties
|
28
|
-
requirement: &
|
28
|
+
requirement: &2160402100 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 3.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2160402100
|
37
37
|
description: Serves the .gz files that are created by the asset precompiler
|
38
38
|
email:
|
39
39
|
- jon@jonb.org
|