diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a64ee4c..1c21d80 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -name: Ruby CI +name: Ruby Build on: [ push ] diff --git a/.gitignore b/.gitignore index c0b2849..8fcbbe5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ /spec/reports/ /tmp/ /csv_file +.vscode/ # App urbanairship.log diff --git a/CHANGELOG b/CHANGELOG index 6e518fc..8190364 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,8 @@ -------------------- +8.0.1 +-------------------- +- Adds `X-AIRSHIP-APPKEY` header tor equests +-------------------- 8.0.0 -------------------- - Updates officially supported versions to 2.6.7 and 2.7.2 diff --git a/lib/urbanairship/client.rb b/lib/urbanairship/client.rb index e41f0ed..8fc28b0 100644 --- a/lib/urbanairship/client.rb +++ b/lib/urbanairship/client.rb @@ -52,7 +52,7 @@ def send_request(method: required('method'), path: nil, url: nil, body: nil, raise ArgumentError.new("path and url can't be both nil") if path.nil? && url.nil? - headers = {'User-Agent' => 'UARubyLib/' + Urbanairship::VERSION} + headers = {'User-Agent' => 'UARubyLib/' + Urbanairship::VERSION + ' ' + @key} headers['Accept'] = 'application/vnd.urbanairship+json; version=3' headers['Content-Type'] = content_type unless content_type.nil? headers['Content-Encoding'] = encoding unless encoding.nil? diff --git a/lib/urbanairship/version.rb b/lib/urbanairship/version.rb index ca1cd9d..8bfc2b7 100644 --- a/lib/urbanairship/version.rb +++ b/lib/urbanairship/version.rb @@ -1,3 +1,3 @@ module Urbanairship - VERSION = '8.0.0' + VERSION = '8.0.1' end