Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-actioncable-7.0 for 
openSUSE:Factory checked in at 2022-10-12 18:24:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actioncable-7.0 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-actioncable-7.0.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-actioncable-7.0"

Wed Oct 12 18:24:46 2022 rev:6 rq:1010021 version:7.0.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-actioncable-7.0/rubygem-actioncable-7.0.changes
  2022-08-06 22:07:41.694575756 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-actioncable-7.0.new.2275/rubygem-actioncable-7.0.changes
        2022-10-12 18:26:26.213920378 +0200
@@ -1,0 +2,22 @@
+Mon Oct 10 12:50:40 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 7.0.4
+ see installed CHANGELOG.md
+
+  ## Rails 7.0.4 (September 09, 2022) ##
+  
+  *   The Redis adapter is now compatible with redis-rb 5.0
+  
+      Compatibility with redis-rb 3.x was dropped.
+  
+      *Jean Boussier*
+  
+  *   The Action Cable server is now mounted with `anchor: true`.
+  
+      This means that routes that also start with `/cable` will no longer 
clash with Action Cable.
+  
+      *Alex Ghiculescu*
+  
+  
+
+-------------------------------------------------------------------

Old:
----
  actioncable-7.0.3.1.gem

New:
----
  actioncable-7.0.4.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-actioncable-7.0.spec ++++++
--- /var/tmp/diff_new_pack.0BwNje/_old  2022-10-12 18:26:26.701921453 +0200
+++ /var/tmp/diff_new_pack.0BwNje/_new  2022-10-12 18:26:26.713921479 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-actioncable-7.0
-Version:        7.0.3.1
+Version:        7.0.4
 Release:        0
 %define mod_name actioncable
 %define mod_full_name %{mod_name}-%{version}

++++++ actioncable-7.0.3.1.gem -> actioncable-7.0.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2022-07-12 19:30:30.000000000 +0200
+++ new/CHANGELOG.md    2022-09-09 20:42:21.000000000 +0200
@@ -1,3 +1,18 @@
+## Rails 7.0.4 (September 09, 2022) ##
+
+*   The Redis adapter is now compatible with redis-rb 5.0
+
+    Compatibility with redis-rb 3.x was dropped.
+
+    *Jean Boussier*
+
+*   The Action Cable server is now mounted with `anchor: true`.
+
+    This means that routes that also start with `/cable` will no longer clash 
with Action Cable.
+
+    *Alex Ghiculescu*
+
+
 ## Rails 7.0.3.1 (July 12, 2022) ##
 
 *   No changes.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_cable/engine.rb 
new/lib/action_cable/engine.rb
--- old/lib/action_cable/engine.rb      2022-07-12 19:30:30.000000000 +0200
+++ new/lib/action_cable/engine.rb      2022-09-09 20:42:21.000000000 +0200
@@ -54,7 +54,7 @@
         config = app.config
         unless config.action_cable.mount_path.nil?
           app.routes.prepend do
-            mount ActionCable.server => config.action_cable.mount_path, 
internal: true
+            mount ActionCable.server => config.action_cable.mount_path, 
internal: true, anchor: true
           end
         end
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_cable/gem_version.rb 
new/lib/action_cable/gem_version.rb
--- old/lib/action_cable/gem_version.rb 2022-07-12 19:30:30.000000000 +0200
+++ new/lib/action_cable/gem_version.rb 2022-09-09 20:42:21.000000000 +0200
@@ -9,8 +9,8 @@
   module VERSION
     MAJOR = 7
     MINOR = 0
-    TINY  = 3
-    PRE   = "1"
+    TINY  = 4
+    PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_cable/subscription_adapter/redis.rb 
new/lib/action_cable/subscription_adapter/redis.rb
--- old/lib/action_cable/subscription_adapter/redis.rb  2022-07-12 
19:30:30.000000000 +0200
+++ new/lib/action_cable/subscription_adapter/redis.rb  2022-09-09 
20:42:21.000000000 +0200
@@ -2,7 +2,7 @@
 
 require "thread"
 
-gem "redis", ">= 3", "< 5"
+gem "redis", ">= 3", "< 6"
 require "redis"
 
 require "active_support/core_ext/hash/except"
@@ -56,7 +56,7 @@
         end
 
         def redis_connection
-          self.class.redis_connector.call(@server.config.cable.merge(id: 
identifier))
+          
self.class.redis_connector.call(@server.config.cable.symbolize_keys.merge(id: 
identifier))
         end
 
         class Listener < SubscriberMap
@@ -69,7 +69,7 @@
             @subscribe_callbacks = Hash.new { |h, k| h[k] = [] }
             @subscription_lock = Mutex.new
 
