anycable-rails 1.3.6 → 1.4.0.rc.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: d90b3f0b34ba001d46f7dee1f44bac4a123a986d60ef9a5779ca111fe1f95ee2
4
- data.tar.gz: 398b67691ec76e6b687f1b2a1c88cc135e07e816aaa300a346345348a56c354c
3
+ metadata.gz: 0dee5ce36e194f29ada1c7f701cbb31cbc92916ccd9c2d3c254cd9e852f0a2c9
4
+ data.tar.gz: e670c663ca84f4998fec4293cebcad1892cc25a0089c26b36dc03b795f9e7b02
5
5
  SHA512:
6
- metadata.gz: 17d9d88780fd3b04d464bb6503e6d58501fd23f450988d191d959839789ac88b208f3fa73898572d9d52a058dcd884e302ba6fb9cec4019e2f471b5c726b0248
7
- data.tar.gz: 987913b5565498cbe3e2ea076176146ef6e1ff04c0ab6d31a25f4c9bee55f7ffeda13c8bdf7530a75433e936de5fea2578857644d1f55e26bb42616eedd3a883
6
+ metadata.gz: c1d642d9e4485be3ff12149d889c2cb0102120ec9b9c29244897653aec43835de0fc78c68cbf1e27664772cb0465ddcd2ded1e6485cc295ae7de2108cd853903
7
+ data.tar.gz: 5e05409f30f6fe79c530da2be7689ff38eb778eb0a49721a4ec61e7d629893a281ddd738ab298912ccf61a69c2095c999aaaa06a53a3ed4477414319d94a173d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.3.7 (2023-02-28)
6
+
7
+ - Fix `anycable` gem dependency constraints.
8
+
9
+ - Require Ruby 2.7+.
10
+
5
11
  ## 1.3.6 (2023-02-28)
6
12
 
7
13
  - Handle `nil` streams gracefully. ([@palkan][])
@@ -7,6 +7,7 @@ module AnyCable
7
7
  IGNORE_INSTANCE_VARS = %i[
8
8
  @active_periodic_timers
9
9
  @_streams
10
+ @parameter_filter
10
11
  ]
11
12
 
12
13
  ActionCable::Channel::Base.prepend(Module.new do
@@ -12,8 +12,18 @@ module AnyCable
12
12
  @executor = executor
13
13
  end
14
14
 
15
- def call(*)
16
- executor.wrap { yield }
15
+ def call(method, message, metadata)
16
+ if ::Rails.respond_to?(:error)
17
+ executor.wrap do
18
+ sid = metadata["sid"]
19
+
20
+ ::Rails.error.record(context: {method: method, payload: message.to_h, sid: sid}) do
21
+ yield
22
+ end
23
+ end
24
+ else
25
+ executor.wrap { yield }
26
+ end
17
27
  end
18
28
  end
19
29
  end
@@ -48,7 +48,7 @@ module AnyCable
48
48
 
49
49
  if app.executor.respond_to?(:error_reporter)
50
50
  AnyCable.capture_exception do |ex, method, message|
51
- ::Rails.error.report(ex, handled: false, context: {method: method, payload: message})
51
+ ::Rails.error.report(ex, handled: false, context: {method: method.to_sym, payload: message})
52
52
  end
53
53
  end
54
54
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "1.3.6"
5
+ VERSION = "1.4.0.rc.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.4.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0
19
+ version: 1.4.0.rc.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0
26
+ version: 1.4.0.rc.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actioncable
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov-lcov
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  description: Rails adapter for AnyCable
140
168
  email:
141
169
  - dementiev.vm@gmail.com
@@ -198,14 +226,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
226
  requirements:
199
227
  - - ">="
200
228
  - !ruby/object:Gem::Version
201
- version: '2.6'
229
+ version: '2.7'
202
230
  required_rubygems_version: !ruby/object:Gem::Requirement
203
231
  requirements:
204
- - - ">="
232
+ - - ">"
205
233
  - !ruby/object:Gem::Version
206
- version: '0'
234
+ version: 1.3.1
207
235
  requirements: []
208
- rubygems_version: 3.4.6
236
+ rubygems_version: 3.4.8
209
237
  signing_key:
210
238
  specification_version: 4
211
239
  summary: Rails adapter for AnyCable