git: 49269ab52483 - main - devel/rubygem-github_api: Change RUN_DEPENDS from rubygem-hashie3 to rubygem-hashie

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 16:04:07 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=49269ab52483cd7d9e7c3eb004ff1603fa7ea424

commit 49269ab52483cd7d9e7c3eb004ff1603fa7ea424
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-10-25 15:11:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-10-25 15:57:52 +0000

    devel/rubygem-github_api: Change RUN_DEPENDS from rubygem-hashie3 to rubygem-hashie
    
    - Bump PORTREVISION for dependency and package change
---
 devel/rubygem-github_api/Makefile            |  3 ++-
 devel/rubygem-github_api/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/rubygem-github_api/Makefile b/devel/rubygem-github_api/Makefile
index 4b6611fea606..798e95310188 100644
--- a/devel/rubygem-github_api/Makefile
+++ b/devel/rubygem-github_api/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	github_api
 PORTVERSION=	0.19.0
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -14,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 RUN_DEPENDS=	rubygem-addressable>=2.4<3:www/rubygem-addressable \
 		rubygem-descendants_tracker>=0.0.4<0.1:devel/rubygem-descendants_tracker \
 		rubygem-faraday>=0.8<2:www/rubygem-faraday \
-		rubygem-hashie3>=3.5.2<4:devel/rubygem-hashie3 \
+		rubygem-hashie>=3.5.2:devel/rubygem-hashie \
 		rubygem-oauth2>=1.0<2:net/rubygem-oauth2
 
 USES=		gem
diff --git a/devel/rubygem-github_api/files/patch-gemspec b/devel/rubygem-github_api/files/patch-gemspec
new file mode 100644
index 000000000000..565eea6fb831
--- /dev/null
+++ b/devel/rubygem-github_api/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- github_api.gemspec.orig	2021-10-23 07:17:33 UTC
++++ github_api.gemspec
+@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_runtime_dependency(%q<addressable>.freeze, ["~> 2.4"])
+-      s.add_runtime_dependency(%q<hashie>.freeze, ["~> 3.5", ">= 3.5.2"])
++      s.add_runtime_dependency(%q<hashie>.freeze, [">= 3.5.2"])
+       s.add_runtime_dependency(%q<faraday>.freeze, [">= 0.8", "< 2"])
+       s.add_runtime_dependency(%q<oauth2>.freeze, ["~> 1.0"])
+       s.add_runtime_dependency(%q<descendants_tracker>.freeze, ["~> 0.0.4"])