Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Converted to Swift 2 and updated dependencies #13

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
github "robrix/Madness" "significant-indentation"
github "robrix/Either" ~> 1.1
github "robrix/Box" ~> 1.0.1
github "robrix/Prelude" ~> 1.4
github "robrix/Madness" "master"
4 changes: 2 additions & 2 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "jspahrsummers/xcconfigs"
github "Quick/Quick" ~> 0.2.2
github "Quick/Nimble" ~> 0.2
github "Quick/Quick" ~> 0.8.0
github "Quick/Nimble" ~> 3.0.0
13 changes: 6 additions & 7 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
github "robrix/Box" "1.0.1"
github "robrix/Either" "1.1"
github "robrix/Madness" "b5e2882e924b2377da83adcdb59592ba7fdab52a"
github "Quick/Nimble" "v0.2.0"
github "robrix/Prelude" "1.4"
github "Quick/Quick" "v0.2.2"
github "jspahrsummers/xcconfigs" "0.7.1"
github "Quick/Nimble" "v3.0.0"
github "robrix/Prelude" "bd23a25d8c7c90a7a4b2505be65ad511c9d1db81"
github "Quick/Quick" "v0.8.0"
github "jspahrsummers/xcconfigs" "0.8.1"
github "robrix/Either" "1.3.1"
github "robrix/Madness" "d682f7854596dc01d1298446a8c49c8c70ffe5f8"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Madness
Submodule Madness updated 57 files
+8 −2 .gitmodules
+1 −0 Cartfile
+1 −0 Cartfile.private
+4 −0 Cartfile.resolved
+1 −0 Carthage/Checkouts/Assertions
+1 −0 Carthage/Checkouts/Either
+1 −0 Carthage/Checkouts/Prelude
+2 −2 Documentation/Collections.playground/contents.xcplayground
+3 −0 Documentation/Collections.playground/section-1.swift
+16 −0 Documentation/Collections.playground/section-2.swift
+0 −0 Documentation/Collections.playground/timeline.xctimeline
+8 −0 Documentation/Colours.playground/contents.xcplayground
+4 −0 Documentation/Colours.playground/section-1.swift
+22 −0 Documentation/Colours.playground/section-2.swift
+6 −0 Documentation/Colours.playground/timeline.xctimeline
+8 −0 Documentation/Lambda Calculus.playground/contents.xcplayground
+3 −0 Documentation/Lambda Calculus.playground/section-1.swift
+32 −0 Documentation/Lambda Calculus.playground/section-2.swift
+6 −0 Documentation/Lambda Calculus.playground/timeline.xctimeline
+0 −64 Documentation/Madness.playground/section-1.swift
+0 −12 Documentation/Madness.playground/timeline.xctimeline
+0 −2 Documentation/Significant Indentation.playground/section-2.swift
+1 −0 Documentation/Subset of Common Markdown.playground/contents.xcplayground
+0 −1 Documentation/Subset of Common Markdown.playground/section-1.swift
+66 −0 Documentation/Subset of Common Markdown.playground/section-2.swift
+40 −0 Documentation/Subset of Common Markdown.playground/timeline.xctimeline
+0 −1 External/Either
+372 −41 Madness.xcodeproj/project.pbxproj
+16 −13 Madness.xcodeproj/xcshareddata/xcschemes/Madness-Mac.xcscheme
+113 −0 Madness.xcodeproj/xcshareddata/xcschemes/Madness-iOS.xcscheme
+11 −5 Madness.xcworkspace/contents.xcworkspacedata
+37 −0 Madness.xcworkspace/xcshareddata/Madness.xcscmblueprint
+86 −0 Madness/Alternation.swift
+35 −0 Madness/Concatenation.swift
+90 −0 Madness/Error.swift
+1 −1 Madness/Info.plist
+81 −0 Madness/Map.swift
+103 −185 Madness/Parser.swift
+20 −0 Madness/Reduction.swift
+70 −0 Madness/Repetition.swift
+56 −0 Madness/SourcePos.swift
+74 −8 Madness/String.swift
+98 −0 MadnessTests/AlternationTests.swift
+0 −59 MadnessTests/Assertions.swift
+0 −69 MadnessTests/BindTests.swift
+27 −0 MadnessTests/CollectionTests.swift
+66 −0 MadnessTests/ConcatenationTests.swift
+35 −0 MadnessTests/ErrorTests.swift
+47 −0 MadnessTests/Fixtures.swift
+28 −0 MadnessTests/IgnoreTests.swift
+1 −1 MadnessTests/Info.plist
+111 −0 MadnessTests/MapTests.swift
+29 −223 MadnessTests/ParserTests.swift
+35 −0 MadnessTests/ReductionTests.swift
+201 −0 MadnessTests/RepetitionTests.swift
+61 −0 MadnessTests/StringTests.swift
+35 −13 README.md
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 107 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
Submodule Quick updated 75 files
+11 −0 .gitignore
+1 −0 .travis.yml
+24 −1 CONTRIBUTING.md
+220 −0 Documentation/ArrangeActAssert.md
+87 −0 Documentation/BehavioralTesting.md
+103 −0 Documentation/ConfiguringQuick.md
+28 −0 Documentation/InstallingFileTemplates.md
+177 −0 Documentation/InstallingQuick.md
+28 −0 Documentation/MoreResources.md
+106 −0 Documentation/NimbleAssertions.md
+488 −0 Documentation/QuickExamplesAndGroups.md
+53 −0 Documentation/QuickInObjectiveC.md
+42 −0 Documentation/README.md
+76 −0 Documentation/SettingUpYourXcodeProject.md
+125 −0 Documentation/SharedExamples.md
+179 −0 Documentation/TestingApps.md
+1 −1 Externals/Nimble
+6 −0 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h
+10 −0 Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m
+8 −0 Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift
+ Quick Templates/Quick Configuration Class.xctemplate/TemplateIcon.icns
+73 −0 Quick Templates/Quick Configuration Class.xctemplate/TemplateInfo.plist
+14 −4 Quick.podspec
+545 −81 Quick.xcodeproj/project.pbxproj
+0 −1,348 Quick.xcodeproj/project.pbxproj.orig
+4 −1 Quick.xcodeproj/xcshareddata/xcschemes/Quick-OSX.xcscheme
+4 −1 Quick.xcodeproj/xcshareddata/xcschemes/Quick-iOS.xcscheme
+109 −0 Quick.xcodeproj/xcshareddata/xcschemes/Quick-tvOS.xcscheme
+3 −3 Quick/Callsite.swift
+5 −5 Quick/Configuration/Configuration.swift
+1 −1 Quick/Configuration/QuickConfiguration.m
+47 −47 Quick/DSL/DSL.swift
+39 −16 Quick/DSL/QCKDSL.h
+13 −4 Quick/DSL/QCKDSL.m
+20 −0 Quick/DSL/World+DSL.h
+25 −23 Quick/DSL/World+DSL.swift
+7 −3 Quick/Example.swift
+12 −8 Quick/ExampleGroup.swift
+1 −1 Quick/ExampleMetadata.swift
+0 −16 Quick/Failure.swift
+3 −1 Quick/Filter.swift
+1 −1 Quick/Info.plist
+3 −5 Quick/Quick.h
+24 −7 Quick/QuickSpec.m
+17 −0 Quick/World.h
+16 −16 Quick/World.swift
+8 −8 QuickFocusedTests/FocusedTests+ObjC.m
+1 −1 QuickFocusedTests/Info.plist
+0 −25 QuickTests/ExampleMetadataFunctionalTests.swift
+1 −1 QuickTests/Fixtures/FunctionalTests_SharedExamplesTests_SharedExamples.swift
+0 −27 QuickTests/Fixtures/Person.swift
+0 −11 QuickTests/Fixtures/Poet.swift
+0 −65 QuickTests/FunctionalTests+ObjC.m
+0 −156 QuickTests/FunctionalTests.swift
+4 −4 QuickTests/FunctionalTests/AfterEachTests+ObjC.m
+42 −0 QuickTests/FunctionalTests/AfterSuiteTests+ObjC.m
+1 −1 QuickTests/FunctionalTests/AfterSuiteTests.swift
+4 −4 QuickTests/FunctionalTests/BeforeEachTests+ObjC.m
+6 −6 QuickTests/FunctionalTests/BeforeSuiteTests+ObjC.m
+1 −1 QuickTests/FunctionalTests/BeforeSuiteTests.swift
+15 −19 QuickTests/FunctionalTests/FailureTests+ObjC.m
+55 −0 QuickTests/FunctionalTests/FailureUsingXCTAssertTests+ObjC.m
+6 −8 QuickTests/FunctionalTests/ItTests+ObjC.m
+1 −1 QuickTests/FunctionalTests/ItTests.swift
+6 −6 QuickTests/FunctionalTests/PendingTests+ObjC.m
+59 −0 QuickTests/FunctionalTests/SharedExamples+BeforeEachTests+ObjC.m
+65 −0 QuickTests/FunctionalTests/SharedExamplesTests+ObjC.m
+0 −21 QuickTests/FunctionalTests/WorldExampleMetadataFunctionalTests.swift
+12 −4 QuickTests/Helpers/QCKSpecRunner.m
+1 −6 QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h
+1 −1 QuickTests/Info.plist
+25 −938 README.md
+1 −1 Rakefile
+18 −0 circle.yml
+199 −0 script/release
2 changes: 1 addition & 1 deletion Carthage/Checkouts/xcconfigs
5 changes: 1 addition & 4 deletions OGDL.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
/* Begin PBXBuildFile section */
D00F9CDB1A5DC12500B4851E /* OGDL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CD01A5DC12500B4851E /* OGDL.framework */; };
D00F9CEA1A5DC1C900B4851E /* OGDL.h in Headers */ = {isa = PBXBuildFile; fileRef = D0BBBFC01A5DBF26007913DA /* OGDL.h */; settings = {ATTRIBUTES = (Public, ); }; };
D00F9CEF1A5DC45D00B4851E /* Box.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEB1A5DC45D00B4851E /* Box.framework */; };
D00F9CF01A5DC45D00B4851E /* Either.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEC1A5DC45D00B4851E /* Either.framework */; };
D00F9CF11A5DC45D00B4851E /* Madness.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CED1A5DC45D00B4851E /* Madness.framework */; };
D00F9CF21A5DC45D00B4851E /* Prelude.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEE1A5DC45D00B4851E /* Prelude.framework */; };
D00F9CF31A5DC47500B4851E /* Box.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEB1A5DC45D00B4851E /* Box.framework */; };
D00F9CF41A5DC47500B4851E /* Either.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEC1A5DC45D00B4851E /* Either.framework */; };
D00F9CF51A5DC47500B4851E /* Madness.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CED1A5DC45D00B4851E /* Madness.framework */; };
D00F9CF61A5DC47500B4851E /* Prelude.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D00F9CEE1A5DC45D00B4851E /* Prelude.framework */; };
Expand Down Expand Up @@ -110,7 +108,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D00F9CEF1A5DC45D00B4851E /* Box.framework in Frameworks */,
D00F9CF01A5DC45D00B4851E /* Either.framework in Frameworks */,
D00F9CF11A5DC45D00B4851E /* Madness.framework in Frameworks */,
D00F9CF21A5DC45D00B4851E /* Prelude.framework in Frameworks */,
Expand All @@ -122,7 +119,6 @@
buildActionMask = 2147483647;
files = (
D0BBBFC71A5DBF26007913DA /* OGDL.framework in Frameworks */,
D00F9CF31A5DC47500B4851E /* Box.framework in Frameworks */,
D00F9CF41A5DC47500B4851E /* Either.framework in Frameworks */,
D00F9CFD1A5DC51300B4851E /* Nimble.framework in Frameworks */,
D00F9CF51A5DC47500B4851E /* Madness.framework in Frameworks */,
Expand Down Expand Up @@ -364,6 +360,7 @@
D0BBBFB21A5DBF26007913DA /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0610;
ORGANIZATIONNAME = Carthage;
TargetAttributes = {
Expand Down
3 changes: 0 additions & 3 deletions OGDL.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions OGDL.xcworkspace/xcshareddata/OGDL.xcscmblueprint
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this should be in git.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to add it to .gitignore and git rm --cached ….

"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D01149946CBFB7F4D884E8659DC65D5DEB658A19",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {

},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"D01149946CBFB7F4D884E8659DC65D5DEB658A19" : 0,
"D5FA66743146831DA2A20C0EAE4583EF424D9041" : 0,
"D0725CAC6FF2D66F2C83C2C48DC12106D42DAA64" : 0,
"9A760A1EBAC1979D46EF016B1BE84D98E53C16FF" : 0,
"95438028B10BBB846574013D29F154A00556A9D1" : 0,
"E084C86B03F81D63323C9E7510697EA528A758C7" : 0,
"57C931977B7D2307CC013C2BD93F90CF7C676790" : 0,
"7FCD68358D0D5A67F26F2A5E7B31EB3EF0CB2C00" : 0
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "E83B8028-25D4-408D-B553-312799016D19",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"D01149946CBFB7F4D884E8659DC65D5DEB658A19" : "ogdl-swift\/",
"D5FA66743146831DA2A20C0EAE4583EF424D9041" : "ogdl-swift\/Carthage\/Checkouts\/Either\/",
"D0725CAC6FF2D66F2C83C2C48DC12106D42DAA64" : "ogdl-swift\/Carthage\/Checkouts\/Quick\/",
"9A760A1EBAC1979D46EF016B1BE84D98E53C16FF" : "ogdl-swift\/Carthage\/Checkouts\/Prelude\/",
"95438028B10BBB846574013D29F154A00556A9D1" : "ogdl-swift\/Carthage\/Checkouts\/Quick\/Externals\/Nimble\/",
"E084C86B03F81D63323C9E7510697EA528A758C7" : "ogdl-swift\/Carthage\/Checkouts\/xcconfigs\/",
"57C931977B7D2307CC013C2BD93F90CF7C676790" : "ogdl-swift\/Carthage\/Checkouts\/Box\/",
"7FCD68358D0D5A67F26F2A5E7B31EB3EF0CB2C00" : "ogdl-swift\/Carthage\/Checkouts\/Madness\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "OGDL",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "OGDL.xcworkspace",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/robrix\/Box.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "57C931977B7D2307CC013C2BD93F90CF7C676790"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/robrix\/Madness.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "7FCD68358D0D5A67F26F2A5E7B31EB3EF0CB2C00"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/Quick\/Nimble.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "95438028B10BBB846574013D29F154A00556A9D1"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/Quick\/Nimble.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "95438028B10BBB846574013D29F154A00556A9D1"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/robrix\/Prelude.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "9A760A1EBAC1979D46EF016B1BE84D98E53C16FF"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/coenert\/ogdl-swift.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D01149946CBFB7F4D884E8659DC65D5DEB658A19"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/Quick\/Quick.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D0725CAC6FF2D66F2C83C2C48DC12106D42DAA64"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/robrix\/Either.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D5FA66743146831DA2A20C0EAE4583EF424D9041"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/jspahrsummers\/xcconfigs.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "E084C86B03F81D63323C9E7510697EA528A758C7"
}
]
}
6 changes: 3 additions & 3 deletions OGDL/Graph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension Node: Hashable {
}
}

extension Node: Printable {
extension Node: CustomStringConvertible {
public var description: String {
var string = ""
if value.rangeOfCharacterFromSet(NSCharacterSet.alphanumericCharacterSet().invertedSet) == nil {
Expand All @@ -47,8 +47,8 @@ extension Node: Printable {
}

if !children.isEmpty {
let childDescriptions = map(children) { $0.description }
string += " (" + join(", ", childDescriptions) + ")"
let childDescriptions = children.map { $0.description }
string += " (" + childDescriptions.joinWithSeparator(", ") + ")"
}

return string
Expand Down
Loading