git: 3393b38de0f7 - main - devel/rubygem-redlock: Fix gemspec for rubygem-redis-client 0.15.0 update

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 16 Aug 2023 18:35:01 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3393b38de0f79910951969b39ee798612647f6bb

commit 3393b38de0f79910951969b39ee798612647f6bb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-16 18:14:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-16 18:26:05 +0000

    devel/rubygem-redlock: Fix gemspec for rubygem-redis-client 0.15.0 update
    
    - Bump PORTREVISION for package change
---
 devel/rubygem-redlock/Makefile            |  3 ++-
 devel/rubygem-redlock/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/rubygem-redlock/Makefile b/devel/rubygem-redlock/Makefile
index fd501b34f184..677423b0badf 100644
--- a/devel/rubygem-redlock/Makefile
+++ b/devel/rubygem-redlock/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	redlock
 PORTVERSION=	2.0.2
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -10,7 +11,7 @@ WWW=		https://github.com/leandromoreira/redlock-rb
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	rubygem-redis-client>=0.14.1<0.15:databases/rubygem-redis-client
+RUN_DEPENDS=	rubygem-redis-client>=0.14.1<1:databases/rubygem-redis-client
 
 USES=		gem
 
diff --git a/devel/rubygem-redlock/files/patch-gemspec b/devel/rubygem-redlock/files/patch-gemspec
new file mode 100644
index 000000000000..edcc9bb256dc
--- /dev/null
+++ b/devel/rubygem-redlock/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- redlock.gemspec.orig	2023-08-03 15:43:05 UTC
++++ redlock.gemspec
+@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
+ 
+   s.specification_version = 4
+ 
+-  s.add_runtime_dependency(%q<redis-client>.freeze, ["~> 0.14.1"])
++  s.add_runtime_dependency(%q<redis-client>.freeze, ["~> 0.14", ">= 0.14.1"])
+   s.add_development_dependency(%q<connection_pool>.freeze, ["~> 2.2"])
+   s.add_development_dependency(%q<coveralls>.freeze, ["~> 0.8"])
+   s.add_development_dependency(%q<json>.freeze, [">= 2.3.0", "~> 2.3.1"])