protocol-rack 0.4.0 → 0.4.1

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: 7aabc09a18a32e49d2a964c0b736d1e8613532d21a814dd1301be60a4963c057
4
- data.tar.gz: b229ee85cca50e1803421ef4cf831b15258210d93d1613ef3bd864861a5762d9
3
+ metadata.gz: a51b0412866f66870722a8f62008d4e76df2ba1d613af62b94eea1a30618bd97
4
+ data.tar.gz: 0cc84245f1dbb289cb1081f4c7c291a0bb3d69498b2d822290937418af7dc532
5
5
  SHA512:
6
- metadata.gz: 2989f0116da4d5c66cc776f9fda9cc6e67e92744af61d7ab8cb326611829dd372bf10b8610cc3f61dc88e8d8989222a02adb787a3bd763986c057e0b213203ae
7
- data.tar.gz: b0a371f9ec89ed91f2745a7590a601ddb62591d3e14161d16c24881aff90c08e43d46a4ca881916204e1819d47a4f3a5ab24620cc333a807c1b8a81a5a9806fc
6
+ metadata.gz: ed7a6592a103ecc2f285aa51a83427f29b15fe95cd7488ce57f59878598b833765774db65c5f8563d67e2ac7fe1da01a5f6c58dda6c0e09b34cbdc5fa12d5384
7
+ data.tar.gz: 8182ea7a512bec710d122cdf5ee4f4538b263ef03d2b7eb99130102126c536a58cd2057cf986a9336cad9169eabcffe61ed3c9560d912445a980cdc384311ee8
checksums.yaml.gz.sig CHANGED
Binary file
@@ -74,6 +74,7 @@ module Protocol
74
74
  end
75
75
 
76
76
  if request.respond_to?(:hijack?) and request.hijack?
77
+ env[RACK_IS_HIJACK] = true
77
78
  env[RACK_HIJACK] = proc{request.hijack!.io.dup}
78
79
  end
79
80
 
@@ -17,9 +17,6 @@ module Protocol
17
17
  RACK_MULTIPROCESS = 'rack.multiprocess'
18
18
  RACK_RUN_ONCE = 'rack.run_once'
19
19
 
20
- RACK_IS_HIJACK = 'rack.hijack?'
21
- RACK_HIJACK = 'rack.hijack'
22
-
23
20
  def self.wrap(app)
24
21
  Rewindable.new(self.new(app))
25
22
  end
@@ -36,5 +36,9 @@ module Protocol
36
36
  RACK_URL_SCHEME = 'rack.url_scheme'
37
37
  RACK_PROTOCOL = 'rack.protocol'
38
38
  RACK_RESPONSE_FINISHED = 'rack.response_finished'
39
+
40
+ # Rack hijack support:
41
+ RACK_IS_HIJACK = 'rack.hijack?'
42
+ RACK_HIJACK = 'rack.hijack'
39
43
  end
40
44
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.4.0"
8
+ VERSION = "0.4.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file