Loading Kinetic.xcodeproj/project.pbxproj +2 −2 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ /* Begin PBXFileReference section */ 382D1C00FC0EC4F1BF676411 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3E07EA7E1B78E3B500DAB3F1 /* Kinetic.proto.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Kinetic.proto.swift; sourceTree = "<group>"; }; 3E0F7DDD1B7BDD3600F8213F /* Tutorial.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Tutorial.playground; sourceTree = "<group>"; }; 3EDAAB3D1B66D32D00F30808 /* Kinetic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Kinetic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3EDAAB401B66D32D00F30808 /* Kinetic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Kinetic.h; sourceTree = "<group>"; }; 3EDAAB421B66D32D00F30808 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; Loading @@ -45,7 +46,6 @@ 3EDAAB4C1B66D32D00F30808 /* KineticTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KineticTests.swift; sourceTree = "<group>"; }; 3EDAAB4E1B66D32D00F30808 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 3EDAAB571B66D47200F30808 /* Session.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Session.swift; sourceTree = "<group>"; }; 3EFB7F121B78EE0900988886 /* KineticPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; name = KineticPlayground.playground; path = "../../../../Library/Autosave Information/KineticPlayground.playground"; sourceTree = "<group>"; }; 3EFB7F1B1B7A55D100988886 /* Core.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Core.swift; sourceTree = "<group>"; }; 3EFB7F1D1B7A6A9800988886 /* Put.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Put.swift; sourceTree = "<group>"; }; 3EFB7F1F1B7A6C3300988886 /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = "<group>"; }; Loading Loading @@ -91,7 +91,7 @@ 3EDAAB331B66D32D00F30808 = { isa = PBXGroup; children = ( 3EFB7F121B78EE0900988886 /* KineticPlayground.playground */, 3E0F7DDD1B7BDD3600F8213F /* Tutorial.playground */, 3EDAAB3F1B66D32D00F30808 /* Kinetic */, 3EDAAB4B1B66D32D00F30808 /* KineticTests */, 3EDAAB3E1B66D32D00F30808 /* Products */, Loading Tutorial.playground/Contents.swift 0 → 100644 +25 −0 Original line number Diff line number Diff line //: Playground - noun: a place where people can play import Kinetic let c = Kinetic.connect("localhost", port: 8123) // commands let put = PutCommand(key:"nacho", value:"awesome") try put.sendTo(c) let get = GetCommand(key:"nacho") let x = try get.sendTo(c) String.fromUtf8(x.value!) // convenience extensions on the channel try c.put("hello", value: "from swift!") let v = try c.get("hello") String.fromUtf8(v.value!) let v2 = try c.get("wooow") v2.exists var d = try c.delete("hello") d.exists d = try c.delete("hello") d.exists No newline at end of file Tutorial.playground/contents.xcplayground 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <playground version='5.0' target-platform='osx' requires-full-environment='true'> <timeline fileName='timeline.xctimeline'/> </playground> No newline at end of file Tutorial.playground/timeline.xctimeline 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <Timeline version = "3.0"> <TimelineItems> </TimelineItems> </Timeline> Loading
Kinetic.xcodeproj/project.pbxproj +2 −2 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ /* Begin PBXFileReference section */ 382D1C00FC0EC4F1BF676411 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3E07EA7E1B78E3B500DAB3F1 /* Kinetic.proto.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Kinetic.proto.swift; sourceTree = "<group>"; }; 3E0F7DDD1B7BDD3600F8213F /* Tutorial.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Tutorial.playground; sourceTree = "<group>"; }; 3EDAAB3D1B66D32D00F30808 /* Kinetic.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Kinetic.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3EDAAB401B66D32D00F30808 /* Kinetic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Kinetic.h; sourceTree = "<group>"; }; 3EDAAB421B66D32D00F30808 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; Loading @@ -45,7 +46,6 @@ 3EDAAB4C1B66D32D00F30808 /* KineticTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KineticTests.swift; sourceTree = "<group>"; }; 3EDAAB4E1B66D32D00F30808 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 3EDAAB571B66D47200F30808 /* Session.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Session.swift; sourceTree = "<group>"; }; 3EFB7F121B78EE0900988886 /* KineticPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; name = KineticPlayground.playground; path = "../../../../Library/Autosave Information/KineticPlayground.playground"; sourceTree = "<group>"; }; 3EFB7F1B1B7A55D100988886 /* Core.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Core.swift; sourceTree = "<group>"; }; 3EFB7F1D1B7A6A9800988886 /* Put.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Put.swift; sourceTree = "<group>"; }; 3EFB7F1F1B7A6C3300988886 /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = "<group>"; }; Loading Loading @@ -91,7 +91,7 @@ 3EDAAB331B66D32D00F30808 = { isa = PBXGroup; children = ( 3EFB7F121B78EE0900988886 /* KineticPlayground.playground */, 3E0F7DDD1B7BDD3600F8213F /* Tutorial.playground */, 3EDAAB3F1B66D32D00F30808 /* Kinetic */, 3EDAAB4B1B66D32D00F30808 /* KineticTests */, 3EDAAB3E1B66D32D00F30808 /* Products */, Loading
Tutorial.playground/Contents.swift 0 → 100644 +25 −0 Original line number Diff line number Diff line //: Playground - noun: a place where people can play import Kinetic let c = Kinetic.connect("localhost", port: 8123) // commands let put = PutCommand(key:"nacho", value:"awesome") try put.sendTo(c) let get = GetCommand(key:"nacho") let x = try get.sendTo(c) String.fromUtf8(x.value!) // convenience extensions on the channel try c.put("hello", value: "from swift!") let v = try c.get("hello") String.fromUtf8(v.value!) let v2 = try c.get("wooow") v2.exists var d = try c.delete("hello") d.exists d = try c.delete("hello") d.exists No newline at end of file
Tutorial.playground/contents.xcplayground 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <playground version='5.0' target-platform='osx' requires-full-environment='true'> <timeline fileName='timeline.xctimeline'/> </playground> No newline at end of file
Tutorial.playground/timeline.xctimeline 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <Timeline version = "3.0"> <TimelineItems> </TimelineItems> </Timeline>