From dda60063f351e61df0e9fb75df30fe6350689799 Mon Sep 17 00:00:00 2001 From: Steve Bunting Date: Wed, 15 Nov 2023 10:32:08 -0800 Subject: [PATCH 1/2] add api info to post events request for debugging --- lib/supergood/api.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/supergood/api.rb b/lib/supergood/api.rb index 833077d..fc69898 100644 --- a/lib/supergood/api.rb +++ b/lib/supergood/api.rb @@ -8,7 +8,9 @@ def initialize(client_id, client_secret, base_url) @base_url = base_url @header_options = { 'Content-Type' => 'application/json', - 'Authorization' => 'Basic ' + Base64.encode64(client_id + ':' + client_secret).gsub(/\n/, '') + 'Authorization' => 'Basic ' + Base64.encode64(client_id + ':' + client_secret).gsub(/\n/, ''), + 'supergood-api' => 'supergood-rb', + 'supergood-api-version' => VERSION } @local_only = client_id == LOCAL_CLIENT_ID && client_secret == LOCAL_CLIENT_SECRET end From 76ac6792a8b247505db79207980b74d7cbaad196 Mon Sep 17 00:00:00 2001 From: Steve Bunting Date: Wed, 15 Nov 2023 13:44:33 -0800 Subject: [PATCH 2/2] bump path version number --- lib/supergood/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/supergood/version.rb b/lib/supergood/version.rb index 2bd31ac..c672acc 100644 --- a/lib/supergood/version.rb +++ b/lib/supergood/version.rb @@ -1,3 +1,3 @@ module Supergood - VERSION = '0.1.4'.freeze + VERSION = '0.1.5'.freeze end