Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-websocket-driver for 
openSUSE:Factory checked in at 2023-11-15 21:07:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-websocket-driver (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-websocket-driver.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-websocket-driver"

Wed Nov 15 21:07:12 2023 rev:9 rq:1123136 version:0.7.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-websocket-driver/rubygem-websocket-driver.changes
        2021-06-29 22:43:55.338926108 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-websocket-driver.new.17445/rubygem-websocket-driver.changes
     2023-11-15 21:07:55.110771791 +0100
@@ -1,0 +2,8 @@
+Fri Nov  3 08:02:46 UTC 2023 - Dan Čermák <[email protected]>
+
+- ### 0.7.6 / 2023-07-25
+
+- Fix handling of default ports in `Host` headers on Ruby 3.1+
+
+
+-------------------------------------------------------------------

Old:
----
  websocket-driver-0.7.5.gem

New:
----
  websocket-driver-0.7.6.gem

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

Other differences:
------------------
++++++ rubygem-websocket-driver.spec ++++++
--- /var/tmp/diff_new_pack.GMemof/_old  2023-11-15 21:07:56.178811197 +0100
+++ /var/tmp/diff_new_pack.GMemof/_new  2023-11-15 21:07:56.182811345 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-websocket-driver
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,11 +24,10 @@
 #
 
 Name:           rubygem-websocket-driver
-Version:        0.7.5
+Version:        0.7.6
 Release:        0
 %define mod_name websocket-driver
 %define mod_full_name %{mod_name}-%{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
@@ -38,7 +37,6 @@
 Source1:        gem2rpm.yml
 Summary:        WebSocket protocol handler with pluggable I/O
 License:        Apache-2.0
-Group:          Development/Languages/Ruby
 
 %description
 WebSocket protocol handler with pluggable I/O.

++++++ websocket-driver-0.7.5.gem -> websocket-driver-0.7.6.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2021-06-12 18:15:01.000000000 +0200
+++ new/CHANGELOG.md    2023-07-25 19:12:20.000000000 +0200
@@ -1,3 +1,7 @@
+### 0.7.6 / 2023-07-25
+
+- Fix handling of default ports in `Host` headers on Ruby 3.1+
+
 ### 0.7.5 / 2021-06-12
 
 - Do not change the encoding of strings passed to `Driver#text`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE.md new/LICENSE.md
--- old/LICENSE.md      2021-06-12 18:15:01.000000000 +0200
+++ new/LICENSE.md      2023-07-25 19:12:20.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright 2010-2021 James Coglan
+Copyright 2010-2023 James Coglan
 
 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
 this file except in compliance with the License. You may obtain a copy of the
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/driver/client.rb 
new/lib/websocket/driver/client.rb
--- old/lib/websocket/driver/client.rb  2021-06-12 18:15:01.000000000 +0200
+++ new/lib/websocket/driver/client.rb  2023-07-25 19:12:20.000000000 +0200
@@ -23,11 +23,10 @@
           raise URIError, "#{ socket.url } is not a valid WebSocket URL"
         end
 
-        host      = uri.host + (uri.port ? ":#{ uri.port }" : '')
         path      = (uri.path == '') ? '/' : uri.path
         @pathname = path + (uri.query ? '?' + uri.query : '')
 
-        @headers['Host']                  = host
+        @headers['Host']                  = Driver.host_header(uri)
         @headers['Upgrade']               = 'websocket'
         @headers['Connection']            = 'Upgrade'
         @headers['Sec-WebSocket-Key']     = @key
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/driver/hybi.rb 
new/lib/websocket/driver/hybi.rb
--- old/lib/websocket/driver/hybi.rb    2021-06-12 18:15:01.000000000 +0200
+++ new/lib/websocket/driver/hybi.rb    2023-07-25 19:12:20.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
 module WebSocket
   class Driver
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/driver/proxy.rb 
new/lib/websocket/driver/proxy.rb
--- old/lib/websocket/driver/proxy.rb   2021-06-12 18:15:01.000000000 +0200
+++ new/lib/websocket/driver/proxy.rb   2023-07-25 19:12:20.000000000 +0200
@@ -4,8 +4,6 @@
     class Proxy
       include EventEmitter
 
-      PORTS = { 'ws' => 80, 'wss' => 443 }
-
       attr_reader :status, :headers
 
       def initialize(client, origin, options)
@@ -20,7 +18,7 @@
         @state   = 0
 
         @headers = Headers.new
-        @headers['Host'] = @origin.host + (@origin.port ? ":#{ @origin.port }" 
: '')
+        @headers['Host'] = Driver.host_header(@origin)
         @headers['Connection'] = 'keep-alive'
         @headers['Proxy-Connection'] = 'keep-alive'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/websocket/driver.rb new/lib/websocket/driver.rb
--- old/lib/websocket/driver.rb 2021-06-12 18:15:01.000000000 +0200
+++ new/lib/websocket/driver.rb 2023-07-25 19:12:20.000000000 +0200
@@ -42,6 +42,7 @@
     end
 
     MAX_LENGTH = 0x3ffffff
+    PORTS      = { 'ws' => 80, 'wss' => 443 }
     STATES     = [:connecting, :open, :closing, :closed]
 
     ConnectEvent = Struct.new(nil)
@@ -209,6 +210,14 @@
       data.force_encoding(encoding)
     end
 
+    def self.host_header(uri)
+      host = uri.host
+      if uri.port and uri.port != PORTS[uri.scheme]
+        host += ":#{uri.port}"
+      end
+      host
+    end
+
     def self.validate_options(options, valid_keys)
       options.keys.each do |key|
         unless valid_keys.include?(key)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-06-12 18:15:01.000000000 +0200
+++ new/metadata        2023-07-25 19:12:20.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: websocket-driver
 version: !ruby/object:Gem::Version
-  version: 0.7.5
+  version: 0.7.6
 platform: ruby
 authors:
 - James Coglan
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2021-06-12 00:00:00.000000000 Z
+date: 2023-07-25 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: websocket-extensions
@@ -135,7 +135,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.1.6
+rubygems_version: 3.4.10
 signing_key:
 specification_version: 4
 summary: WebSocket protocol handler with pluggable I/O

Reply via email to