rack-contrib 1.2.0.39.g17d21b4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack-contrib might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0fc912702d3787e565c1b9a5e7adf53f029a858
4
- data.tar.gz: 6da50db6fac1aacf515e580e735ef9cfeaa52609
3
+ metadata.gz: 0f6705e8652bd4f9a3de6562f1e637edfa60cc2e
4
+ data.tar.gz: 07d139793ac41e281c691e0c6afc4ee6e6bebf48
5
5
  SHA512:
6
- metadata.gz: ebd6c1774b9436008a19d32aa651fdd228cd3e31ee96767cf470714a842d083592bf95d7926d22564702b928800b7002a7f099cf647118b9029e3335e4e349e8
7
- data.tar.gz: 0ebb959efb4a31b6f0c9e068274601051d28bcd1fdbd7cc585db1c86eaaef3f785cb82b909b441070b2e7dd23b4555996c1b5ba714f3f05a54e9cd270b19f291
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{ |k,v| "%-25s%p" % [k+':', v] }.
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.2.0.39.g17d21b4
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: 2013-12-30 00:00:00.000000000 Z
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: 1.3.1
272
+ version: '0'
273
273
  requirements: []
274
274
  rubyforge_project:
275
275
  rubygems_version: 2.2.2