async-websocket 0.23.1 → 0.25.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: a25d76b4b6474985857f1e8dc6bcc69f556349f08ccc1fab8d5c4136306d9fa8
4
- data.tar.gz: 070f7118ec8e2674ec9b4a3952db3f0c7050472a991c5c35668964f5c5ce1bc4
3
+ metadata.gz: c1a77ed478fbb3aee00fd80f936d9ed2c35b681c3b259c0ffea5b5727d73ad94
4
+ data.tar.gz: 7ba595dab5862934d8406815030091e9d564c2fb0bd400ad62942392a7e7cc63
5
5
  SHA512:
6
- metadata.gz: 63a54f18c629a495d9fc8b184f4ff09ba7b8a42b2fab96f2104f002fff10f67f0b7587cb76b9129d41a40313a769e374bf127f54ed377b8d879f315c0bdbccca
7
- data.tar.gz: 733b864a850c94c88724607e562244445fd4c1b16645b2a83d0499ece0b89a0d8cb47da2ffdc70f11c091badc9e8baf87b32a55e929912d8b363ecf75cc39dc1
6
+ metadata.gz: 92ed6719f6e5f5d0e9a602cd5480115da5e5e3dc2c2fb7477448c713fae5fa049797c93f1ba59bfc46f45273b23467509b996ca17ac16994f2c0488553e563ce
7
+ data.tar.gz: dee7c21aebc62a27823a8cf78959d2bbaa891c96c3b864aed260c2f21ee050695496b5597717149216fc2fc674c91bc9191ae789d9bc0d188262897acec4e524
checksums.yaml.gz.sig CHANGED
Binary file
@@ -11,15 +11,10 @@ module Async
11
11
  module Rails
12
12
  def self.open(request, **options, &block)
13
13
  if response = Rack.open(request.env, **options, &block)
14
- response[1]['rack.hijack'] = lambda do |stream|
15
- response[2].call(stream)
16
- end
17
-
18
- # Close the response to prevent Rails from... trying to render a view?
19
- return ::ActionDispatch::Response.new(response[0], response[1], nil).tap(&:close)
14
+ ::Rack::Response[*response]
15
+ else
16
+ ::ActionDispatch::Response.new(404, [], [])
20
17
  end
21
-
22
- return ::ActionDispatch::Response.new(404, [], [])
23
18
  end
24
19
  end
25
20
  end
@@ -41,8 +41,8 @@ module Async
41
41
  super(connection)
42
42
  end
43
43
 
44
- def close
45
- super
44
+ def close(...)
45
+ super(...)
46
46
 
47
47
  if @client
48
48
  @client.close
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module WebSocket
8
- VERSION = "0.23.1"
8
+ VERSION = "0.25.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: async-websocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -45,7 +45,7 @@ cert_chain:
45
45
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
46
46
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
47
47
  -----END CERTIFICATE-----
48
- date: 2023-02-04 00:00:00.000000000 Z
48
+ date: 2023-03-08 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: async-http
@@ -137,14 +137,14 @@ dependencies:
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: 0.16.0
140
+ version: '0.18'
141
141
  type: :development
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - "~>"
146
146
  - !ruby/object:Gem::Version
147
- version: 0.16.0
147
+ version: '0.18'
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: sus-fixtures-async-http
150
150
  requirement: !ruby/object:Gem::Requirement
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubygems_version: 3.4.1
204
+ rubygems_version: 3.4.7
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: An async websocket library on top of websocket-driver.
metadata.gz.sig CHANGED
Binary file