rack-contrib 1.2.0.39.g17d21b4 → 1.3.0
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.
- checksums.yaml +4 -4
- data/lib/rack/contrib/mailexceptions.rb +7 -2
- data/lib/rack/contrib/static_cache.rb +0 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f6705e8652bd4f9a3de6562f1e637edfa60cc2e
|
|
4
|
+
data.tar.gz: 07d139793ac41e281c691e0c6afc4ee6e6bebf48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30efa3fafccae8fe7a5a3596f4151673c9ec044718670a7a8ba8e2b470868781f4ffff99cd2568407335f3fe498b298b82c7fd1da3bbc1575ce99e2fd3c4e236
|
|
7
|
+
data.tar.gz: 8c361837181b6e783fc8899f7f0c517cf2ceefbe95ebd671acbc4fa8c8168facc5b78945cbd909cfeb3ad6ddca65f0cef2d39c7aeb7c8fd78645200d2f84601b
|
|
@@ -76,7 +76,7 @@ module Rack
|
|
|
76
76
|
private
|
|
77
77
|
def generate_mail(exception, env)
|
|
78
78
|
Mail.new({
|
|
79
|
-
:from => config[:from],
|
|
79
|
+
:from => config[:from],
|
|
80
80
|
:to => config[:to],
|
|
81
81
|
:subject => config[:subject] % [exception.to_s],
|
|
82
82
|
:body => @template.result(binding),
|
|
@@ -129,7 +129,12 @@ module Rack
|
|
|
129
129
|
|
|
130
130
|
<%= env.to_a.
|
|
131
131
|
sort{|a,b| a.first <=> b.first}.
|
|
132
|
-
map
|
|
132
|
+
map do |k,v|
|
|
133
|
+
if k == 'HTTP_AUTHORIZATION' and v =~ /^Basic /
|
|
134
|
+
v = 'Basic *filtered*'
|
|
135
|
+
end
|
|
136
|
+
"%-25s%p" % [k+':', v]
|
|
137
|
+
end.
|
|
133
138
|
join("\n ") %>
|
|
134
139
|
|
|
135
140
|
<% if exception.respond_to?(:backtrace) %>
|
|
@@ -72,9 +72,6 @@ module Rack
|
|
|
72
72
|
if @no_cache[url].nil?
|
|
73
73
|
headers['Cache-Control'] ="max-age=#{@duration_in_seconds}, public"
|
|
74
74
|
headers['Expires'] = @duration_in_words
|
|
75
|
-
headers.delete 'Etag'
|
|
76
|
-
headers.delete 'Pragma'
|
|
77
|
-
headers.delete 'Last-Modified'
|
|
78
75
|
end
|
|
79
76
|
[status, headers, body]
|
|
80
77
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-contrib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rack-devel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -267,9 +267,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
267
267
|
version: '0'
|
|
268
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
requirements:
|
|
270
|
-
- - "
|
|
270
|
+
- - ">="
|
|
271
271
|
- !ruby/object:Gem::Version
|
|
272
|
-
version:
|
|
272
|
+
version: '0'
|
|
273
273
|
requirements: []
|
|
274
274
|
rubyforge_project:
|
|
275
275
|
rubygems_version: 2.2.2
|