summaryrefslogtreecommitdiff
path: root/dev-crystal
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-10 19:05:00 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-10 19:05:00 +0000
commit57edf5714082f03eccc113ee0441898b21c16c60 (patch)
treedb21be27f5a96f44283f32e111c14de8b44821bc /dev-crystal
parentae4870be583c8ffd68b7ec2ab9606d607f99586d (diff)
downloadbaldeagleos-repo-57edf5714082f03eccc113ee0441898b21c16c60.tar.gz
baldeagleos-repo-57edf5714082f03eccc113ee0441898b21c16c60.tar.xz
baldeagleos-repo-57edf5714082f03eccc113ee0441898b21c16c60.zip
Adding metadata
Diffstat (limited to 'dev-crystal')
-rw-r--r--dev-crystal/webmock/files/webmock-0.14.0-fix-tests.patch43
-rw-r--r--dev-crystal/webmock/webmock-0.14.0-r1.ebuild4
2 files changed, 46 insertions, 1 deletions
diff --git a/dev-crystal/webmock/files/webmock-0.14.0-fix-tests.patch b/dev-crystal/webmock/files/webmock-0.14.0-fix-tests.patch
new file mode 100644
index 000000000000..6914d9b2e6b6
--- /dev/null
+++ b/dev-crystal/webmock/files/webmock-0.14.0-fix-tests.patch
@@ -0,0 +1,43 @@
+From fde6b20d5b80401a967e044b1a3e80ee391bed60 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20M=C3=BCller?= <straightshoota@gmail.com>
+Date: Thu, 27 Mar 2025 18:57:18 +0100
+Subject: [PATCH] Fix using URL path in specs (#52)
+
+The specs were wrongly using the fully qualified URL as request resource.
+
+This does no longer work with crystal-lang/crystal#15499 (expected to be released in Crystal 1.16).
+---
+ spec/webmock_spec.cr | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/spec/webmock_spec.cr b/spec/webmock_spec.cr
+index 3f11f24..c8509f9 100644
+--- a/spec/webmock_spec.cr
++++ b/spec/webmock_spec.cr
+@@ -379,9 +379,8 @@ describe WebMock do
+ to_return(body: "")
+ MSG
+ expect_raises WebMock::NetConnectNotAllowedError, error_msg do
+- url = "https://www.example.com/"
+- request = HTTP::Request.new("GET", url)
+- uri = URI.parse(url)
++ uri = URI.parse("https://www.example.com/")
++ request = HTTP::Request.new("GET", uri.path)
+ HTTP::Client.new(uri).exec(request)
+ end
+ end
+@@ -398,9 +397,8 @@ describe WebMock do
+ MSG
+ WebMock.wrap do
+ expect_raises WebMock::NetConnectNotAllowedError, error_msg do
+- url = "https://www.example.com/test"
+- request = HTTP::Request.new("GET", url)
+- uri = URI.parse(url)
++ uri = URI.parse("https://www.example.com/test")
++ request = HTTP::Request.new("GET", uri.path)
+ HTTP::Client.new(uri).exec(request)
+ end
+ end
+--
+2.51.2
+
diff --git a/dev-crystal/webmock/webmock-0.14.0-r1.ebuild b/dev-crystal/webmock/webmock-0.14.0-r1.ebuild
index 036df9010923..fa578d9652fb 100644
--- a/dev-crystal/webmock/webmock-0.14.0-r1.ebuild
+++ b/dev-crystal/webmock/webmock-0.14.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,4 +15,6 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
+PATCHES=( "${FILESDIR}"/${PN}-0.14.0-fix-tests.patch )
+
DOCS=( README.md )