protocol-rack 0.7.0 → 0.8.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: abae8a03873e4b82fb2d64d88e0a3014a9fd8c0d9eacca1aeb419fb4651f32f8
4
- data.tar.gz: 1d1ae6ec253f7fe688907563ed0cdd16cc2e482325344d36384cd6647b403227
3
+ metadata.gz: 6847f34cf162c87306b57b25d1908b76508aafce25805bd9d821273449844df5
4
+ data.tar.gz: a671e7169a8b76ac77ce12ce0ddaeb53cda3f7ffb0e6e0c0a9bc500a2ab00830
5
5
  SHA512:
6
- metadata.gz: 65c3cfc64676c05b7c7c380a89d4c1f6ab3fa196899877651a574437c6587dab36c75c46f3a1031afb6e13a2e5bedc3cbbf7d39111bbf873b7875bec0ef43a81
7
- data.tar.gz: b8f67ded7fc90df8893e98873f3300ba9e2af062d368917216e6f13447e41737c2ed0ae339557932cdf73008df64c4ad5a6a2423af9655bdb96921bb29d06f6d
6
+ metadata.gz: 2b05a2e9e0eeda2e84d7f80c60dc862726994903d886deb973100c435d5dc710cee92690f97f2cd1d8fc19415bf71766089bfed92c93671933567e5caddd8c14
7
+ data.tar.gz: 1d5fae5ee35c5144bfa8637edeb8c9b94cbf75bfa22daed41e0b3bcf09fbddfc18cb42afc487b281b5da5e40e5cee3cb82822d2442ab5c46037812598624ae34
checksums.yaml.gz.sig CHANGED
Binary file
@@ -41,15 +41,23 @@ module Protocol
41
41
  end
42
42
  end
43
43
 
44
- def close
44
+ def close(error = nil)
45
45
  @fiber = nil
46
46
 
47
47
  if from = @from
48
48
  @from = nil
49
- from.transfer(nil)
49
+ if error
50
+ from.raise(error)
51
+ else
52
+ from.transfer(nil)
53
+ end
50
54
  end
51
55
  end
52
56
 
57
+ def close_write(error = nil)
58
+ close(error)
59
+ end
60
+
53
61
  def read
54
62
  raise RuntimeError, "Stream is already being read!" if @from
55
63
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.7.0"
8
+ VERSION = "0.8.0"
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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-09-02 00:00:00.000000000 Z
41
+ date: 2024-09-10 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: protocol-http
metadata.gz.sig CHANGED
Binary file