├── .gitignore ├── CHANGELOG.md ├── Cartfile ├── Cartfile.resolved ├── Carthage └── Checkouts │ ├── Commander │ ├── .gitignore │ ├── .swift-version │ ├── .travis.yml │ ├── Carthage │ │ └── Build │ ├── Commander.png │ ├── Commander.podspec.json │ ├── Examples │ │ ├── Makefile │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── README.md │ │ ├── generator-template.swift │ │ ├── generator.swift │ │ ├── hello.swift │ │ └── pod.swift │ ├── LICENSE │ ├── Makefile │ ├── Package.swift │ ├── README.md │ ├── Sources │ │ ├── ArgumentConvertible.swift │ │ ├── ArgumentDescription.swift │ │ ├── ArgumentParser.swift │ │ ├── Command.swift │ │ ├── CommandRunner.swift │ │ ├── CommandType.swift │ │ ├── Commands.swift │ │ └── Group.swift │ └── Tests │ │ ├── .gitignore │ │ ├── ArgumentConvertibleSpec.swift │ │ ├── ArgumentParserSpec.swift │ │ ├── CommandSpec.swift │ │ ├── CommandTypeSpec.swift │ │ ├── GroupSpec.swift │ │ └── main.swift │ ├── SWXMLHash │ ├── .gitignore │ ├── .swiftlint.yml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── Package.swift │ ├── README.md │ ├── Rakefile │ ├── SWXMLHash.podspec │ ├── SWXMLHash.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── SWXMLHash OSX.xcscheme │ │ │ ├── SWXMLHash iOS.xcscheme │ │ │ ├── SWXMLHash tvOS.xcscheme │ │ │ └── SWXMLHash watchOS.xcscheme │ ├── SWXMLHash.xcworkspace │ │ └── contents.xcworkspacedata │ ├── SWXMLHashPlayground.playground │ │ ├── contents.xcplayground │ │ └── section-1.swift │ ├── Scripts │ │ └── build.sh │ ├── Source │ │ ├── Info.plist │ │ ├── SWXMLHash+TypeConversion.swift │ │ ├── SWXMLHash.h │ │ └── SWXMLHash.swift │ └── Tests │ │ ├── Info.plist │ │ ├── LazyTypesConversionTests.swift │ │ ├── LazyWhiteSpaceParsingTests.swift │ │ ├── LazyXMLParsingTests.swift │ │ ├── MixedTextWithXMLElementsTests.swift │ │ ├── SWXMLHashConfigTests.swift │ │ ├── TypeConversionArrayOfNonPrimitiveTypesTests.swift │ │ ├── TypeConversionBasicTypesTests.swift │ │ ├── TypeConversionComplexTypesTests.swift │ │ ├── TypeConversionPrimitypeTypesTests.swift │ │ ├── WhiteSpaceParsingTests.swift │ │ ├── XMLParsingTests.swift │ │ └── test.xml │ ├── SourceKitten │ ├── .gitattributes │ ├── .gitignore │ ├── .gitmodules │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── Cartfile │ ├── Cartfile.private │ ├── Cartfile.resolved │ ├── Carthage │ │ └── Checkouts │ │ │ ├── Commandant │ │ │ ├── .gitignore │ │ │ ├── .gitmodules │ │ │ ├── .swift-version │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── Cartfile │ │ │ ├── Cartfile.private │ │ │ ├── Cartfile.resolved │ │ │ ├── Carthage │ │ │ │ └── Checkouts │ │ │ │ │ ├── Nimble │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── .ruby-version │ │ │ │ │ ├── .swift-version │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── Gemfile │ │ │ │ │ ├── Gemfile.lock │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ ├── Nimble.podspec │ │ │ │ │ ├── Nimble.xcodeproj │ │ │ │ │ │ ├── project.pbxproj │ │ │ │ │ │ ├── project.xcworkspace │ │ │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ │ └── xcschemes │ │ │ │ │ │ │ ├── Nimble-OSX.xcscheme │ │ │ │ │ │ │ ├── Nimble-iOS.xcscheme │ │ │ │ │ │ │ └── Nimble-tvOS.xcscheme │ │ │ │ │ ├── Package.swift │ │ │ │ │ ├── README.md │ │ │ │ │ ├── Sources │ │ │ │ │ │ └── Nimble │ │ │ │ │ │ │ ├── Adapters │ │ │ │ │ │ │ ├── AdapterProtocols.swift │ │ │ │ │ │ │ ├── AssertionDispatcher.swift │ │ │ │ │ │ │ ├── AssertionRecorder.swift │ │ │ │ │ │ │ ├── NimbleEnvironment.swift │ │ │ │ │ │ │ ├── NimbleXCTestHandler.swift │ │ │ │ │ │ │ ├── NonObjectiveC │ │ │ │ │ │ │ │ └── ExceptionCapture.swift │ │ │ │ │ │ │ └── ObjectiveC │ │ │ │ │ │ │ │ ├── CurrentTestCaseTracker.h │ │ │ │ │ │ │ │ ├── DSL.h │ │ │ │ │ │ │ │ ├── DSL.m │ │ │ │ │ │ │ │ ├── NMBExceptionCapture.h │ │ │ │ │ │ │ │ ├── NMBExceptionCapture.m │ │ │ │ │ │ │ │ ├── NMBExpectation.swift │ │ │ │ │ │ │ │ ├── NMBObjCMatcher.swift │ │ │ │ │ │ │ │ ├── NMBStringify.h │ │ │ │ │ │ │ │ ├── NMBStringify.m │ │ │ │ │ │ │ │ └── XCTestObservationCenter+Register.m │ │ │ │ │ │ │ ├── DSL+Wait.swift │ │ │ │ │ │ │ ├── DSL.swift │ │ │ │ │ │ │ ├── Expectation.swift │ │ │ │ │ │ │ ├── Expression.swift │ │ │ │ │ │ │ ├── FailureMessage.swift │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ ├── Matchers │ │ │ │ │ │ │ ├── AllPass.swift │ │ │ │ │ │ │ ├── AsyncMatcherWrapper.swift │ │ │ │ │ │ │ ├── BeAKindOf.swift │ │ │ │ │ │ │ ├── BeAnInstanceOf.swift │ │ │ │ │ │ │ ├── BeCloseTo.swift │ │ │ │ │ │ │ ├── BeEmpty.swift │ │ │ │ │ │ │ ├── BeGreaterThan.swift │ │ │ │ │ │ │ ├── BeGreaterThanOrEqualTo.swift │ │ │ │ │ │ │ ├── BeIdenticalTo.swift │ │ │ │ │ │ │ ├── BeLessThan.swift │ │ │ │ │ │ │ ├── BeLessThanOrEqual.swift │ │ │ │ │ │ │ ├── BeLogical.swift │ │ │ │ │ │ │ ├── BeNil.swift │ │ │ │ │ │ │ ├── BeVoid.swift │ │ │ │ │ │ │ ├── BeginWith.swift │ │ │ │ │ │ │ ├── Contain.swift │ │ │ │ │ │ │ ├── EndWith.swift │ │ │ │ │ │ │ ├── Equal.swift │ │ │ │ │ │ │ ├── HaveCount.swift │ │ │ │ │ │ │ ├── Match.swift │ │ │ │ │ │ │ ├── MatchError.swift │ │ │ │ │ │ │ ├── MatcherFunc.swift │ │ │ │ │ │ │ ├── MatcherProtocols.swift │ │ │ │ │ │ │ ├── PostNotification.swift │ │ │ │ │ │ │ ├── RaisesException.swift │ │ │ │ │ │ │ ├── SatisfyAnyOf.swift │ │ │ │ │ │ │ └── ThrowError.swift │ │ │ │ │ │ │ ├── Nimble.h │ │ │ │ │ │ │ └── Utils │ │ │ │ │ │ │ ├── Async.swift │ │ │ │ │ │ │ ├── Errors.swift │ │ │ │ │ │ │ ├── Functional.swift │ │ │ │ │ │ │ ├── SourceLocation.swift │ │ │ │ │ │ │ └── Stringers.swift │ │ │ │ │ ├── Tests │ │ │ │ │ │ ├── LinuxMain.swift │ │ │ │ │ │ └── Nimble │ │ │ │ │ │ │ ├── AsynchronousTest.swift │ │ │ │ │ │ │ ├── Helpers │ │ │ │ │ │ │ ├── ObjectWithLazyProperty.swift │ │ │ │ │ │ │ ├── XCTestCaseProvider.swift │ │ │ │ │ │ │ └── utils.swift │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ ├── Matchers │ │ │ │ │ │ │ ├── AllPassTest.swift │ │ │ │ │ │ │ ├── BeAKindOfTest.swift │ │ │ │ │ │ │ ├── BeAnInstanceOfTest.swift │ │ │ │ │ │ │ ├── BeCloseToTest.swift │ │ │ │ │ │ │ ├── BeEmptyTest.swift │ │ │ │ │ │ │ ├── BeGreaterThanOrEqualToTest.swift │ │ │ │ │ │ │ ├── BeGreaterThanTest.swift │ │ │ │ │ │ │ ├── BeIdenticalToObjectTest.swift │ │ │ │ │ │ │ ├── BeIdenticalToTest.swift │ │ │ │ │ │ │ ├── BeLessThanOrEqualToTest.swift │ │ │ │ │ │ │ ├── BeLessThanTest.swift │ │ │ │ │ │ │ ├── BeLogicalTest.swift │ │ │ │ │ │ │ ├── BeNilTest.swift │ │ │ │ │ │ │ ├── BeVoidTest.swift │ │ │ │ │ │ │ ├── BeginWithTest.swift │ │ │ │ │ │ │ ├── ContainTest.swift │ │ │ │ │ │ │ ├── EndWithTest.swift │ │ │ │ │ │ │ ├── EqualTest.swift │ │ │ │ │ │ │ ├── HaveCountTest.swift │ │ │ │ │ │ │ ├── MatchErrorTest.swift │ │ │ │ │ │ │ ├── MatchTest.swift │ │ │ │ │ │ │ ├── PostNotificationTest.swift │ │ │ │ │ │ │ ├── RaisesExceptionTest.swift │ │ │ │ │ │ │ ├── SatisfyAnyOfTest.swift │ │ │ │ │ │ │ └── ThrowErrorTest.swift │ │ │ │ │ │ │ ├── SynchronousTests.swift │ │ │ │ │ │ │ ├── UserDescriptionTest.swift │ │ │ │ │ │ │ └── objc │ │ │ │ │ │ │ ├── NimbleSpecHelper.h │ │ │ │ │ │ │ ├── ObjCAllPassTest.m │ │ │ │ │ │ │ ├── ObjCAsyncTest.m │ │ │ │ │ │ │ ├── ObjCBeAnInstanceOfTest.m │ │ │ │ │ │ │ ├── ObjCBeCloseToTest.m │ │ │ │ │ │ │ ├── ObjCBeEmptyTest.m │ │ │ │ │ │ │ ├── ObjCBeFalseTest.m │ │ │ │ │ │ │ ├── ObjCBeFalsyTest.m │ │ │ │ │ │ │ ├── ObjCBeGreaterThanOrEqualToTest.m │ │ │ │ │ │ │ ├── ObjCBeGreaterThanTest.m │ │ │ │ │ │ │ ├── ObjCBeIdenticalToTest.m │ │ │ │ │ │ │ ├── ObjCBeKindOfTest.m │ │ │ │ │ │ │ ├── ObjCBeLessThanOrEqualToTest.m │ │ │ │ │ │ │ ├── ObjCBeLessThanTest.m │ │ │ │ │ │ │ ├── ObjCBeNilTest.m │ │ │ │ │ │ │ ├── ObjCBeTrueTest.m │ │ │ │ │ │ │ ├── ObjCBeTruthyTest.m │ │ │ │ │ │ │ ├── ObjCBeginWithTest.m │ │ │ │ │ │ │ ├── ObjCContainTest.m │ │ │ │ │ │ │ ├── ObjCEndWithTest.m │ │ │ │ │ │ │ ├── ObjCEqualTest.m │ │ │ │ │ │ │ ├── ObjCHaveCount.m │ │ │ │ │ │ │ ├── ObjCMatchTest.m │ │ │ │ │ │ │ ├── ObjCRaiseExceptionTest.m │ │ │ │ │ │ │ ├── ObjCSatisfyAnyOfTest.m │ │ │ │ │ │ │ ├── ObjCSyncTest.m │ │ │ │ │ │ │ ├── ObjCUserDescriptionTest.m │ │ │ │ │ │ │ └── ObjcStringersTest.m │ │ │ │ │ ├── circle.yml │ │ │ │ │ ├── script │ │ │ │ │ │ └── release │ │ │ │ │ └── test │ │ │ │ │ ├── Quick │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── .gitmodules │ │ │ │ │ ├── .ruby-version │ │ │ │ │ ├── .swift-version │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── Documentation │ │ │ │ │ │ ├── en-us │ │ │ │ │ │ │ ├── ArrangeActAssert.md │ │ │ │ │ │ │ ├── BehavioralTesting.md │ │ │ │ │ │ │ ├── ConfiguringQuick.md │ │ │ │ │ │ │ ├── InstallingFileTemplates.md │ │ │ │ │ │ │ ├── InstallingQuick.md │ │ │ │ │ │ │ ├── MoreResources.md │ │ │ │ │ │ │ ├── NimbleAssertions.md │ │ │ │ │ │ │ ├── QuickExamplesAndGroups.md │ │ │ │ │ │ │ ├── QuickInObjectiveC.md │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── SettingUpYourXcodeProject.md │ │ │ │ │ │ │ ├── SharedExamples.md │ │ │ │ │ │ │ └── TestingApps.md │ │ │ │ │ │ ├── ja │ │ │ │ │ │ │ ├── ArrangeActAssert.md │ │ │ │ │ │ │ ├── BehavioralTesting.md │ │ │ │ │ │ │ ├── ConfiguringQuick.md │ │ │ │ │ │ │ ├── InstallingFileTemplates.md │ │ │ │ │ │ │ ├── InstallingQuick.md │ │ │ │ │ │ │ ├── MoreResources.md │ │ │ │ │ │ │ ├── NimbleAssertions.md │ │ │ │ │ │ │ ├── QuickExamplesAndGroups.md │ │ │ │ │ │ │ ├── QuickInObjectiveC.md │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── SettingUpYourXcodeProject.md │ │ │ │ │ │ │ ├── SharedExamples.md │ │ │ │ │ │ │ └── TestingApps.md │ │ │ │ │ │ └── zh-cn │ │ │ │ │ │ │ └── SettingUpYourXcodeProject.md │ │ │ │ │ ├── Externals │ │ │ │ │ │ └── Nimble │ │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ │ ├── .ruby-version │ │ │ │ │ │ │ ├── .swift-version │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ │ │ ├── Gemfile │ │ │ │ │ │ │ ├── Gemfile.lock │ │ │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ │ │ ├── Nimble.podspec │ │ │ │ │ │ │ ├── Nimble.xcodeproj │ │ │ │ │ │ │ ├── project.pbxproj │ │ │ │ │ │ │ ├── project.xcworkspace │ │ │ │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ │ │ └── xcschemes │ │ │ │ │ │ │ │ ├── Nimble-OSX.xcscheme │ │ │ │ │ │ │ │ ├── Nimble-iOS.xcscheme │ │ │ │ │ │ │ │ └── Nimble-tvOS.xcscheme │ │ │ │ │ │ │ ├── Package.swift │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── Sources │ │ │ │ │ │ │ └── Nimble │ │ │ │ │ │ │ │ ├── Adapters │ │ │ │ │ │ │ │ ├── AdapterProtocols.swift │ │ │ │ │ │ │ │ ├── AssertionDispatcher.swift │ │ │ │ │ │ │ │ ├── AssertionRecorder.swift │ │ │ │ │ │ │ │ ├── NimbleEnvironment.swift │ │ │ │ │ │ │ │ ├── NimbleXCTestHandler.swift │ │ │ │ │ │ │ │ ├── NonObjectiveC │ │ │ │ │ │ │ │ │ └── ExceptionCapture.swift │ │ │ │ │ │ │ │ └── ObjectiveC │ │ │ │ │ │ │ │ │ ├── CurrentTestCaseTracker.h │ │ │ │ │ │ │ │ │ ├── DSL.h │ │ │ │ │ │ │ │ │ ├── DSL.m │ │ │ │ │ │ │ │ │ ├── NMBExceptionCapture.h │ │ │ │ │ │ │ │ │ ├── NMBExceptionCapture.m │ │ │ │ │ │ │ │ │ ├── NMBExpectation.swift │ │ │ │ │ │ │ │ │ ├── NMBObjCMatcher.swift │ │ │ │ │ │ │ │ │ ├── NMBStringify.h │ │ │ │ │ │ │ │ │ ├── NMBStringify.m │ │ │ │ │ │ │ │ │ └── XCTestObservationCenter+Register.m │ │ │ │ │ │ │ │ ├── DSL+Wait.swift │ │ │ │ │ │ │ │ ├── DSL.swift │ │ │ │ │ │ │ │ ├── Expectation.swift │ │ │ │ │ │ │ │ ├── Expression.swift │ │ │ │ │ │ │ │ ├── FailureMessage.swift │ │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ │ ├── Matchers │ │ │ │ │ │ │ │ ├── AllPass.swift │ │ │ │ │ │ │ │ ├── AsyncMatcherWrapper.swift │ │ │ │ │ │ │ │ ├── BeAKindOf.swift │ │ │ │ │ │ │ │ ├── BeAnInstanceOf.swift │ │ │ │ │ │ │ │ ├── BeCloseTo.swift │ │ │ │ │ │ │ │ ├── BeEmpty.swift │ │ │ │ │ │ │ │ ├── BeGreaterThan.swift │ │ │ │ │ │ │ │ ├── BeGreaterThanOrEqualTo.swift │ │ │ │ │ │ │ │ ├── BeIdenticalTo.swift │ │ │ │ │ │ │ │ ├── BeLessThan.swift │ │ │ │ │ │ │ │ ├── BeLessThanOrEqual.swift │ │ │ │ │ │ │ │ ├── BeLogical.swift │ │ │ │ │ │ │ │ ├── BeNil.swift │ │ │ │ │ │ │ │ ├── BeVoid.swift │ │ │ │ │ │ │ │ ├── BeginWith.swift │ │ │ │ │ │ │ │ ├── Contain.swift │ │ │ │ │ │ │ │ ├── EndWith.swift │ │ │ │ │ │ │ │ ├── Equal.swift │ │ │ │ │ │ │ │ ├── HaveCount.swift │ │ │ │ │ │ │ │ ├── Match.swift │ │ │ │ │ │ │ │ ├── MatchError.swift │ │ │ │ │ │ │ │ ├── MatcherFunc.swift │ │ │ │ │ │ │ │ ├── MatcherProtocols.swift │ │ │ │ │ │ │ │ ├── PostNotification.swift │ │ │ │ │ │ │ │ ├── RaisesException.swift │ │ │ │ │ │ │ │ ├── SatisfyAnyOf.swift │ │ │ │ │ │ │ │ └── ThrowError.swift │ │ │ │ │ │ │ │ ├── Nimble.h │ │ │ │ │ │ │ │ └── Utils │ │ │ │ │ │ │ │ ├── Async.swift │ │ │ │ │ │ │ │ ├── Errors.swift │ │ │ │ │ │ │ │ ├── Functional.swift │ │ │ │ │ │ │ │ ├── SourceLocation.swift │ │ │ │ │ │ │ │ └── Stringers.swift │ │ │ │ │ │ │ ├── Tests │ │ │ │ │ │ │ ├── LinuxMain.swift │ │ │ │ │ │ │ └── Nimble │ │ │ │ │ │ │ │ ├── AsynchronousTest.swift │ │ │ │ │ │ │ │ ├── Helpers │ │ │ │ │ │ │ │ ├── ObjectWithLazyProperty.swift │ │ │ │ │ │ │ │ ├── XCTestCaseProvider.swift │ │ │ │ │ │ │ │ └── utils.swift │ │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ │ ├── Matchers │ │ │ │ │ │ │ │ ├── AllPassTest.swift │ │ │ │ │ │ │ │ ├── BeAKindOfTest.swift │ │ │ │ │ │ │ │ ├── BeAnInstanceOfTest.swift │ │ │ │ │ │ │ │ ├── BeCloseToTest.swift │ │ │ │ │ │ │ │ ├── BeEmptyTest.swift │ │ │ │ │ │ │ │ ├── BeGreaterThanOrEqualToTest.swift │ │ │ │ │ │ │ │ ├── BeGreaterThanTest.swift │ │ │ │ │ │ │ │ ├── BeIdenticalToObjectTest.swift │ │ │ │ │ │ │ │ ├── BeIdenticalToTest.swift │ │ │ │ │ │ │ │ ├── BeLessThanOrEqualToTest.swift │ │ │ │ │ │ │ │ ├── BeLessThanTest.swift │ │ │ │ │ │ │ │ ├── BeLogicalTest.swift │ │ │ │ │ │ │ │ ├── BeNilTest.swift │ │ │ │ │ │ │ │ ├── BeVoidTest.swift │ │ │ │ │ │ │ │ ├── BeginWithTest.swift │ │ │ │ │ │ │ │ ├── ContainTest.swift │ │ │ │ │ │ │ │ ├── EndWithTest.swift │ │ │ │ │ │ │ │ ├── EqualTest.swift │ │ │ │ │ │ │ │ ├── HaveCountTest.swift │ │ │ │ │ │ │ │ ├── MatchErrorTest.swift │ │ │ │ │ │ │ │ ├── MatchTest.swift │ │ │ │ │ │ │ │ ├── PostNotificationTest.swift │ │ │ │ │ │ │ │ ├── RaisesExceptionTest.swift │ │ │ │ │ │ │ │ ├── SatisfyAnyOfTest.swift │ │ │ │ │ │ │ │ └── ThrowErrorTest.swift │ │ │ │ │ │ │ │ ├── SynchronousTests.swift │ │ │ │ │ │ │ │ ├── UserDescriptionTest.swift │ │ │ │ │ │ │ │ └── objc │ │ │ │ │ │ │ │ ├── NimbleSpecHelper.h │ │ │ │ │ │ │ │ ├── ObjCAllPassTest.m │ │ │ │ │ │ │ │ ├── ObjCAsyncTest.m │ │ │ │ │ │ │ │ ├── ObjCBeAnInstanceOfTest.m │ │ │ │ │ │ │ │ ├── ObjCBeCloseToTest.m │ │ │ │ │ │ │ │ ├── ObjCBeEmptyTest.m │ │ │ │ │ │ │ │ ├── ObjCBeFalseTest.m │ │ │ │ │ │ │ │ ├── ObjCBeFalsyTest.m │ │ │ │ │ │ │ │ ├── ObjCBeGreaterThanOrEqualToTest.m │ │ │ │ │ │ │ │ ├── ObjCBeGreaterThanTest.m │ │ │ │ │ │ │ │ ├── ObjCBeIdenticalToTest.m │ │ │ │ │ │ │ │ ├── ObjCBeKindOfTest.m │ │ │ │ │ │ │ │ ├── ObjCBeLessThanOrEqualToTest.m │ │ │ │ │ │ │ │ ├── ObjCBeLessThanTest.m │ │ │ │ │ │ │ │ ├── ObjCBeNilTest.m │ │ │ │ │ │ │ │ ├── ObjCBeTrueTest.m │ │ │ │ │ │ │ │ ├── ObjCBeTruthyTest.m │ │ │ │ │ │ │ │ ├── ObjCBeginWithTest.m │ │ │ │ │ │ │ │ ├── ObjCContainTest.m │ │ │ │ │ │ │ │ ├── ObjCEndWithTest.m │ │ │ │ │ │ │ │ ├── ObjCEqualTest.m │ │ │ │ │ │ │ │ ├── ObjCHaveCount.m │ │ │ │ │ │ │ │ ├── ObjCMatchTest.m │ │ │ │ │ │ │ │ ├── ObjCRaiseExceptionTest.m │ │ │ │ │ │ │ │ ├── ObjCSatisfyAnyOfTest.m │ │ │ │ │ │ │ │ ├── ObjCSyncTest.m │ │ │ │ │ │ │ │ ├── ObjCUserDescriptionTest.m │ │ │ │ │ │ │ │ └── ObjcStringersTest.m │ │ │ │ │ │ │ ├── circle.yml │ │ │ │ │ │ │ ├── script │ │ │ │ │ │ │ └── release │ │ │ │ │ │ │ └── test │ │ │ │ │ ├── Gemfile │ │ │ │ │ ├── Gemfile.lock │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Package.swift │ │ │ │ │ ├── Quick Templates │ │ │ │ │ │ ├── Quick Configuration Class.xctemplate │ │ │ │ │ │ │ ├── Objective-C │ │ │ │ │ │ │ │ ├── ___FILEBASENAME___.h │ │ │ │ │ │ │ │ └── ___FILEBASENAME___.m │ │ │ │ │ │ │ ├── Swift │ │ │ │ │ │ │ │ └── ___FILEBASENAME___.swift │ │ │ │ │ │ │ ├── TemplateIcon.icns │ │ │ │ │ │ │ └── TemplateInfo.plist │ │ │ │ │ │ └── Quick Spec Class.xctemplate │ │ │ │ │ │ │ ├── Objective-C │ │ │ │ │ │ │ └── ___FILEBASENAME___.m │ │ │ │ │ │ │ ├── Swift │ │ │ │ │ │ │ └── ___FILEBASENAME___.swift │ │ │ │ │ │ │ ├── TemplateIcon.icns │ │ │ │ │ │ │ └── TemplateInfo.plist │ │ │ │ │ ├── Quick.podspec │ │ │ │ │ ├── Quick.xcodeproj │ │ │ │ │ │ ├── project.pbxproj │ │ │ │ │ │ ├── project.xcworkspace │ │ │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ │ └── xcschemes │ │ │ │ │ │ │ ├── Quick-OSX.xcscheme │ │ │ │ │ │ │ ├── Quick-iOS.xcscheme │ │ │ │ │ │ │ └── Quick-tvOS.xcscheme │ │ │ │ │ ├── Quick.xcworkspace │ │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ │ ├── README.md │ │ │ │ │ ├── Rakefile │ │ │ │ │ ├── Sources │ │ │ │ │ │ ├── Quick │ │ │ │ │ │ │ ├── Callsite.swift │ │ │ │ │ │ │ ├── Configuration │ │ │ │ │ │ │ │ ├── Configuration.swift │ │ │ │ │ │ │ │ ├── QuickConfiguration.h │ │ │ │ │ │ │ │ ├── QuickConfiguration.m │ │ │ │ │ │ │ │ └── QuickConfiguration.swift │ │ │ │ │ │ │ ├── DSL │ │ │ │ │ │ │ │ ├── DSL.swift │ │ │ │ │ │ │ │ ├── QCKDSL.h │ │ │ │ │ │ │ │ ├── QCKDSL.m │ │ │ │ │ │ │ │ ├── World+DSL.h │ │ │ │ │ │ │ │ └── World+DSL.swift │ │ │ │ │ │ │ ├── ErrorUtility.swift │ │ │ │ │ │ │ ├── Example.swift │ │ │ │ │ │ │ ├── ExampleGroup.swift │ │ │ │ │ │ │ ├── ExampleMetadata.swift │ │ │ │ │ │ │ ├── Filter.swift │ │ │ │ │ │ │ ├── Hooks │ │ │ │ │ │ │ │ ├── Closures.swift │ │ │ │ │ │ │ │ ├── ExampleHooks.swift │ │ │ │ │ │ │ │ ├── HooksPhase.swift │ │ │ │ │ │ │ │ └── SuiteHooks.swift │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ ├── NSBundle+CurrentTestBundle.swift │ │ │ │ │ │ │ ├── NSString+QCKSelectorName.h │ │ │ │ │ │ │ ├── NSString+QCKSelectorName.m │ │ │ │ │ │ │ ├── Quick.h │ │ │ │ │ │ │ ├── QuickMain.swift │ │ │ │ │ │ │ ├── QuickSelectedTestSuiteBuilder.swift │ │ │ │ │ │ │ ├── QuickSpec.h │ │ │ │ │ │ │ ├── QuickSpec.m │ │ │ │ │ │ │ ├── QuickSpec.swift │ │ │ │ │ │ │ ├── QuickTestSuite.swift │ │ │ │ │ │ │ ├── String+FileName.swift │ │ │ │ │ │ │ ├── World.h │ │ │ │ │ │ │ ├── World.swift │ │ │ │ │ │ │ └── XCTestSuite+QuickTestSuiteBuilder.m │ │ │ │ │ │ ├── QuickFocusedTests │ │ │ │ │ │ │ ├── FocusedTests+ObjC.m │ │ │ │ │ │ │ ├── FocusedTests.swift │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ └── main.swift │ │ │ │ │ │ ├── QuickTestHelpers │ │ │ │ │ │ │ ├── SpecRunner.swift │ │ │ │ │ │ │ └── TestRun.swift │ │ │ │ │ │ └── QuickTests │ │ │ │ │ │ │ ├── Fixtures │ │ │ │ │ │ │ └── FunctionalTests_SharedExamplesTests_SharedExamples.swift │ │ │ │ │ │ │ ├── FunctionalTests │ │ │ │ │ │ │ ├── AfterEachTests+ObjC.m │ │ │ │ │ │ │ ├── AfterEachTests.swift │ │ │ │ │ │ │ ├── AfterSuiteTests+ObjC.m │ │ │ │ │ │ │ ├── AfterSuiteTests.swift │ │ │ │ │ │ │ ├── BeforeEachTests+ObjC.m │ │ │ │ │ │ │ ├── BeforeEachTests.swift │ │ │ │ │ │ │ ├── BeforeSuiteTests+ObjC.m │ │ │ │ │ │ │ ├── BeforeSuiteTests.swift │ │ │ │ │ │ │ ├── Configuration │ │ │ │ │ │ │ │ ├── AfterEach │ │ │ │ │ │ │ │ │ ├── Configuration+AfterEach.swift │ │ │ │ │ │ │ │ │ └── Configuration+AfterEachTests.swift │ │ │ │ │ │ │ │ └── BeforeEach │ │ │ │ │ │ │ │ │ ├── Configuration+BeforeEach.swift │ │ │ │ │ │ │ │ │ └── Configuration+BeforeEachTests.swift │ │ │ │ │ │ │ ├── ContextTests.swift │ │ │ │ │ │ │ ├── CrossReferencingSpecs.swift │ │ │ │ │ │ │ ├── DescribeTests.swift │ │ │ │ │ │ │ ├── FailureTests+ObjC.m │ │ │ │ │ │ │ ├── FailureUsingXCTAssertTests+ObjC.m │ │ │ │ │ │ │ ├── ItTests+ObjC.m │ │ │ │ │ │ │ ├── ItTests.swift │ │ │ │ │ │ │ ├── PendingTests+ObjC.m │ │ │ │ │ │ │ ├── PendingTests.swift │ │ │ │ │ │ │ ├── SharedExamples+BeforeEachTests+ObjC.m │ │ │ │ │ │ │ ├── SharedExamples+BeforeEachTests.swift │ │ │ │ │ │ │ ├── SharedExamplesTests+ObjC.m │ │ │ │ │ │ │ └── SharedExamplesTests.swift │ │ │ │ │ │ │ ├── Helpers │ │ │ │ │ │ │ ├── QCKSpecRunner.h │ │ │ │ │ │ │ ├── QCKSpecRunner.m │ │ │ │ │ │ │ ├── QuickSpec+QuickSpec_MethodList.h │ │ │ │ │ │ │ ├── QuickSpec+QuickSpec_MethodList.m │ │ │ │ │ │ │ ├── QuickTestsBridgingHeader.h │ │ │ │ │ │ │ ├── XCTestCaseProvider.swift │ │ │ │ │ │ │ ├── XCTestObservationCenter+QCKSuspendObservation.h │ │ │ │ │ │ │ └── XCTestObservationCenter+QCKSuspendObservation.m │ │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ │ ├── QuickConfigurationTests.m │ │ │ │ │ │ │ └── main.swift │ │ │ │ │ ├── circle.yml │ │ │ │ │ └── script │ │ │ │ │ │ ├── release │ │ │ │ │ │ ├── travis-install-linux │ │ │ │ │ │ ├── travis-install-osx │ │ │ │ │ │ ├── travis-script-linux │ │ │ │ │ │ └── travis-script-osx │ │ │ │ │ ├── Result │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── .swift-version │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Package.swift │ │ │ │ │ ├── README.md │ │ │ │ │ ├── Result.podspec │ │ │ │ │ ├── Result.xcodeproj │ │ │ │ │ │ ├── project.pbxproj │ │ │ │ │ │ ├── project.xcworkspace │ │ │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ │ └── xcschemes │ │ │ │ │ │ │ ├── Result-Mac.xcscheme │ │ │ │ │ │ │ ├── Result-iOS.xcscheme │ │ │ │ │ │ │ ├── Result-tvOS.xcscheme │ │ │ │ │ │ │ └── Result-watchOS.xcscheme │ │ │ │ │ ├── Result │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ ├── Result.h │ │ │ │ │ │ ├── Result.swift │ │ │ │ │ │ └── ResultType.swift │ │ │ │ │ └── Tests │ │ │ │ │ │ ├── LinuxMain.swift │ │ │ │ │ │ └── Result │ │ │ │ │ │ ├── Info.plist │ │ │ │ │ │ └── ResultTests.swift │ │ │ │ │ └── xcconfigs │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── Base │ │ │ │ │ ├── Common.xcconfig │ │ │ │ │ ├── Configurations │ │ │ │ │ │ ├── Debug.xcconfig │ │ │ │ │ │ ├── Profile.xcconfig │ │ │ │ │ │ ├── Release.xcconfig │ │ │ │ │ │ └── Test.xcconfig │ │ │ │ │ └── Targets │ │ │ │ │ │ ├── Application.xcconfig │ │ │ │ │ │ ├── Framework.xcconfig │ │ │ │ │ │ └── StaticLibrary.xcconfig │ │ │ │ │ ├── Mac OS X │ │ │ │ │ ├── Mac-Application.xcconfig │ │ │ │ │ ├── Mac-Base.xcconfig │ │ │ │ │ ├── Mac-DynamicLibrary.xcconfig │ │ │ │ │ ├── Mac-Framework.xcconfig │ │ │ │ │ └── Mac-StaticLibrary.xcconfig │ │ │ │ │ ├── README.md │ │ │ │ │ ├── iOS │ │ │ │ │ ├── iOS-Application.xcconfig │ │ │ │ │ ├── iOS-Base.xcconfig │ │ │ │ │ ├── iOS-Framework.xcconfig │ │ │ │ │ └── iOS-StaticLibrary.xcconfig │ │ │ │ │ ├── tvOS │ │ │ │ │ ├── tvOS-Application.xcconfig │ │ │ │ │ ├── tvOS-Base.xcconfig │ │ │ │ │ ├── tvOS-Framework.xcconfig │ │ │ │ │ └── tvOS-StaticLibrary.xcconfig │ │ │ │ │ └── watchOS │ │ │ │ │ ├── watchOS-Application.xcconfig │ │ │ │ │ ├── watchOS-Base.xcconfig │ │ │ │ │ ├── watchOS-Framework.xcconfig │ │ │ │ │ └── watchOS-StaticLibrary.xcconfig │ │ │ ├── Commandant.xcodeproj │ │ │ │ ├── project.pbxproj │ │ │ │ ├── project.xcworkspace │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ └── Commandant.xcscheme │ │ │ ├── Commandant.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ │ ├── LICENSE.md │ │ │ ├── Package.swift │ │ │ ├── README.md │ │ │ ├── Sources │ │ │ │ └── Commandant │ │ │ │ │ ├── Argument.swift │ │ │ │ │ ├── ArgumentParser.swift │ │ │ │ │ ├── ArgumentType.swift │ │ │ │ │ ├── Command.swift │ │ │ │ │ ├── Commandant.h │ │ │ │ │ ├── Errors.swift │ │ │ │ │ ├── HelpCommand.swift │ │ │ │ │ ├── Info.plist │ │ │ │ │ ├── Option.swift │ │ │ │ │ ├── Swift3to22.swift │ │ │ │ │ └── Switch.swift │ │ │ └── Tests │ │ │ │ ├── CommandSpec.swift │ │ │ │ ├── Info.plist │ │ │ │ └── OptionSpec.swift │ │ │ ├── Result │ │ │ ├── .gitignore │ │ │ ├── .swift-version │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── Package.swift │ │ │ ├── README.md │ │ │ ├── Result.podspec │ │ │ ├── Result.xcodeproj │ │ │ │ ├── project.pbxproj │ │ │ │ ├── project.xcworkspace │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ ├── Result-Mac.xcscheme │ │ │ │ │ ├── Result-iOS.xcscheme │ │ │ │ │ ├── Result-tvOS.xcscheme │ │ │ │ │ └── Result-watchOS.xcscheme │ │ │ ├── Result │ │ │ │ ├── Info.plist │ │ │ │ ├── Result.h │ │ │ │ ├── Result.swift │ │ │ │ └── ResultType.swift │ │ │ └── Tests │ │ │ │ ├── LinuxMain.swift │ │ │ │ └── Result │ │ │ │ ├── Info.plist │ │ │ │ └── ResultTests.swift │ │ │ ├── SWXMLHash │ │ │ ├── .gitignore │ │ │ ├── .swiftlint.yml │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── Package.swift │ │ │ ├── README.md │ │ │ ├── Rakefile │ │ │ ├── SWXMLHash.podspec │ │ │ ├── SWXMLHash.xcodeproj │ │ │ │ ├── project.pbxproj │ │ │ │ ├── project.xcworkspace │ │ │ │ │ └── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ ├── SWXMLHash OSX.xcscheme │ │ │ │ │ ├── SWXMLHash iOS.xcscheme │ │ │ │ │ ├── SWXMLHash tvOS.xcscheme │ │ │ │ │ └── SWXMLHash watchOS.xcscheme │ │ │ ├── SWXMLHash.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ │ ├── SWXMLHashPlayground.playground │ │ │ │ ├── contents.xcplayground │ │ │ │ └── section-1.swift │ │ │ ├── Scripts │ │ │ │ └── build.sh │ │ │ ├── Source │ │ │ │ ├── Info.plist │ │ │ │ ├── SWXMLHash+TypeConversion.swift │ │ │ │ ├── SWXMLHash.h │ │ │ │ └── SWXMLHash.swift │ │ │ └── Tests │ │ │ │ ├── Info.plist │ │ │ │ ├── LazyTypesConversionTests.swift │ │ │ │ ├── LazyWhiteSpaceParsingTests.swift │ │ │ │ ├── LazyXMLParsingTests.swift │ │ │ │ ├── MixedTextWithXMLElementsTests.swift │ │ │ │ ├── SWXMLHashConfigTests.swift │ │ │ │ ├── TypeConversionArrayOfNonPrimitiveTypesTests.swift │ │ │ │ ├── TypeConversionBasicTypesTests.swift │ │ │ │ ├── TypeConversionComplexTypesTests.swift │ │ │ │ ├── TypeConversionPrimitypeTypesTests.swift │ │ │ │ ├── WhiteSpaceParsingTests.swift │ │ │ │ ├── XMLParsingTests.swift │ │ │ │ └── test.xml │ │ │ ├── YamlSwift │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── Package.swift │ │ │ ├── Readme.md │ │ │ ├── Tests │ │ │ │ ├── ExampleTests.swift │ │ │ │ ├── Info.plist │ │ │ │ └── YamlTests.swift │ │ │ ├── Yaml.podspec │ │ │ ├── Yaml.xcodeproj │ │ │ │ ├── .gitignore │ │ │ │ ├── project.pbxproj │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ ├── Yaml OSX.xcscheme │ │ │ │ │ ├── Yaml iOS.xcscheme │ │ │ │ │ └── Yaml tvOS.xcscheme │ │ │ └── Yaml │ │ │ │ ├── Info.plist │ │ │ │ ├── Operators.swift │ │ │ │ ├── Parser.swift │ │ │ │ ├── Regex.swift │ │ │ │ ├── Result.swift │ │ │ │ ├── Tokenizer.swift │ │ │ │ ├── Yaml.h │ │ │ │ └── Yaml.swift │ │ │ └── xcconfigs │ │ │ ├── .gitignore │ │ │ ├── Base │ │ │ ├── Common.xcconfig │ │ │ ├── Configurations │ │ │ │ ├── Debug.xcconfig │ │ │ │ ├── Profile.xcconfig │ │ │ │ ├── Release.xcconfig │ │ │ │ └── Test.xcconfig │ │ │ └── Targets │ │ │ │ ├── Application.xcconfig │ │ │ │ ├── Framework.xcconfig │ │ │ │ └── StaticLibrary.xcconfig │ │ │ ├── Mac OS X │ │ │ ├── Mac-Application.xcconfig │ │ │ ├── Mac-Base.xcconfig │ │ │ ├── Mac-DynamicLibrary.xcconfig │ │ │ ├── Mac-Framework.xcconfig │ │ │ └── Mac-StaticLibrary.xcconfig │ │ │ ├── README.md │ │ │ ├── iOS │ │ │ ├── iOS-Application.xcconfig │ │ │ ├── iOS-Base.xcconfig │ │ │ ├── iOS-Framework.xcconfig │ │ │ └── iOS-StaticLibrary.xcconfig │ │ │ ├── tvOS │ │ │ ├── tvOS-Application.xcconfig │ │ │ ├── tvOS-Base.xcconfig │ │ │ ├── tvOS-Framework.xcconfig │ │ │ └── tvOS-StaticLibrary.xcconfig │ │ │ └── watchOS │ │ │ ├── watchOS-Application.xcconfig │ │ │ ├── watchOS-Base.xcconfig │ │ │ ├── watchOS-Framework.xcconfig │ │ │ └── watchOS-StaticLibrary.xcconfig │ ├── Dangerfile │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── Releasing.md │ ├── Source │ │ ├── SourceKittenFramework │ │ │ ├── Clang+SourceKitten.swift │ │ │ ├── ClangTranslationUnit.swift │ │ │ ├── CodeCompletionItem.swift │ │ │ ├── Dictionary+Merge.swift │ │ │ ├── Documentation.swift │ │ │ ├── File.swift │ │ │ ├── Info.plist │ │ │ ├── JSONOutput.swift │ │ │ ├── Language.swift │ │ │ ├── Module.swift │ │ │ ├── ObjCDeclarationKind.swift │ │ │ ├── OffsetMap.swift │ │ │ ├── Parameter.swift │ │ │ ├── Request.swift │ │ │ ├── SourceDeclaration.swift │ │ │ ├── SourceKittenFramework.h │ │ │ ├── SourceLocation.swift │ │ │ ├── StatementKind.swift │ │ │ ├── String+SourceKitten.swift │ │ │ ├── Structure.swift │ │ │ ├── SwiftDeclarationKind.swift │ │ │ ├── SwiftDocKey.swift │ │ │ ├── SwiftDocs.swift │ │ │ ├── SwiftLangSyntax.swift │ │ │ ├── SyntaxKind.swift │ │ │ ├── SyntaxMap.swift │ │ │ ├── SyntaxToken.swift │ │ │ ├── Text.swift │ │ │ ├── Xcode.swift │ │ │ ├── clang-c │ │ │ │ ├── BuildSystem.h │ │ │ │ ├── CXCompilationDatabase.h │ │ │ │ ├── CXErrorCode.h │ │ │ │ ├── CXString.h │ │ │ │ ├── Documentation.h │ │ │ │ ├── Index.h │ │ │ │ ├── Makefile │ │ │ │ ├── Platform.h │ │ │ │ └── module.modulemap │ │ │ ├── library_wrapper.swift │ │ │ ├── library_wrapper_CXString.swift │ │ │ ├── library_wrapper_Documentation.swift │ │ │ ├── library_wrapper_Index.swift │ │ │ ├── library_wrapper_sourcekitd.swift │ │ │ └── sourcekitd.h │ │ └── sourcekitten │ │ │ ├── CompleteCommand.swift │ │ │ ├── Components.plist │ │ │ ├── DocCommand.swift │ │ │ ├── Errors.swift │ │ │ ├── FormatCommand.swift │ │ │ ├── IndexCommand.swift │ │ │ ├── Info.plist │ │ │ ├── StructureCommand.swift │ │ │ ├── SyntaxCommand.swift │ │ │ ├── VersionCommand.swift │ │ │ └── main.swift │ ├── SourceKitten.xcworkspace │ │ └── contents.xcworkspacedata │ ├── Tests │ │ └── SourceKittenFramework │ │ │ ├── ClangTranslationUnitTests.swift │ │ │ ├── CodeCompletionTests.swift │ │ │ ├── FileTests.swift │ │ │ ├── Fixtures │ │ │ ├── Bicycle.json │ │ │ ├── Bicycle.swift │ │ │ ├── BicycleIndex.json │ │ │ ├── BicycleUnformatted.swift │ │ │ ├── Commandant-swift2.2.json │ │ │ ├── Commandant-swift2.3.json │ │ │ ├── Musician.h │ │ │ ├── Musician.json │ │ │ ├── Realm.json │ │ │ ├── Realm │ │ │ │ ├── RLMAccessor.h │ │ │ │ ├── RLMArray.h │ │ │ │ ├── RLMArray_Private.h │ │ │ │ ├── RLMCollection.h │ │ │ │ ├── RLMConstants.h │ │ │ │ ├── RLMDefines.h │ │ │ │ ├── RLMListBase.h │ │ │ │ ├── RLMMigration.h │ │ │ │ ├── RLMMigration_Private.h │ │ │ │ ├── RLMObject.h │ │ │ │ ├── RLMObjectBase.h │ │ │ │ ├── RLMObjectBase_Dynamic.h │ │ │ │ ├── RLMObjectSchema.h │ │ │ │ ├── RLMObjectSchema_Private.h │ │ │ │ ├── RLMObjectStore.h │ │ │ │ ├── RLMObject_Private.h │ │ │ │ ├── RLMOptionalBase.h │ │ │ │ ├── RLMPlatform.h │ │ │ │ ├── RLMPrefix.h │ │ │ │ ├── RLMProperty.h │ │ │ │ ├── RLMProperty_Private.h │ │ │ │ ├── RLMRealm.h │ │ │ │ ├── RLMRealmConfiguration.h │ │ │ │ ├── RLMRealmConfiguration_Private.h │ │ │ │ ├── RLMRealm_Dynamic.h │ │ │ │ ├── RLMRealm_Private.h │ │ │ │ ├── RLMResults.h │ │ │ │ ├── RLMResults_Private.h │ │ │ │ ├── RLMSchema.h │ │ │ │ ├── RLMSchema_Private.h │ │ │ │ ├── RLMSwiftBridgingHeader.h │ │ │ │ ├── RLMSwiftSupport.h │ │ │ │ └── Realm.h │ │ │ ├── SimpleCodeCompletion.json │ │ │ ├── Subscript.json │ │ │ ├── Subscript.swift │ │ │ ├── SuperScript.h │ │ │ └── SuperScript.json │ │ │ ├── Info.plist │ │ │ ├── ModuleTests.swift │ │ │ ├── OffsetMapTests.swift │ │ │ ├── SourceKitTests.swift │ │ │ ├── StringTests.swift │ │ │ ├── StructureTests.swift │ │ │ ├── SwiftDocsTests.swift │ │ │ └── SyntaxTests.swift │ ├── jazzy.sh │ ├── script │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bootstrap │ │ ├── check-xcode-version │ │ ├── cibuild │ │ ├── extract-tool │ │ ├── module.modulemap │ │ ├── spm_bootstrap │ │ └── spm_teardown │ └── sourcekitten.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── xcschemes │ │ ├── SourceKittenFramework.xcscheme │ │ └── sourcekitten.xcscheme │ ├── Xcode.swift │ ├── .gitignore │ ├── Carthage │ │ └── Build │ ├── Example │ │ ├── Example.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ └── Example │ │ │ └── main.swift │ ├── LICENSE │ ├── README.md │ ├── Test projects │ │ ├── HelloCpp.xcodeproj │ │ │ └── project.pbxproj │ │ ├── README.md │ │ └── Security.xcodeproj │ │ │ └── project.pbxproj │ └── Xcode │ │ ├── Xcode.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Xcode.xcscheme │ │ ├── Xcode │ │ ├── Extensions.swift │ │ ├── Info.plist │ │ ├── PBXObject.swift │ │ ├── Serialization.swift │ │ ├── XCProjectFile.swift │ │ └── Xcode.h │ │ └── XcodeTests │ │ ├── Info.plist │ │ └── XcodeTests.swift │ └── YamlSwift │ ├── .gitignore │ ├── LICENSE │ ├── Package.swift │ ├── Readme.md │ ├── Tests │ ├── ExampleTests.swift │ ├── Info.plist │ └── YamlTests.swift │ ├── Yaml.podspec │ ├── Yaml.xcodeproj │ ├── .gitignore │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── Yaml OSX.xcscheme │ │ ├── Yaml iOS.xcscheme │ │ └── Yaml tvOS.xcscheme │ └── Yaml │ ├── Info.plist │ ├── Operators.swift │ ├── Parser.swift │ ├── Regex.swift │ ├── Result.swift │ ├── Tokenizer.swift │ ├── Yaml.h │ └── Yaml.swift ├── DipGenFramework ├── Sources │ ├── Annotations.swift │ ├── CodeGenerator.swift │ ├── Dip.configure.stencil │ ├── Dip.container.stencil │ ├── SourceKittenExtensions.swift │ ├── StringExtensions.swift │ └── Templates.swift ├── Stencil │ ├── Context.swift │ ├── Filters.swift │ ├── Include.swift │ ├── Inheritence.swift │ ├── Lexer.swift │ ├── Namespace.swift │ ├── Node.swift │ ├── Parser.swift │ ├── PathKit.swift │ ├── Template.swift │ ├── TemplateLoader.swift │ ├── Tokenizer.swift │ └── Variable.swift └── Supporting Files │ ├── DipGenFramework.h │ └── Info.plist ├── DipGenFrameworkTests ├── Sources │ └── DipGenTest │ │ ├── .gitignore │ │ ├── Cartfile │ │ ├── Cartfile.resolved │ │ ├── DipGenTest.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── DipGenTest.xcscheme │ │ └── DipGenTest │ │ ├── CompositionRoot.swift │ │ ├── Dip.base.swift │ │ ├── Dip.configure.swift │ │ ├── Dip.listModule.swift │ │ ├── DipGenTest.h │ │ ├── Info.plist │ │ └── input.swift └── Supporting Files │ └── Info.plist ├── LICENSE ├── Makefile ├── README.md ├── dipgen.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ ├── DipGenFramework.xcscheme │ └── dipgen.xcscheme ├── dipgen ├── Environment.swift ├── Supporting Files │ ├── Components.plist │ └── Info.plist ├── XCProjectFileExtensions.swift └── main.swift └── script ├── LICENSE.md ├── README.md ├── bootstrap ├── check-xcode-version ├── cibuild ├── extract-tool ├── module.modulemap ├── spm_bootstrap └── spm_teardown /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | *.xcscmblueprint 17 | profile 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | 23 | # Bundler 24 | .bundle 25 | 26 | Carthage/Build 27 | # We recommend against adding the Pods directory to your .gitignore. However 28 | # you should judge for yourself, the pros and cons are mentioned at: 29 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 30 | # 31 | # Note: if you ignore the Pods directory, make sure to uncomment 32 | # `pod install` in .travis.yml 33 | # 34 | # Pods/ 35 | 36 | # SPM 37 | .build/ 38 | Packages 39 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## 1.0.2 4 | 5 | * Added parsing tag in `implements` annotation. Use `@dip.implements Type(tag)` to generate `.implements(Type.self, tag: "tag")` code. 6 | * Added using `init()` as default constructors for components annotated with `storyboardInstantiatable` 7 | 8 | #### Fixed 9 | 10 | * Fixed generating scope values 11 | * Fixed detecting a single constructor as designated 12 | * Fixed constructors ambiguity by always using closure syntax for registration 13 | * Fixed warnings for unneded casts of resolved instances 14 | 15 | ## 1.0.1 16 | 17 | * Added `--no-factories` option to skip generating factories 18 | 19 | ## 1.0.0 20 | 21 | Initial release 22 | -------------------------------------------------------------------------------- /Cartfile: -------------------------------------------------------------------------------- 1 | github "jpsim/SourceKitten" 2 | github "ilyapuchka/Xcode.swift" "develop" 3 | github "kylef/Commander" == 0.4.1 4 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "kylef/Commander" "0.4.1" 2 | github "drmohundro/SWXMLHash" "2.5.1" 3 | github "ilyapuchka/Xcode.swift" "02ec78373eea65ee426961d88ad97c57a771efaa" 4 | github "behrang/YamlSwift" "1.5.0" 5 | github "jpsim/SourceKitten" "0.14.1" 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/.gitignore: -------------------------------------------------------------------------------- 1 | .conche/ 2 | /.build/ 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-01-25-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/.travis.yml: -------------------------------------------------------------------------------- 1 | os: 2 | - linux 3 | - osx 4 | language: generic 5 | sudo: required 6 | dist: trusty 7 | osx_image: xcode7.2 8 | install: 9 | - curl -sL https://gist.github.com/kylef/5c0475ff02b7c7671d2a/raw/621ef9b29bbb852fdfd2e10ed147b321d792c1e4/swiftenv-install.sh | bash 10 | script: 11 | - . ~/.swiftenv/init 12 | - make test 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Carthage/Build: -------------------------------------------------------------------------------- 1 | ../../../../Carthage/Build -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Commander.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ilyapuchka/dipgen/4e835d6f5cb1c3979dd943ee1264df333e8d9281/Carthage/Checkouts/Commander/Commander.png -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Commander.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Commander", 3 | "version": "0.4.1", 4 | "summary": "Compose beautiful command line interfaces", 5 | "homepage": "https://github.com/kylef/Commander", 6 | "license": { 7 | "type": "BSD", 8 | "file": "LICENSE" 9 | }, 10 | "authors": { 11 | "Kyle Fuller": "kyle@fuller.li" 12 | }, 13 | "social_media_url": "http://twitter.com/kylefuller", 14 | "source": { 15 | "git": "https://github.com/kylef/Commander.git", 16 | "tag": "0.4.1" 17 | }, 18 | "source_files": "Sources/*.{h,swift}", 19 | "platforms": { 20 | "ios": "8.0", 21 | "osx": "10.9" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Examples/Makefile: -------------------------------------------------------------------------------- 1 | build: 2 | pod install --no-repo-update 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Examples/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.10' 2 | plugin 'cocoapods-rome' 3 | 4 | pod 'Commander', :path => '..' 5 | pod 'Stencil', :git => 'https://github.com/kylef/Stencil' 6 | 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Examples/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Commander (0.2.2) 3 | - PathKit (0.5.0) 4 | - Stencil (0.3.0): 5 | - PathKit (~> 0.5.0) 6 | 7 | DEPENDENCIES: 8 | - Commander (from `..`) 9 | - Stencil (from `https://github.com/kylef/Stencil`) 10 | 11 | EXTERNAL SOURCES: 12 | Commander: 13 | :path: .. 14 | Stencil: 15 | :git: https://github.com/kylef/Stencil 16 | 17 | CHECKOUT OPTIONS: 18 | Stencil: 19 | :commit: d5acc7298ce73c990d108b363a1f1fc1a003f05d 20 | :git: https://github.com/kylef/Stencil 21 | 22 | SPEC CHECKSUMS: 23 | Commander: 704edbe645c2454f27e241bad5d775997793b9f6 24 | PathKit: 64e70cb924d6faed9251049f5f28662855524baf 25 | Stencil: a3def3541e6a76eff3bb1f85af622b07b230c575 26 | 27 | COCOAPODS: 0.39.0 28 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Examples/README.md: -------------------------------------------------------------------------------- 1 | # Commander Examples 2 | 3 | ```bash 4 | $ ./hello.swift 5 | $ ./pod.swift 6 | ``` 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Examples/generator.swift: -------------------------------------------------------------------------------- 1 | #!/usr/bin/swift -FRome 2 | 3 | import Commander 4 | import Stencil 5 | import PathKit 6 | 7 | command( 8 | Option("amount", 15, description: "The number of arguments to support.") 9 | ) { amount in 10 | let template = try Template(path: Path("generator-template.swift")) 11 | 12 | let structure = (1..("query"), 17 | description: "Perform a search" 18 | ) { web, query in 19 | if web { 20 | print("Searching for \(query) on the web.") 21 | } else { 22 | print("Locally searching for \(query).") 23 | } 24 | } 25 | }.run() 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @swift build 3 | @.build/debug/spectre-build 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Commander", 5 | testDependencies: [ 6 | .Package(url: "https://github.com/kylef/spectre-build", majorVersion: 0), 7 | ] 8 | ) 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Sources/Command.swift: -------------------------------------------------------------------------------- 1 | /// A simple CommandType using a closure 2 | struct AnonymousCommand : CommandType { 3 | var closure:ArgumentParser throws -> () 4 | 5 | init(_ closure:(ArgumentParser throws -> ())) { 6 | self.closure = closure 7 | } 8 | 9 | func run(parser:ArgumentParser) throws { 10 | try closure(parser) 11 | } 12 | } 13 | 14 | enum CommandError : ErrorType { 15 | case InvalidArgument 16 | } 17 | 18 | /// Create a command using a closure 19 | public func command(closure:() throws -> ()) -> CommandType { 20 | return AnonymousCommand { parser in 21 | try closure() 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Sources/CommandType.swift: -------------------------------------------------------------------------------- 1 | /// Represents a command that can be run, given an argument parser 2 | public protocol CommandType { 3 | func run(parser:ArgumentParser) throws 4 | } 5 | 6 | 7 | /// Extensions to CommandType to provide convinience running methods 8 | extension CommandType { 9 | /// Run the command with an array of arguments 10 | public func run(arguments:[String]) throws { 11 | try run(ArgumentParser(arguments: arguments)) 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Tests/.gitignore: -------------------------------------------------------------------------------- 1 | /Packages/ 2 | /.build/ 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Tests/CommandTypeSpec.swift: -------------------------------------------------------------------------------- 1 | import Spectre 2 | import Commander 3 | 4 | 5 | func testCommandType() { 6 | describe("CommandType extension") { 7 | $0.it("provides a run with arguments array function") { 8 | var firstArgument:String? = nil 9 | 10 | try command { (parser:ArgumentParser) in 11 | firstArgument = parser.shift() 12 | }.run(["test"]) 13 | 14 | try expect(firstArgument) == "test" 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Commander/Tests/main.swift: -------------------------------------------------------------------------------- 1 | testArgumentParser() 2 | testArgumentConvertible() 3 | testCommandType() 4 | testCommand() 5 | testGroup() 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/.swiftlint.yml: -------------------------------------------------------------------------------- 1 | opt_in_rules: 2 | - empty_count 3 | - missing_docs 4 | 5 | excluded: 6 | - Carthage 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | xcode_workspace: SWXMLHash.xcworkspace 3 | xcode_scheme: SWXMLHash iOS 4 | osx_image: xcode7.3 5 | 6 | script: 7 | - ./Scripts/build.sh 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "SWXMLHash" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Rakefile: -------------------------------------------------------------------------------- 1 | def run(command) 2 | system(command) or raise "RAKE TASK FAILED: #{command}" 3 | end 4 | 5 | desc 'Clean, build and test SWXMLHash' 6 | task :test do |t| 7 | xctool_build_cmd = './scripts/build.sh' 8 | xcode_build_cmd = 'xcodebuild -workspace SWXMLHash.xcworkspace -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator' 9 | 10 | if system('which xctool') 11 | run xctool_build_cmd 12 | else 13 | if system('which xcpretty') 14 | run "#{xcode_build_cmd} | xcpretty -c" 15 | else 16 | run xcode_build_cmd 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/SWXMLHash.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'SWXMLHash' 3 | s.version = '2.5.0' 4 | s.summary = 'Simple XML parsing in Swift' 5 | s.homepage = 'https://github.com/drmohundro/SWXMLHash' 6 | s.license = { :type => 'MIT' } 7 | s.authors = { 'David Mohundro' => 'david@mohundro.com' } 8 | 9 | s.requires_arc = true 10 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '2.3' } 11 | 12 | s.osx.deployment_target = '10.9' 13 | s.ios.deployment_target = '8.0' 14 | s.watchos.deployment_target = '2.0' 15 | s.tvos.deployment_target = '9.0' 16 | 17 | s.source = { :git => 'https://github.com/drmohundro/SWXMLHash.git', :tag => '2.5.0' } 18 | s.source_files = 'Source/*.swift' 19 | end 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/SWXMLHash.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/SWXMLHash.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/SWXMLHashPlayground.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ev 4 | 5 | #xctool -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator 6 | set -o pipefail && xcodebuild -workspace SWXMLHash.xcworkspace -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator | xcpretty 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Source/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Source/SWXMLHash.h: -------------------------------------------------------------------------------- 1 | // 2 | // SWXMLHash.h 3 | // SWXMLHash 4 | // 5 | // Created by David Mohundro on 7/8/14. 6 | // 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SWXMLHash. 12 | FOUNDATION_EXPORT double SWXMLHashVersionNumber; 13 | 14 | //! Project version string for SWXMLHash. 15 | FOUNDATION_EXPORT const unsigned char SWXMLHashVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SWXMLHash/Tests/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | Title 7 | 8 | 9 | V:|-10-[title]-10-| 10 | H:|-15-[title]-15-| 11 |
12 |
13 | 14 | H:|-15-[content]-15-| 15 | V:|-10-[content]-10-| 16 |
17 | 18 | 24 | 25 |
-------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/.gitattributes: -------------------------------------------------------------------------------- 1 | Source/SourceKittenFramework/clang-c/* linguist-vendored 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Carthage/Checkouts/xcconfigs"] 2 | path = Carthage/Checkouts/xcconfigs 3 | url = https://github.com/jspahrsummers/xcconfigs.git 4 | [submodule "Carthage/Checkouts/Commandant"] 5 | path = Carthage/Checkouts/Commandant 6 | url = https://github.com/Carthage/Commandant.git 7 | [submodule "Carthage/Checkouts/SWXMLHash"] 8 | path = Carthage/Checkouts/SWXMLHash 9 | url = https://github.com/drmohundro/SWXMLHash.git 10 | [submodule "Carthage/Checkouts/Result"] 11 | path = Carthage/Checkouts/Result 12 | url = https://github.com/antitypical/Result.git 13 | [submodule "Carthage/Checkouts/YamlSwift"] 14 | path = Carthage/Checkouts/YamlSwift 15 | url = https://github.com/behrang/YamlSwift.git 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | git: 3 | submodules: false 4 | branches: 5 | only: 6 | - master 7 | script: placeholder # workaround for https://github.com/travis-ci/travis-ci/issues/4681 8 | before_script: 9 | - gem install danger --version '~> 3.0' && danger 10 | 11 | matrix: 12 | include: 13 | - script: make test 14 | osx_image: xcode7.3 15 | env: JOB=Xcode7 16 | - script: make test 17 | osx_image: xcode8 18 | env: JOB=Xcode8 19 | exclude: 20 | - script: placeholder # workaround for https://github.com/travis-ci/travis-ci/issues/4681 21 | notifications: 22 | email: false 23 | slack: realmio:vPdpsG9NLDo2DNlbqtcMAQuE 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Tracking changes 2 | 3 | All changes should be made via pull requests on GitHub. 4 | 5 | When issuing a pull request, please add a summary of your changes to 6 | the `CHANGELOG.md` file. 7 | 8 | We follow the same syntax as CocoaPods' CHANGELOG.md: 9 | 10 | 1. One Markdown unnumbered list item desribing the change. 11 | 2. 2 trailing spaces on the last line describing the change. 12 | 3. A list of Markdown hyperlinks to the contributors to the change. One entry 13 | per line. Usually just one. 14 | 4. A list of Markdown hyperlinks to the issues the change addresses. One entry 15 | per line. Usually just one. 16 | 5. All CHANGELOG.md content is hard-wrapped at 80 characters. 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Cartfile: -------------------------------------------------------------------------------- 1 | github "drmohundro/SWXMLHash" ~> 2.5.1 2 | github "behrang/YamlSwift" ~> 1.5 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Cartfile.private: -------------------------------------------------------------------------------- 1 | github "Carthage/Commandant" ~> 0.10.1 2 | github "jspahrsummers/xcconfigs" "master" 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "antitypical/Result" "2.1.3" 2 | github "drmohundro/SWXMLHash" "2.5.1" 3 | github "behrang/YamlSwift" "1.5.0" 4 | github "jspahrsummers/xcconfigs" "e2d4f524ab910fc4211ded76d090cc86df361ebb" 5 | github "Carthage/Commandant" "0.10.1" 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | *.xcscmblueprint 20 | 21 | Carthage/Build 22 | Packages/ 23 | .build/ 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Carthage/Checkouts/Nimble"] 2 | path = Carthage/Checkouts/Nimble 3 | url = https://github.com/Quick/Nimble.git 4 | [submodule "Carthage/Checkouts/Quick"] 5 | path = Carthage/Checkouts/Quick 6 | url = https://github.com/sharplet/Quick.git 7 | [submodule "Carthage/Checkouts/xcconfigs"] 8 | path = Carthage/Checkouts/xcconfigs 9 | url = https://github.com/jspahrsummers/xcconfigs.git 10 | [submodule "Carthage/Checkouts/Result"] 11 | path = Carthage/Checkouts/Result 12 | url = https://github.com/antitypical/Result.git 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-03-24-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | We love that you’re interested in contributing! 2 | 3 | Please file issues or submit pull requests for anything you’d like to see! We just have a couple of guidelines to make things easier for everyone involved. 4 | 5 | ## Prefer pull requests 6 | 7 | If you know exactly how to implement the feature being suggested or fix the bug being reported, please open a pull request instead of an issue. Pull requests are easier than patches or inline code blocks for discussing and merging the changes. 8 | 9 | If you can’t make the change yourself, please open an issue after making sure that one isn’t already logged. 10 | 11 | ## Code style 12 | 13 | If you’re interested in contributing code, please have a look at our [style guide](https://github.com/github/swift-style-guide), which we try to match fairly closely. 14 | 15 | If you have a case that is not covered in the style guide, simply do your best to match the style of the surrounding code. 16 | 17 | **Thanks for contributing! :boom::camel:** 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Cartfile: -------------------------------------------------------------------------------- 1 | github "antitypical/Result" ~> 2.1.3 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Cartfile.private: -------------------------------------------------------------------------------- 1 | github "jspahrsummers/xcconfigs" ~> 0.9 2 | github "sharplet/Quick" "xcode-8" 3 | github "Quick/Nimble" "188caeb" 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "Quick/Nimble" "188caeb094bc342614d8a5c706cd8bb9a6c355eb" 2 | github "sharplet/Quick" "e2cfb86c8379417c9272bb853e9f0c407167d486" 3 | github "antitypical/Result" "2.1.3" 4 | github "jspahrsummers/xcconfigs" "0.9" 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata/ 3 | build/ 4 | .idea 5 | DerivedData/ 6 | Nimble.framework.zip 7 | 8 | # Carthage 9 | # 10 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 11 | # Carthage/Checkouts 12 | 13 | Carthage/Build 14 | 15 | # Swift Package Manager 16 | # 17 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 18 | # Packages/ 19 | .build/ 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/.ruby-version: -------------------------------------------------------------------------------- 1 | system 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-02-25-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Gemfile: -------------------------------------------------------------------------------- 1 | # A sample Gemfile 2 | source "https://rubygems.org" 3 | 4 | gem 'cocoapods' 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Nimble.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Nimble" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// Protocol for the assertion handler that Nimble uses for all expectations. 4 | public protocol AssertionHandler { 5 | func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) 6 | } 7 | 8 | /// Global backing interface for assertions that Nimble creates. 9 | /// Defaults to a private test handler that passes through to XCTest. 10 | /// 11 | /// If XCTest is not available, you must assign your own assertion handler 12 | /// before using any matchers, otherwise Nimble will abort the program. 13 | /// 14 | /// @see AssertionHandler 15 | public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in 16 | return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() 17 | }() 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift: -------------------------------------------------------------------------------- 1 | 2 | /// AssertionDispatcher allows multiple AssertionHandlers to receive 3 | /// assertion messages. 4 | /// 5 | /// @warning Does not fully dispatch if one of the handlers raises an exception. 6 | /// This is possible with XCTest-based assertion handlers. 7 | /// 8 | public class AssertionDispatcher: AssertionHandler { 9 | let handlers: [AssertionHandler] 10 | 11 | public init(handlers: [AssertionHandler]) { 12 | self.handlers = handlers 13 | } 14 | 15 | public func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { 16 | for handler in handlers { 17 | handler.assert(assertion, message: message, location: location) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/ObjectiveC/CurrentTestCaseTracker.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | SWIFT_CLASS("_TtC6Nimble22CurrentTestCaseTracker") 5 | @interface CurrentTestCaseTracker : NSObject 6 | + (CurrentTestCaseTracker *)sharedInstance; 7 | @end 8 | 9 | @interface CurrentTestCaseTracker (Register) @end 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBExceptionCapture.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NMBExceptionCapture : NSObject 5 | 6 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally; 7 | - (void)tryBlock:(void(^)())unsafeBlock; 8 | 9 | @end 10 | 11 | typedef void(^NMBSourceCallbackBlock)(BOOL successful); 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBExceptionCapture.m: -------------------------------------------------------------------------------- 1 | #import "NMBExceptionCapture.h" 2 | 3 | @interface NMBExceptionCapture () 4 | @property (nonatomic, copy) void(^handler)(NSException *exception); 5 | @property (nonatomic, copy) void(^finally)(); 6 | @end 7 | 8 | @implementation NMBExceptionCapture 9 | 10 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally { 11 | self = [super init]; 12 | if (self) { 13 | self.handler = handler; 14 | self.finally = finally; 15 | } 16 | return self; 17 | } 18 | 19 | - (void)tryBlock:(void(^)())unsafeBlock { 20 | @try { 21 | unsafeBlock(); 22 | } 23 | @catch (NSException *exception) { 24 | if (self.handler) { 25 | self.handler(exception); 26 | } 27 | } 28 | @finally { 29 | if (self.finally) { 30 | self.finally(); 31 | } 32 | } 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBStringify.h: -------------------------------------------------------------------------------- 1 | @class NSString; 2 | 3 | /** 4 | * Returns a string appropriate for displaying in test output 5 | * from the provided value. 6 | * 7 | * @param value A value that will show up in a test's output. 8 | * 9 | * @return The string that is returned can be 10 | * customized per type by conforming a type to the `TestOutputStringConvertible` 11 | * protocol. When stringifying a non-`TestOutputStringConvertible` type, this 12 | * function will return the value's debug description and then its 13 | * normal description if available and in that order. Otherwise it 14 | * will return the result of constructing a string from the value. 15 | * 16 | * @see `TestOutputStringConvertible` 17 | */ 18 | extern NSString *_Nonnull NMBStringify(id _Nullable anyObject) __attribute__((warn_unused_result)); 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBStringify.m: -------------------------------------------------------------------------------- 1 | #import "NMBStringify.h" 2 | #import 3 | 4 | NSString *_Nonnull NMBStringify(id _Nullable anyObject) { 5 | return [NMBStringer stringify:anyObject]; 6 | } 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSHumanReadableCopyright 24 | Copyright © 2014 Jeff Hui. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Matchers/BeNil.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is nil. 4 | public func beNil() -> MatcherFunc { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be nil" 7 | let actualValue = try actualExpression.evaluate() 8 | return actualValue == nil 9 | } 10 | } 11 | 12 | #if _runtime(_ObjC) 13 | extension NMBObjCMatcher { 14 | public class func beNilMatcher() -> NMBObjCMatcher { 15 | return NMBObjCMatcher { actualExpression, failureMessage in 16 | return try! beNil().matches(actualExpression, failureMessage: failureMessage) 17 | } 18 | } 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Matchers/BeVoid.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is Void. 4 | public func beVoid() -> MatcherFunc<()> { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be void" 7 | let actualValue: ()? = try actualExpression.evaluate() 8 | return actualValue != nil 9 | } 10 | } 11 | 12 | public func ==(lhs: Expectation<()>, rhs: ()) { 13 | lhs.to(beVoid()) 14 | } 15 | 16 | public func !=(lhs: Expectation<()>, rhs: ()) { 17 | lhs.toNot(beVoid()) 18 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Nimble.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NMBExceptionCapture.h" 3 | #import "NMBStringify.h" 4 | #import "DSL.h" 5 | 6 | FOUNDATION_EXPORT double NimbleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Sources/Nimble/Utils/Functional.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension SequenceType { 4 | internal func all(fn: Generator.Element -> Bool) -> Bool { 5 | for item in self { 6 | if !fn(item) { 7 | return false 8 | } 9 | } 10 | return true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Nimbletest 3 | 4 | // This is the entry point for NimbleTests on Linux 5 | 6 | XCTMain([ 7 | // AsynchronousTests(), 8 | SynchronousTest(), 9 | UserDescriptionTest(), 10 | 11 | // Matchers 12 | AllPassTest(), 13 | // BeAKindOfTest(), 14 | BeAnInstanceOfTest(), 15 | BeCloseToTest(), 16 | BeginWithTest(), 17 | BeGreaterThanOrEqualToTest(), 18 | BeGreaterThanTest(), 19 | BeIdenticalToObjectTest(), 20 | BeIdenticalToTest(), 21 | BeLessThanOrEqualToTest(), 22 | BeLessThanTest(), 23 | BeTruthyTest(), 24 | BeTrueTest(), 25 | BeFalsyTest(), 26 | BeFalseTest(), 27 | BeNilTest(), 28 | ContainTest(), 29 | EndWithTest(), 30 | EqualTest(), 31 | HaveCountTest(), 32 | // MatchTest(), 33 | // RaisesExceptionTest(), 34 | ThrowErrorTest(), 35 | SatisfyAnyOfTest(), 36 | PostNotificationTest(), 37 | ]) 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/Helpers/ObjectWithLazyProperty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | class ObjectWithLazyProperty { 4 | init() {} 5 | lazy var value: String = "hello" 6 | lazy var anotherValue: String = { return "world" }() 7 | } 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/Matchers/BeNilTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeNilTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeNil", testBeNil), 8 | ] 9 | } 10 | 11 | func producesNil() -> Array? { 12 | return nil 13 | } 14 | 15 | func testBeNil() { 16 | expect(nil as Int?).to(beNil()) 17 | expect(1 as Int?).toNot(beNil()) 18 | expect(self.producesNil()).to(beNil()) 19 | 20 | failsWithErrorMessage("expected to not be nil, got ") { 21 | expect(nil as Int?).toNot(beNil()) 22 | } 23 | 24 | failsWithErrorMessage("expected to be nil, got <1>") { 25 | expect(1 as Int?).to(beNil()) 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/Matchers/BeVoidTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeVoidTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeVoid", testBeVoid), 8 | ] 9 | } 10 | 11 | func testBeVoid() { 12 | expect(()).to(beVoid()) 13 | expect(() as ()?).to(beVoid()) 14 | expect(nil as ()?).toNot(beVoid()) 15 | 16 | expect(()) == () 17 | expect(() as ()?) == () 18 | expect(nil as ()?) != () 19 | 20 | failsWithErrorMessage("expected to not be void, got <()>") { 21 | expect(()).toNot(beVoid()) 22 | } 23 | 24 | failsWithErrorMessage("expected to not be void, got <()>") { 25 | expect(() as ()?).toNot(beVoid()) 26 | } 27 | 28 | failsWithErrorMessage("expected to be void, got ") { 29 | expect(nil as ()?).to(beVoid()) 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/NimbleSpecHelper.h: -------------------------------------------------------------------------------- 1 | @import Nimble; 2 | #import "NimbleTests-Swift.h" 3 | 4 | // Use this when you want to verify the failure message for when an expectation fails 5 | #define expectFailureMessage(MSG, BLOCK) \ 6 | [NimbleHelper expectFailureMessage:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 7 | 8 | #define expectFailureMessages(MSGS, BLOCK) \ 9 | [NimbleHelper expectFailureMessages:(MSGS) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 10 | 11 | 12 | // Use this when you want to verify the failure message with the nil message postfixed 13 | // to it: " (use beNil() to match nils)" 14 | #define expectNilFailureMessage(MSG, BLOCK) \ 15 | [NimbleHelper expectFailureMessageForNil:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeFalseTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalseTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalseTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalse()); 12 | expect(@YES).toNot(beFalse()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectNilFailureMessage(@"expected to be false, got ", ^{ 17 | expect(nil).to(beFalse()); 18 | }); 19 | expectNilFailureMessage(@"expected to not be false, got ", ^{ 20 | expect(nil).toNot(beFalse()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeFalsyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalsyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalsyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalsy()); 12 | expect(@YES).toNot(beFalsy()); 13 | expect(nil).to(beFalsy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to not be falsy, got ", ^{ 18 | expect(nil).toNot(beFalsy()); 19 | }); 20 | expectFailureMessage(@"expected to be falsy, got <1>", ^{ 21 | expect(@1).to(beFalsy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeGreaterThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThan(@1)); 12 | expect(@2).toNot(beGreaterThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than <0>, got <-1>", ^{ 17 | expect(@(-1)).to(beGreaterThan(@(0))); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than <1>, got <0>", ^{ 20 | expect(@0).toNot(beGreaterThan(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than <-1>, got ", ^{ 26 | expect(nil).to(beGreaterThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than <1>, got ", ^{ 29 | expect(nil).toNot(beGreaterThan(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeLessThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThan(@3)); 12 | expect(@2).toNot(beLessThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than <0>, got <-1>", ^{ 17 | expect(@(-1)).to(beLessThan(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than <1>, got <0>", ^{ 20 | expect(@0).toNot(beLessThan(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than <-1>, got ", ^{ 26 | expect(nil).to(beLessThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than <1>, got ", ^{ 29 | expect(nil).toNot(beLessThan(@1)); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeNilTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeNilTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeNilTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(nil).to(beNil()); 12 | expect(@NO).toNot(beNil()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be nil, got <1>", ^{ 17 | expect(@1).to(beNil()); 18 | }); 19 | expectFailureMessage(@"expected to not be nil, got ", ^{ 20 | expect(nil).toNot(beNil()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeTrueTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTrueTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTrueTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTrue()); 12 | expect(@NO).toNot(beTrue()); 13 | expect(nil).toNot(beTrue()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be true, got <0>", ^{ 18 | expect(@NO).to(beTrue()); 19 | }); 20 | expectFailureMessage(@"expected to be true, got ", ^{ 21 | expect(nil).to(beTrue()); 22 | }); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCBeTruthyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTruthyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTruthyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTruthy()); 12 | expect(@NO).toNot(beTruthy()); 13 | expect(nil).toNot(beTruthy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be truthy, got ", ^{ 18 | expect(nil).to(beTruthy()); 19 | }); 20 | expectFailureMessage(@"expected to not be truthy, got <1>", ^{ 21 | expect(@1).toNot(beTruthy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCEqualTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEqualTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEqualTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1).to(equal(@1)); 12 | expect(@1).toNot(equal(@2)); 13 | expect(@1).notTo(equal(@2)); 14 | expect(@"hello").to(equal(@"hello")); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to equal <2>, got <1>", ^{ 19 | expect(@1).to(equal(@2)); 20 | }); 21 | expectFailureMessage(@"expected to not equal <1>, got <1>", ^{ 22 | expect(@1).toNot(equal(@1)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to equal , got ", ^{ 28 | expect(nil).to(equal(nil)); 29 | }); 30 | expectNilFailureMessage(@"expected to not equal , got ", ^{ 31 | expect(nil).toNot(equal(nil)); 32 | }); 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjCSyncTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "NimbleSpecHelper.h" 4 | 5 | @interface ObjCSyncTest : XCTestCase 6 | 7 | @end 8 | 9 | @implementation ObjCSyncTest 10 | 11 | - (void)testFailureExpectation { 12 | expectFailureMessage(@"fail() always fails", ^{ 13 | fail(); 14 | }); 15 | 16 | expectFailureMessage(@"This always fails", ^{ 17 | failWithMessage(@"This always fails"); 18 | }); 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/Tests/Nimble/objc/ObjcStringersTest.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | @import Nimble; 3 | 4 | @interface ObjcStringersTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjcStringersTest 9 | 10 | - (void)testItCanStringifyArrays { 11 | NSArray *array = @[@1, @2, @3]; 12 | NSString *result = NMBStringify(array); 13 | 14 | expect(result).to(equal(@"(1, 2, 3)")); 15 | } 16 | 17 | - (void)testItCanStringifyIndexSets { 18 | NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 3)]; 19 | NSString *result = NMBStringify(indexSet); 20 | 21 | expect(result).to(equal(@"(1, 2, 3)")); 22 | } 23 | 24 | - (void)testItRoundsLongDecimals { 25 | NSNumber *num = @291.123782163; 26 | NSString *result = NMBStringify(num); 27 | 28 | expect(result).to(equal(@"291.1238")); 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Nimble/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.3" 4 | 5 | dependencies: 6 | pre: 7 | - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)" 8 | 9 | test: 10 | override: 11 | - NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 ./test ios 12 | - NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 ./test osx 13 | - eval "$(swiftenv init -)"; ./test swiftpm: 14 | environment: 15 | SWIFTENV_ROOT: $HOME/.swiftenv 16 | PATH: $SWIFTENV_ROOT/bin:$PATH 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Externals/Nimble"] 2 | path = Externals/Nimble 3 | url = https://github.com/Quick/Nimble.git 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/.ruby-version: -------------------------------------------------------------------------------- 1 | system 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-02-25-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Documentation/en-us/InstallingFileTemplates.md: -------------------------------------------------------------------------------- 1 | # Installing Quick File Templates 2 | 3 | The Quick repository includes file templates for both Swift and 4 | Objective-C specs. 5 | 6 | ## Alcatraz 7 | 8 | Quick templates can be installed via [Alcatraz](https://github.com/supermarin/Alcatraz), 9 | a package manager for Xcode. Just search for the templates from the 10 | Package Manager window. 11 | 12 | ![](http://f.cl.ly/items/3T3q0G1j0b2t1V0M0T04/Screen%20Shot%202014-06-27%20at%202.01.10%20PM.png) 13 | 14 | ## Manually via the Rakefile 15 | 16 | To manually install the templates, just clone the repository and 17 | run the `templates:install` rake task: 18 | 19 | ```sh 20 | $ git clone git@github.com:Quick/Quick.git 21 | $ rake templates:install 22 | ``` 23 | 24 | Uninstalling is easy, too: 25 | 26 | ```sh 27 | $ rake templates:uninstall 28 | ``` 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Documentation/ja/InstallingFileTemplates.md: -------------------------------------------------------------------------------- 1 | # Quickファイル・テンプレートのインストール方法: 2 | 3 | Quick のリポジトリには Swift, Objective-C の両方で使用できるテンプレートが含まれています。 4 | 5 | ## Alcatraz 6 | 7 | Quick のテンプレートは Xcode のパッケージマネージャーの [Alcatraz](https://github.com/supermarin/Alcatraz) 経由でインストールできます。 8 | パッケージマネージャーから検索してみてください。 9 | 10 | ![](http://f.cl.ly/items/3T3q0G1j0b2t1V0M0T04/Screen%20Shot%202014-06-27%20at%202.01.10%20PM.png) 11 | 12 | ## Rakefile から手動でインストールする 13 | 14 | 手動でインストールすることもできます。 15 | リポジトリを clone して rake task の `templates:install` を実行してください。 16 | 17 | ```sh 18 | $ git clone git@github.com:Quick/Quick.git 19 | $ rake templates:install 20 | ``` 21 | 22 | アンインストールも簡単です、下記コマンドを実行してください。 23 | 24 | ```sh 25 | $ rake templates:uninstall 26 | ``` 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata/ 3 | build/ 4 | .idea 5 | DerivedData/ 6 | Nimble.framework.zip 7 | 8 | # Carthage 9 | # 10 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 11 | # Carthage/Checkouts 12 | 13 | Carthage/Build 14 | 15 | # Swift Package Manager 16 | # 17 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 18 | # Packages/ 19 | .build/ 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/.ruby-version: -------------------------------------------------------------------------------- 1 | system 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-02-25-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Gemfile: -------------------------------------------------------------------------------- 1 | # A sample Gemfile 2 | source "https://rubygems.org" 3 | 4 | gem 'cocoapods' 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Nimble.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Nimble" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/AdapterProtocols.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// Protocol for the assertion handler that Nimble uses for all expectations. 4 | public protocol AssertionHandler { 5 | func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) 6 | } 7 | 8 | /// Global backing interface for assertions that Nimble creates. 9 | /// Defaults to a private test handler that passes through to XCTest. 10 | /// 11 | /// If XCTest is not available, you must assign your own assertion handler 12 | /// before using any matchers, otherwise Nimble will abort the program. 13 | /// 14 | /// @see AssertionHandler 15 | public var NimbleAssertionHandler: AssertionHandler = { () -> AssertionHandler in 16 | return isXCTestAvailable() ? NimbleXCTestHandler() : NimbleXCTestUnavailableHandler() 17 | }() 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/AssertionDispatcher.swift: -------------------------------------------------------------------------------- 1 | 2 | /// AssertionDispatcher allows multiple AssertionHandlers to receive 3 | /// assertion messages. 4 | /// 5 | /// @warning Does not fully dispatch if one of the handlers raises an exception. 6 | /// This is possible with XCTest-based assertion handlers. 7 | /// 8 | public class AssertionDispatcher: AssertionHandler { 9 | let handlers: [AssertionHandler] 10 | 11 | public init(handlers: [AssertionHandler]) { 12 | self.handlers = handlers 13 | } 14 | 15 | public func assert(assertion: Bool, message: FailureMessage, location: SourceLocation) { 16 | for handler in handlers { 17 | handler.assert(assertion, message: message, location: location) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/ObjectiveC/CurrentTestCaseTracker.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | SWIFT_CLASS("_TtC6Nimble22CurrentTestCaseTracker") 5 | @interface CurrentTestCaseTracker : NSObject 6 | + (CurrentTestCaseTracker *)sharedInstance; 7 | @end 8 | 9 | @interface CurrentTestCaseTracker (Register) @end 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBExceptionCapture.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NMBExceptionCapture : NSObject 5 | 6 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally; 7 | - (void)tryBlock:(void(^)())unsafeBlock; 8 | 9 | @end 10 | 11 | typedef void(^NMBSourceCallbackBlock)(BOOL successful); 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBExceptionCapture.m: -------------------------------------------------------------------------------- 1 | #import "NMBExceptionCapture.h" 2 | 3 | @interface NMBExceptionCapture () 4 | @property (nonatomic, copy) void(^handler)(NSException *exception); 5 | @property (nonatomic, copy) void(^finally)(); 6 | @end 7 | 8 | @implementation NMBExceptionCapture 9 | 10 | - (id)initWithHandler:(void(^)(NSException *))handler finally:(void(^)())finally { 11 | self = [super init]; 12 | if (self) { 13 | self.handler = handler; 14 | self.finally = finally; 15 | } 16 | return self; 17 | } 18 | 19 | - (void)tryBlock:(void(^)())unsafeBlock { 20 | @try { 21 | unsafeBlock(); 22 | } 23 | @catch (NSException *exception) { 24 | if (self.handler) { 25 | self.handler(exception); 26 | } 27 | } 28 | @finally { 29 | if (self.finally) { 30 | self.finally(); 31 | } 32 | } 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBStringify.h: -------------------------------------------------------------------------------- 1 | @class NSString; 2 | 3 | /** 4 | * Returns a string appropriate for displaying in test output 5 | * from the provided value. 6 | * 7 | * @param value A value that will show up in a test's output. 8 | * 9 | * @return The string that is returned can be 10 | * customized per type by conforming a type to the `TestOutputStringConvertible` 11 | * protocol. When stringifying a non-`TestOutputStringConvertible` type, this 12 | * function will return the value's debug description and then its 13 | * normal description if available and in that order. Otherwise it 14 | * will return the result of constructing a string from the value. 15 | * 16 | * @see `TestOutputStringConvertible` 17 | */ 18 | extern NSString *_Nonnull NMBStringify(id _Nullable anyObject) __attribute__((warn_unused_result)); 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Adapters/ObjectiveC/NMBStringify.m: -------------------------------------------------------------------------------- 1 | #import "NMBStringify.h" 2 | #import 3 | 4 | NSString *_Nonnull NMBStringify(id _Nullable anyObject) { 5 | return [NMBStringer stringify:anyObject]; 6 | } 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Matchers/BeNil.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is nil. 4 | public func beNil() -> MatcherFunc { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be nil" 7 | let actualValue = try actualExpression.evaluate() 8 | return actualValue == nil 9 | } 10 | } 11 | 12 | #if _runtime(_ObjC) 13 | extension NMBObjCMatcher { 14 | public class func beNilMatcher() -> NMBObjCMatcher { 15 | return NMBObjCMatcher { actualExpression, failureMessage in 16 | return try! beNil().matches(actualExpression, failureMessage: failureMessage) 17 | } 18 | } 19 | } 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Matchers/BeVoid.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /// A Nimble matcher that succeeds when the actual value is Void. 4 | public func beVoid() -> MatcherFunc<()> { 5 | return MatcherFunc { actualExpression, failureMessage in 6 | failureMessage.postfixMessage = "be void" 7 | let actualValue: ()? = try actualExpression.evaluate() 8 | return actualValue != nil 9 | } 10 | } 11 | 12 | public func ==(lhs: Expectation<()>, rhs: ()) { 13 | lhs.to(beVoid()) 14 | } 15 | 16 | public func !=(lhs: Expectation<()>, rhs: ()) { 17 | lhs.toNot(beVoid()) 18 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Nimble.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NMBExceptionCapture.h" 3 | #import "NMBStringify.h" 4 | #import "DSL.h" 5 | 6 | FOUNDATION_EXPORT double NimbleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char NimbleVersionString[]; 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Sources/Nimble/Utils/Functional.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension SequenceType { 4 | internal func all(fn: Generator.Element -> Bool) -> Bool { 5 | for item in self { 6 | if !fn(item) { 7 | return false 8 | } 9 | } 10 | return true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | @testable import Nimbletest 3 | 4 | // This is the entry point for NimbleTests on Linux 5 | 6 | XCTMain([ 7 | // AsynchronousTests(), 8 | SynchronousTest(), 9 | UserDescriptionTest(), 10 | 11 | // Matchers 12 | AllPassTest(), 13 | // BeAKindOfTest(), 14 | BeAnInstanceOfTest(), 15 | BeCloseToTest(), 16 | BeginWithTest(), 17 | BeGreaterThanOrEqualToTest(), 18 | BeGreaterThanTest(), 19 | BeIdenticalToObjectTest(), 20 | BeIdenticalToTest(), 21 | BeLessThanOrEqualToTest(), 22 | BeLessThanTest(), 23 | BeTruthyTest(), 24 | BeTrueTest(), 25 | BeFalsyTest(), 26 | BeFalseTest(), 27 | BeNilTest(), 28 | ContainTest(), 29 | EndWithTest(), 30 | EqualTest(), 31 | HaveCountTest(), 32 | // MatchTest(), 33 | // RaisesExceptionTest(), 34 | ThrowErrorTest(), 35 | SatisfyAnyOfTest(), 36 | PostNotificationTest(), 37 | ]) 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/Helpers/ObjectWithLazyProperty.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | class ObjectWithLazyProperty { 4 | init() {} 5 | lazy var value: String = "hello" 6 | lazy var anotherValue: String = { return "world" }() 7 | } 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/Matchers/BeNilTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeNilTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeNil", testBeNil), 8 | ] 9 | } 10 | 11 | func producesNil() -> Array? { 12 | return nil 13 | } 14 | 15 | func testBeNil() { 16 | expect(nil as Int?).to(beNil()) 17 | expect(1 as Int?).toNot(beNil()) 18 | expect(self.producesNil()).to(beNil()) 19 | 20 | failsWithErrorMessage("expected to not be nil, got ") { 21 | expect(nil as Int?).toNot(beNil()) 22 | } 23 | 24 | failsWithErrorMessage("expected to be nil, got <1>") { 25 | expect(1 as Int?).to(beNil()) 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/Matchers/BeVoidTest.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Nimble 3 | 4 | class BeVoidTest: XCTestCase, XCTestCaseProvider { 5 | var allTests: [(String, () throws -> Void)] { 6 | return [ 7 | ("testBeVoid", testBeVoid), 8 | ] 9 | } 10 | 11 | func testBeVoid() { 12 | expect(()).to(beVoid()) 13 | expect(() as ()?).to(beVoid()) 14 | expect(nil as ()?).toNot(beVoid()) 15 | 16 | expect(()) == () 17 | expect(() as ()?) == () 18 | expect(nil as ()?) != () 19 | 20 | failsWithErrorMessage("expected to not be void, got <()>") { 21 | expect(()).toNot(beVoid()) 22 | } 23 | 24 | failsWithErrorMessage("expected to not be void, got <()>") { 25 | expect(() as ()?).toNot(beVoid()) 26 | } 27 | 28 | failsWithErrorMessage("expected to be void, got ") { 29 | expect(nil as ()?).to(beVoid()) 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/NimbleSpecHelper.h: -------------------------------------------------------------------------------- 1 | @import Nimble; 2 | #import "NimbleTests-Swift.h" 3 | 4 | // Use this when you want to verify the failure message for when an expectation fails 5 | #define expectFailureMessage(MSG, BLOCK) \ 6 | [NimbleHelper expectFailureMessage:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 7 | 8 | #define expectFailureMessages(MSGS, BLOCK) \ 9 | [NimbleHelper expectFailureMessages:(MSGS) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 10 | 11 | 12 | // Use this when you want to verify the failure message with the nil message postfixed 13 | // to it: " (use beNil() to match nils)" 14 | #define expectNilFailureMessage(MSG, BLOCK) \ 15 | [NimbleHelper expectFailureMessageForNil:(MSG) block:(BLOCK) file:@(__FILE__) line:__LINE__]; 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeFalseTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalseTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalseTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalse()); 12 | expect(@YES).toNot(beFalse()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectNilFailureMessage(@"expected to be false, got ", ^{ 17 | expect(nil).to(beFalse()); 18 | }); 19 | expectNilFailureMessage(@"expected to not be false, got ", ^{ 20 | expect(nil).toNot(beFalse()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeFalsyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeFalsyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeFalsyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@NO).to(beFalsy()); 12 | expect(@YES).toNot(beFalsy()); 13 | expect(nil).to(beFalsy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to not be falsy, got ", ^{ 18 | expect(nil).toNot(beFalsy()); 19 | }); 20 | expectFailureMessage(@"expected to be falsy, got <1>", ^{ 21 | expect(@1).to(beFalsy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeGreaterThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeGreaterThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeGreaterThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beGreaterThan(@1)); 12 | expect(@2).toNot(beGreaterThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be greater than <0>, got <-1>", ^{ 17 | expect(@(-1)).to(beGreaterThan(@(0))); 18 | }); 19 | expectFailureMessage(@"expected to not be greater than <1>, got <0>", ^{ 20 | expect(@0).toNot(beGreaterThan(@(1))); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be greater than <-1>, got ", ^{ 26 | expect(nil).to(beGreaterThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be greater than <1>, got ", ^{ 29 | expect(nil).toNot(beGreaterThan(@(1))); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeLessThanTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeLessThanTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeLessThanTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@2).to(beLessThan(@3)); 12 | expect(@2).toNot(beLessThan(@2)); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be less than <0>, got <-1>", ^{ 17 | expect(@(-1)).to(beLessThan(@0)); 18 | }); 19 | expectFailureMessage(@"expected to not be less than <1>, got <0>", ^{ 20 | expect(@0).toNot(beLessThan(@1)); 21 | }); 22 | } 23 | 24 | - (void)testNilMatches { 25 | expectNilFailureMessage(@"expected to be less than <-1>, got ", ^{ 26 | expect(nil).to(beLessThan(@(-1))); 27 | }); 28 | expectNilFailureMessage(@"expected to not be less than <1>, got ", ^{ 29 | expect(nil).toNot(beLessThan(@1)); 30 | }); 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeNilTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeNilTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeNilTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(nil).to(beNil()); 12 | expect(@NO).toNot(beNil()); 13 | } 14 | 15 | - (void)testNegativeMatches { 16 | expectFailureMessage(@"expected to be nil, got <1>", ^{ 17 | expect(@1).to(beNil()); 18 | }); 19 | expectFailureMessage(@"expected to not be nil, got ", ^{ 20 | expect(nil).toNot(beNil()); 21 | }); 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeTrueTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTrueTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTrueTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTrue()); 12 | expect(@NO).toNot(beTrue()); 13 | expect(nil).toNot(beTrue()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be true, got <0>", ^{ 18 | expect(@NO).to(beTrue()); 19 | }); 20 | expectFailureMessage(@"expected to be true, got ", ^{ 21 | expect(nil).to(beTrue()); 22 | }); 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCBeTruthyTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCBeTruthyTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCBeTruthyTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@YES).to(beTruthy()); 12 | expect(@NO).toNot(beTruthy()); 13 | expect(nil).toNot(beTruthy()); 14 | } 15 | 16 | - (void)testNegativeMatches { 17 | expectFailureMessage(@"expected to be truthy, got ", ^{ 18 | expect(nil).to(beTruthy()); 19 | }); 20 | expectFailureMessage(@"expected to not be truthy, got <1>", ^{ 21 | expect(@1).toNot(beTruthy()); 22 | }); 23 | expectFailureMessage(@"expected to be truthy, got <0>", ^{ 24 | expect(@NO).to(beTruthy()); 25 | }); 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCEqualTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "NimbleSpecHelper.h" 3 | 4 | @interface ObjCEqualTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjCEqualTest 9 | 10 | - (void)testPositiveMatches { 11 | expect(@1).to(equal(@1)); 12 | expect(@1).toNot(equal(@2)); 13 | expect(@1).notTo(equal(@2)); 14 | expect(@"hello").to(equal(@"hello")); 15 | } 16 | 17 | - (void)testNegativeMatches { 18 | expectFailureMessage(@"expected to equal <2>, got <1>", ^{ 19 | expect(@1).to(equal(@2)); 20 | }); 21 | expectFailureMessage(@"expected to not equal <1>, got <1>", ^{ 22 | expect(@1).toNot(equal(@1)); 23 | }); 24 | } 25 | 26 | - (void)testNilMatches { 27 | expectNilFailureMessage(@"expected to equal , got ", ^{ 28 | expect(nil).to(equal(nil)); 29 | }); 30 | expectNilFailureMessage(@"expected to not equal , got ", ^{ 31 | expect(nil).toNot(equal(nil)); 32 | }); 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjCSyncTest.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "NimbleSpecHelper.h" 4 | 5 | @interface ObjCSyncTest : XCTestCase 6 | 7 | @end 8 | 9 | @implementation ObjCSyncTest 10 | 11 | - (void)testFailureExpectation { 12 | expectFailureMessage(@"fail() always fails", ^{ 13 | fail(); 14 | }); 15 | 16 | expectFailureMessage(@"This always fails", ^{ 17 | failWithMessage(@"This always fails"); 18 | }); 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/Tests/Nimble/objc/ObjcStringersTest.m: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | @import Nimble; 3 | 4 | @interface ObjcStringersTest : XCTestCase 5 | 6 | @end 7 | 8 | @implementation ObjcStringersTest 9 | 10 | - (void)testItCanStringifyArrays { 11 | NSArray *array = @[@1, @2, @3]; 12 | NSString *result = NMBStringify(array); 13 | 14 | expect(result).to(equal(@"(1, 2, 3)")); 15 | } 16 | 17 | - (void)testItCanStringifyIndexSets { 18 | NSIndexSet *indexSet = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 3)]; 19 | NSString *result = NMBStringify(indexSet); 20 | 21 | expect(result).to(equal(@"(1, 2, 3)")); 22 | } 23 | 24 | - (void)testItRoundsLongDecimals { 25 | NSNumber *num = @291.123782163; 26 | NSString *result = NMBStringify(num); 27 | 28 | expect(result).to(equal(@"291.1238")); 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Externals/Nimble/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.3" 4 | 5 | dependencies: 6 | pre: 7 | - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)" 8 | 9 | test: 10 | override: 11 | - NIMBLE_RUNTIME_IOS_SDK_VERSION=9.0 ./test ios 12 | - NIMBLE_RUNTIME_OSX_SDK_VERSION=10.10 ./test osx 13 | - eval "$(swiftenv init -)"; ./test swiftpm: 14 | environment: 15 | SWIFTENV_ROOT: $HOME/.swiftenv 16 | PATH: $SWIFTENV_ROOT/bin:$PATH 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'cocoapods', '1.0' 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Quick", 5 | targets: [ 6 | Target(name: "QuickTests", dependencies: [.Target(name: "Quick"), .Target(name: "QuickTestHelpers")]), 7 | Target(name: "QuickFocusedTests", dependencies: [.Target(name: "Quick"), .Target(name: "QuickTestHelpers")]), 8 | Target(name: "QuickTestHelpers", dependencies: [.Target(name: "Quick")]), 9 | ], 10 | // TODO: Once the `test` command has been implemented in the Swift Package Manager, this should be changed to 11 | // be `testDependencies:` instead. For now it has to be done like this for the library to get linked with the test targets. 12 | // See: https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md 13 | dependencies: [ 14 | .Package(url: "https://github.com/briancroom/Nimble", majorVersion: 3) 15 | ] 16 | ) 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.h: -------------------------------------------------------------------------------- 1 | @import Quick; 2 | 3 | @interface ___FILEBASENAMEASIDENTIFIER___ : QuickConfiguration 4 | 5 | @end 6 | 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Objective-C/___FILEBASENAME___.m: -------------------------------------------------------------------------------- 1 | #import "___FILEBASENAMEASIDENTIFIER___.h" 2 | 3 | @implementation ___FILEBASENAMEASIDENTIFIER___ 4 | 5 | + (void)configure:(Configuration *)configuration { 6 | 7 | } 8 | 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/Swift/___FILEBASENAME___.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | class ___FILEBASENAMEASIDENTIFIER___: QuickConfiguration { 4 | override class func configure(configuration: Configuration) { 5 | 6 | } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ilyapuchka/dipgen/4e835d6f5cb1c3979dd943ee1264df333e8d9281/Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Configuration Class.xctemplate/TemplateIcon.icns -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/Objective-C/___FILEBASENAME___.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | QuickSpecBegin(___FILEBASENAMEASIDENTIFIER___) 5 | 6 | QuickSpecEnd 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/Swift/___FILEBASENAME___.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | import Nimble 3 | 4 | class ___FILEBASENAMEASIDENTIFIER___: QuickSpec { 5 | override func spec() { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ilyapuchka/dipgen/4e835d6f5cb1c3979dd943ee1264df333e8d9281/Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick Templates/Quick Spec Class.xctemplate/TemplateIcon.icns -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Quick.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Callsite.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | An object encapsulating the file and line number at which 5 | a particular example is defined. 6 | */ 7 | final public class Callsite: NSObject { 8 | /** 9 | The absolute path of the file in which an example is defined. 10 | */ 11 | public let file: String 12 | 13 | /** 14 | The line number on which an example is defined. 15 | */ 16 | public let line: UInt 17 | 18 | internal init(file: String, line: UInt) { 19 | self.file = file 20 | self.line = line 21 | } 22 | } 23 | 24 | /** 25 | Returns a boolean indicating whether two Callsite objects are equal. 26 | If two callsites are in the same file and on the same line, they must be equal. 27 | */ 28 | public func ==(lhs: Callsite, rhs: Callsite) -> Bool { 29 | return lhs.file == rhs.file && lhs.line == rhs.line 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Configuration/QuickConfiguration.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | // NOTE: This file is not intended to be included in the Xcode project or CocoaPods. 4 | // It is picked up by the Swift Package Manager during its build process. 5 | 6 | public class QuickConfiguration { 7 | public class func configure(configuration: Configuration) {} 8 | } 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/ErrorUtility.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @noreturn internal func raiseError(message: String) { 4 | #if _runtime(_ObjC) 5 | NSException(name: NSInternalInconsistencyException, reason: message, userInfo: nil).raise() 6 | #endif 7 | 8 | // This won't be reached when ObjC is available and the exception above is raisd 9 | fatalError(message) 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/ExampleMetadata.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | /** 4 | A class that encapsulates information about an example, 5 | including the index at which the example was executed, as 6 | well as the example itself. 7 | */ 8 | final public class ExampleMetadata: NSObject { 9 | /** 10 | The example for which this metadata was collected. 11 | */ 12 | public let example: Example 13 | 14 | /** 15 | The index at which this example was executed in the 16 | test suite. 17 | */ 18 | public let exampleIndex: Int 19 | 20 | internal init(example: Example, exampleIndex: Int) { 21 | self.example = example 22 | self.exampleIndex = exampleIndex 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Hooks/HooksPhase.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A description of the execution cycle of the current example with 3 | respect to the hooks of that example. 4 | */ 5 | internal enum HooksPhase: Int { 6 | case NothingExecuted = 0 7 | case BeforesExecuting 8 | case BeforesFinished 9 | case AftersExecuting 10 | case AftersFinished 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Hooks/SuiteHooks.swift: -------------------------------------------------------------------------------- 1 | /** 2 | A container for closures to be executed before and after all examples. 3 | */ 4 | final internal class SuiteHooks { 5 | internal var befores: [BeforeSuiteClosure] = [] 6 | internal var afters: [AfterSuiteClosure] = [] 7 | internal var phase: HooksPhase = .NothingExecuted 8 | 9 | internal func appendBefore(closure: BeforeSuiteClosure) { 10 | befores.append(closure) 11 | } 12 | 13 | internal func appendAfter(closure: AfterSuiteClosure) { 14 | afters.append(closure) 15 | } 16 | 17 | internal func executeBefores() { 18 | phase = .BeforesExecuting 19 | for before in befores { 20 | before() 21 | } 22 | phase = .BeforesFinished 23 | } 24 | 25 | internal func executeAfters() { 26 | phase = .AftersExecuting 27 | for after in afters { 28 | after() 29 | } 30 | phase = .AftersFinished 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSHumanReadableCopyright 24 | Copyright © 2014 - present, Quick Team. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/NSBundle+CurrentTestBundle.swift: -------------------------------------------------------------------------------- 1 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS) 2 | 3 | import Foundation 4 | 5 | extension NSBundle { 6 | 7 | /** 8 | Locates the first bundle with a '.xctest' file extension. 9 | */ 10 | internal static var currentTestBundle: NSBundle? { 11 | return allBundles().lazy 12 | .filter { 13 | $0.bundlePath.hasSuffix(".xctest") 14 | } 15 | .first 16 | } 17 | 18 | } 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/NSString+QCKSelectorName.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | QuickSpec converts example names into test methods. 5 | Those test methods need valid selector names, which means no whitespace, 6 | control characters, etc. This category gives NSString objects an easy way 7 | to replace those illegal characters with underscores. 8 | */ 9 | @interface NSString (QCKSelectorName) 10 | 11 | /** 12 | Returns a string with underscores in place of all characters that cannot 13 | be included in a selector (SEL) name. 14 | */ 15 | @property (nonatomic, readonly) NSString *qck_selectorName; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/Quick.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for Quick. 4 | FOUNDATION_EXPORT double QuickVersionNumber; 5 | 6 | //! Project version string for Quick. 7 | FOUNDATION_EXPORT const unsigned char QuickVersionString[]; 8 | 9 | #import "QuickSpec.h" 10 | #import "QCKDSL.h" 11 | #import "QuickConfiguration.h" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/String+FileName.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | extension String { 4 | 5 | /** 6 | If the receiver represents a path, returns its file name with a file extension. 7 | */ 8 | var fileName: String? { 9 | return NSURL(string: self)?.URLByDeletingPathExtension?.lastPathComponent 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/Quick/World.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class ExampleGroup; 4 | @class ExampleMetadata; 5 | 6 | SWIFT_CLASS("_TtC5Quick5World") 7 | @interface World 8 | 9 | @property (nonatomic) ExampleGroup * __nullable currentExampleGroup; 10 | @property (nonatomic) ExampleMetadata * __nullable currentExampleMetadata; 11 | @property (nonatomic) BOOL isRunningAdditionalSuites; 12 | + (World * __nonnull)sharedWorld; 13 | - (void)configure:(void (^ __nonnull)(Configuration * __nonnull))closure; 14 | - (void)finalizeConfiguration; 15 | - (ExampleGroup * __nonnull)rootExampleGroupForSpecClass:(Class __nonnull)cls; 16 | - (NSArray * __nonnull)examplesForSpecClass:(Class __nonnull)specClass; 17 | - (void)performWithCurrentExampleGroup:(ExampleGroup * __nonnull)group closure:(void (^ __nonnull)(void))closure; 18 | @end 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickFocusedTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickFocusedTests/main.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | QCKMain([ 4 | FunctionalTests_FocusedSpec_Focused(), 5 | FunctionalTests_FocusedSpec_Unfocused(), 6 | FocusedTests(), 7 | ], 8 | configurations: [FunctionalTests_FocusedSpec_SharedExamplesConfiguration.self] 9 | ) 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTestHelpers/SpecRunner.swift: -------------------------------------------------------------------------------- 1 | @testable import Quick 2 | import Nimble 3 | 4 | public func qck_runSpec(specClass: QuickSpec.Type) -> TestRun { 5 | return qck_runSpecs([specClass]) 6 | } 7 | 8 | public func qck_runSpecs(specClasses: [QuickSpec.Type]) -> TestRun { 9 | World.sharedWorld.isRunningAdditionalSuites = true 10 | 11 | var executionCount: UInt = 0 12 | var hadUnexpectedFailure = false 13 | 14 | let fails = gatherFailingExpectations(silently: true) { 15 | for specClass in specClasses { 16 | let spec = specClass.init() 17 | for (_, test) in spec.allTests { 18 | do { 19 | try test() 20 | } catch { 21 | hadUnexpectedFailure = true 22 | } 23 | executionCount += 1 24 | } 25 | } 26 | } 27 | 28 | return TestRun(executionCount: executionCount, hasSucceeded: fails.isEmpty && !hadUnexpectedFailure) 29 | } 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTestHelpers/TestRun.swift: -------------------------------------------------------------------------------- 1 | 2 | public struct TestRun { 3 | public var executionCount: UInt 4 | public var hasSucceeded: Bool 5 | 6 | public init(executionCount: UInt, hasSucceeded: Bool) { 7 | self.executionCount = executionCount 8 | self.hasSucceeded = hasSucceeded 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Fixtures/FunctionalTests_SharedExamplesTests_SharedExamples.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import Quick 3 | import Nimble 4 | 5 | class FunctionalTests_SharedExamplesTests_SharedExamples: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | sharedExamples("a group of three shared examples") { 8 | it("passes once") { expect(true).to(beTruthy()) } 9 | it("passes twice") { expect(true).to(beTruthy()) } 10 | it("passes three times") { expect(true).to(beTruthy()) } 11 | } 12 | 13 | sharedExamples("shared examples that take a context") { (sharedExampleContext: SharedExampleContext) in 14 | it("is passed the correct parameters via the context") { 15 | let callsite = sharedExampleContext()[NSString(string: "callsite")] as! NSString 16 | expect(callsite).to(equal("SharedExamplesSpec")) 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/Configuration/AfterEach/Configuration+AfterEach.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | public var FunctionalTests_Configuration_AfterEachWasExecuted = false 4 | 5 | class FunctionalTests_Configuration_AfterEach: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | configuration.afterEach { 8 | FunctionalTests_Configuration_AfterEachWasExecuted = true 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/Configuration/BeforeEach/Configuration+BeforeEach.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | 3 | public var FunctionalTests_Configuration_BeforeEachWasExecuted = false 4 | 5 | class FunctionalTests_Configuration_BeforeEach: QuickConfiguration { 6 | override class func configure(configuration: Configuration) { 7 | configuration.beforeEach { 8 | FunctionalTests_Configuration_BeforeEachWasExecuted = true 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/ContextTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Quick 3 | import Nimble 4 | #if SWIFT_PACKAGE 5 | import QuickTestHelpers 6 | #endif 7 | 8 | #if _runtime(_ObjC) 9 | class QuickContextTests: QuickSpec { 10 | override func spec() { 11 | describe("Context") { 12 | it("should throw an exception if used in an it block") { 13 | expect { 14 | context("A nested context that should throw") { } 15 | }.to(raiseException { (exception: NSException) in 16 | expect(exception.name).to(equal(NSInternalInconsistencyException)) 17 | expect(exception.reason).to(equal("'context' cannot be used inside 'it', 'context' may only be used inside 'context' or 'describe'. ")) 18 | }) 19 | } 20 | } 21 | } 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/FunctionalTests/CrossReferencingSpecs.swift: -------------------------------------------------------------------------------- 1 | import Quick 2 | import Nimble 3 | 4 | // This is a functional test ensuring that no crash occurs when a spec class 5 | // references another spec class during its spec setup. 6 | 7 | class FunctionalTests_CrossReferencingSpecA: QuickSpec { 8 | override func spec() { 9 | let _ = FunctionalTests_CrossReferencingSpecB() 10 | it("does not crash") {} 11 | } 12 | } 13 | 14 | class FunctionalTests_CrossReferencingSpecB: QuickSpec { 15 | override func spec() { 16 | let _ = FunctionalTests_CrossReferencingSpecA() 17 | it("does not crash") {} 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QCKSpecRunner.h: -------------------------------------------------------------------------------- 1 | @import XCTest; 2 | 3 | /** 4 | Runs an XCTestSuite instance containing only the given XCTestCase subclass. 5 | Use this to run QuickSpec subclasses from within a set of unit tests. 6 | 7 | Due to implicit dependencies in _XCTFailureHandler, this function raises an 8 | exception when used in Swift to run a failing test case. 9 | 10 | @param specClass The class of the spec to be run. 11 | @return An XCTestRun instance that contains information such as the number of failures, etc. 12 | */ 13 | extern XCTestRun *qck_runSpec(Class specClass); 14 | 15 | /** 16 | Runs an XCTestSuite instance containing the given XCTestCase subclasses, in the order provided. 17 | See the documentation for `qck_runSpec` for more details. 18 | 19 | @param specClasses An array of QuickSpec classes, in the order they should be run. 20 | @return An XCTestRun instance that contains information such as the number of failures, etc. 21 | */ 22 | extern XCTestRun *qck_runSpecs(NSArray *specClasses); 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QuickSpec+QuickSpec_MethodList.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | NS_ASSUME_NONNULL_BEGIN 4 | 5 | @interface QuickSpec (QuickSpec_MethodList) 6 | 7 | + (NSSet *)allSelectors; 8 | 9 | @end 10 | 11 | NS_ASSUME_NONNULL_END 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/QuickTestsBridgingHeader.h: -------------------------------------------------------------------------------- 1 | #import "QCKSpecRunner.h" 2 | #import "QuickSpec+QuickSpec_MethodList.h" -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Helpers/XCTestObservationCenter+QCKSuspendObservation.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | Add the ability to temporarily disable internal XCTest execution observation in 5 | order to run isolated XCTestSuite instances while the QuickTests test suite is running. 6 | */ 7 | @interface XCTestObservationCenter (QCKSuspendObservation) 8 | 9 | /** 10 | Suspends test suite observation for XCTest-provided observers for the duration that 11 | the block is executing. Any test suites that are executed within the block do not 12 | generate any log output. Failures are still reported. 13 | 14 | Use this method to run XCTestSuite objects while another XCTestSuite is running. 15 | Without this method, tests fail with the message: "Timed out waiting for IDE 16 | barrier message to complete" or "Unexpected TestSuiteDidStart". 17 | */ 18 | - (void)qck_suspendObservationForBlock:(void (^)(void))block; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/Sources/QuickTests/QuickConfigurationTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface QuickConfigurationTests : XCTestCase; @end 5 | 6 | @implementation QuickConfigurationTests 7 | 8 | - (void)testInitThrows { 9 | XCTAssertThrowsSpecificNamed([QuickConfiguration new], NSException, NSInternalInconsistencyException); 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | xcode: 3 | version: "7.3" 4 | 5 | checkout: 6 | post: 7 | - git submodule update --init --recursive 8 | 9 | dependencies: 10 | pre: 11 | - brew update 12 | - brew outdated xctool || brew upgrade xctool 13 | 14 | test: 15 | override: 16 | - rake test:ios 17 | - rake test:osx 18 | - rake test:xctool:ios 19 | - rake test:xctool:osx 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/script/travis-install-linux: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | # See: https://github.com/kylef/swiftenv/wiki/Travis-CI 5 | curl -sL https://gist.github.com/kylef/5c0475ff02b7c7671d2a/raw/621ef9b29bbb852fdfd2e10ed147b321d792c1e4/swiftenv-install.sh | bash 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/script/travis-install-osx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | set -e 3 | 4 | git submodule update --init --recursive 5 | 6 | if [[ "$XCTOOL" -eq 1 ]]; then 7 | brew update 8 | brew outdated xctool || brew upgrade xctool 9 | fi 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/script/travis-script-linux: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | . ~/.swiftenv/init 4 | rake test:swiftpm 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/script/travis-script-osx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | if [ "$PODSPEC" ]; then 4 | TASK="podspec:lint" 5 | else 6 | TASK="test" 7 | 8 | if [ "$XCTOOL" ]; then TASK="$TASK:xctool"; fi 9 | TASK="$TASK:$PLATFORM" 10 | fi 11 | 12 | echo "Executing rake task: $TASK" 13 | rake "$TASK" 14 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata 3 | *.xcuserdatad 4 | *.xccheckout 5 | *.mode* 6 | *.pbxuser 7 | 8 | Carthage/Build 9 | .build 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-05-31-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | We love that you're interested in contributing to this project! 2 | 3 | To make the process as painless as possible, we have just a couple of guidelines 4 | that should make life easier for everyone involved. 5 | 6 | ## Prefer Pull Requests 7 | 8 | If you know exactly how to implement the feature being suggested or fix the bug 9 | being reported, please open a pull request instead of an issue. Pull requests are easier than 10 | patches or inline code blocks for discussing and merging the changes. 11 | 12 | If you can't make the change yourself, please open an issue after making sure 13 | that one isn't already logged. 14 | 15 | ## Contributing Code 16 | 17 | Fork this repository, make it awesomer (preferably in a branch named for the 18 | topic), send a pull request! 19 | 20 | All code contributions should match our [coding 21 | conventions](https://github.com/github/swift-style-guide). 22 | 23 | Thanks for contributing! :boom::camel: 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Result", 5 | targets: [ 6 | Target( 7 | name: "Result" 8 | ) 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Result.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'Result' 3 | s.version = '2.1.3' 4 | s.summary = 'Swift type modelling the success/failure of arbitrary operations' 5 | 6 | s.homepage = 'https://github.com/antitypical/Result' 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } 8 | s.author = { 'Rob Rix' => 'rob.rix@github.com' } 9 | s.source = { :git => 'https://github.com/antitypical/Result.git', :tag => s.version } 10 | s.source_files = 'Result/*.swift' 11 | s.requires_arc = true 12 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '2.3' } 13 | s.ios.deployment_target = '8.0' 14 | s.osx.deployment_target = '10.9' 15 | s.watchos.deployment_target = '2.0' 16 | s.tvos.deployment_target = '9.0' 17 | end 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Result.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Result/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2015 Rob Rix. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Result/Result.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Rob Rix. All rights reserved. 2 | 3 | /// Project version number for Result. 4 | extern double ResultVersionNumber; 5 | 6 | /// Project version string for Result. 7 | extern const unsigned char ResultVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | @testable import ResultTestSuite 4 | 5 | XCTMain([ 6 | testCase(ResultTests.allTests), 7 | ]) 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/Result/Tests/Result/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 2.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/.gitignore: -------------------------------------------------------------------------------- 1 | Carthage/Build 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Base/Configurations/Profile.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines the base configuration for an optional profiling-specific 3 | // build of any project. To use these settings, create a Profile configuration 4 | // in your project, and use this file at the project level for the new 5 | // configuration. 6 | // 7 | 8 | // based on the Release configuration, with some stuff related to debugging 9 | // symbols re-enabled 10 | #include "Release.xcconfig" 11 | 12 | // Whether to strip debugging symbols when copying resources (like included 13 | // binaries) 14 | COPY_PHASE_STRIP = NO 15 | 16 | // Whether to only build the active architecture 17 | ONLY_ACTIVE_ARCH = YES 18 | 19 | // Whether to strip debugging symbols when copying the built product to its 20 | // final installation location 21 | STRIP_INSTALLED_PRODUCT = NO 22 | 23 | // Whether to perform App Store validation checks 24 | VALIDATE_PRODUCT = NO 25 | 26 | // Disable Developer ID timestamping 27 | OTHER_CODE_SIGN_FLAGS = --timestamp=none 28 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Base/Configurations/Test.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines the base configuration for a Test build of any project. 3 | // This should be set at the project level for the Test configuration. 4 | // 5 | 6 | #include "Debug.xcconfig" 7 | 8 | // Sandboxed apps can't be unit tested since they can't load some random 9 | // external bundle. So we disable sandboxing for testing. 10 | CODE_SIGN_ENTITLEMENTS = 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Base/Targets/Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application. Typically, you want to use a platform-specific variant 4 | // instead. 5 | // 6 | 7 | // Whether to strip out code that isn't called from anywhere 8 | DEAD_CODE_STRIPPING = NO 9 | 10 | // Sets the @rpath for the application such that it can include frameworks in 11 | // the application bundle (inside the "Frameworks" folder) 12 | LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks @loader_path/../Frameworks @executable_path/Frameworks 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on Mac OS X. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | 13 | // Whether function calls should be position-dependent (should always be 14 | // disabled for library code) 15 | GCC_DYNAMIC_NO_PIC = YES 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for Mac OS X. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Whether to combine multiple image resolutions into a multirepresentational 8 | // TIFF 9 | COMBINE_HIDPI_IMAGES = YES 10 | 11 | // Where to find embedded frameworks 12 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks 13 | 14 | // The base SDK to use (if no version is specified, the latest version is 15 | // assumed) 16 | SDKROOT = macosx 17 | 18 | // Supported build architectures 19 | VALID_ARCHS = x86_64 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-DynamicLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a dynamic library on Mac OS X. This should be set at the target level 4 | // for each project configuration. 5 | // 6 | 7 | // Import common settings specific to Mac OS X 8 | #include "Mac-Base.xcconfig" 9 | 10 | // Whether to strip out code that isn't called from anywhere 11 | DEAD_CODE_STRIPPING = NO 12 | 13 | // Whether function calls should be position-dependent (should always be 14 | // disabled for library code) 15 | GCC_DYNAMIC_NO_PIC = NO 16 | 17 | // Don't include in an xcarchive 18 | SKIP_INSTALL = YES 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on OS X. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on Mac OS X. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/iOS/iOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/iOS/iOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for iOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Xcode needs this to find archived headers if SKIP_INSTALL is set 8 | HEADER_SEARCH_PATHS = $(OBJROOT)/UninstalledProducts/include 9 | 10 | // Where to find embedded frameworks 11 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 12 | 13 | // The base SDK to use (if no version is specified, the latest version is 14 | // assumed) 15 | SDKROOT = iphoneos 16 | 17 | // Supported device families (1 is iPhone, 2 is iPad) 18 | TARGETED_DEVICE_FAMILY = 1,2 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/iOS/iOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/iOS/iOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for watchOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Where to find embedded frameworks 8 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 9 | 10 | // The base SDK to use (if no version is specified, the latest version is 11 | // assumed) 12 | SDKROOT = appletvos 13 | 14 | // Supported device families 15 | TARGETED_DEVICE_FAMILY = 3 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on watchOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/tvOS/tvOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for watchOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Where to find embedded frameworks 8 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 9 | 10 | // The base SDK to use (if no version is specified, the latest version is 11 | // assumed) 12 | SDKROOT = watchos 13 | 14 | // Supported device families 15 | TARGETED_DEVICE_FAMILY = 4 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on watchOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Carthage/Checkouts/xcconfigs/watchOS/watchOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Commandant.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Commandant.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Commandant", 5 | dependencies: [ 6 | .Package(url: "https://github.com/antitypical/Result.git", "2.0.0") 7 | ] 8 | ) 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Sources/Commandant/ArgumentType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ArgumentType.swift 3 | // Commandant 4 | // 5 | // Created by Syo Ikeda on 12/14/15. 6 | // Copyright (c) 2015 Carthage. All rights reserved. 7 | // 8 | 9 | /// Represents a value that can be converted from a command-line argument. 10 | public protocol ArgumentType { 11 | /// A human-readable name for this type. 12 | static var name: String { get } 13 | 14 | /// Attempts to parse a value from the given command-line argument. 15 | static func fromString(string: String) -> Self? 16 | } 17 | 18 | extension Int: ArgumentType { 19 | public static let name = "integer" 20 | 21 | public static func fromString(string: String) -> Int? { 22 | return Int(string) 23 | } 24 | } 25 | 26 | extension String: ArgumentType { 27 | public static let name = "string" 28 | 29 | public static func fromString(string: String) -> String? { 30 | return string 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Sources/Commandant/Commandant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Commandant.h 3 | // Commandant 4 | // 5 | // Created by Justin Spahr-Summers on 2014-11-21. 6 | // Copyright (c) 2014 Carthage. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Commandant. 12 | FOUNDATION_EXPORT double CommandantVersionNumber; 13 | 14 | //! Project version string for Commandant. 15 | FOUNDATION_EXPORT const unsigned char CommandantVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Sources/Commandant/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.10.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2014 Carthage. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Tests/CommandSpec.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CommandSpec.swift 3 | // Commandant 4 | // 5 | // Created by Syo Ikeda on 1/5/16. 6 | // Copyright © 2016 Carthage. All rights reserved. 7 | // 8 | 9 | import Commandant 10 | import Nimble 11 | import Quick 12 | import Result 13 | 14 | class CommandWrapperSpec: QuickSpec { 15 | override func spec() { 16 | describe("CommandWrapper.usage") { 17 | it("should not crash for a command with NoOptions") { 18 | let command = NoOptionsCommand() 19 | 20 | let registry = CommandRegistry>() 21 | registry.register(command) 22 | 23 | let wrapper = registry[command.verb] 24 | expect(wrapper).notTo(beNil()) 25 | expect(wrapper?.usage()).to(beNil()) 26 | } 27 | } 28 | } 29 | } 30 | 31 | struct NoOptionsCommand: CommandType { 32 | var verb: String { return "verb" } 33 | var function: String { return "function" } 34 | 35 | func run(options: NoOptions>) -> Result<(), CommandantError<()>> { 36 | return .Success() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Commandant/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 0.10.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | xcuserdata 3 | *.xcuserdatad 4 | *.xccheckout 5 | *.mode* 6 | *.pbxuser 7 | 8 | Carthage/Build 9 | .build 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/.swift-version: -------------------------------------------------------------------------------- 1 | DEVELOPMENT-SNAPSHOT-2016-05-31-a 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | We love that you're interested in contributing to this project! 2 | 3 | To make the process as painless as possible, we have just a couple of guidelines 4 | that should make life easier for everyone involved. 5 | 6 | ## Prefer Pull Requests 7 | 8 | If you know exactly how to implement the feature being suggested or fix the bug 9 | being reported, please open a pull request instead of an issue. Pull requests are easier than 10 | patches or inline code blocks for discussing and merging the changes. 11 | 12 | If you can't make the change yourself, please open an issue after making sure 13 | that one isn't already logged. 14 | 15 | ## Contributing Code 16 | 17 | Fork this repository, make it awesomer (preferably in a branch named for the 18 | topic), send a pull request! 19 | 20 | All code contributions should match our [coding 21 | conventions](https://github.com/github/swift-style-guide). 22 | 23 | Thanks for contributing! :boom::camel: 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Result", 5 | targets: [ 6 | Target( 7 | name: "Result" 8 | ) 9 | ] 10 | ) 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Result.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'Result' 3 | s.version = '2.1.3' 4 | s.summary = 'Swift type modelling the success/failure of arbitrary operations' 5 | 6 | s.homepage = 'https://github.com/antitypical/Result' 7 | s.license = { :type => 'MIT', :file => 'LICENSE' } 8 | s.author = { 'Rob Rix' => 'rob.rix@github.com' } 9 | s.source = { :git => 'https://github.com/antitypical/Result.git', :tag => s.version } 10 | s.source_files = 'Result/*.swift' 11 | s.requires_arc = true 12 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '2.3' } 13 | s.ios.deployment_target = '8.0' 14 | s.osx.deployment_target = '10.9' 15 | s.watchos.deployment_target = '2.0' 16 | s.tvos.deployment_target = '9.0' 17 | end 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Result.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Result/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2015 Rob Rix. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Result/Result.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Rob Rix. All rights reserved. 2 | 3 | /// Project version number for Result. 4 | extern double ResultVersionNumber; 5 | 6 | /// Project version string for Result. 7 | extern const unsigned char ResultVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | 3 | @testable import ResultTestSuite 4 | 5 | XCTMain([ 6 | testCase(ResultTests.allTests), 7 | ]) 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/Result/Tests/Result/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 2.1.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/.swiftlint.yml: -------------------------------------------------------------------------------- 1 | opt_in_rules: 2 | - empty_count 3 | - missing_docs 4 | 5 | excluded: 6 | - Carthage 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | xcode_workspace: SWXMLHash.xcworkspace 3 | xcode_scheme: SWXMLHash iOS 4 | osx_image: xcode7.3 5 | 6 | script: 7 | - ./Scripts/build.sh 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "SWXMLHash" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Rakefile: -------------------------------------------------------------------------------- 1 | def run(command) 2 | system(command) or raise "RAKE TASK FAILED: #{command}" 3 | end 4 | 5 | desc 'Clean, build and test SWXMLHash' 6 | task :test do |t| 7 | xctool_build_cmd = './scripts/build.sh' 8 | xcode_build_cmd = 'xcodebuild -workspace SWXMLHash.xcworkspace -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator' 9 | 10 | if system('which xctool') 11 | run xctool_build_cmd 12 | else 13 | if system('which xcpretty') 14 | run "#{xcode_build_cmd} | xcpretty -c" 15 | else 16 | run xcode_build_cmd 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/SWXMLHash.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'SWXMLHash' 3 | s.version = '2.5.0' 4 | s.summary = 'Simple XML parsing in Swift' 5 | s.homepage = 'https://github.com/drmohundro/SWXMLHash' 6 | s.license = { :type => 'MIT' } 7 | s.authors = { 'David Mohundro' => 'david@mohundro.com' } 8 | 9 | s.requires_arc = true 10 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '2.3' } 11 | 12 | s.osx.deployment_target = '10.9' 13 | s.ios.deployment_target = '8.0' 14 | s.watchos.deployment_target = '2.0' 15 | s.tvos.deployment_target = '9.0' 16 | 17 | s.source = { :git => 'https://github.com/drmohundro/SWXMLHash.git', :tag => '2.5.0' } 18 | s.source_files = 'Source/*.swift' 19 | end 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/SWXMLHash.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/SWXMLHash.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/SWXMLHashPlayground.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ev 4 | 5 | #xctool -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator 6 | set -o pipefail && xcodebuild -workspace SWXMLHash.xcworkspace -scheme "SWXMLHash iOS" clean build test -sdk iphonesimulator | xcpretty 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Source/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Source/SWXMLHash.h: -------------------------------------------------------------------------------- 1 | // 2 | // SWXMLHash.h 3 | // SWXMLHash 4 | // 5 | // Created by David Mohundro on 7/8/14. 6 | // 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SWXMLHash. 12 | FOUNDATION_EXPORT double SWXMLHashVersionNumber; 13 | 14 | //! Project version string for SWXMLHash. 15 | FOUNDATION_EXPORT const unsigned char SWXMLHashVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/SWXMLHash/Tests/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | Title 7 | 8 | 9 | V:|-10-[title]-10-| 10 | H:|-15-[title]-15-| 11 |
12 |
13 | 14 | H:|-15-[content]-15-| 15 | V:|-10-[content]-10-| 16 |
17 | 18 | 24 | 25 |
-------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/.gitignore: -------------------------------------------------------------------------------- 1 | xcuserdata 2 | .DS_Store 3 | Carthage 4 | Packages/ 5 | .build/ 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Yaml" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Yaml.xcodeproj/.gitignore: -------------------------------------------------------------------------------- 1 | project.xcworkspace 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Yaml/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Yaml/Operators.swift: -------------------------------------------------------------------------------- 1 | infix operator |> { associativity left } 2 | func |> (x: T, f: T -> U) -> U { 3 | return f(x) 4 | } 5 | 6 | func count(string: String) -> String.Index.Distance { 7 | return string.characters.count 8 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/YamlSwift/Yaml/Yaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // Yaml.h 3 | // Yaml 4 | // 5 | // Created by Gregory Higley on 8/5/15. 6 | // 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Yaml. 12 | FOUNDATION_EXPORT double YamlVersionNumber; 13 | 14 | //! Project version string for Yaml. 15 | FOUNDATION_EXPORT const unsigned char YamlVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/.gitignore: -------------------------------------------------------------------------------- 1 | Carthage/Build 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Base/Configurations/Profile.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines the base configuration for an optional profiling-specific 3 | // build of any project. To use these settings, create a Profile configuration 4 | // in your project, and use this file at the project level for the new 5 | // configuration. 6 | // 7 | 8 | // based on the Release configuration, with some stuff related to debugging 9 | // symbols re-enabled 10 | #include "Release.xcconfig" 11 | 12 | // Whether to strip debugging symbols when copying resources (like included 13 | // binaries) 14 | COPY_PHASE_STRIP = NO 15 | 16 | // Whether to only build the active architecture 17 | ONLY_ACTIVE_ARCH = YES 18 | 19 | // Whether to strip debugging symbols when copying the built product to its 20 | // final installation location 21 | STRIP_INSTALLED_PRODUCT = NO 22 | 23 | // Whether to perform App Store validation checks 24 | VALIDATE_PRODUCT = NO 25 | 26 | // Disable Developer ID timestamping 27 | OTHER_CODE_SIGN_FLAGS = --timestamp=none 28 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Base/Configurations/Test.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines the base configuration for a Test build of any project. 3 | // This should be set at the project level for the Test configuration. 4 | // 5 | 6 | #include "Debug.xcconfig" 7 | 8 | // Sandboxed apps can't be unit tested since they can't load some random 9 | // external bundle. So we disable sandboxing for testing. 10 | CODE_SIGN_ENTITLEMENTS = 11 | 12 | // Allow @testable imports 13 | ENABLE_TESTABILITY = YES 14 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Base/Targets/Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application. Typically, you want to use a platform-specific variant 4 | // instead. 5 | // 6 | 7 | // Whether to strip out code that isn't called from anywhere 8 | DEAD_CODE_STRIPPING = NO 9 | 10 | // Sets the @rpath for the application such that it can include frameworks in 11 | // the application bundle (inside the "Frameworks" folder) 12 | LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks @loader_path/../Frameworks @executable_path/Frameworks 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on Mac OS X. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | 13 | // Whether function calls should be position-dependent (should always be 14 | // disabled for library code) 15 | GCC_DYNAMIC_NO_PIC = YES 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for Mac OS X. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Whether to combine multiple image resolutions into a multirepresentational 8 | // TIFF 9 | COMBINE_HIDPI_IMAGES = YES 10 | 11 | // Where to find embedded frameworks 12 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks 13 | 14 | // The base SDK to use (if no version is specified, the latest version is 15 | // assumed) 16 | SDKROOT = macosx 17 | 18 | // Supported build architectures 19 | VALID_ARCHS = x86_64 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-DynamicLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a dynamic library on Mac OS X. This should be set at the target level 4 | // for each project configuration. 5 | // 6 | 7 | // Import common settings specific to Mac OS X 8 | #include "Mac-Base.xcconfig" 9 | 10 | // Whether to strip out code that isn't called from anywhere 11 | DEAD_CODE_STRIPPING = NO 12 | 13 | // Whether function calls should be position-dependent (should always be 14 | // disabled for library code) 15 | GCC_DYNAMIC_NO_PIC = NO 16 | 17 | // Don't include in an xcarchive 18 | SKIP_INSTALL = YES 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on OS X. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/Mac OS X/Mac-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on Mac OS X. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to Mac OS X 11 | #include "Mac-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/iOS/iOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/iOS/iOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for iOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Xcode needs this to find archived headers if SKIP_INSTALL is set 8 | HEADER_SEARCH_PATHS = $(OBJROOT)/UninstalledProducts/include 9 | 10 | // Where to find embedded frameworks 11 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 12 | 13 | // The base SDK to use (if no version is specified, the latest version is 14 | // assumed) 15 | SDKROOT = iphoneos 16 | 17 | // Supported device families (1 is iPhone, 2 is iPad) 18 | TARGETED_DEVICE_FAMILY = 1,2 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/iOS/iOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/iOS/iOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on iOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to iOS 11 | #include "iOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on tvOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to tvOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for tvOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Where to find embedded frameworks 8 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 9 | 10 | // The base SDK to use (if no version is specified, the latest version is 11 | // assumed) 12 | SDKROOT = appletvos 13 | 14 | // Supported device families 15 | TARGETED_DEVICE_FAMILY = 3 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/tvOS/tvOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on tvOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/tvOS/tvOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on tvOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to tvOS 11 | #include "tvOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Application.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for an application on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base application settings 8 | #include "../Base/Targets/Application.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Base.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for watchOS. This file is not standalone -- it is meant to be included into 4 | // a configuration file for a specific type of target. 5 | // 6 | 7 | // Where to find embedded frameworks 8 | LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks 9 | 10 | // The base SDK to use (if no version is specified, the latest version is 11 | // assumed) 12 | SDKROOT = watchos 13 | 14 | // Supported device families 15 | TARGETED_DEVICE_FAMILY = 4 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/watchOS/watchOS-Framework.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a framework on watchOS. This should be set at the target level for each 4 | // project configuration. 5 | // 6 | 7 | // Import base framework settings 8 | #include "../Base/Targets/Framework.xcconfig" 9 | 10 | // Import common settings specific to iOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Carthage/Checkouts/xcconfigs/watchOS/watchOS-StaticLibrary.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // This file defines additional configuration options that are appropriate only 3 | // for a static library on watchOS. This should be set at the target level for 4 | // each project configuration. 5 | // 6 | 7 | // Import base static library settings 8 | #include "../Base/Targets/StaticLibrary.xcconfig" 9 | 10 | // Apply common settings specific to watchOS 11 | #include "watchOS-Base.xcconfig" 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Dangerfile: -------------------------------------------------------------------------------- 1 | # Warn when there is a big PR 2 | warn("Big PR") if git.lines_of_code > 500 3 | 4 | # Sometimes its a README fix, or something like that - which isn't relevant for 5 | # including in a CHANGELOG for example 6 | has_app_changes = !git.modified_files.grep(/Source/).empty? 7 | has_test_changes = !git.modified_files.grep(/Tests/).empty? 8 | 9 | # Add a CHANGELOG entry for app changes 10 | if !git.modified_files.include?("CHANGELOG.md") && has_app_changes 11 | fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/jpsim/SourceKitten/blob/master/CHANGELOG.md).") 12 | message "Note, we hard-wrap at 80 chars and use 2 spaces after the last line." 13 | end 14 | 15 | # Non-trivial amounts of app changes without tests 16 | if git.lines_of_code > 50 && has_app_changes && !has_test_changes 17 | warn "This PR may need tests." 18 | end -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/Dictionary+Merge.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Dictionary+Merge.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 2015-01-08. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | /** 10 | Returns a new dictionary by adding the entries of dict2 into dict1, overriding if the key exists. 11 | 12 | - parameter dict1: Dictionary to merge into. 13 | - parameter dict2: Dictionary to merge from (optional). 14 | 15 | - returns: A new dictionary by adding the entries of dict2 into dict1, overriding if the key exists. 16 | */ 17 | internal func merge(dict1: [K: V], _ dict2: [K: V]?) -> [K: V] { 18 | var mergedDict = dict1 19 | if let dict2 = dict2 { 20 | for (key, value) in dict2 { 21 | mergedDict[key] = value 22 | } 23 | } 24 | return mergedDict 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/Documentation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Documentation.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 10/27/15. 6 | // Copyright © 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | #if SWIFT_PACKAGE 10 | import Clang_C 11 | #endif 12 | 13 | public struct Documentation { 14 | let parameters: [Parameter] 15 | let returnDiscussion: [Text] 16 | 17 | init(comment: CXComment) { 18 | let comments = (0.. 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.14.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2015 SourceKitten. All rights reserved. 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/Language.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Language.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 2015-01-03. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | /// Language Enum. 10 | public enum Language { 11 | /// Swift. 12 | case Swift 13 | /// Objective-C. 14 | case ObjC 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/Parameter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Parameter.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 10/27/15. 6 | // Copyright © 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | #if SWIFT_PACKAGE 10 | import Clang_C 11 | #endif 12 | 13 | public struct Parameter { 14 | let name: String 15 | let discussion: [Text] 16 | 17 | init(comment: CXComment) { 18 | name = comment.paramName() ?? "" 19 | discussion = comment.paragraph().paragraphToString() 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/SourceKittenFramework.h: -------------------------------------------------------------------------------- 1 | // 2 | // SourceKittenFramework.h 3 | // SourceKittenFramework 4 | // 5 | // Created by JP Simard on 2015-01-02. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SourceKittenFramework. 12 | FOUNDATION_EXPORT double SourceKittenFrameworkVersionNumber; 13 | 14 | //! Project version string for SourceKittenFramework. 15 | FOUNDATION_EXPORT const unsigned char SourceKittenFrameworkVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | // Ideally this would be in a bridging header, but due to rdar://17633863, we can't have nice things. 20 | // TODO: use clang-c's modulemap instead. 21 | #import 22 | #import 23 | #import 24 | #import 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/SwiftLangSyntax.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public protocol SwiftLangSyntax { 4 | var value: String { get } 5 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/Text.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Text.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 10/27/15. 6 | // Copyright © 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | public enum Text { 10 | case Para(String, String?) 11 | case Verbatim(String) 12 | } 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/clang-c/module.modulemap: -------------------------------------------------------------------------------- 1 | module Clang_C { 2 | umbrella "." 3 | module * { export * } 4 | } 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/library_wrapper_CXString.swift: -------------------------------------------------------------------------------- 1 | #if SWIFT_PACKAGE 2 | import Clang_C 3 | #endif 4 | private let library = toolchainLoader.load("libclang.dylib") 5 | internal let clang_getCString: @convention(c) (CXString) -> (UnsafePointer) = library.loadSymbol("clang_getCString") 6 | internal let clang_disposeString: @convention(c) (CXString) -> () = library.loadSymbol("clang_disposeString") 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/sourcekitten/Errors.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Errors.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 2015-01-15. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | /// Possible errors within SourceKitten. 10 | enum SourceKittenError: ErrorType, CustomStringConvertible { 11 | /// One or more argument was invalid. 12 | case InvalidArgument(description: String) 13 | 14 | /// Failed to read a file at the given path. 15 | case ReadFailed(path: String) 16 | 17 | /// Failed to generate documentation. 18 | case DocFailed 19 | 20 | /// An error message corresponding to this error. 21 | var description: String { 22 | switch self { 23 | case let .InvalidArgument(description): 24 | return description 25 | case let .ReadFailed(path): 26 | return "Failed to read file at '\(path)'" 27 | case .DocFailed: 28 | return "Failed to generate documentation" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/sourcekitten/VersionCommand.swift: -------------------------------------------------------------------------------- 1 | // 2 | // VersionCommand.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 2015-01-07. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | import Commandant 10 | import Result 11 | 12 | private let version = "0.14.1" 13 | 14 | struct VersionCommand: CommandType { 15 | let verb = "version" 16 | let function = "Display the current version of SourceKitten" 17 | 18 | func run(options: NoOptions) -> Result<(), SourceKittenError> { 19 | print(version) 20 | return .Success() 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Source/sourcekitten/main.swift: -------------------------------------------------------------------------------- 1 | // 2 | // main.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 2015-01-03. 6 | // Copyright (c) 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | import Darwin 10 | import Commandant 11 | 12 | // `sourcekitd_set_notification_handler()` set the handler to be executed on main thread queue. 13 | // So, we vacate main thread to `dispatch_main()`. 14 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { 15 | let registry = CommandRegistry() 16 | registry.register(CompleteCommand()) 17 | registry.register(DocCommand()) 18 | registry.register(FormatCommand()) 19 | registry.register(IndexCommand()) 20 | registry.register(SyntaxCommand()) 21 | registry.register(StructureCommand()) 22 | registry.register(VersionCommand()) 23 | 24 | let helpCommand = HelpCommand(registry: registry) 25 | registry.register(helpCommand) 26 | 27 | registry.main(defaultVerb: "help") { error in 28 | fputs("\(error)\n", stderr) 29 | } 30 | } 31 | 32 | dispatch_main() 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/SourceKitten.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | 15 | 16 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/CodeCompletionTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CodeCompletionTests.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 9/3/15. 6 | // Copyright © 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import SourceKittenFramework 11 | import XCTest 12 | 13 | class CodeCompletionTests: XCTestCase { 14 | 15 | func testSimpleCodeCompletion() { 16 | let file = "\(NSUUID().UUIDString).swift" 17 | let completionItems = CodeCompletionItem.parseResponse( 18 | Request.CodeCompletionRequest(file: file, contents: "0.", offset: 2, 19 | arguments: ["-c", file, "-sdk", sdkPath()]).send()) 20 | compareJSONStringWithFixturesName("SimpleCodeCompletion", 21 | jsonString: completionItems) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/FileTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FileTests.swift 3 | // SourceKitten 4 | // 5 | // Created by JP Simard on 7/15/15. 6 | // Copyright © 2015 SourceKitten. All rights reserved. 7 | // 8 | 9 | import SourceKittenFramework 10 | import XCTest 11 | 12 | class FileTests: XCTestCase { 13 | 14 | func testUnreadablePath() { 15 | XCTAssert(File(path: "/dev/null") == nil) 16 | } 17 | 18 | func testFormat() { 19 | let file = File(path: fixturesDirectory + "BicycleUnformatted.swift") 20 | let formattedFile = file?.format(trimmingTrailingWhitespace: true, 21 | useTabs: false, 22 | indentWidth: 4) 23 | XCTAssertEqual(formattedFile!, try! String(contentsOfFile: fixturesDirectory + "Bicycle.swift")) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Realm/RLMArray_Private.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface RLMArray () 22 | - (instancetype)initWithObjectClassName:(NSString *)objectClassName; 23 | - (NSString *)descriptionWithMaxDepth:(NSUInteger)depth; 24 | @end 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Realm/RLMPlatform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ilyapuchka/dipgen/4e835d6f5cb1c3979dd943ee1264df333e8d9281/Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Realm/RLMPlatform.h -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Realm/RLMResults_Private.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @class RLMObjectSchema; 22 | 23 | @interface RLMResults () 24 | @property (nonatomic, unsafe_unretained) RLMObjectSchema *objectSchema; 25 | @end 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Realm/RLMSwiftSupport.h: -------------------------------------------------------------------------------- 1 | //////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright 2014 Realm Inc. 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //////////////////////////////////////////////////////////////////////////// 18 | 19 | #import 20 | 21 | @interface RLMSwiftSupport : NSObject 22 | 23 | + (BOOL)isSwiftClassName:(NSString *)className; 24 | + (NSString *)demangleClassName:(NSString *)className; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/Subscript.swift: -------------------------------------------------------------------------------- 1 | struct VoidStruct { 2 | /// Returns or sets Void. 3 | subscript(key: String) -> () { 4 | get { return () } 5 | set {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Fixtures/SuperScript.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** 4 | ᴬ ᴮ ᴰ ᴱ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴼ ᴾ ᴿ ᵀ ᵁ ⱽ ᵂ 5 | */ 6 | @interface SuperScript : NSObject 7 | 8 | #pragma mark ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ 9 | 10 | /** 11 | ᵝ ᵞ ᵟ ᵋ ᶿ ᶥ ᶹ ᵠ ᵡ 12 | */ 13 | - (IBAction)superSize:(id)sender; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/Tests/SourceKittenFramework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 0.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/jazzy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | jazzy -m SourceKitten \ 4 | -a "JP Simard" \ 5 | -u https://github.com/jpsim/SourceKitten \ 6 | -g https://github.com/jpsim/SourceKitten \ 7 | --github-file-prefix https://github.com/jpsim/SourceKitten/blob/0.6.2 \ 8 | --module-version 0.6.2 \ 9 | -r http://www.jpsim.com/SourceKitten/ \ 10 | -x -workspace,SourceKitten.xcworkspace,-scheme,SourceKittenFramework \ 11 | -c 12 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export SCRIPT_DIR=$(dirname "$0") 4 | 5 | ## 6 | ## Bootstrap Process 7 | ## 8 | 9 | main () 10 | { 11 | local submodules=$(git submodule status) 12 | local result=$? 13 | 14 | if [ "$result" -ne "0" ] 15 | then 16 | exit $result 17 | fi 18 | 19 | if [ -n "$submodules" ] 20 | then 21 | echo "*** Updating submodules..." 22 | update_submodules 23 | fi 24 | } 25 | 26 | bootstrap_submodule () 27 | { 28 | local bootstrap="script/bootstrap" 29 | 30 | if [ -e "$bootstrap" ] 31 | then 32 | echo "*** Bootstrapping $name..." 33 | "$bootstrap" >/dev/null 34 | else 35 | update_submodules 36 | fi 37 | } 38 | 39 | update_submodules () 40 | { 41 | git submodule sync --quiet && git submodule update --init && git submodule foreach --quiet bootstrap_submodule 42 | } 43 | 44 | export -f bootstrap_submodule 45 | export -f update_submodules 46 | 47 | main 48 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/check-xcode-version: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Check the minimum required Xcode version. Meant to be run 4 | # as part of an Xcode Run Script build phase. 5 | 6 | required_xcode_version=6.1.1 7 | 8 | if [ ${XCODE_VERSION_ACTUAL} -lt ${required_xcode_version//.} ] 9 | then 10 | echo "error: Xcode ${required_xcode_version} or later is required to build ${PRODUCT_NAME}" 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/cibuild: -------------------------------------------------------------------------------- 1 | make test package 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/extract-tool: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Extracts the sourcekitten CLI tool from its application bundle. Meant to be run 4 | # as part of an Xcode Run Script build phase. 5 | 6 | cp -v "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}" "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}" 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/module.modulemap: -------------------------------------------------------------------------------- 1 | module Clang_C { 2 | umbrella "." 3 | link "clang" 4 | module * { export * } 5 | } 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/spm_bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SWIFT_SNAPSHOT=$1 4 | 5 | cp -r /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/local/include/clang-c /usr/local/include/clang-c 6 | curl https://raw.githubusercontent.com/jpsim/SourceKitten/master/script/module.modulemap -o /usr/local/include/clang-c/module.modulemap 7 | ln -s /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/lib/libclang.dylib /usr/local/lib/libclang.dylib 8 | mkdir -p /usr/local/include/sourcekitdInProc 9 | ln -s /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/lib/sourcekitd.framework/Headers/sourcekitd.h /usr/local/include/sourcekitdInProc/sourcekitd.h 10 | curl https://static.realm.io/libsourcekitdInProc/$SWIFT_SNAPSHOT/libsourcekitdInProc.dylib -o /usr/local/lib/libsourcekitdInProc.dylib 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/script/spm_teardown: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | rm -rf /usr/local/include/clang-c /usr/local/lib/libclang.dylib 4 | rm -rf /usr/local/include/sourcekitdInProc /usr/local/lib/libsourcekitdInProc.dylib 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/SourceKitten/sourcekitten.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/.gitignore: -------------------------------------------------------------------------------- 1 | # Mac 2 | .DS_Store 3 | 4 | # Xcode 5 | # 6 | build/ 7 | *.pbxuser 8 | !default.pbxuser 9 | *.mode1v3 10 | !default.mode1v3 11 | *.mode2v3 12 | !default.mode2v3 13 | *.perspectivev3 14 | !default.perspectivev3 15 | xcuserdata 16 | *.xccheckout 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | *.xcuserstate 22 | *.xcscmblueprint 23 | 24 | # CocoaPods 25 | # 26 | Pods/ 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Carthage/Build: -------------------------------------------------------------------------------- 1 | ../../../../Carthage/Build -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Test projects/README.md: -------------------------------------------------------------------------------- 1 | # Test projects 2 | 3 | Sources: 4 | 5 | * HelloCpp.xcodeproj: [https://github.com/cocos2d/cocos2d-x/tree/v3/templates/cpp-template-default/proj.ios_mac](https://github.com/cocos2d/cocos2d-x/tree/v3/templates/cpp-template-default/proj.ios_mac) 6 | * Security.xcodeproj: [http://www.opensource.apple.com/source/Security/Security-55179.1/](http://www.opensource.apple.com/source/Security/Security-55179.1/) 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Xcode/Xcode.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Xcode/Xcode/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2015 nonstrict. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Xcode/Xcode/Xcode.h: -------------------------------------------------------------------------------- 1 | // 2 | // Xcode.h 3 | // Xcode 4 | // 5 | // Created by Tom Lokhorst on 2015-08-12. 6 | // Copyright (c) 2015 nonstrict. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Xcode. 12 | FOUNDATION_EXPORT double XcodeVersionNumber; 13 | 14 | //! Project version string for Xcode. 15 | FOUNDATION_EXPORT const unsigned char XcodeVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Xcode/XcodeTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/Xcode.swift/Xcode/XcodeTests/XcodeTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // XcodeTests.swift 3 | // XcodeTests 4 | // 5 | // Created by Tom Lokhorst on 2015-08-12. 6 | // Copyright (c) 2015 nonstrict. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import XCTest 11 | import Xcode 12 | 13 | class XcodeTests: XCTestCase { 14 | 15 | override func setUp() { 16 | super.setUp() 17 | // Put setup code here. This method is called before the invocation of each test method in the class. 18 | } 19 | 20 | override func tearDown() { 21 | // Put teardown code here. This method is called after the invocation of each test method in the class. 22 | super.tearDown() 23 | } 24 | 25 | func testExample() { 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/.gitignore: -------------------------------------------------------------------------------- 1 | xcuserdata 2 | .DS_Store 3 | Carthage 4 | Packages/ 5 | .build/ 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "Yaml" 5 | ) 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Yaml.xcodeproj/.gitignore: -------------------------------------------------------------------------------- 1 | project.xcworkspace 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Yaml/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Yaml/Operators.swift: -------------------------------------------------------------------------------- 1 | infix operator |> { associativity left } 2 | func |> (x: T, f: T -> U) -> U { 3 | return f(x) 4 | } 5 | 6 | func count(string: String) -> String.Index.Distance { 7 | return string.characters.count 8 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/YamlSwift/Yaml/Yaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // Yaml.h 3 | // Yaml 4 | // 5 | // Created by Gregory Higley on 8/5/15. 6 | // 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Yaml. 12 | FOUNDATION_EXPORT double YamlVersionNumber; 13 | 14 | //! Project version string for Yaml. 15 | FOUNDATION_EXPORT const unsigned char YamlVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /DipGenFramework/Sources/Dip.configure.stencil: -------------------------------------------------------------------------------- 1 | // This is a generated file, do not edit! 2 | // Generated by dipgen, see https://github.com/ilyapuchka/dipgen 3 | 4 | import Dip 5 | 6 | extension DependencyContainer { 7 | 8 | static func configureAll() { {% for container in containers %} 9 | _ = {{ container }}Container{% endfor %} 10 | } 11 | 12 | static func bootstrapAll() throws { {% for container in containers %} 13 | try {{ container }}Container.bootstrap(){% endfor %} 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /DipGenFramework/Stencil/Filters.swift: -------------------------------------------------------------------------------- 1 | func toString(value: Any?) -> String? { 2 | if let value = value as? String { 3 | return value 4 | } else if let value = value as? CustomStringConvertible { 5 | return value.description 6 | } 7 | 8 | return nil 9 | } 10 | 11 | func capitalise(value: Any?) -> Any? { 12 | if let value = toString(value) { 13 | return value.capitalizedString 14 | } 15 | 16 | return value 17 | } 18 | 19 | func uppercase(value: Any?) -> Any? { 20 | if let value = toString(value) { 21 | return value.uppercaseString 22 | } 23 | 24 | return value 25 | } 26 | 27 | func lowercase(value: Any?) -> Any? { 28 | if let value = toString(value) { 29 | return value.lowercaseString 30 | } 31 | 32 | return value 33 | } 34 | -------------------------------------------------------------------------------- /DipGenFramework/Stencil/TemplateLoader.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | // A class for loading a template from disk 4 | public class TemplateLoader { 5 | public let paths: [Path] 6 | 7 | public init(paths: [Path]) { 8 | self.paths = paths 9 | } 10 | 11 | public init(bundle: [NSBundle]) { 12 | self.paths = bundle.map { 13 | return Path($0.bundlePath) 14 | } 15 | } 16 | 17 | public func loadTemplate(templateName: String) -> Template? { 18 | return loadTemplate([templateName]) 19 | } 20 | 21 | public func loadTemplate(templateNames: [String]) -> Template? { 22 | for path in paths { 23 | for templateName in templateNames { 24 | let templatePath = path + Path(templateName) 25 | 26 | if templatePath.exists { 27 | if let template = try? Template(path: templatePath) { 28 | return template 29 | } 30 | } 31 | } 32 | } 33 | 34 | return nil 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /DipGenFramework/Supporting Files/DipGenFramework.h: -------------------------------------------------------------------------------- 1 | // 2 | // DipGenFramework.h 3 | // DipGenFramework 4 | // 5 | // Created by Ilya Puchka on 01.10.16. 6 | // Copyright © 2016 Ilya Puchka. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for DipGenFramework. 12 | FOUNDATION_EXPORT double DipGenFrameworkVersionNumber; 13 | 14 | //! Project version string for DipGenFramework. 15 | FOUNDATION_EXPORT const unsigned char DipGenFrameworkVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /DipGenFramework/Supporting Files/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSHumanReadableCopyright 22 | Copyright © 2016 Ilya Puchka. All rights reserved. 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/.gitignore: -------------------------------------------------------------------------------- 1 | Carthage 2 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/Cartfile: -------------------------------------------------------------------------------- 1 | github "AliSoftware/Dip-UI" "swift2.3" 2 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "AliSoftware/Dip" "fcdded912f70ebe0b2cd923ae7976b3c8ef9137d" 2 | github "AliSoftware/Dip-UI" "d3e1c4537e7b894fe7a6e6500647473ba1f731be" 3 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/DipGenTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/DipGenTest/CompositionRoot.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CompositionRoot.swift 3 | // DipGenTest 4 | // 5 | // Created by Ilya Puchka on 02.10.16. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | @dip.register 13 | @dip.constructor init 14 | @dip.name nsObject 15 | */ 16 | extension NSObject: SomeProtocol {} 17 | 18 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/DipGenTest/Dip.configure.swift: -------------------------------------------------------------------------------- 1 | // This is a generated file, do not edit! 2 | // Generated by dipgen, see https://github.com/ilyapuchka/dipgen 3 | 4 | import Dip 5 | 6 | extension DependencyContainer { 7 | 8 | static func configureAll() { 9 | _ = baseContainer 10 | _ = listModuleContainer 11 | } 12 | 13 | static func bootstrapAll() throws { 14 | try baseContainer.bootstrap() 15 | try listModuleContainer.bootstrap() 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/DipGenTest/DipGenTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // DipGenTest.h 3 | // DipGenTest 4 | // 5 | // Created by Ilya Puchka on 01.10.16. 6 | // 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for DipGenTest. 12 | FOUNDATION_EXPORT double DipGenTestVersionNumber; 13 | 14 | //! Project version string for DipGenTest. 15 | FOUNDATION_EXPORT const unsigned char DipGenTestVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Sources/DipGenTest/DipGenTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /DipGenFrameworkTests/Supporting Files/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /dipgen.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /script/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export SCRIPT_DIR=$(dirname "$0") 4 | 5 | ## 6 | ## Bootstrap Process 7 | ## 8 | 9 | main () 10 | { 11 | local submodules=$(git submodule status) 12 | local result=$? 13 | 14 | if [ "$result" -ne "0" ] 15 | then 16 | exit $result 17 | fi 18 | 19 | if [ -n "$submodules" ] 20 | then 21 | echo "*** Updating submodules..." 22 | update_submodules 23 | fi 24 | } 25 | 26 | bootstrap_submodule () 27 | { 28 | local bootstrap="script/bootstrap" 29 | 30 | if [ -e "$bootstrap" ] 31 | then 32 | echo "*** Bootstrapping $name..." 33 | "$bootstrap" >/dev/null 34 | else 35 | update_submodules 36 | fi 37 | } 38 | 39 | update_submodules () 40 | { 41 | git submodule sync --quiet && git submodule update --init && git submodule foreach --quiet bootstrap_submodule 42 | } 43 | 44 | export -f bootstrap_submodule 45 | export -f update_submodules 46 | 47 | main 48 | -------------------------------------------------------------------------------- /script/check-xcode-version: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Check the minimum required Xcode version. Meant to be run 4 | # as part of an Xcode Run Script build phase. 5 | 6 | required_xcode_version=6.1.1 7 | 8 | if [ ${XCODE_VERSION_ACTUAL} -lt ${required_xcode_version//.} ] 9 | then 10 | echo "error: Xcode ${required_xcode_version} or later is required to build ${PRODUCT_NAME}" 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /script/cibuild: -------------------------------------------------------------------------------- 1 | make test package 2 | -------------------------------------------------------------------------------- /script/extract-tool: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Extracts the sourcekitten CLI tool from its application bundle. Meant to be run 4 | # as part of an Xcode Run Script build phase. 5 | 6 | cp -v "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}" "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}" 7 | -------------------------------------------------------------------------------- /script/module.modulemap: -------------------------------------------------------------------------------- 1 | module Clang_C { 2 | umbrella "." 3 | link "clang" 4 | module * { export * } 5 | } 6 | -------------------------------------------------------------------------------- /script/spm_bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SWIFT_SNAPSHOT=$1 4 | 5 | cp -r /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/local/include/clang-c /usr/local/include/clang-c 6 | curl https://raw.githubusercontent.com/jpsim/SourceKitten/master/script/module.modulemap -o /usr/local/include/clang-c/module.modulemap 7 | ln -s /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/lib/libclang.dylib /usr/local/lib/libclang.dylib 8 | mkdir -p /usr/local/include/sourcekitdInProc 9 | ln -s /Library/Developer/Toolchains/$SWIFT_SNAPSHOT.xctoolchain/usr/lib/sourcekitd.framework/Headers/sourcekitd.h /usr/local/include/sourcekitdInProc/sourcekitd.h 10 | curl https://static.realm.io/libsourcekitdInProc/$SWIFT_SNAPSHOT/libsourcekitdInProc.dylib -o /usr/local/lib/libsourcekitdInProc.dylib 11 | -------------------------------------------------------------------------------- /script/spm_teardown: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | rm -rf /usr/local/include/clang-c /usr/local/lib/libclang.dylib 4 | rm -rf /usr/local/include/sourcekitdInProc /usr/local/lib/libsourcekitdInProc.dylib 5 | --------------------------------------------------------------------------------