commit ab4a324c5297c18aeb1ceadeca99449b5bf3eee45be9327b140c68e0fb70d16a Author: Adrian Schröter Date: Thu Feb 6 18:14:10 2025 +0100 Sync from SUSE:SLFO:Main rubygem-websocket-driver revision a5fc8fca3858be995660b614348c3a9b diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..01b0245 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,70 @@ +# --- +# ## used by gem2rpm +# :summary: this is a custom summary +# ## used by gem2rpm +# :description: |- +# this is a custom description +# +# it can be multiline +# ## used by gem2rpm +# :license: MIT or Ruby +# ## used by gem2rpm and gem_packages +# :version_suffix: -x_y +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +# :patches: +# foo.patch: -p1 +# bar.patch: +# ## used by gem2rpm +:sources: +# - foo.desktop +# - bar.desktop +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +# :post_install: |- +# # delete custom files here or do other fancy stuff +# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# diff --git a/rubygem-websocket-driver.changes b/rubygem-websocket-driver.changes new file mode 100644 index 0000000..4bb717e --- /dev/null +++ b/rubygem-websocket-driver.changes @@ -0,0 +1,222 @@ +------------------------------------------------------------------- +Fri Nov 3 08:02:46 UTC 2023 - Dan Čermák + +- ### 0.7.6 / 2023-07-25 + +- Fix handling of default ports in `Host` headers on Ruby 3.1+ + + +------------------------------------------------------------------- +Thu Jun 24 18:08:37 UTC 2021 - Stephan Kulow + +updated to version 0.7.5 + see installed CHANGELOG.md + + ### 0.7.5 / 2021-06-12 + + - Do not change the encoding of strings passed to `Driver#text` + + +------------------------------------------------------------------- +Tue Jun 1 03:43:17 UTC 2021 - Manuel Schnitzer + +- updated to version 0.7.4 + + * Optimise conversions between strings and byte arrays and related encoding + operations, to reduce amount of allocation and copying + +------------------------------------------------------------------- +Mon Jul 13 14:52:34 UTC 2020 - Manuel Schnitzer + +- updated to version 0.7.3 + + * Let the client accept HTTP responses that have an empty reason phrase + following the `101` status code + +------------------------------------------------------------------- +Wed May 27 11:23:40 UTC 2020 - Manuel Schnitzer + +- updated to version 0.7.2 + + * Emit `ping` and `pong` events from the `Server` driver + * Handle draft-76 handshakes correctly if the request's body is a frozen string + +------------------------------------------------------------------- +Sat Jun 29 22:12:11 UTC 2019 - Manuel Schnitzer + +- updated to version 0.7.1 + + * Catch any exceptions produced while generating a handshake + response and send a `400 Bad Request` response to the client + * Pick the RFC-6455 protocol version if the request contains any + of the headers + used by that version + * Handle errors encountered while handling malformed draft-76 + requests + * Change license from MIT to Apache 2.0 + +------------------------------------------------------------------- +Sun Sep 17 17:55:03 UTC 2017 - coolo@suse.com + +- updated to version 0.7.0 + see installed CHANGELOG.md + + ### 0.7.0 / 2017-09-11 + + * Add `ping` and `pong` to the set of events users can listen to + +------------------------------------------------------------------- +Wed Jan 25 12:31:44 UTC 2017 - dkang@suse.com + +- Add gem2rpm.yml + +------------------------------------------------------------------- +Wed Jan 25 10:29:08 UTC 2017 - dkang@suse.com + +- update to version 0.6.5 + +------------------------------------------------------------------- +Sat May 21 04:40:36 UTC 2016 - coolo@suse.com + +- updated to version 0.6.4 + see installed CHANGELOG.md + + ### 0.6.4 / 2016-05-20 + + * Amend warnings issued when running with -W2 + * Make sure message strings passed in by the app are transcoded to UTF-8 + * Copy strings if necessary for frozen-string compatibility + +------------------------------------------------------------------- +Sat Nov 7 05:33:02 UTC 2015 - coolo@suse.com + +- updated to version 0.6.3 + see installed CHANGELOG.md + + ### 0.6.3 / 2015-11-06 + + * Reject draft-76 handshakes if their Sec-WebSocket-Key headers are invalid + * Throw a more helpful error if a client is created with an invalid URL + +------------------------------------------------------------------- +Sun Jul 19 04:31:32 UTC 2015 - coolo@suse.com + +- updated to version 0.6.2 + see installed CHANGELOG.md + + ### 0.6.2 / 2015-07-18 + + * When the peer sends a close frame with no error code, emit 1000 + +------------------------------------------------------------------- +Wed Jul 15 04:32:07 UTC 2015 - coolo@suse.com + +- updated to version 0.6.1 + see installed CHANGELOG.md + + ### 0.6.1 / 2015-07-13 + + * Fix how events are stored in `EventEmitter` to fix a backward-compatibility + violation introduced in the last release + * Use the `Array#pack` and `String#unpack` methods for reading/writing numbers + to buffers rather than including duplicate logic for this + +------------------------------------------------------------------- +Fri Jul 10 04:33:20 UTC 2015 - coolo@suse.com + +- updated to version 0.6.0 + see installed CHANGELOG.md + + ### 0.6.0 / 2015-07-08 + + * Use `SecureRandom` to generate the `Sec-WebSocket-Key` header + * Allow the parser to recover cleanly if event listeners raise an error + * Let the `on()` method take a lambda as a positional argument rather than a block + * Add a `pong` method for sending unsolicited pong frames + +------------------------------------------------------------------- +Mon Mar 30 04:34:00 UTC 2015 - coolo@suse.com + +- updated to version 0.5.4 + +------------------------------------------------------------------- +Mon Feb 23 05:30:24 UTC 2015 - coolo@suse.com + +- updated to version 0.5.3 + +------------------------------------------------------------------- +Fri Feb 20 05:31:48 UTC 2015 - coolo@suse.com + +- updated to version 0.5.2 + +------------------------------------------------------------------- +Fri Feb 6 13:12:52 UTC 2015 - coolo@suse.com + +- updated to version 0.5.1 + * Don't allow drivers to be created with unrecognized options + * Support protocol extensions via the websocket-extensions module + * Support connection via HTTP proxies using `CONNECT` + +------------------------------------------------------------------- +Sun Oct 12 16:18:36 UTC 2014 - coolo@suse.com + +- updated to version 0.3.5 + * Fix bug where the `Server` driver doesn't pass `ping` callbacks to its delegate + * Fix an arity error when calling `fail_request` + * Allow `close` to be called before `start` to close the driver + + ### 0.3.4 / 2014-07-06 + + * Don't hold references to frame buffers after a message has been emitted + * Make sure that `protocol` and `version` are exposed properly by the TCP driver + * Correct HTTP header parsing based on RFC 7230; header names cannot contain backslashes + +- adapt to new rubygem packaging + +------------------------------------------------------------------- +Sun May 18 09:04:46 UTC 2014 - coolo@suse.com + +- updated to version 0.3.3 + * Fix problems with loading C and Java native extension code + * Correct the acceptable characters used in the HTTP parser + * Correct the draft-76 status line reason phrase + +------------------------------------------------------------------- +Thu Feb 6 12:42:54 UTC 2014 - coolo@suse.com + +- updated to version 0.3.2 + * Expand `max_length` to cover sequences of continuation frames and `draft-{75,76}` + * Decrease default maximum frame buffer size to 64MB + * Stop parsing when the protocol enters a failure mode, to save CPU cycles + +------------------------------------------------------------------- +Wed Dec 4 11:31:21 UTC 2013 - coolo@suse.com + +- updated to version 0.3.1 + * Add a `max_length` option to limit allowed frame size + +------------------------------------------------------------------- +Fri Sep 13 11:06:18 UTC 2013 - coolo@suse.com + +- updated to version 0.3.0 + * Support client URLs with Basic Auth credentials + +------------------------------------------------------------------- +Tue Aug 6 17:45:13 UTC 2013 - coolo@suse.com + +- updated to version 0.2.3 + * Fix bug in EventEmitter#emit when listeners are removed + * Fix bug in EventEmitter#listener_count for unregistered events + +------------------------------------------------------------------- +Wed Jul 31 05:45:54 UTC 2013 - coolo@suse.com + +- updated to version 0.2.1 + * Queue sent messages if the client has not begun trying to connect + * Encode all strings sent to I/O as `ASCII-8BIT` + +------------------------------------------------------------------- +Tue Jun 4 16:38:54 UTC 2013 - coolo@suse.com + +- initial package + diff --git a/rubygem-websocket-driver.spec b/rubygem-websocket-driver.spec new file mode 100644 index 0000000..d409e7a --- /dev/null +++ b/rubygem-websocket-driver.spec @@ -0,0 +1,56 @@ +# +# spec file for package rubygem-websocket-driver +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + +Name: rubygem-websocket-driver +Version: 0.7.6 +Release: 0 +%define mod_name websocket-driver +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{rubydevel} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{rubygem rdoc > 3.10} +BuildRequires: ruby-macros >= 5 +URL: https://github.com/faye/websocket-driver-ruby +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +Summary: WebSocket protocol handler with pluggable I/O +License: Apache-2.0 + +%description +WebSocket protocol handler with pluggable I/O. + +%prep + +%build + +%install +%gem_install \ + --doc-files="CHANGELOG.md LICENSE.md README.md" \ + -f +%gem_cleanup + +%gem_packages + +%changelog diff --git a/websocket-driver-0.7.6.gem b/websocket-driver-0.7.6.gem new file mode 100644 index 0000000..190c49f --- /dev/null +++ b/websocket-driver-0.7.6.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f69400be7bc197879726ad8e6f5869a61823147372fd8928836a53c2c741d0db +size 22528