Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract DuplicationError #39

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for Ruby 3.2
- Support for Rails 7.1

### Changed

- Extracted `KeycloakOauth::DuplicationError` into a separate file to please the Zeitwerk loader.

## [2.0.1] - 2022-06-16

### Changed
Expand Down
3 changes: 3 additions & 0 deletions app/services/keycloak_oauth/duplication_error.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module KeycloakOauth
class DuplicationError < StandardError; end
end
4 changes: 2 additions & 2 deletions app/services/keycloak_oauth/post_users_service.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'net/http'
require 'keycloak_oauth/authorizable_error'
require 'keycloak_oauth/duplication_error'

module KeycloakOauth
class DuplicationError < StandardError; end

class PostUsersService < KeycloakOauth::AuthorizableService
attr_reader :request_params, :connection, :user_params

Expand Down
Loading