Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hzalaz committed Sep 14, 2016
1 parent fd286a2 commit 16b20ee
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ notifications:
env:
matrix:
- SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="10.0" CARTHAGE_BUILD_PLATFORM="iOS"
- SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.3" CARTHAGE_BUILD_PLATFORM="iOS"
- SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.2" CARTHAGE_BUILD_PLATFORM="iOS"
- SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.1" CARTHAGE_BUILD_PLATFORM="iOS"
- SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.0" CARTHAGE_BUILD_PLATFORM="iOS"
# - SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.3" CARTHAGE_BUILD_PLATFORM="iOS"
# - SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.2" CARTHAGE_BUILD_PLATFORM="iOS"
# - SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.1" CARTHAGE_BUILD_PLATFORM="iOS"
# - SCHEME="JWTDecode-iOS" IOS_DESTINATION_VERSION="9.0" CARTHAGE_BUILD_PLATFORM="iOS"
- SCHEME="JWTDecode-tvOS" CARTHAGE_BUILD_PLATFORM="tvOS"
- SCHEME="JWTDecode-OSX" CARTHAGE_BUILD_PLATFORM="Mac"
global:
Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Change Log

## [2.0.0](https://github.com/auth0/JWTDecode.swift/tree/2.0.0) (2016-09-14)

[Full Changelog](https://github.com/auth0/JWTDecode.swift/compare/1.2.0...2.0.0)

Support for Xcode 8 & Swift 3.

Following Swift API Guidelines, all functions and methods requires a parameter label.

So now to decode a token

```swift
try JWTDecode.decode(jwt: "token")
```

Also now JWTDecode errors conforms the protocol LocalizableError

```
public enum DecodeError: LocalizedError {
case invalidBase64Url(String)
case invalidJSON(String)
case invalidPartCount(String, Int)
public var localizedDescription: String {
switch self {
case .invalidJSON(let value):
return NSLocalizedString("Malformed jwt token, failed to parse JSON value from base64Url \(value)", comment: "Invalid JSON value inside base64Url")
case .invalidPartCount(let jwt, let parts):
return NSLocalizedString("Malformed jwt token \(jwt) has \(parts) parts when it should have 3 parts", comment: "Invalid amount of jwt parts")
case .invalidBase64Url(let value):
return NSLocalizedString("Malformed jwt token, failed to decode base64Url value \(value)", comment: "Invalid JWT token base64Url value")
}
}
}
```

## [1.2.0](https://github.com/auth0/JWTDecode.swift/tree/1.2.0) (2016-09-13)

[Full Changelog](https://github.com/auth0/JWTDecode.swift/compare/1.1.0...1.2.0)
Expand Down
2 changes: 1 addition & 1 deletion JWTDecode/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>2.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion JWTDecodeTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<string>2.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 16b20ee

Please sign in to comment.