From c60b89040f023afdca65e252fb07a916e8c71a55 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:56:22 +0100 Subject: [PATCH 1/2] fix: release --- .github/workflows/publish.yml | 2 +- lib/appwrite/client.rb | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0342072..acbde61 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: echo -e "---\n:rubygems_api_key: $RUBYGEMS_TOKEN\n" > ~/.gem/credentials chmod 0600 ~/.gem/credentials env: - RUBYGEMS_TOKEN: $ + RUBYGEMS_TOKEN: ${{ secrets.RUBYGEMS_TOKEN }} - name: Build gem run: gem build appwrite.gemspec diff --git a/lib/appwrite/client.rb b/lib/appwrite/client.rb index 5fb2c90..32067f9 100644 --- a/lib/appwrite/client.rb +++ b/lib/appwrite/client.rb @@ -15,10 +15,7 @@ def initialize 'x-sdk-name'=> 'Ruby', 'x-sdk-platform'=> 'server', 'x-sdk-language'=> 'ruby', - 'x-sdk-version'=> '13.0.0', - 'X-Appwrite-Response-Format' => '1.6.0' - } - + 'x-sdk-version'=> '13.0.0', 'X-Appwrite-Response-Format' => '1.6.0' } @endpoint = 'https://cloud.appwrite.io/v1' end From 5484ef0cf481d71d2f9bbe3f1cdefd576d98d57f Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:05:48 +0100 Subject: [PATCH 2/2] fix: client headers --- lib/appwrite/client.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/appwrite/client.rb b/lib/appwrite/client.rb index 32067f9..57b9454 100644 --- a/lib/appwrite/client.rb +++ b/lib/appwrite/client.rb @@ -15,7 +15,9 @@ def initialize 'x-sdk-name'=> 'Ruby', 'x-sdk-platform'=> 'server', 'x-sdk-language'=> 'ruby', - 'x-sdk-version'=> '13.0.0', 'X-Appwrite-Response-Format' => '1.6.0' } + 'x-sdk-version'=> '13.0.0', + 'x-appwrite-response-format' => '1.6.0' + } @endpoint = 'https://cloud.appwrite.io/v1' end