diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4971a7d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.3.0] - 2023-12-06 + +### Added + +- Generate types and api calls with openapi generator. +- Version constant instead of parsing gemspec. + + +### Deprecate + +- `user.signout()` -> `auth.revoke_user_refresh_tokens()` +- `auth.authenticate_request()` -> `auth.validate_jwt()` + + +### Possible Breaking Changes + +- Type names may change. diff --git a/lib/passageidentity/user_api.rb b/lib/passageidentity/user_api.rb index 688f9cd..2ad5b73 100644 --- a/lib/passageidentity/user_api.rb +++ b/lib/passageidentity/user_api.rb @@ -11,7 +11,7 @@ def initialize(app_id, api_key) gemspec = File.join(__dir__, "../../passageidentity.gemspec") spec = Gem::Specification.load(gemspec) - header_params = { "Passage-Version" => "passage-ruby #{spec.version}" } + header_params = { "Passage-Version" => "passage-ruby #{Passage::VERSION}"} header_params["Authorization"] = "Bearer #{@api_key}" if @api_key != "" @req_opts = {} diff --git a/lib/passageidentity/version.rb b/lib/passageidentity/version.rb index 21927ee..ea35d8f 100644 --- a/lib/passageidentity/version.rb +++ b/lib/passageidentity/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Passage - VERSION = '0.2.3' + VERSION = '0.3.0' end