-            @raw_client = nil
+            @subscribed_client = nil
 
             @when_connected = []
 
@@ -78,13 +78,13 @@
 
           def listen(conn)
             conn.without_reconnect do
-              original_client = conn.respond_to?(:_client) ? conn._client : 
conn.client
+              original_client = extract_subscribed_client(conn)
 
               conn.subscribe("_action_cable_internal") do |on|
                 on.subscribe do |chan, count|
                   @subscription_lock.synchronize do
                     if count == 1
-                      @raw_client = original_client
+                      @subscribed_client = original_client
 
                       until @when_connected.empty?
                         @when_connected.shift.call
@@ -106,7 +106,7 @@
                 on.unsubscribe do |chan, count|
                   if count == 0
                     @subscription_lock.synchronize do
-                      @raw_client = nil
+                      @subscribed_client = nil
                     end
                   end
                 end
@@ -119,8 +119,8 @@
               return if @thread.nil?
 
               when_connected do
-                send_command("unsubscribe")
-                @raw_client = nil
+                @subscribed_client.unsubscribe
+                @subscribed_client = nil
               end
             end
 
@@ -131,13 +131,13 @@
             @subscription_lock.synchronize do
               ensure_listener_running
               @subscribe_callbacks[channel] << on_success
-              when_connected { send_command("subscribe", channel) }
+              when_connected { @subscribed_client.subscribe(channel) }
             end
           end
 
           def remove_channel(channel)
             @subscription_lock.synchronize do
-              when_connected { send_command("unsubscribe", channel) }
+              when_connected { @subscribed_client.unsubscribe(channel) }
             end
           end
 
@@ -156,22 +156,49 @@
             end
 
             def when_connected(&block)
-              if @raw_client
+              if @subscribed_client
                 block.call
               else
                 @when_connected << block
               end
             end
 
-            def send_command(*command)
-              @raw_client.write(command)
+            if ::Redis::VERSION < "5"
+              class SubscribedClient
+                def initialize(raw_client)
+                  @raw_client = raw_client
+                end
+
+                def subscribe(*channel)
+                  send_command("subscribe", *channel)
+                end
+
+                def unsubscribe(*channel)
+                  send_command("unsubscribe", *channel)
+                end
 
-              very_raw_connection =
-                
@raw_client.connection.instance_variable_defined?(:@connection) &&
-                @raw_client.connection.instance_variable_get(:@connection)
+                private
+                  def send_command(*command)
+                    @raw_client.write(command)
+
+                    very_raw_connection =
+                      
@raw_client.connection.instance_variable_defined?(:@connection) &&
+                      
@raw_client.connection.instance_variable_get(:@connection)
 
-              if very_raw_connection && very_raw_connection.respond_to?(:flush)
-                very_raw_connection.flush
+                    if very_raw_connection && 
very_raw_connection.respond_to?(:flush)
+                      very_raw_connection.flush
+                    end
+                    nil
+                  end
+              end
+
+              def extract_subscribed_client(conn)
+                raw_client = conn.respond_to?(:_client) ? conn._client : 
conn.client
+                SubscribedClient.new(raw_client)
+              end
+            else
+              def extract_subscribed_client(conn)
+                conn
               end
             end
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-07-12 19:30:30.000000000 +0200
+++ new/metadata        2022-09-09 20:42:21.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: actioncable
 version: !ruby/object:Gem::Version
-  version: 7.0.3.1
+  version: 7.0.4
 platform: ruby
 authors:
 - Pratik Naik
@@ -9,7 +9,7 @@
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2022-07-12 00:00:00.000000000 Z
+date: 2022-09-09 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -17,28 +17,28 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
 - !ruby/object:Gem::Dependency
   name: actionpack
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 7.0.3.1
+        version: 7.0.4
 - !ruby/object:Gem::Dependency
   name: nio4r
   requirement: !ruby/object:Gem::Requirement
@@ -142,10 +142,10 @@
 - MIT
 metadata:
   bug_tracker_uri: https://github.com/rails/rails/issues
-  changelog_uri: 
https://github.com/rails/rails/blob/v7.0.3.1/actioncable/CHANGELOG.md
-  documentation_uri: https://api.rubyonrails.org/v7.0.3.1/
+  changelog_uri: 
https://github.com/rails/rails/blob/v7.0.4/actioncable/CHANGELOG.md
+  documentation_uri: https://api.rubyonrails.org/v7.0.4/
   mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
-  source_code_uri: https://github.com/rails/rails/tree/v7.0.3.1/actioncable
+  source_code_uri: https://github.com/rails/rails/tree/v7.0.4/actioncable
   rubygems_mfa_required: 'true'
 post_install_message:
 rdoc_options: []

Reply via email to