From 144a14b061a10b764ebf4c7f9bfd006f3f0e6dd6 Mon Sep 17 00:00:00 2001 From: Youming Lin Date: Mon, 18 Sep 2017 13:08:20 -0500 Subject: [PATCH] Change UInt64 to Int --- .gitignore | 1 + .swift-version | 2 +- Sources/CredentialsGitHub/CredentialsGitHub.swift | 4 ++-- Sources/CredentialsGitHub/CredentialsGitHubOptions.swift | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 61ad847..27aeb8d 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ playground.xcworkspace # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. .build/ Packages/ +Package.resolved # CocoaPods # diff --git a/.swift-version b/.swift-version index 8c50098..94ff29c 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -3.1 +3.1.1 diff --git a/Sources/CredentialsGitHub/CredentialsGitHub.swift b/Sources/CredentialsGitHub/CredentialsGitHub.swift index 38f5937..5a7a5d9 100644 --- a/Sources/CredentialsGitHub/CredentialsGitHub.swift +++ b/Sources/CredentialsGitHub/CredentialsGitHub.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2016 + * Copyright IBM Corporation 2016, 2017 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -218,7 +218,7 @@ public class CredentialsGitHub: CredentialsPluginProtocol { } */ private func createUserProfile(from userDictionary: [String: Any]) -> UserProfile? { - guard let id = userDictionary["id"] as? UInt64 else { + guard let id = userDictionary["id"] as? Int else { return nil } diff --git a/Sources/CredentialsGitHub/CredentialsGitHubOptions.swift b/Sources/CredentialsGitHub/CredentialsGitHubOptions.swift index 7628717..325986b 100644 --- a/Sources/CredentialsGitHub/CredentialsGitHubOptions.swift +++ b/Sources/CredentialsGitHub/CredentialsGitHubOptions.swift @@ -1,5 +1,5 @@ /** - * Copyright IBM Corporation 2016 + * Copyright IBM Corporation 2016, 2017 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +14,8 @@ * limitations under the License. **/ -// MARK CredentialsFacebookOptions -/// A list of options for authentication with Facebook. +// MARK CredentialsGitHubOptions +/// A list of options for authentication with GitHub. public struct CredentialsGitHubOptions { /// [GitHub access token scopes](https://developer.github.com/v3/oauth/#scopes) public static let scopes = "scopes"