summaryrefslogtreecommitdiff
path: root/dev-ruby/gh
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-28 09:06:35 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-28 09:06:35 +0000
commit94c7485e09acad6da9cb642244e796eff14515cb (patch)
tree38e384145c79223288f77fdb1abb843b37ae2c8d /dev-ruby/gh
parentf33fc627f9a672fc99c0e2658ccfd2cbea76d665 (diff)
downloadsrcux-94c7485e09acad6da9cb642244e796eff14515cb.tar.gz
srcux-94c7485e09acad6da9cb642244e796eff14515cb.tar.xz
srcux-94c7485e09acad6da9cb642244e796eff14515cb.zip
Adding metadata
Diffstat (limited to 'dev-ruby/gh')
-rw-r--r--dev-ruby/gh/files/gh-0.18.0-ruby30.patch20
1 files changed, 20 insertions, 0 deletions
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