From d05e871a68ef55fded732f33a259848f82f307e7aace33a9c6208614c2f917c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 20 Dec 2024 16:24:42 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main rubygem-connection_pool revision c8431c4658b28a3a32ddc2e9d30f7742 --- .gitattributes | 23 +++++ connection_pool-2.4.1.gem | 3 + gem2rpm.yml | 70 ++++++++++++++++ rubygem-connection_pool.changes | 143 ++++++++++++++++++++++++++++++++ rubygem-connection_pool.spec | 54 ++++++++++++ 5 files changed, 293 insertions(+) create mode 100644 .gitattributes create mode 100644 connection_pool-2.4.1.gem create mode 100644 gem2rpm.yml create mode 100644 rubygem-connection_pool.changes create mode 100644 rubygem-connection_pool.spec 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/connection_pool-2.4.1.gem b/connection_pool-2.4.1.gem new file mode 100644 index 0000000..22e908a --- /dev/null +++ b/connection_pool-2.4.1.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f40cf997091f1f04ff66da67eabd61a9fe0d4928b9a3645228532512fab62f4 +size 11776 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-connection_pool.changes b/rubygem-connection_pool.changes new file mode 100644 index 0000000..768897f --- /dev/null +++ b/rubygem-connection_pool.changes @@ -0,0 +1,143 @@ +------------------------------------------------------------------- +Thu Nov 2 15:42:47 UTC 2023 - Dan Čermák + +- 2.4.1 +------ + +- New `auto_reload_after_fork` config option to disable auto-drop [#177, shayonj] + +2.4.0 +------ + +- Automatically drop all connections after fork [#166] + + +------------------------------------------------------------------- +Mon Oct 10 13:01:38 UTC 2022 - Stephan Kulow + +updated to version 2.3.0 + see installed Changes.md + + 2.3.0 + ------ + + - Minimum Ruby version is now 2.5.0 + - Add pool size to TimeoutError message + + +------------------------------------------------------------------- +Thu Jun 24 17:12:24 UTC 2021 - Stephan Kulow + +updated to version 2.2.5 + see installed Changes.md + + 2.2.5 + ------ + + - Fix argument forwarding on Ruby 2.7 [#149] + + 2.2.4 + ------ + + - Add `reload` to close all connections, recreating them afterwards [Andrew Marshall, #140] + - Add `then` as a way to use a pool or a bare connection with the same code path [#138] + + +------------------------------------------------------------------- +Fri Sep 25 13:47:48 UTC 2020 - Stephan Kulow + +updated to version 2.2.3 + see installed Changes.md + + +------------------------------------------------------------------- +Thu May 24 18:03:56 UTC 2018 - factory-auto@kulow.org + +- updated to version 2.2.2 + see installed Changes.md + + 2.2.2 + ------ + + - Add pool `size` and `available` accessors for metrics and monitoring + purposes [#97, robholland] + +------------------------------------------------------------------- +Sun Nov 13 05:31:35 UTC 2016 - coolo@suse.com + +- updated to version 2.2.1 + see installed Changes.md + + 2.2.1 + ------ + + - Allow CP::Wrapper to use an existing pool [#87, etiennebarrie] + - Use monotonic time for more accurate timeouts [#84, jdantonio] + +------------------------------------------------------------------- +Sat Apr 11 04:29:07 UTC 2015 - coolo@suse.com + +- updated to version 2.2.0 + +------------------------------------------------------------------- +Fri Mar 20 05:33:27 UTC 2015 - coolo@suse.com + +- updated to version 2.1.3 + +------------------------------------------------------------------- +Tue Mar 3 05:29:23 UTC 2015 - coolo@suse.com + +- updated to version 2.1.2 + +------------------------------------------------------------------- +Sat Feb 7 07:21:14 UTC 2015 - coolo@suse.com + +- updated to version 2.1.1 + - Work around a subtle race condition with code which uses `Timeout.timeout` and + checks out a connection within the timeout block. This might cause + connections to get into a bad state and raise very odd errors. [tamird, #67] + + 2.1.0 + ------ + + - Refactoring to better support connection pool subclasses [drbrain, + #55] + - `with` should return value of the last expression [#59] + +------------------------------------------------------------------- +Mon Oct 13 09:47:33 UTC 2014 - coolo@suse.com + +- adapt to new rubygem packaging + +------------------------------------------------------------------- +Sat Mar 15 18:46:01 UTC 2014 - coolo@suse.com + +- updated to version 2.0.0 + - The connection pool is now lazy. Connections are created as needed + and retained until the pool is shut down. [drbrain, #52] + +------------------------------------------------------------------- +Wed Nov 27 08:19:00 UTC 2013 - coolo@suse.com + +- updated to version 1.2.0 + - Add `with(options)` and `checkout(options)`. [mattcamuto] + Allows the caller to override the pool timeout. + ```ruby + @pool.with(:timeout => 2) do |conn| + end + +------------------------------------------------------------------- +Wed Jul 31 05:45:54 UTC 2013 - coolo@suse.com + +- updated to version 1.1.0 + - New `#shutdown` method (simao) + + This method accepts a block and calls the block for each + connection in the pool. After calling this method, trying to get a + connection from the pool raises `PoolShuttingDownError`. + +------------------------------------------------------------------- +Tue Dec 25 17:00:44 UTC 2012 - coolo@suse.com + +- initial package (version 1.0.0) + diff --git a/rubygem-connection_pool.spec b/rubygem-connection_pool.spec new file mode 100644 index 0000000..d59eab4 --- /dev/null +++ b/rubygem-connection_pool.spec @@ -0,0 +1,54 @@ +# +# spec file for package rubygem-connection_pool +# +# 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-connection_pool +Version: 2.4.1 +Release: 0 +%define mod_name connection_pool +%define mod_full_name %{mod_name}-%{version} +BuildRequires: ruby-macros >= 5 +BuildRequires: %{ruby >= 2.5.0} +BuildRequires: %{rubygem gem2rpm} +Url: https://github.com/mperham/connection_pool +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +Summary: Generic connection pool for Ruby +License: MIT + +%description +Generic connection pool for Ruby. + +%prep + +%build + +%install +%gem_install \ + --doc-files="Changes.md LICENSE README.md" \ + -f + +%gem_packages + +%changelog