-
Notifications
You must be signed in to change notification settings - Fork 31
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
updates to swift 3.0 and xcode 8.1 #48
base: master
Are you sure you want to change the base?
Conversation
@@ -182,7 +182,7 @@ class SerializableArraySpec: QuickSpec { | |||
} | |||
|
|||
it("should be serialized") { | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\"}]" | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\",\"trick\":null}]" |
There was a problem hiding this comment.
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 150 characters or less: currently 157 characters (line_length)
@@ -41,11 +40,10 @@ extension Array where Element: Serializable { | |||
|
|||
:returns: The array as a JSON string. | |||
*/ | |||
public func toJsonString(prettyPrinted: Bool = false) -> String? { | |||
public func toJsonString(_ prettyPrinted: Bool = false) -> String? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid Docs Violation: Documented declarations should be valid. (valid_docs)
@@ -21,18 +21,17 @@ extension Array where Element: Serializable { | |||
|
|||
:returns: The array as JSON, wrapped in NSData. | |||
*/ | |||
public func toJson(prettyPrinted: Bool = false) -> NSData? { | |||
public func toJson(_ prettyPrinted: Bool = false) -> Data? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid Docs Violation: Documented declarations should be valid. (valid_docs)
Thanks for the PR @tiagomartinho Can someone verify this? I haven't touched anything in Swift for over 2 years now. |
@@ -182,7 +182,7 @@ class SerializableArraySpec: QuickSpec { | |||
} | |||
|
|||
it("should be serialized") { | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\"}]" | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\",\"trick\":null}]" |
There was a problem hiding this comment.
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 150 characters or less: currently 157 characters (line_length)
@@ -182,7 +182,7 @@ class SerializableArraySpec: QuickSpec { | |||
} | |||
|
|||
it("should be serialized") { | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\"}]" | |||
let expected = "[{\"kind\":\"Dog\",\"nickname\":\"Fluffy\",\"trick\":\"Rollover\"},{\"kind\":\"Cat\",\"nickname\":\"Purry\",\"trick\":null}]" |
There was a problem hiding this comment.
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 150 characters or less: currently 157 characters (line_length)
I updated the project to Swift 3.0, however the serialisation of enum does not work.
I also updated the pod spec that had the invalid platform keyword.