falcon 0.37.3 → 0.38.0

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
2
  SHA256:
3
- metadata.gz: b240901ff29dc4a68d18830f1e3dbb84a5bfed4dbab35c74969d370104a3d1f4
4
- data.tar.gz: 1e774e50cb244342921656a156f06fe7d5b349efa9ea711559a9e11dad093aba
3
+ metadata.gz: c5a4201cd601d651d96edf8c9eee196033ce1e1d31a802d16619a986dd1bd077
4
+ data.tar.gz: 9b1c9d31622951486ea1d1db012074551cb18ed4ff785d8dbb37bfa1b75dc046
5
5
  SHA512:
6
- metadata.gz: e23e5230a0d823575cf87218e1072fdf46e44db1cb969f272686aed98ca588558fdc3726c9c3c950ebc33345d026e1bae192e46bad97a3ece63eadf40766d089
7
- data.tar.gz: '010872a133c0dd5169eabb0cbbf2f185b2941f0fccd4831ef659f2ec1e2315d0f06e881394ba0de5684b9c9cd40ba548758cff7307661fc5b5fe53ed8f522b41'
6
+ metadata.gz: 9f1cd7757afa92a27b7b9d021e2ff443144afef2c9b0e30bddad548b45e68b4519ab02f2293f6388a00f62af0e8efb865e51f1241b8cee9312f9187406cb86ed
7
+ data.tar.gz: a75c84be6f77e4e79aa6d572d1a95e7c90d310650324f8d60fbca4dcd679138e30e799b538184ff804bfeac6c351478e574f61670d4e1d568801166ce24ac2ea
@@ -60,6 +60,10 @@ module Falcon
60
60
  RACK_IS_HIJACK = 'rack.hijack?'
61
61
  RACK_HIJACK_IO = 'rack.hijack_io'
62
62
 
63
+ # Raised back up through the middleware when the underlying connection is hijacked.
64
+ class FullHijack < StandardError
65
+ end
66
+
63
67
  # Async::HTTP specific metadata:
64
68
 
65
69
  ASYNC_HTTP_REQUEST = "async.http.request"
@@ -202,7 +206,7 @@ module Falcon
202
206
 
203
207
  # If there was a full hijack:
204
208
  if full_hijack
205
- return nil
209
+ raise FullHijack, "The connection was hijacked."
206
210
  else
207
211
  return Response.wrap(status, headers, body, request)
208
212
  end
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Falcon
24
- VERSION = "0.37.3"
24
+ VERSION = "0.38.0"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.3
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.54.0
47
+ version: 0.56.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: 0.54.0
54
+ version: 0.56.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: async-http-cache
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.3.0
61
+ version: 0.4.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.3.0
68
+ version: 0.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: async-io
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -322,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
322
322
  - !ruby/object:Gem::Version
323
323
  version: '0'
324
324
  requirements: []
325
- rubygems_version: 3.2.3
325
+ rubygems_version: 3.1.2
326
326
  signing_key:
327
327
  specification_version: 4
328
328
  summary: A fast, asynchronous, rack-compatible web server.