Skip to content

Commit

Permalink
Merge pull request #30 from passageidentity/PSG-3186-versioning-and-r…
Browse files Browse the repository at this point in the history
…eleases

Deploy v0.3.0 - Create CHANGELOG, update version
  • Loading branch information
vanessa-passage authored Dec 6, 2023
2 parents accacd3 + 1327d3b commit ca41e81
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

- Types are now generated. Previous type names may have changed. [See documentation](https://github.com/passageidentity/passage-ruby/tree/main/docs/generated) for model definitions.
1 change: 1 addition & 0 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ openapi-generator-cli generate \

rm -rf ./docs/generated
mv ./generated/docs ./docs/generated
mv ./generated/README.md ./docs/generated

rm -rf ./lib/openapi_client
mv ./generated/lib/openapi_client ./lib
Expand Down
4 changes: 1 addition & 3 deletions lib/passageidentity/user_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ def initialize(app_id, api_key)
@user_client = OpenapiClient::UsersApi.new
@user_device_client = OpenapiClient::UserDevicesApi.new

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 = {}
Expand Down
2 changes: 1 addition & 1 deletion lib/passageidentity/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Passage
VERSION = '0.2.3'
VERSION = '0.3.0'
end

0 comments on commit ca41e81

Please sign in to comment.