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

updates to swift 3.0 and xcode 8.1 #48

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tiagomartinho
Copy link

@tiagomartinho tiagomartinho commented Nov 4, 2016

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.

@@ -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}]"

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? {

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? {

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)

@turowicz
Copy link
Owner

turowicz commented Nov 7, 2016

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}]"

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}]"

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)

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