rack-wwwhisper 1.1.12 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff68ef8fb61b71e14a79548df3bf7df4f71cfc3c
4
- data.tar.gz: 762feeefdcc866123d3f20f7d839ed7677f92f4a
2
+ SHA256:
3
+ metadata.gz: ab5a2bec3ade31c803bab291be030d7208f0c5646f56a4b7e7737f08c60943c1
4
+ data.tar.gz: aa79160265b00d38eee4cd64ba713d8c893b9e17951e3185df3b29f975a0891a
5
5
  SHA512:
6
- metadata.gz: e8334478b1440c9740443666e023a0c33d6ad6cf54a6bb9cdfc76fadbf01bba7167411988338238fdecc1753189aa97f8414bd898a88a169a47aec9ef5c404d4
7
- data.tar.gz: be0677fb81442f285963962ca043d860c8c3dbce84baad5bc70c2bbe30ae036c0cfdcc1af1a2d1e0219057a119a305b5bccfcf65d59af4c5f274acd0ab2f2585
6
+ metadata.gz: 15e8c3febf49c09838b758f78b6dbae07c4846ea07acb9b17ec26c0e2863ebcfca68bcc57774a1c362325a07c59e6eb962d07e89b0a5f2a992a789b3b5ac78ab
7
+ data.tar.gz: 0bc46cae1e758ee5cb079b75695bee2af04062e850a9751954a536ed1693cb0a885b09cc5bcca08306acc623a4985a426868b75a0d32ced078f69fbc1b9e0d28
@@ -80,7 +80,7 @@ class WWWhisper
80
80
  @app = NoPublicCache.new(app)
81
81
 
82
82
  # net/http/persistent connections are thread safe.
83
- @http = http_init('wwwhisper')
83
+ @http = http_init()
84
84
  @wwwhisper_uri = parse_uri(ENV['WWWHISPER_URL'])
85
85
 
86
86
  @wwwhisper_iframe = ENV['WWWHISPER_IFRAME'] ||
@@ -141,8 +141,8 @@ class WWWhisper
141
141
  parsed_uri
142
142
  end
143
143
 
144
- def http_init(connection_id)
145
- http = Net::HTTP::Persistent.new(connection_id)
144
+ def http_init()
145
+ http = Net::HTTP::Persistent.new(name: 'wwwhisper')
146
146
  store = OpenSSL::X509::Store.new()
147
147
  store.set_default_paths
148
148
  http.cert_store = store
@@ -196,7 +196,13 @@ class WWWhisper
196
196
  end
197
197
 
198
198
  def sub_response_headers_to_rack(rack_req, sub_resp)
199
- rack_headers = Rack::Utils::HeaderHash.new()
199
+ if Rack.const_get('Headers')
200
+ # Rack 3+
201
+ rack_headers = Rack::Headers.new()
202
+ else
203
+ # Older Rack versions
204
+ rack_headers = Rack::Utils::HeaderHash.new()
205
+ end
200
206
  sub_resp.each_capitalized do |header, value|
201
207
  # If sub request returned chunked response, remove the header
202
208
  # (chunks will be combined and returned with 'Content-Length).
@@ -1,3 +1,3 @@
1
1
  module Rack
2
- WWWHISPER_VERSION = '1.1.12'
2
+ WWWHISPER_VERSION = '1.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-wwwhisper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Wrobel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-05 00:00:00.000000000 Z
11
+ date: 2022-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '5.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rack-test
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -137,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.4.8
140
+ rubygems_version: 3.3.7
142
141
  signing_key:
143
142
  specification_version: 4
144
143
  summary: Verified email based authorization for Rack applications.