actioncable-next 0.1.1 → 0.1.2

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: 0b463a6b0bafa3fa77350a4ff39ef12798703419107290828e932de40921150e
4
- data.tar.gz: faf485a9167ab4d82c06fb5193ef8b8d6a17decc3096429e9432c2041a8482b6
3
+ metadata.gz: b86ee72b0095c7a8ce99b0d354231b2ac29145e07a1482387fa9664f1c9a08b8
4
+ data.tar.gz: e72beed883e8789189fa6811d6fb70cdc4e9efbec2ad9b259648c8575196aca3
5
5
  SHA512:
6
- metadata.gz: e6686c1a5d31ec5b2867431612557ad4a0a3d13949b8876b42af43b96d87041bbb3a7df453c2b0db5f0231f6b71b0cee9376f1830c58e39aec87ecb52a41f22c
7
- data.tar.gz: 46c4a80b030a7fc1e81383c8a4fd21fd3197c464965fbc2fb52e6f4a4fcec64b02b3f7d96b3efecaffbec811308d41aa678d0e30df8816743ec388d319d9ff9d
6
+ metadata.gz: 955b568fb0d4e01d81ad6871292515c1a3d742eef03067c6322d68b7c6908eeac12947aaef91cb9d4fcbccf2e3790ff84c797ad30e462db15179b04ee6a2d8a3
7
+ data.tar.gz: 3cc6151d155e3719b008bad22ecf4fbf0a401a5858a7ef5bd75a941debca5b26ac9d06cb30d781929d6da10399c9f534d06aed6ac7afd2ea7a96490066dc6891
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## main
4
4
 
5
+ ## 0.1.2
6
+
7
+ - Added a hack to prevent third-party extensions from changing the methods visibility.
8
+
5
9
  ## 0.1.1
6
10
 
7
11
  - Added RSpec patch.
@@ -162,4 +162,15 @@ module ActionCable
162
162
  end
163
163
  end
164
164
 
165
+ # Hack to make sure legacy extensions do not changes the visibility of API methods
166
+ # (see https://github.com/anycable/actioncable-next/issues/7)
167
+ # We call it from the engine after application initialization.
168
+ class << ActionCable::Connection::Base
169
+ def __restore_visibility__
170
+ %i[handle_open handle_close handle_channel_command transmit close].each do |method|
171
+ instance_method(method).owner.send(:public, method)
172
+ end
173
+ end
174
+ end
175
+
165
176
  ActiveSupport.run_load_hooks(:action_cable_connection, ActionCable::Connection::Base)
@@ -94,5 +94,11 @@ module ActionCable
94
94
  end
95
95
  end
96
96
  end
97
+
98
+ config.after_initialize do
99
+ ActiveSupport.on_load(:action_cable_connection) do
100
+ ActionCable::Connection::Base.__restore_visibility__
101
+ end
102
+ end
97
103
  end
98
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionCableNext
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actioncable-next
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pratik Naik
8
8
  - David Heinemeier Hansson
9
9
  - Vladimir Dementyev
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-09-30 00:00:00.000000000 Z
13
+ date: 2025-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -167,10 +167,10 @@ licenses:
167
167
  - MIT
168
168
  metadata:
169
169
  bug_tracker_uri: https://github.com/anycable/actioncable-next
170
- changelog_uri: https://github.com/anycable/actioncable-next/blob/v0.1.1/CHANGELOG.md
170
+ changelog_uri: https://github.com/anycable/actioncable-next/blob/v0.1.2/CHANGELOG.md
171
171
  source_code_uri: https://github.com/anycable/actioncable-next
172
172
  rubygems_mfa_required: 'true'
173
- post_install_message:
173
+ post_install_message:
174
174
  rdoc_options: []
175
175
  require_paths:
176
176
  - lib
@@ -185,8 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.5.18
189
- signing_key:
188
+ rubygems_version: 3.5.22
189
+ signing_key:
190
190
  specification_version: 4
191
191
  summary: Next-gen version of Action Cable
192
192
  test_files: []