Skip to content

Commit

Permalink
development: updated for Xcode 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dahan committed Mar 28, 2017
1 parent 2bde171 commit 91ef7da
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Graph.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Graph'
s.version = '2.1.2'
s.version = '2.1.3'
s.license = 'BSD-3-Clause'
s.summary = 'Graph is a semantic database that is used to create data-driven applications.'
s.homepage = 'http://graphswift.io'
Expand Down
2 changes: 1 addition & 1 deletion Graph.xcodeproj/xcshareddata/xcschemes/Graph iOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Sources/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>2.1.2</string>
<string>2.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/JSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ open class JSON: Equatable, CustomStringConvertible {
if let o = object as? JSON {
return stringify(object: o.object)
} else if let data = JSON.serialize(object: object) {
if let o = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String {
if let o = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as String? {
return o
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Relationship.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Relationship: Node {
internal let managedNode: ManagedRelationship

public override var description: String {
return "[nodeClass: \(nodeClass), id: \(id), type: \(type), tags: \(tags), groups: \(groups), properties: \(properties), subject: \(subject), object: \(object), createdDate: \(createdDate)]"
return "[nodeClass: \(nodeClass), id: \(id), type: \(type), tags: \(tags), groups: \(groups), properties: \(properties), subject: \(String(describing: subject)), object: \(String(describing: object)), createdDate: \(createdDate)]"
}

/// A reference to the nodeClass.
Expand Down
4 changes: 2 additions & 2 deletions Tests/ActionSearchTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ActionSearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Action>(graph: graph)
Expand Down Expand Up @@ -160,7 +160,7 @@ class ActionSearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Action>(graph: graph)
Expand Down
6 changes: 3 additions & 3 deletions Tests/ActionThreadTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ActionThreadTests : XCTestCase, WatchActionDelegate {
action.add(tags: "G")

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.insertSaveExpectation?.fulfill()
}
}
Expand All @@ -86,7 +86,7 @@ class ActionThreadTests : XCTestCase, WatchActionDelegate {
action["P"] = 222

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.updateSaveExpectation?.fulfill()
}
}
Expand All @@ -102,7 +102,7 @@ class ActionThreadTests : XCTestCase, WatchActionDelegate {
action.delete()

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.deleteSaveExpectation?.fulfill()
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/EntitySearchTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class EntitySearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Entity>(graph: graph)
Expand Down Expand Up @@ -160,7 +160,7 @@ class EntitySearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Entity>(graph: graph)
Expand Down
6 changes: 3 additions & 3 deletions Tests/EntityThreadTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class EntityThreadTests : XCTestCase, WatchEntityDelegate {
entity.add(tags: "G")

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.insertSaveExpectation?.fulfill()
}
}
Expand All @@ -86,7 +86,7 @@ class EntityThreadTests : XCTestCase, WatchEntityDelegate {
entity["P"] = 222

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.updateSaveExpectation?.fulfill()
}
}
Expand All @@ -102,7 +102,7 @@ class EntityThreadTests : XCTestCase, WatchEntityDelegate {
entity.delete()

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.deleteSaveExpectation?.fulfill()
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/RelationshipSearchTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class RelationshipSearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Relationship>(graph: graph)
Expand Down Expand Up @@ -160,7 +160,7 @@ class RelationshipSearchTests : XCTestCase {
}

graph.sync { (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
}

let search = Search<Relationship>(graph: graph)
Expand Down
6 changes: 3 additions & 3 deletions Tests/RelationshipThreadTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class RelationshipThreadTests : XCTestCase, WatchRelationshipDelegate {
relationship.add(tags: "G")

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.insertSaveExpectation?.fulfill()
}
}
Expand All @@ -86,7 +86,7 @@ class RelationshipThreadTests : XCTestCase, WatchRelationshipDelegate {
relationship["P"] = 222

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.updateSaveExpectation?.fulfill()
}
}
Expand All @@ -102,7 +102,7 @@ class RelationshipThreadTests : XCTestCase, WatchRelationshipDelegate {
relationship.delete()

graph.async { [weak self] (success, error) in
XCTAssertTrue(success, "\(error)")
XCTAssertTrue(success, "\(String(describing: error))")
self?.deleteSaveExpectation?.fulfill()
}
}
Expand Down

0 comments on commit 91ef7da

Please sign in to comment.