8000 Rename 'authorizationProvider' to 'authenticationProvider' by sharplet · Pull Request #38 · thoughtbot/Superb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rename 'authorizationProvider' to 'authenticationProvider' #38

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

Merged
merged 1 commit into from
Aug 22, 2017

Conversation

sharplet
Copy link
Contributor

This completes the rename started in c873afb (this parameter label was missed).

This completes the rename started in c873afb
(this parameter label was missed).
@@ -170,7 +170,7 @@ final class RequestAuthorizerSpec: QuickSpec {
describe("clearToken") {
it("removes the token from token storage") {
let testTokenStorage = SimpleTokenStorage(token: "some-token")
let authorizer = RequestAuthorizer(authorizationProvider: TestAuthenticationProvider(), tokenStorage: testTokenStorage)
let authorizer = RequestAuthorizer(authenticationProvider: TestAuthenticationProvider(), tokenStorage: testTokenStorage)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I should disable the line length one. Signal-to-noise is low.

where Provider.Token == Token
{
let keychainTokenStorage = KeychainTokenStorage<Token>(service: Provider.keychainServiceName, label: Provider.identifier)
self.init(authorizationProvider: authorizationProvider, tokenStorage: keychainTokenStorage, applicationDelegate: applicationDelegate, urlSession: urlSession)
self.init(authenticationProvider: authenticationProvider, tokenStorage: keychainTokenStorage, applicationDelegate: applicationDelegate, urlSession: urlSession)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 163 characters (line_length)

@@ -282,11 +282,11 @@ public final class RequestAuthorizer<Token>: RequestAuthorizerProtocol {
}

extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable {
public convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared)
public convenience init<Provider: AuthenticationProvider>(authenticationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 230 characters (line_length)

@@ -13,13 +13,13 @@ public final class RequestAuthorizer<Token>: RequestAuthorizerProtocol {
private let authenticationComplete: Channel<AuthenticationResult<Token>>
private let authenticationState: Actor<AuthenticationState<Token>>

public init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared)
public init<Provider: AuthenticationProvider, Storage: TokenStorage>(authenticationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = defaultApplicationDelegate, urlSession: URLSession = .shared)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 264 characters (line_length)


public extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable {
@available(*, unavailable, renamed: "init(authenticationProvider:applicationDelegate:urlSession:)")
convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 199 characters (line_length)


public extension RequestAuthorizer {
@available(*, unavailable, renamed: "init(authenticationProvider:tokenStorage:applicationDelegate:urlSession:)")
convenience init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 245 characters (line_length)

public extension RequestAuthorizer where Token: KeychainDecodable & KeychainEncodable {
@available(*, unavailable, renamed: "init(authenticationProvider:applicationDelegate:urlSession:)")
convenience init<Provider: AuthenticationProvider>(authorizationProvider: Provider, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared)
where Provider.Token == Token

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

public extension RequestAuthorizer {
@available(*, unavailable, renamed: "init(authenticationProvider:tokenStorage:applicationDelegate:urlSession:)")
convenience init<Provider: AuthenticationProvider, Storage: TokenStorage>(authorizationProvider: Provider, tokenStorage: Storage, applicationDelegate: @autoclosure @escaping () -> UIApplicationDelegate? = nil, urlSession: URLSession = .shared)
where Provider.Token == Token, Storage.Token == Token

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening Brace Spacing Violation: Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@sharplet sharplet merged commit 8162801 into master Aug 22, 2017
@sharplet sharplet deleted the as-renamed branch August 22, 2017 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0