public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/gh/files/
@ 2023-03-27 17:33 Hans de Graaff
  0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2023-03-27 17:33 UTC (permalink / raw
  To: gentoo-commits

commit:     a27b21d202dbe8077296338ddbb7e5ad366b6506
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 27 17:33:43 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Mar 27 17:33:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a27b21d2

dev-ruby/gh: add missing patch

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/gh/files/gh-0.18.0-ruby30.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/dev-ruby/gh/files/gh-0.18.0-ruby30.patch b/dev-ruby/gh/files/gh-0.18.0-ruby30.patch
new file mode 100644
index 000000000000..cdd4aba84d59
--- /dev/null
+++ b/dev-ruby/gh/files/gh-0.18.0-ruby30.patch
@@ -0,0 +1,20 @@
+--- a/spec/token_check_spec.rb	2020-06-25 16:44:11.000000000 +0200
++++ b/spec/token_check_spec.rb	2023-03-27 16:20:56.781510771 +0200
+@@ -8,7 +8,7 @@
+   end
+ 
+   it 'adds client_id and client_secret to a request' do
+-    expect(subject.backend).to receive(:http).with(:post, "/applications/foo/token", :body => "{\"access_token\": \"baz\"}", "Authorization" => "Basic Zm9vOmJhcg==") do
++    expect(subject.backend).to receive(:http).with(:post, "/applications/foo/token", { :body => "{\"access_token\": \"baz\"}", "Authorization" => "Basic Zm9vOmJhcg==" }) do
+       error = GH::Error.new
+       error.info[:response_status] = 404
+       raise error
+@@ -17,7 +17,7 @@
+   end
+ 
+   it 'does not swallow other status codes' do
+-    expect(subject.backend).to receive(:http).with(:post, "/applications/foo/token", :body => "{\"access_token\": \"baz\"}", "Authorization" => "Basic Zm9vOmJhcg==") do
++    expect(subject.backend).to receive(:http).with(:post, "/applications/foo/token", { :body => "{\"access_token\": \"baz\"}", "Authorization" => "Basic Zm9vOmJhcg==" }) do
+       error = GH::Error.new
+       error.info[:response_status] = 500
+       raise error


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-27 17:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-27 17:33 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/gh/files/ Hans de Graaff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox