actioncable 7.1.0 → 7.1.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: 91df46c82676862ec16ec0e905d252583e103a136754fc8b90c0c439b59f793b
4
- data.tar.gz: 84fae8a4fcf04c709b62be2c7253d2604c4dde21157b952b7a76ca58de0ed82c
3
+ metadata.gz: aa223855ae2af9c70e27271ec03c83d04e21c180c062f471d7bc388636e7e90a
4
+ data.tar.gz: f0188f07302139302eafc4cb12f2e7dd79d9391cde0079f6192dbed309278f07
5
5
  SHA512:
6
- metadata.gz: 8bbb134371e5f1779e5c233ae52ea3be80b890b5ac3d7f9698c19473f84146cfb8cebb5ae33c8097692563de01936ce0d89f87ba971761473dbcb5ceea4bede4
7
- data.tar.gz: 89eef4bd17afe2a547f950c46c9b999c1eed44fef810dd0c16a34b14d8c7b072137657a816d3b39c1e600a602760be628c41e75693dcceed915726bc9ef38479
6
+ metadata.gz: 1c2d900a7b3a882b196b3b4ae2b490d4ab2335add9f250b869201bcff68adebd0dbc5bd8e63d437be9db7844dd0b866ce803774ff2592b87282018dd9faedfe2
7
+ data.tar.gz: be12b84cff9a8e0b089e75a97071a8e030ca10cd00fbe7d5f77e22824a583109f3ccf9ec77474cbd81fe33b5ae2c91541185657ac810e041590eaef3e40cc5cc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 7.1.1 (October 11, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 7.1.0 (October 05, 2023) ##
2
7
 
3
8
  * No changes.
@@ -6,19 +6,31 @@ module ActionCable
6
6
  module Channel
7
7
  # = Action Cable \Channel \Callbacks
8
8
  #
9
- # Action Cable Channel provides hooks during the life cycle of a channel subscription.
10
- # Callbacks allow triggering logic during this cycle. Available callbacks are:
9
+ # Action Cable Channel provides callback hooks that are invoked during the
10
+ # life cycle of a channel:
11
11
  #
12
- # * <tt>before_subscribe</tt>
13
- # * <tt>after_subscribe</tt> (also aliased as: <tt>on_subscribe</tt>)
14
- # * <tt>before_unsubscribe</tt>
15
- # * <tt>after_unsubscribe</tt> (also aliased as: <tt>on_unsubscribe</tt>)
12
+ # * {before_subscribe}[rdoc-ref:ClassMethods#before_subscribe]
13
+ # * {after_subscribe}[rdoc-ref:ClassMethods#after_subscribe] (aliased as
14
+ # {on_subscribe}[rdoc-ref:ClassMethods#on_subscribe])
15
+ # * {before_unsubscribe}[rdoc-ref:ClassMethods#before_unsubscribe]
16
+ # * {after_unsubscribe}[rdoc-ref:ClassMethods#after_unsubscribe] (aliased as
17
+ # {on_unsubscribe}[rdoc-ref:ClassMethods#on_unsubscribe])
16
18
  #
17
- # NOTE: the <tt>after_subscribe</tt> callback is triggered whenever
18
- # the <tt>subscribed</tt> method is called, even if subscription was rejected
19
- # with the <tt>reject</tt> method.
20
- # To trigger <tt>after_subscribe</tt> only on successful subscriptions,
21
- # use <tt>after_subscribe :my_method_name, unless: :subscription_rejected?</tt>
19
+ # ==== Example
20
+ #
21
+ # class ChatChannel < ApplicationCable::Channel
22
+ # after_subscribe :send_welcome_message, unless: :subscription_rejected?
23
+ # after_subscribe :track_subscription
24
+ #
25
+ # private
26
+ # def send_welcome_message
27
+ # broadcast_to(...)
28
+ # end
29
+ #
30
+ # def track_subscription
31
+ # # ...
32
+ # end
33
+ # end
22
34
  #
23
35
  module Callbacks
24
36
  extend ActiveSupport::Concern
@@ -34,6 +46,15 @@ module ActionCable
34
46
  set_callback(:subscribe, :before, *methods, &block)
35
47
  end
36
48
 
49
+ # This callback will be triggered after the Base#subscribed method is
50
+ # called, even if the subscription was rejected with the Base#reject
51
+ # method.
52
+ #
53
+ # To trigger the callback only on successful subscriptions, use the
54
+ # Base#subscription_rejected? method:
55
+ #
56
+ # after_subscribe :my_method, unless: :subscription_rejected?
57
+ #
37
58
  def after_subscribe(*methods, &block)
38
59
  set_callback(:subscribe, :after, *methods, &block)
39
60
  end
@@ -6,9 +6,13 @@ module ActionCable
6
6
  module Connection
7
7
  # = Action Cable \Connection \Callbacks
8
8
  #
9
- # There are <tt>before_command</tt>, <tt>after_command</tt>, and <tt>around_command</tt> callbacks
10
- # available to be invoked before, after or around every command received by a client respectively.
11
- # The term "command" here refers to any interaction received by a client (subscribing, unsubscribing or performing actions):
9
+ # The {before_command}[rdoc-ref:ClassMethods#before_command],
10
+ # {after_command}[rdoc-ref:ClassMethods#after_command], and
11
+ # {around_command}[rdoc-ref:ClassMethods#around_command] callbacks are
12
+ # invoked when sending commands to the client, such as when subscribing,
13
+ # unsubscribing, or performing an action.
14
+ #
15
+ # ==== Example
12
16
  #
13
17
  # module ApplicationCable
14
18
  # class Connection < ActionCable::Connection::Base
@@ -9,7 +9,7 @@ module ActionCable
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actioncable
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pratik Naik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-05 00:00:00.000000000 Z
12
+ date: 2023-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 7.1.0
20
+ version: 7.1.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 7.1.0
27
+ version: 7.1.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: actionpack
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 7.1.0
34
+ version: 7.1.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 7.1.0
41
+ version: 7.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: nio4r
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -154,10 +154,10 @@ licenses:
154
154
  - MIT
155
155
  metadata:
156
156
  bug_tracker_uri: https://github.com/rails/rails/issues
157
- changelog_uri: https://github.com/rails/rails/blob/v7.1.0/actioncable/CHANGELOG.md
158
- documentation_uri: https://api.rubyonrails.org/v7.1.0/
157
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.1/actioncable/CHANGELOG.md
158
+ documentation_uri: https://api.rubyonrails.org/v7.1.1/
159
159
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
160
- source_code_uri: https://github.com/rails/rails/tree/v7.1.0/actioncable
160
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.1/actioncable
161
161
  rubygems_mfa_required: 'true'
162
162
  post_install_message:
163
163
  rdoc_options: []