From 6d13da063424136a7e694f632bdb481d0b57a956 Mon Sep 17 00:00:00 2001 From: adamkaplan Date: Wed, 24 Dec 2014 18:52:20 -0500 Subject: [PATCH] Initial commit --- .gitignore | 32 + .travis.yml | 12 + Example/Podfile | 12 + Example/Podfile.lock | 31 + Example/Pods/Expecta/LICENSE | 19 + Example/Pods/Expecta/README.md | 308 + .../Expecta/src/EXPBackwardCompatibility.h | 42 + .../Expecta/src/EXPBackwardCompatibility.m | 17 + .../Pods/Expecta/src/EXPBlockDefinedMatcher.h | 25 + .../Pods/Expecta/src/EXPBlockDefinedMatcher.m | 60 + Example/Pods/Expecta/src/EXPDefines.h | 17 + Example/Pods/Expecta/src/EXPDoubleTuple.h | 13 + Example/Pods/Expecta/src/EXPDoubleTuple.m | 42 + Example/Pods/Expecta/src/EXPExpect.h | 45 + Example/Pods/Expecta/src/EXPExpect.m | 214 + Example/Pods/Expecta/src/EXPFloatTuple.h | 13 + Example/Pods/Expecta/src/EXPFloatTuple.m | 42 + Example/Pods/Expecta/src/EXPMatcher.h | 20 + .../Pods/Expecta/src/EXPUnsupportedObject.h | 11 + .../Pods/Expecta/src/EXPUnsupportedObject.m | 20 + Example/Pods/Expecta/src/Expecta.h | 27 + Example/Pods/Expecta/src/Expecta.m | 15 + Example/Pods/Expecta/src/ExpectaSupport.h | 64 + Example/Pods/Expecta/src/ExpectaSupport.m | 187 + Example/Pods/Expecta/src/NSObject+Expecta.h | 14 + Example/Pods/Expecta/src/NSValue+Expecta.h | 8 + Example/Pods/Expecta/src/NSValue+Expecta.m | 21 + .../Expecta/src/matchers/EXPMatcherHelpers.h | 4 + .../Expecta/src/matchers/EXPMatcherHelpers.m | 9 + .../src/matchers/EXPMatchers+beCloseTo.h | 7 + .../src/matchers/EXPMatchers+beCloseTo.m | 49 + .../src/matchers/EXPMatchers+beFalsy.h | 3 + .../src/matchers/EXPMatchers+beFalsy.m | 24 + .../src/matchers/EXPMatchers+beGreaterThan.h | 6 + .../src/matchers/EXPMatchers+beGreaterThan.m | 20 + .../EXPMatchers+beGreaterThanOrEqualTo.h | 6 + .../EXPMatchers+beGreaterThanOrEqualTo.m | 20 + .../src/matchers/EXPMatchers+beIdenticalTo.h | 10 + .../src/matchers/EXPMatchers+beIdenticalTo.m | 24 + .../src/matchers/EXPMatchers+beInTheRangeOf.h | 6 + .../src/matchers/EXPMatchers+beInTheRangeOf.m | 30 + .../src/matchers/EXPMatchers+beInstanceOf.h | 7 + .../src/matchers/EXPMatchers+beInstanceOf.m | 27 + .../src/matchers/EXPMatchers+beKindOf.h | 5 + .../src/matchers/EXPMatchers+beKindOf.m | 27 + .../src/matchers/EXPMatchers+beLessThan.h | 6 + .../src/matchers/EXPMatchers+beLessThan.m | 20 + .../EXPMatchers+beLessThanOrEqualTo.h | 6 + .../EXPMatchers+beLessThanOrEqualTo.m | 20 + .../Expecta/src/matchers/EXPMatchers+beNil.h | 5 + .../Expecta/src/matchers/EXPMatchers+beNil.m | 16 + .../src/matchers/EXPMatchers+beSubclassOf.h | 5 + .../src/matchers/EXPMatchers+beSubclassOf.m | 27 + .../src/matchers/EXPMatchers+beSupersetOf.h | 4 + .../src/matchers/EXPMatchers+beSupersetOf.m | 57 + .../src/matchers/EXPMatchers+beTruthy.h | 3 + .../src/matchers/EXPMatchers+beTruthy.m | 24 + .../src/matchers/EXPMatchers+beginWith.h | 5 + .../src/matchers/EXPMatchers+beginWith.m | 49 + .../src/matchers/EXPMatchers+conformTo.h | 3 + .../src/matchers/EXPMatchers+conformTo.m | 33 + .../src/matchers/EXPMatchers+contain.h | 5 + .../src/matchers/EXPMatchers+contain.m | 38 + .../src/matchers/EXPMatchers+endWith.h | 3 + .../src/matchers/EXPMatchers+endWith.m | 49 + .../Expecta/src/matchers/EXPMatchers+equal.h | 5 + .../Expecta/src/matchers/EXPMatchers+equal.m | 24 + .../src/matchers/EXPMatchers+haveCountOf.h | 10 + .../src/matchers/EXPMatchers+haveCountOf.m | 36 + .../Expecta/src/matchers/EXPMatchers+notify.h | 4 + .../Expecta/src/matchers/EXPMatchers+notify.m | 63 + .../Expecta/src/matchers/EXPMatchers+raise.h | 4 + .../Expecta/src/matchers/EXPMatchers+raise.m | 30 + .../matchers/EXPMatchers+raiseWithReason.h | 3 + .../matchers/EXPMatchers+raiseWithReason.m | 35 + .../src/matchers/EXPMatchers+respondTo.h | 3 + .../src/matchers/EXPMatchers+respondTo.m | 28 + .../Pods/Expecta/src/matchers/EXPMatchers.h | 24 + .../Public/Expecta/EXPBackwardCompatibility.h | 1 + .../Public/Expecta/EXPBlockDefinedMatcher.h | 1 + .../Pods/Headers/Public/Expecta/EXPDefines.h | 1 + .../Headers/Public/Expecta/EXPDoubleTuple.h | 1 + .../Pods/Headers/Public/Expecta/EXPExpect.h | 1 + .../Headers/Public/Expecta/EXPFloatTuple.h | 1 + .../Pods/Headers/Public/Expecta/EXPMatcher.h | 1 + .../Public/Expecta/EXPMatcherHelpers.h | 1 + .../Public/Expecta/EXPMatchers+beCloseTo.h | 1 + .../Public/Expecta/EXPMatchers+beFalsy.h | 1 + .../Expecta/EXPMatchers+beGreaterThan.h | 1 + .../EXPMatchers+beGreaterThanOrEqualTo.h | 1 + .../Expecta/EXPMatchers+beIdenticalTo.h | 1 + .../Expecta/EXPMatchers+beInTheRangeOf.h | 1 + .../Public/Expecta/EXPMatchers+beInstanceOf.h | 1 + .../Public/Expecta/EXPMatchers+beKindOf.h | 1 + .../Public/Expecta/EXPMatchers+beLessThan.h | 1 + .../Expecta/EXPMatchers+beLessThanOrEqualTo.h | 1 + .../Public/Expecta/EXPMatchers+beNil.h | 1 + .../Public/Expecta/EXPMatchers+beSubclassOf.h | 1 + .../Public/Expecta/EXPMatchers+beSupersetOf.h | 1 + .../Public/Expecta/EXPMatchers+beTruthy.h | 1 + .../Public/Expecta/EXPMatchers+beginWith.h | 1 + .../Public/Expecta/EXPMatchers+conformTo.h | 1 + .../Public/Expecta/EXPMatchers+contain.h | 1 + .../Public/Expecta/EXPMatchers+endWith.h | 1 + .../Public/Expecta/EXPMatchers+equal.h | 1 + .../Public/Expecta/EXPMatchers+haveCountOf.h | 1 + .../Public/Expecta/EXPMatchers+notify.h | 1 + .../Public/Expecta/EXPMatchers+raise.h | 1 + .../Expecta/EXPMatchers+raiseWithReason.h | 1 + .../Public/Expecta/EXPMatchers+respondTo.h | 1 + .../Pods/Headers/Public/Expecta/EXPMatchers.h | 1 + .../Public/Expecta/EXPUnsupportedObject.h | 1 + Example/Pods/Headers/Public/Expecta/Expecta.h | 1 + .../Headers/Public/Expecta/ExpectaSupport.h | 1 + .../Headers/Public/Expecta/NSObject+Expecta.h | 1 + .../Headers/Public/Expecta/NSValue+Expecta.h | 1 + .../Pods/Headers/Public/Specta/SPTExample.h | 1 + .../Headers/Public/Specta/SPTExampleGroup.h | 1 + .../Headers/Public/Specta/SPTNestedReporter.h | 1 + .../Pods/Headers/Public/Specta/SPTReporter.h | 1 + .../Public/Specta/SPTSharedExampleGroups.h | 1 + Example/Pods/Headers/Public/Specta/SPTSpec.h | 1 + .../Headers/Public/Specta/SPTXCTestCase.h | 1 + .../Headers/Public/Specta/SPTXCTestReporter.h | 1 + Example/Pods/Headers/Public/Specta/Specta.h | 1 + .../Headers/Public/Specta/SpectaSupport.h | 1 + .../Pods/Headers/Public/Specta/SpectaTypes.h | 1 + .../Headers/Public/Specta/SpectaUtility.h | 1 + .../Headers/Public/Specta/XCTestCase+Specta.h | 1 + .../Headers/Public/Specta/XCTestLog+Specta.h | 1 + .../Headers/Public/Specta/XCTestRun+Specta.h | 1 + .../Public/YMBarbwire/NSObject+YMBarbwire.h | 1 + .../Public/YMBarbwire/UIView+YMBarbwire.h | 1 + .../Pods/Headers/Public/YMBarbwire/YMBarb.h | 1 + .../Headers/Public/YMBarbwire/YMBarbConfig.h | 1 + .../Headers/Public/YMBarbwire/YMBarbwire.h | 1 + .../Pods/Local Podspecs/YMBarbwire.podspec | 66 + Example/Pods/Manifest.lock | 31 + Example/Pods/Pods.xcodeproj/project.pbxproj | 5320 +++++++++++++++++ Example/Pods/Specta/LICENSE | 20 + Example/Pods/Specta/README.md | 146 + Example/Pods/Specta/src/SPTExample.h | 14 + Example/Pods/Specta/src/SPTExample.m | 16 + Example/Pods/Specta/src/SPTExampleGroup.h | 40 + Example/Pods/Specta/src/SPTExampleGroup.m | 326 + Example/Pods/Specta/src/SPTNestedReporter.h | 5 + Example/Pods/Specta/src/SPTNestedReporter.m | 194 + Example/Pods/Specta/src/SPTReporter.h | 33 + Example/Pods/Specta/src/SPTReporter.m | 134 + .../Pods/Specta/src/SPTSharedExampleGroups.h | 17 + .../Pods/Specta/src/SPTSharedExampleGroups.m | 62 + Example/Pods/Specta/src/SPTSpec.h | 21 + Example/Pods/Specta/src/SPTSpec.m | 31 + Example/Pods/Specta/src/SPTXCTestCase.h | 27 + Example/Pods/Specta/src/SPTXCTestCase.m | 151 + Example/Pods/Specta/src/SPTXCTestReporter.h | 9 + Example/Pods/Specta/src/SPTXCTestReporter.m | 11 + Example/Pods/Specta/src/Specta.h | 70 + Example/Pods/Specta/src/Specta.m | 144 + Example/Pods/Specta/src/SpectaSupport.h | 46 + Example/Pods/Specta/src/SpectaTypes.h | 3 + Example/Pods/Specta/src/SpectaUtility.h | 14 + Example/Pods/Specta/src/SpectaUtility.m | 65 + Example/Pods/Specta/src/XCTestCase+Specta.h | 4 + Example/Pods/Specta/src/XCTestCase+Specta.m | 26 + Example/Pods/Specta/src/XCTestLog+Specta.h | 7 + Example/Pods/Specta/src/XCTestLog+Specta.m | 49 + Example/Pods/Specta/src/XCTestRun+Specta.h | 8 + Example/Pods/Specta/src/XCTestRun+Specta.m | 44 + .../Pods-Tests-Expecta-Private.xcconfig | 5 + .../Pods-Tests-Expecta-dummy.m | 5 + .../Pods-Tests-Expecta-prefix.pch | 5 + .../Pods-Tests-Expecta.xcconfig | 1 + .../Pods-Tests-Specta-Private.xcconfig | 6 + .../Pods-Tests-Specta-dummy.m | 5 + .../Pods-Tests-Specta-prefix.pch | 5 + .../Pods-Tests-Specta.xcconfig | 2 + .../Pods-Tests-YMBarbwire-Private.xcconfig | 5 + .../Pods-Tests-YMBarbwire-dummy.m | 5 + .../Pods-Tests-YMBarbwire-prefix.pch | 5 + .../Pods-Tests-YMBarbwire.xcconfig | 0 .../Pods-Tests-acknowledgements.markdown | 73 + .../Pods-Tests-acknowledgements.plist | 111 + .../Pods-Tests/Pods-Tests-dummy.m | 5 + .../Pods-Tests/Pods-Tests-environment.h | 50 + .../Pods-Tests/Pods-Tests-resources.sh | 74 + .../Pods-Tests/Pods-Tests.debug.xcconfig | 7 + .../Pods-Tests/Pods-Tests.release.xcconfig | 7 + ...ods-YMBarbwire-YMBarbwire-Private.xcconfig | 5 + .../Pods-YMBarbwire-YMBarbwire-dummy.m | 5 + .../Pods-YMBarbwire-YMBarbwire-prefix.pch | 5 + .../Pods-YMBarbwire-YMBarbwire.xcconfig | 0 .../Pods-YMBarbwire-acknowledgements.markdown | 26 + .../Pods-YMBarbwire-acknowledgements.plist | 56 + .../Pods-YMBarbwire/Pods-YMBarbwire-dummy.m | 5 + .../Pods-YMBarbwire-environment.h | 38 + .../Pods-YMBarbwire-resources.sh | 74 + .../Pods-YMBarbwire.debug.xcconfig | 6 + .../Pods-YMBarbwire.release.xcconfig | 6 + Example/Tests/Tests-Info.plist | 22 + Example/Tests/Tests-Prefix.pch | 13 + Example/Tests/Tests.m | 43 + Example/Tests/en.lproj/InfoPlist.strings | 2 + Example/YMBarbwire.xcodeproj/project.pbxproj | 599 ++ .../contents.xcworkspacedata | 7 + .../xcschemes/YMBarbwire-Example.xcscheme | 96 + .../contents.xcworkspacedata | 10 + .../Base.lproj/Main_iPad.storyboard | 30 + .../Base.lproj/Main_iPhone.storyboard | 30 + .../AppIcon.appiconset/Contents.json | 53 + .../LaunchImage.launchimage/Contents.json | 51 + Example/YMBarbwire/YMAppDelegate.h | 15 + Example/YMBarbwire/YMAppDelegate.m | 46 + Example/YMBarbwire/YMBarbwire-Info.plist | 49 + Example/YMBarbwire/YMBarbwire-Prefix.pch | 16 + Example/YMBarbwire/YMViewController.h | 13 + Example/YMBarbwire/YMViewController.m | 54 + Example/YMBarbwire/en.lproj/InfoPlist.strings | 2 + Example/YMBarbwire/main.m | 18 + LICENSE | 19 + README.md | 28 + YMBarbwire.podspec | 66 + .../contents.xcworkspacedata | 61 + YMBarbwire/YMBarb.h | 12 + YMBarbwire/YMBarb.m | 56 + YMBarbwire/YMBarbConfig.h | 18 + YMBarbwire/YMBarbConfig.m | 13 + YMBarbwire/YMBarbwire.h | 25 + YMBarbwire/YMBarbwire.m | 84 + YMBarbwire/asm/arm64.s | 129 + YMBarbwire/asm/armv7.s | 79 + YMBarbwire/asm/x86_64.s | 182 + YMBarbwire/categories/NSObject+YMBarbwire.h | 25 + YMBarbwire/categories/NSObject+YMBarbwire.m | 34 + YMBarbwire/categories/UIView+YMBarbwire.h | 30 + YMBarbwire/categories/UIView+YMBarbwire.m | 58 + 236 files changed, 12164 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 Example/Podfile create mode 100644 Example/Podfile.lock create mode 100644 Example/Pods/Expecta/LICENSE create mode 100644 Example/Pods/Expecta/README.md create mode 100644 Example/Pods/Expecta/src/EXPBackwardCompatibility.h create mode 100644 Example/Pods/Expecta/src/EXPBackwardCompatibility.m create mode 100644 Example/Pods/Expecta/src/EXPBlockDefinedMatcher.h create mode 100644 Example/Pods/Expecta/src/EXPBlockDefinedMatcher.m create mode 100644 Example/Pods/Expecta/src/EXPDefines.h create mode 100644 Example/Pods/Expecta/src/EXPDoubleTuple.h create mode 100644 Example/Pods/Expecta/src/EXPDoubleTuple.m create mode 100644 Example/Pods/Expecta/src/EXPExpect.h create mode 100644 Example/Pods/Expecta/src/EXPExpect.m create mode 100644 Example/Pods/Expecta/src/EXPFloatTuple.h create mode 100644 Example/Pods/Expecta/src/EXPFloatTuple.m create mode 100644 Example/Pods/Expecta/src/EXPMatcher.h create mode 100644 Example/Pods/Expecta/src/EXPUnsupportedObject.h create mode 100644 Example/Pods/Expecta/src/EXPUnsupportedObject.m create mode 100644 Example/Pods/Expecta/src/Expecta.h create mode 100644 Example/Pods/Expecta/src/Expecta.m create mode 100644 Example/Pods/Expecta/src/ExpectaSupport.h create mode 100644 Example/Pods/Expecta/src/ExpectaSupport.m create mode 100644 Example/Pods/Expecta/src/NSObject+Expecta.h create mode 100644 Example/Pods/Expecta/src/NSValue+Expecta.h create mode 100644 Example/Pods/Expecta/src/NSValue+Expecta.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+contain.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+contain.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+equal.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+equal.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+notify.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+notify.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+raise.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+raise.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m create mode 100644 Example/Pods/Expecta/src/matchers/EXPMatchers.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPBackwardCompatibility.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPDefines.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPDoubleTuple.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPExpect.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPFloatTuple.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatcher.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+contain.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+equal.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+notify.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+raise.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPMatchers.h create mode 120000 Example/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h create mode 120000 Example/Pods/Headers/Public/Expecta/Expecta.h create mode 120000 Example/Pods/Headers/Public/Expecta/ExpectaSupport.h create mode 120000 Example/Pods/Headers/Public/Expecta/NSObject+Expecta.h create mode 120000 Example/Pods/Headers/Public/Expecta/NSValue+Expecta.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTExample.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTExampleGroup.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTNestedReporter.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTReporter.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTSpec.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTXCTestCase.h create mode 120000 Example/Pods/Headers/Public/Specta/SPTXCTestReporter.h create mode 120000 Example/Pods/Headers/Public/Specta/Specta.h create mode 120000 Example/Pods/Headers/Public/Specta/SpectaSupport.h create mode 120000 Example/Pods/Headers/Public/Specta/SpectaTypes.h create mode 120000 Example/Pods/Headers/Public/Specta/SpectaUtility.h create mode 120000 Example/Pods/Headers/Public/Specta/XCTestCase+Specta.h create mode 120000 Example/Pods/Headers/Public/Specta/XCTestLog+Specta.h create mode 120000 Example/Pods/Headers/Public/Specta/XCTestRun+Specta.h create mode 120000 Example/Pods/Headers/Public/YMBarbwire/NSObject+YMBarbwire.h create mode 120000 Example/Pods/Headers/Public/YMBarbwire/UIView+YMBarbwire.h create mode 120000 Example/Pods/Headers/Public/YMBarbwire/YMBarb.h create mode 120000 Example/Pods/Headers/Public/YMBarbwire/YMBarbConfig.h create mode 120000 Example/Pods/Headers/Public/YMBarbwire/YMBarbwire.h create mode 100644 Example/Pods/Local Podspecs/YMBarbwire.podspec create mode 100644 Example/Pods/Manifest.lock create mode 100644 Example/Pods/Pods.xcodeproj/project.pbxproj create mode 100644 Example/Pods/Specta/LICENSE create mode 100644 Example/Pods/Specta/README.md create mode 100644 Example/Pods/Specta/src/SPTExample.h create mode 100644 Example/Pods/Specta/src/SPTExample.m create mode 100644 Example/Pods/Specta/src/SPTExampleGroup.h create mode 100644 Example/Pods/Specta/src/SPTExampleGroup.m create mode 100644 Example/Pods/Specta/src/SPTNestedReporter.h create mode 100644 Example/Pods/Specta/src/SPTNestedReporter.m create mode 100644 Example/Pods/Specta/src/SPTReporter.h create mode 100644 Example/Pods/Specta/src/SPTReporter.m create mode 100644 Example/Pods/Specta/src/SPTSharedExampleGroups.h create mode 100644 Example/Pods/Specta/src/SPTSharedExampleGroups.m create mode 100644 Example/Pods/Specta/src/SPTSpec.h create mode 100644 Example/Pods/Specta/src/SPTSpec.m create mode 100644 Example/Pods/Specta/src/SPTXCTestCase.h create mode 100644 Example/Pods/Specta/src/SPTXCTestCase.m create mode 100644 Example/Pods/Specta/src/SPTXCTestReporter.h create mode 100644 Example/Pods/Specta/src/SPTXCTestReporter.m create mode 100644 Example/Pods/Specta/src/Specta.h create mode 100644 Example/Pods/Specta/src/Specta.m create mode 100644 Example/Pods/Specta/src/SpectaSupport.h create mode 100644 Example/Pods/Specta/src/SpectaTypes.h create mode 100644 Example/Pods/Specta/src/SpectaUtility.h create mode 100644 Example/Pods/Specta/src/SpectaUtility.m create mode 100644 Example/Pods/Specta/src/XCTestCase+Specta.h create mode 100644 Example/Pods/Specta/src/XCTestCase+Specta.m create mode 100644 Example/Pods/Specta/src/XCTestLog+Specta.h create mode 100644 Example/Pods/Specta/src/XCTestLog+Specta.m create mode 100644 Example/Pods/Specta/src/XCTestRun+Specta.h create mode 100644 Example/Pods/Specta/src/XCTestRun+Specta.m create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-Private.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-Private.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch create mode 100644 Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-Private.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch create mode 100644 Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.markdown create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.plist create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-environment.h create mode 100755 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-Private.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.markdown create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.plist create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-dummy.m create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-environment.h create mode 100755 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-resources.sh create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.debug.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.release.xcconfig create mode 100644 Example/Tests/Tests-Info.plist create mode 100644 Example/Tests/Tests-Prefix.pch create mode 100644 Example/Tests/Tests.m create mode 100644 Example/Tests/en.lproj/InfoPlist.strings create mode 100644 Example/YMBarbwire.xcodeproj/project.pbxproj create mode 100644 Example/YMBarbwire.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/YMBarbwire.xcodeproj/xcshareddata/xcschemes/YMBarbwire-Example.xcscheme create mode 100644 Example/YMBarbwire.xcworkspace/contents.xcworkspacedata create mode 100644 Example/YMBarbwire/Base.lproj/Main_iPad.storyboard create mode 100644 Example/YMBarbwire/Base.lproj/Main_iPhone.storyboard create mode 100644 Example/YMBarbwire/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/YMBarbwire/Images.xcassets/LaunchImage.launchimage/Contents.json create mode 100644 Example/YMBarbwire/YMAppDelegate.h create mode 100644 Example/YMBarbwire/YMAppDelegate.m create mode 100644 Example/YMBarbwire/YMBarbwire-Info.plist create mode 100644 Example/YMBarbwire/YMBarbwire-Prefix.pch create mode 100644 Example/YMBarbwire/YMViewController.h create mode 100644 Example/YMBarbwire/YMViewController.m create mode 100644 Example/YMBarbwire/en.lproj/InfoPlist.strings create mode 100644 Example/YMBarbwire/main.m create mode 100644 LICENSE create mode 100644 README.md create mode 100644 YMBarbwire.podspec create mode 100644 YMBarbwire.xcworkspace/contents.xcworkspacedata create mode 100644 YMBarbwire/YMBarb.h create mode 100644 YMBarbwire/YMBarb.m create mode 100644 YMBarbwire/YMBarbConfig.h create mode 100644 YMBarbwire/YMBarbConfig.m create mode 100644 YMBarbwire/YMBarbwire.h create mode 100644 YMBarbwire/YMBarbwire.m create mode 100644 YMBarbwire/asm/arm64.s create mode 100644 YMBarbwire/asm/armv7.s create mode 100644 YMBarbwire/asm/x86_64.s create mode 100644 YMBarbwire/categories/NSObject+YMBarbwire.h create mode 100644 YMBarbwire/categories/NSObject+YMBarbwire.m create mode 100644 YMBarbwire/categories/UIView+YMBarbwire.h create mode 100644 YMBarbwire/categories/UIView+YMBarbwire.m diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2dcf7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# OS X +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Bundler +.bundle + +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control +# +# Note: if you ignore the Pods directory, make sure to uncomment +# `pod install` in .travis.yml +# +# Pods/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..32945e3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +# references: +# * http://www.objc.io/issue-6/travis-ci.html +# * https://github.com/supermarin/xcpretty#usage + +language: objective-c +# cache: cocoapods +# podfile: Example/Podfile +# before_install: cd Example && pod install && cd - +install: +- gem install xcpretty --no-rdoc --no-ri --no-document --quiet +script: +- set -o pipefail && xcodebuild test -workspace Example/YMBarbwire.xcworkspace -scheme YMBarbwire -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..6a1c7e2 --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,12 @@ +source 'https://github.com/CocoaPods/Specs.git' + +target 'YMBarbwire', :exclusive => true do + pod "YMBarbwire", :path => "../" +end + +target 'Tests', :exclusive => true do + pod "YMBarbwire", :path => "../" + + pod 'Specta', '~> 0.2.1' + pod 'Expecta' +end diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..922db08 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,31 @@ +PODS: + - Expecta (0.3.1) + - Specta (0.2.1) + - YMBarbwire (0.0.1): + - YMBarbwire/asm (= 0.0.1) + - YMBarbwire/categories (= 0.0.1) + - YMBarbwire/core (= 0.0.1) + - YMBarbwire/no-arc (= 0.0.1) + - YMBarbwire/asm (0.0.1) + - YMBarbwire/categories (0.0.1): + - YMBarbwire/core + - YMBarbwire/core (0.0.1): + - YMBarbwire/asm + - YMBarbwire/no-arc + - YMBarbwire/no-arc (0.0.1) + +DEPENDENCIES: + - Expecta + - Specta (~> 0.2.1) + - YMBarbwire (from `../`) + +EXTERNAL SOURCES: + YMBarbwire: + :path: ../ + +SPEC CHECKSUMS: + Expecta: 03aabd0a89d8dea843baecb19a7fd7466a69a31d + Specta: 9141310f46b1f68b676650ff2854e1ed0b74163a + YMBarbwire: 113e6db23d34b04a60751dcc6d800734d6c9b52e + +COCOAPODS: 0.35.0 diff --git a/Example/Pods/Expecta/LICENSE b/Example/Pods/Expecta/LICENSE new file mode 100644 index 0000000..cdac711 --- /dev/null +++ b/Example/Pods/Expecta/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011-2012 Specta Team - https://github.com/specta + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Example/Pods/Expecta/README.md b/Example/Pods/Expecta/README.md new file mode 100644 index 0000000..88192bd --- /dev/null +++ b/Example/Pods/Expecta/README.md @@ -0,0 +1,308 @@ +#Expecta + +[![Build Status](http://img.shields.io/travis/specta/expecta/master.svg?style=flat)](https://travis-ci.org/specta/expecta) +[![Pod Version](http://img.shields.io/cocoapods/v/Expecta.svg?style=flat)](http://cocoadocs.org/docsets/Expecta/) +[![Pod Platform](http://img.shields.io/cocoapods/p/Expecta.svg?style=flat)](http://cocoadocs.org/docsets/Expecta/) +[![Pod License](http://img.shields.io/cocoapods/l/Expecta.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html) + +A Matcher Framework for Objective-C/Cocoa + +## NOTICE + +Expecta 0.3.x removes support for Garbage Collected targets, as support for these has been removed from Xcode 5.1 and greater. If you need Garbage Collection support, please continue to use Expecta 0.2.4. The minimum deployment targets have also been raised to iOS 5.x and OS X 10.7 or greater. + +Expecta 0.2.x and later has a new syntax that is slightly different from Expecta 0.1.x. For example `expect(x).toEqual(y)` should now be written as `expect(x).to.equal(y)`. You can do `#define EXP_OLD_SYNTAX` before importing `Expecta.h` to enable backward-compatiblity mode, but keep in mind that the old syntax is deprecated. + +## INTRODUCTION + +The main advantage of using Expecta over other matcher frameworks is that you do not have to specify the data types. Also, the syntax of Expecta matchers is much more readable and does not suffer from parenthesitis. + +**OCHamcrest** + +```objective-c +assertThat(@"foo", is(equalTo(@"foo"))); +assertThatUnsignedInteger(foo, isNot(equalToUnsignedInteger(1))); +assertThatBool([bar isBar], is(equalToBool(YES))); +assertThatDouble(baz, is(equalToDouble(3.14159))); +``` + +vs. **Expecta** + +```objective-c +expect(@"foo").to.equal(@"foo"); // `to` is a syntatic sugar and can be safely omitted. +expect(foo).notTo.equal(1); +expect([bar isBar]).to.equal(YES); +expect(baz).to.equal(3.14159); +``` + +## SETUP + +Use [CocoaPods](https://github.com/CocoaPods/CocoaPods) + +```ruby +target :MyApp do +#your app dependencies +end + +target :MyAppTests do + pod 'Expecta', '~> 0.2.4' # expecta matchers +#pod 'Specta', '~> 0.1.11' #specta bdd framework +end +``` + +or + +1. Clone from Github. +2. Run `rake` in project root to build. +3. Copy and add all header files in `products` folder to the Spec/Test target in your Xcode project. +4. For **OS X projects**, copy and add `libExpecta-macosx.a` in `products` folder to the Spec/Test target in your Xcode project. + For **iOS projects**, copy and add `libExpecta-ios-universal.a` in `products` folder to the Spec/Test target in your Xcode project. +5. Add `-ObjC` to the "Other Linker Flags" build setting for the Spec/Test target in your Xcode project. +6. Add the following to your test code. + +```objective-c +// #define EXP_OLD_SYNTAX // enable backward-compatibility +#define EXP_SHORTHAND +#import "Expecta.h" +``` + +If `EXP_SHORTHAND` is not defined, expectations must be written with `EXP_expect` instead of `expect`. + +Expecta is framework-agnostic. It works well with XCTest, OCUnit (SenTestingKit) and OCUnit-compatible test frameworks such as [Specta](http://github.com/petejkim/specta/), [GHUnit](http://github.com/gabriel/gh-unit/) and [GTMUnit](http://code.google.com/p/google-toolbox-for-mac/). Expecta also supports [Cedar](http://pivotal.github.com/cedar/). + +## BUILT-IN MATCHERS + +>`expect(x).to.equal(y);` compares objects or primitives x and y and passes if they are identical (==) or equivalent (isEqual:). +> +>`expect(x).to.beIdenticalTo(y);` compares objects x and y and passes if they are identical and have the same memory address. +> +>`expect(x).to.beNil();` passes if x is nil. +> +>`expect(x).to.beTruthy();` passes if x evaluates to true (non-zero). +> +>`expect(x).to.beFalsy();` passes if x evaluates to false (zero). +> +>`expect(x).to.contain(y);` passes if an instance of NSArray or NSString x contains y. +> +>`expect(x).to.beSupersetOf(y);` passes if an instance of NSArray, NSSet, NSDictionary or NSOrderedSet x contains all elements of y. +> +>`expect(x).to.haveCountOf(y);` passes if an instance of NSArray, NSSet, NSDictionary or NSString x has a count or length of y. +> +>`expect(x).to.beEmpty();` passes if an instance of NSArray, NSSet, NSDictionary or NSString x has a count or length of 0. +> +>`expect(x).to.beInstanceOf([Foo class]);` passes if x is an instance of a class Foo. +> +>`expect(x).to.beKindOf([Foo class]);` passes if x is an instance of a class Foo or if x is an instance of any class that inherits from the class Foo. +> +>`expect([Foo class]).to.beSubclassOf([Bar class]);` passes if the class Foo is a subclass of the class Bar or if it is identical to the class Bar. Use beKindOf() for class clusters. +> +>`expect(x).to.beLessThan(y);` passes if `x` is less than `y`. +> +>`expect(x).to.beLessThanOrEqualTo(y);` passes if `x` is less than or equal to `y`. +> +>`expect(x).to.beGreaterThan(y);` passes if `x` is greater than `y`. +> +>`expect(x).to.beGreaterThanOrEqualTo(y);` passes if `x` is greater than or equal to `y`. +> +>`expect(x).to.beInTheRangeOf(y,z);` passes if `x` is in the range of `y` and `z`. +> +>`expect(x).to.beCloseTo(y);` passes if `x` is close to `y`. +> +>`expect(x).to.beCloseToWithin(y, z);` passes if `x` is close to `y` within `z`. +> +>`expect(^{ /* code */ }).to.raise(@"ExceptionName");` passes if a given block of code raises an exception named `ExceptionName`. +> +>`expect(^{ /* code */ }).to.raiseAny();` passes if a given block of code raises any exception. +> +>`expect(x).to.conformTo(y);` passes if `x` conforms to the protocol `y`. +> +>`expect(x).to.respondTo(y);` passes if `x` responds to the selector `y`. +> +>`expect(^{ /* code */ }).to.notify(@"NotificationName");` passes if a given block of code generates an NSNotification named `NotificationName`. +> +>`expect(^{ /* code */ }).to.notify(notification);` passes if a given block of code generates an NSNotification equal to the passed `notification`. +> +>`expect(x).to.beginWith(y);` passes if an instance of NSString, NSArray, or NSOrderedSet `x` begins with `y`. Also aliased by `startWith` +> +>`expect(x).to.endWith(y);` passes if an instance of NSString, NSArray, or NSOrderedSet `x` ends with `y`. + +**Please contribute more matchers.** + +## INVERTING MATCHERS + +Every matcher's criteria can be inverted by prepending `.notTo` or `.toNot`: + +>`expect(x).notTo.equal(y);` compares objects or primitives x and y and passes if they are *not* equivalent. + +## ASYNCHRONOUS TESTING + +Every matcher can be made to perform asynchronous testing by prepending `.will`, `.willNot` or `after(...)`: + +>`expect(x).will.beNil();` passes if x becomes nil before the default timeout. +> +>`expect(x).willNot.beNil();` passes if x becomes non-nil before the default timeout. +> +>`expect(x).after(3).to.beNil();` passes if x becoms nil after 3.0 seconds. +> +>`expect(x).after(2.5).notTo.equal(42);` passes if x doesn't equal 42 after 2.5 seconds. + +Default timeout is 1.0 second and it's used for all matchers if not specified otherwise. This setting can be changed by calling `[Expecta setAsynchronousTestTimeout:x]`, where x is the desired timeout. + +```objective-c +describe(@"Foo", ^{ + beforeAll(^{ + // All asynchronous matching using `will` and `willNot` + // will have a timeout of 2.0 seconds + [Expecta setAsynchronousTestTimeout:2]; + }); + + it(@"will not be nil", ^{ + // Test case where default timeout is used + expect(foo).willNot.beNil(); + }); + + it(@"should equal 42 after 3 seconds", ^{ + // Signle case where timeout differs from the default + expect(foo).after(3).to.equal(42); + }); +}); +``` + +## WRITING NEW MATCHERS + +Writing a new matcher is easy with special macros provided by Expecta. Take a look at how `.beKindOf()` matcher is defined: + +`EXPMatchers+beKindOf.h` + +```objective-c +#import "Expecta.h" + +EXPMatcherInterface(beKindOf, (Class expected)); +// 1st argument is the name of the matcher function +// 2nd argument is the list of arguments that may be passed in the function +// call. +// Multiple arguments are fine. (e.g. (int foo, float bar)) + +#define beAKindOf beKindOf +``` + +`EXPMatchers+beKindOf.m` + +```objective-c +#import "EXPMatchers+beKindOf.h" + +EXPMatcherImplementationBegin(beKindOf, (Class expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + + prerequisite(^BOOL { + return !(actualIsNil || expectedIsNil); + // Return `NO` if matcher should fail whether or not the result is inverted + // using `.Not`. + }); + + match(^BOOL { + return [actual isKindOfClass:expected]; + // Return `YES` if the matcher should pass, `NO` if it should not. + // The actual value/object is passed as `actual`. + // Please note that primitive values will be wrapped in NSNumber/NSValue. + }); + + failureMessageForTo(^NSString * { + if (actualIsNil) + return @"the actual value is nil/null"; + if (expectedIsNil) + return @"the expected value is nil/null"; + return [NSString + stringWithFormat:@"expected: a kind of %@, " + "got: an instance of %@, which is not a kind of %@", + [expected class], [actual class], [expected class]]; + // Return the message to be displayed when the match function returns `YES`. + }); + + failureMessageForNotTo(^NSString * { + if (actualIsNil) + return @"the actual value is nil/null"; + if (expectedIsNil) + return @"the expected value is nil/null"; + return [NSString + stringWithFormat:@"expected: not a kind of %@, " + "got: an instance of %@, which is a kind of %@", + [expected class], [actual class], [expected class]]; + // Return the message to be displayed when the match function returns `NO`. + }); +} +EXPMatcherImplementationEnd +``` + +## DYNAMIC PREDICATE MATCHERS + +It is possible to add predicate matchers by simply defining the matcher interface, with the matcher implementation being handled at runtime by delegating to the predicate method on your object. + +For instance, if you have the following class: + +```objc +@interface LightSwitch : NSObject +@property (nonatomic, assign, getter=isTurnedOn) BOOL turnedOn; +@end + +@implementation LightSwitch +@synthesize turnedOn; +@end +``` + +The normal way to write an assertion that the switch is turned on would be: + +```objc +expect([lightSwitch isTurnedOn]).to.beTruthy(); +``` + +However, if we define a custom predicate matcher: + +```objc +EXPMatcherInterface(isTurnedOn, (void)); +``` + +(Note: we haven't defined the matcher implementation, just it's interface) + +You can now write your assertion as follows: + +```objc +expect(lightSwitch).isTurnedOn(); +``` + +## CONTRIBUTION + +You can find the public Tracker project [here](https://www.pivotaltracker.com/projects/323267). + +### CONTRIBUTION GUIDELINES + +* Please use only spaces and indent 2 spaces at a time. +* Please prefix instance variable names with a single underscore (`_`). +* Please prefix custom classes and functions defined in the global scope with `EXP`. + +## CREDITS + +Expecta is brought to you by [Peter Jihoon Kim](http://github.com/petejkim) and the [Specta team](https://github.com/specta?tab=members). + +### CONTRIBUTORS + +* [Alan Rogers](https://github.com/alanjrogers) +* [Andrew Kitchen](https://github.com/akitchen) +* [Blake Watters](https://github.com/blakewatters) +* [Christopher Pickslay](https://github.com/twobitlabs) +* [Chris Devereux](https://github.com/chrisdevereux) +* [David Hart](https://github.com/TrahDivad) +* [Jacob Gorban](https://github.com/apparentsoft) +* [Jon Cooper](https://github.com/joncooper) +* [Justin Spahr-Summers](https://github.com/jspahrsummers) +* [Kurtis Seebaldt](https://github.com/kseebaldt) +* [Luke Redpath](https://github.com/lukeredpath) +* [Nicholas Hutchinson](https://github.com/nickhutchinson) +* [Rob Rix](https://github.com/robrix) +* [Samuel Giddins](https://github.com/segiddins) +* [Zack Waugh](https://github.com/zachwaugh) + +## LICENSE + +Expecta is licensed under the [MIT License](http://github.com/petejkim/expecta/raw/master/LICENSE). diff --git a/Example/Pods/Expecta/src/EXPBackwardCompatibility.h b/Example/Pods/Expecta/src/EXPBackwardCompatibility.h new file mode 100644 index 0000000..36d0d39 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPBackwardCompatibility.h @@ -0,0 +1,42 @@ +#import "EXPExpect.h" + +@interface EXPExpect (BackwardCompatiblity) + +@property(nonatomic, readonly) EXPExpect *Not; +@property(nonatomic, readonly) EXPExpect *isGoing; +@property(nonatomic, readonly) EXPExpect *isNotGoing; + +@end + +#define toBeFalsy beFalsy +#define toBeGreaterThan beGreaterThan +#define toBeGreaterThanOrEqualTo beGreaterThanOrEqualTo +#define toBeIdenticalTo beIdenticalTo +#define toBeInTheRangeOf beInTheRangeOf +#define toBeInstanceOf beInstanceOf +#define toBeAnInstanceOf beInstanceOf +#define toBeMemberOf beInstanceOf +#define toBeAMemberOf beInstanceOf +#define toBeKindOf beKindOf +#define toBeAKindOf beKindOf +#define toBeLessThan beLessThan +#define toBeLessThanOrEqualTo beLessThanOrEqualTo +#define toBeNil beNil +#define toBeNull beNil +#define toBeSubclassOf beSubclassOf +#define toBeASubclassOf beSubclassOf +#define toBeTruthy beTruthy +#define toBeFalsy beFalsy +#define toContain contain +#define toEqual equal +#define toBeCloseTo beCloseTo +#define toBeCloseToWithin beCloseToWithin +#define toHaveCount haveCountOf +#define toHaveCountOf haveCountOf +#define toHaveACountOf haveCountOf +#define toHaveLength haveCountOf +#define toHaveLengthOf haveCountOf +#define toHaveALengthOf haveCountOf +#define toBeEmpty beEmpty +#define toRaise raise +#define toRaiseAny raiseAny diff --git a/Example/Pods/Expecta/src/EXPBackwardCompatibility.m b/Example/Pods/Expecta/src/EXPBackwardCompatibility.m new file mode 100644 index 0000000..87a059b --- /dev/null +++ b/Example/Pods/Expecta/src/EXPBackwardCompatibility.m @@ -0,0 +1,17 @@ +#import "EXPBackwardCompatibility.h" + +@implementation EXPExpect (BackwardCompatiblity) + +- (EXPExpect *)Not { + return self.toNot; +} + +- (EXPExpect *)isGoing { + return self.will; +} + +- (EXPExpect *)isNotGoing { + return self.willNot; +} + +@end diff --git a/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.h b/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.h new file mode 100644 index 0000000..58b1282 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.h @@ -0,0 +1,25 @@ +// +// EXPRuntimeMatcher.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#import +#import "EXPMatcher.h" +#import "EXPDefines.h" + +@interface EXPBlockDefinedMatcher : NSObject { + EXPBoolBlock prerequisiteBlock; + EXPBoolBlock matchBlock; + EXPStringBlock failureMessageForToBlock; + EXPStringBlock failureMessageForNotToBlock; +} + +@property(nonatomic, copy) EXPBoolBlock prerequisiteBlock; +@property(nonatomic, copy) EXPBoolBlock matchBlock; +@property(nonatomic, copy) EXPStringBlock failureMessageForToBlock; +@property(nonatomic, copy) EXPStringBlock failureMessageForNotToBlock; + +@end diff --git a/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.m b/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.m new file mode 100644 index 0000000..89bba37 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPBlockDefinedMatcher.m @@ -0,0 +1,60 @@ +// +// EXPRuntimeMatcher.m +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#import "EXPBlockDefinedMatcher.h" + +@implementation EXPBlockDefinedMatcher + +- (void)dealloc +{ + self.prerequisiteBlock = nil; + self.matchBlock = nil; + self.failureMessageForToBlock = nil; + self.failureMessageForNotToBlock = nil; + + [super dealloc]; +} + +@synthesize prerequisiteBlock; +@synthesize matchBlock; +@synthesize failureMessageForToBlock; +@synthesize failureMessageForNotToBlock; + +- (BOOL)meetsPrerequesiteFor:(id)actual +{ + if (self.prerequisiteBlock) { + return self.prerequisiteBlock(); + } + return YES; +} + +- (BOOL)matches:(id)actual +{ + if (self.matchBlock) { + return self.matchBlock(); + } + return YES; +} + +- (NSString *)failureMessageForTo:(id)actual +{ + if (self.failureMessageForToBlock) { + return self.failureMessageForToBlock(); + } + return nil; +} + +- (NSString *)failureMessageForNotTo:(id)actual +{ + if (self.failureMessageForNotToBlock) { + return self.failureMessageForNotToBlock(); + } + return nil; +} + +@end diff --git a/Example/Pods/Expecta/src/EXPDefines.h b/Example/Pods/Expecta/src/EXPDefines.h new file mode 100644 index 0000000..52af721 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPDefines.h @@ -0,0 +1,17 @@ +// +// EXPDefines.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#ifndef Expecta_EXPDefines_h +#define Expecta_EXPDefines_h + +typedef void (^EXPBasicBlock)(); +typedef id (^EXPIdBlock)(); +typedef BOOL (^EXPBoolBlock)(); +typedef NSString *(^EXPStringBlock)(); + +#endif diff --git a/Example/Pods/Expecta/src/EXPDoubleTuple.h b/Example/Pods/Expecta/src/EXPDoubleTuple.h new file mode 100644 index 0000000..33409f1 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPDoubleTuple.h @@ -0,0 +1,13 @@ +#import + +@interface EXPDoubleTuple : NSObject { + double *_values; + size_t _size; +} + +@property (nonatomic, assign) double *values; +@property (nonatomic, assign) size_t size; + +- (id)initWithDoubleValues:(double *)values size:(size_t)size; + +@end diff --git a/Example/Pods/Expecta/src/EXPDoubleTuple.m b/Example/Pods/Expecta/src/EXPDoubleTuple.m new file mode 100644 index 0000000..49d4ba8 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPDoubleTuple.m @@ -0,0 +1,42 @@ +#import "EXPDoubleTuple.h" + +@implementation EXPDoubleTuple + +@synthesize values = _values, size = _size; + +- (id)initWithDoubleValues:(double *)values size:(size_t)size { + if ((self = [super init])) { + self.values = malloc(sizeof(double) * size); + memcpy(self.values, values, sizeof(double) * size); + self.size = size; + } + return self; +} + +- (void)dealloc { + free(self.values); + [super dealloc]; +} + +- (BOOL)isEqual:(id)object { + if (![object isKindOfClass:[EXPDoubleTuple class]]) return NO; + EXPDoubleTuple *other = (EXPDoubleTuple *)object; + if (self.size == other.size) { + for (int i = 0; i < self.size; ++i) { + if (self.values[i] != other.values[i]) return NO; + } + return YES; + } + return NO; +} + +- (NSString *)description { + if (self.size == 2) { + return [NSString stringWithFormat:@"Double tuple: {%f, %f}", self.values[0], self.values[1]]; + } else if (self.size == 4) { + return [NSString stringWithFormat:@"Double tuple: {%f, %f, %f, %f}", self.values[0], self.values[1], self.values[2], self.values[3]]; + } + return [NSString stringWithFormat:@"Double tuple of unexpected size %zd, sadly", self.size]; +} + +@end diff --git a/Example/Pods/Expecta/src/EXPExpect.h b/Example/Pods/Expecta/src/EXPExpect.h new file mode 100644 index 0000000..52f171f --- /dev/null +++ b/Example/Pods/Expecta/src/EXPExpect.h @@ -0,0 +1,45 @@ +#import +#import "EXPMatcher.h" +#import "EXPDefines.h" + +@interface EXPExpect : NSObject { + EXPIdBlock _actualBlock; + id _testCase; + int _lineNumber; + char *_fileName; + BOOL _negative; + BOOL _asynchronous; + NSTimeInterval _timeout; +} + +@property(nonatomic, copy) EXPIdBlock actualBlock; +@property(nonatomic, readonly) id actual; +@property(nonatomic, assign) id testCase; +@property(nonatomic) int lineNumber; +@property(nonatomic) const char *fileName; +@property(nonatomic) BOOL negative; +@property(nonatomic) BOOL asynchronous; +@property(nonatomic) NSTimeInterval timeout; + +@property(nonatomic, readonly) EXPExpect *to; +@property(nonatomic, readonly) EXPExpect *toNot; +@property(nonatomic, readonly) EXPExpect *notTo; +@property(nonatomic, readonly) EXPExpect *will; +@property(nonatomic, readonly) EXPExpect *willNot; +@property(nonatomic, readonly) EXPExpect *(^after)(NSTimeInterval timeInterval); + +- (id)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName; ++ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName; + +- (void)applyMatcher:(id)matcher; +- (void)applyMatcher:(id)matcher to:(NSObject **)actual; + +@end + +@interface EXPDynamicPredicateMatcher : NSObject { + EXPExpect *_expectation; + SEL _selector; +} +- (id)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector; +- (void (^)(void))dispatch; +@end diff --git a/Example/Pods/Expecta/src/EXPExpect.m b/Example/Pods/Expecta/src/EXPExpect.m new file mode 100644 index 0000000..73a00e6 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPExpect.m @@ -0,0 +1,214 @@ +#import "EXPExpect.h" +#import "NSObject+Expecta.h" +#import "Expecta.h" +#import "EXPUnsupportedObject.h" +#import "EXPMatcher.h" +#import "EXPBlockDefinedMatcher.h" +#import + +@implementation EXPExpect + +@dynamic + actual, + to, + toNot, + notTo, + will, + willNot, + after; + +@synthesize + actualBlock=_actualBlock, + testCase=_testCase, + negative=_negative, + asynchronous=_asynchronous, + timeout=_timeout, + lineNumber=_lineNumber, + fileName=_fileName; + +- (id)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName { + self = [super init]; + if(self) { + self.actualBlock = actualBlock; + self.testCase = testCase; + self.negative = NO; + self.asynchronous = NO; + self.timeout = [Expecta asynchronousTestTimeout]; + self.lineNumber = lineNumber; + self.fileName = fileName; + } + return self; +} + +- (void)dealloc +{ + self.actualBlock = nil; + [super dealloc]; +} + ++ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName { + return [[[EXPExpect alloc] initWithActualBlock:actualBlock testCase:(id)testCase lineNumber:lineNumber fileName:fileName] autorelease]; +} + +#pragma mark - + +- (EXPExpect *)to { + return self; +} + +- (EXPExpect *)toNot { + self.negative = !self.negative; + return self; +} + +- (EXPExpect *)notTo { + return [self toNot]; +} + +- (EXPExpect *)will { + self.asynchronous = YES; + return self; +} + +- (EXPExpect *)willNot { + return self.will.toNot; +} + +- (EXPExpect *(^)(NSTimeInterval))after +{ + EXPExpect * (^block)(NSTimeInterval) = [^EXPExpect *(NSTimeInterval timeout) { + self.asynchronous = YES; + self.timeout = timeout; + return self; + } copy]; + + return [block autorelease]; +} + +#pragma mark - + +- (id)actual { + if(self.actualBlock) { + return self.actualBlock(); + } + return nil; +} + +- (void)applyMatcher:(id)matcher +{ + id actual = [self actual]; + [self applyMatcher:matcher to:&actual]; +} + +- (void)applyMatcher:(id)matcher to:(NSObject **)actual { + if([*actual isKindOfClass:[EXPUnsupportedObject class]]) { + EXPFail(self.testCase, self.lineNumber, self.fileName, + [NSString stringWithFormat:@"expecting a %@ is not supported", ((EXPUnsupportedObject *)*actual).type]); + } else { + BOOL failed = NO; + if([matcher respondsToSelector:@selector(meetsPrerequesiteFor:)] && + ![matcher meetsPrerequesiteFor:*actual]) { + failed = YES; + } else { + BOOL matchResult = NO; + if(self.asynchronous) { + NSTimeInterval timeOut = self.timeout; + NSDate *expiryDate = [NSDate dateWithTimeIntervalSinceNow:timeOut]; + while(1) { + matchResult = [matcher matches:*actual]; + failed = self.negative ? matchResult : !matchResult; + if(!failed || ([(NSDate *)[NSDate date] compare:expiryDate] == NSOrderedDescending)) { + break; + } + [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; + OSMemoryBarrier(); + *actual = self.actual; + } + } else { + matchResult = [matcher matches:*actual]; + } + failed = self.negative ? matchResult : !matchResult; + } + if(failed) { + NSString *message = nil; + + if(self.negative) { + if ([matcher respondsToSelector:@selector(failureMessageForNotTo:)]) { + message = [matcher failureMessageForNotTo:*actual]; + } + } else { + if ([matcher respondsToSelector:@selector(failureMessageForTo:)]) { + message = [matcher failureMessageForTo:*actual]; + } + } + if (message == nil) { + message = @"Match Failed."; + } + + EXPFail(self.testCase, self.lineNumber, self.fileName, message); + } + } + self.negative = NO; +} + +#pragma mark - Dynamic predicate dispatch + +- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector +{ + if ([self.actual respondsToSelector:aSelector]) { + return [self.actual methodSignatureForSelector:aSelector]; + } + return [super methodSignatureForSelector:aSelector]; +} + +- (void)forwardInvocation:(NSInvocation *)anInvocation +{ + if ([self.actual respondsToSelector:anInvocation.selector]) { + EXPDynamicPredicateMatcher *matcher = [[EXPDynamicPredicateMatcher alloc] initWithExpectation:self selector:anInvocation.selector]; + [anInvocation setSelector:@selector(dispatch)]; + [anInvocation invokeWithTarget:matcher]; + [matcher release]; + } + else { + [super forwardInvocation:anInvocation]; + } +} + +@end + +@implementation EXPDynamicPredicateMatcher + +- (id)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector +{ + if ((self = [super init])) { + _expectation = expectation; + _selector = selector; + } + return self; +} + +- (BOOL)matches:(id)actual +{ + return (BOOL)[actual performSelector:_selector]; +} + +- (NSString *)failureMessageForTo:(id)actual +{ + return [NSString stringWithFormat:@"expected %@ to be true", NSStringFromSelector(_selector)]; +} + +- (NSString *)failureMessageForNotTo:(id)actual +{ + return [NSString stringWithFormat:@"expected %@ to be false", NSStringFromSelector(_selector)]; +} + +- (void (^)(void))dispatch +{ + __block id blockExpectation = _expectation; + + return [[^{ + [blockExpectation applyMatcher:self]; + } copy] autorelease]; +} + +@end diff --git a/Example/Pods/Expecta/src/EXPFloatTuple.h b/Example/Pods/Expecta/src/EXPFloatTuple.h new file mode 100644 index 0000000..bdb2685 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPFloatTuple.h @@ -0,0 +1,13 @@ +#import + +@interface EXPFloatTuple : NSObject { + float *_values; + size_t _size; +} + +@property (nonatomic, assign) float *values; +@property (nonatomic, assign) size_t size; + +- (id)initWithFloatValues:(float *)values size:(size_t)size; + +@end diff --git a/Example/Pods/Expecta/src/EXPFloatTuple.m b/Example/Pods/Expecta/src/EXPFloatTuple.m new file mode 100644 index 0000000..8b19ea1 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPFloatTuple.m @@ -0,0 +1,42 @@ +#import "EXPFloatTuple.h" + +@implementation EXPFloatTuple + +@synthesize values = _values, size = _size; + +- (id)initWithFloatValues:(float *)values size:(size_t)size { + if ((self = [super init])) { + self.values = malloc(sizeof(float) * size); + memcpy(self.values, values, sizeof(float) * size); + self.size = size; + } + return self; +} + +- (void)dealloc { + free(self.values); + [super dealloc]; +} + +- (BOOL)isEqual:(id)object { + if (![object isKindOfClass:[EXPFloatTuple class]]) return NO; + EXPFloatTuple *other = (EXPFloatTuple *)object; + if (self.size == other.size) { + for (int i = 0; i < self.size; ++i) { + if (self.values[i] != other.values[i]) return NO; + } + return YES; + } + return NO; +} + +- (NSString *)description { + if (self.size == 2) { + return [NSString stringWithFormat:@"Float tuple: {%f, %f}", self.values[0], self.values[1]]; + } else if (self.size == 4) { + return [NSString stringWithFormat:@"Float tuple: {%f, %f, %f, %f}", self.values[0], self.values[1], self.values[2], self.values[3]]; + } + return [NSString stringWithFormat:@"Float tuple of unexpected size %zd, sadly", self.size]; +} + +@end diff --git a/Example/Pods/Expecta/src/EXPMatcher.h b/Example/Pods/Expecta/src/EXPMatcher.h new file mode 100644 index 0000000..b207a84 --- /dev/null +++ b/Example/Pods/Expecta/src/EXPMatcher.h @@ -0,0 +1,20 @@ +// +// EXPMatcher.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#import + +@protocol EXPMatcher + +- (BOOL)matches:(id)actual; + +@optional +- (BOOL)meetsPrerequesiteFor:(id)actual; +- (NSString *)failureMessageForTo:(id)actual; +- (NSString *)failureMessageForNotTo:(id)actual; + +@end diff --git a/Example/Pods/Expecta/src/EXPUnsupportedObject.h b/Example/Pods/Expecta/src/EXPUnsupportedObject.h new file mode 100644 index 0000000..bea746b --- /dev/null +++ b/Example/Pods/Expecta/src/EXPUnsupportedObject.h @@ -0,0 +1,11 @@ +#import + +@interface EXPUnsupportedObject : NSObject { + NSString *_type; +} + +@property (nonatomic, retain) NSString *type; + +- (id)initWithType:(NSString *)type; + +@end diff --git a/Example/Pods/Expecta/src/EXPUnsupportedObject.m b/Example/Pods/Expecta/src/EXPUnsupportedObject.m new file mode 100644 index 0000000..bfea0da --- /dev/null +++ b/Example/Pods/Expecta/src/EXPUnsupportedObject.m @@ -0,0 +1,20 @@ +#import "EXPUnsupportedObject.h" + +@implementation EXPUnsupportedObject + +@synthesize type=_type; + +- (id)initWithType:(NSString *)type { + self = [super init]; + if(self) { + self.type = type; + } + return self; +} + +- (void)dealloc { + self.type = nil; + [super dealloc]; +} + +@end diff --git a/Example/Pods/Expecta/src/Expecta.h b/Example/Pods/Expecta/src/Expecta.h new file mode 100644 index 0000000..1049903 --- /dev/null +++ b/Example/Pods/Expecta/src/Expecta.h @@ -0,0 +1,27 @@ +#import +#import "ExpectaSupport.h" + +#define EXPObjectify(value) _EXPObjectify(@encode(__typeof__((value))), (value)) + +#define EXP_expect(actual) _EXP_expect(self, __LINE__, __FILE__, ^id{ return EXPObjectify((actual)); }) + +#define EXPMatcherInterface(matcherName, matcherArguments) _EXPMatcherInterface(matcherName, matcherArguments) +#define EXPMatcherImplementationBegin(matcherName, matcherArguments) _EXPMatcherImplementationBegin(matcherName, matcherArguments) +#define EXPMatcherImplementationEnd _EXPMatcherImplementationEnd + +#import "EXPMatchers.h" + +#ifdef EXP_SHORTHAND +# define expect(...) EXP_expect((__VA_ARGS__)) +#endif + +#ifdef EXP_OLD_SYNTAX +# import "EXPBackwardCompatibility.h" +#endif + +@interface Expecta : NSObject + ++ (NSTimeInterval)asynchronousTestTimeout; ++ (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout; + +@end diff --git a/Example/Pods/Expecta/src/Expecta.m b/Example/Pods/Expecta/src/Expecta.m new file mode 100644 index 0000000..00d2280 --- /dev/null +++ b/Example/Pods/Expecta/src/Expecta.m @@ -0,0 +1,15 @@ +#import "Expecta.h" + +@implementation Expecta + +static NSTimeInterval _asynchronousTestTimeout = 1.0; + ++ (NSTimeInterval)asynchronousTestTimeout { + return _asynchronousTestTimeout; +} + ++ (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout { + _asynchronousTestTimeout = timeout; +} + +@end \ No newline at end of file diff --git a/Example/Pods/Expecta/src/ExpectaSupport.h b/Example/Pods/Expecta/src/ExpectaSupport.h new file mode 100644 index 0000000..e843ff9 --- /dev/null +++ b/Example/Pods/Expecta/src/ExpectaSupport.h @@ -0,0 +1,64 @@ +#import "EXPExpect.h" +#import "EXPBlockDefinedMatcher.h" + +#ifdef __cplusplus +extern "C" { +#endif + +id _EXPObjectify(const char *type, ...); +EXPExpect *_EXP_expect(id testCase, int lineNumber, const char *fileName, EXPIdBlock actualBlock); + +void EXPFail(id testCase, int lineNumber, const char *fileName, NSString *message); +NSString *EXPDescribeObject(id obj); + +void EXP_prerequisite(EXPBoolBlock block); +void EXP_match(EXPBoolBlock block); +void EXP_failureMessageForTo(EXPStringBlock block); +void EXP_failureMessageForNotTo(EXPStringBlock block); + +#if __has_feature(objc_arc) +#define _EXP_release(x) +#define _EXP_autorelease(x) (x) + +#else +#define _EXP_release(x) [x release] +#define _EXP_autorelease(x) [x autorelease] +#endif + +// workaround for the categories bug: http://developer.apple.com/library/mac/#qa/qa1490/_index.html +#define EXPFixCategoriesBug(name) \ +__attribute__((constructor)) static void EXPFixCategoriesBug##name() {} + +#define _EXPMatcherInterface(matcherName, matcherArguments) \ +@interface EXPExpect (matcherName##Matcher) \ +@property (nonatomic, readonly) void(^ matcherName) matcherArguments; \ +@end + +#define _EXPMatcherImplementationBegin(matcherName, matcherArguments) \ +EXPFixCategoriesBug(EXPMatcher##matcherName##Matcher); \ +@implementation EXPExpect (matcherName##Matcher) \ +@dynamic matcherName;\ +- (void(^) matcherArguments) matcherName { \ + EXPBlockDefinedMatcher *matcher = [[EXPBlockDefinedMatcher alloc] init]; \ + [[[NSThread currentThread] threadDictionary] setObject:matcher forKey:@"EXP_currentMatcher"]; \ + __block id actual = self.actual; \ + __block void (^prerequisite)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_prerequisite(block); }; \ + __block void (^match)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_match(block); }; \ + __block void (^failureMessageForTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForTo(block); }; \ + __block void (^failureMessageForNotTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForNotTo(block); }; \ + prerequisite(nil); match(nil); failureMessageForTo(nil); failureMessageForNotTo(nil); \ + void (^matcherBlock) matcherArguments = [^ matcherArguments { \ + { + +#define _EXPMatcherImplementationEnd \ + } \ + [self applyMatcher:matcher to:&actual]; \ + } copy]; \ + _EXP_release(matcher); \ + return _EXP_autorelease(matcherBlock); \ +} \ +@end + +#ifdef __cplusplus +} +#endif diff --git a/Example/Pods/Expecta/src/ExpectaSupport.m b/Example/Pods/Expecta/src/ExpectaSupport.m new file mode 100644 index 0000000..bb3df65 --- /dev/null +++ b/Example/Pods/Expecta/src/ExpectaSupport.m @@ -0,0 +1,187 @@ +#import "ExpectaSupport.h" +#import "NSValue+Expecta.h" +#import "NSObject+Expecta.h" +#import "EXPUnsupportedObject.h" +#import "EXPFloatTuple.h" +#import "EXPDoubleTuple.h" +#import "EXPDefines.h" +#import + +@interface NSException (ExpectaSenTestFailure) + ++ (NSException *)failureInFile:(NSString *)filename atLine:(int)lineNumber withDescription:(NSString *)formatString, ...; + +@end + +@interface NSObject (ExpectaXCTestRecordFailure) + +// suppress warning +- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected; + +@end + +id _EXPObjectify(const char *type, ...) { + va_list v; + va_start(v, type); + id obj = nil; + if(strcmp(type, @encode(char)) == 0) { + char actual = (char)va_arg(v, int); + obj = [NSNumber numberWithChar:actual]; + } else if(strcmp(type, @encode(_Bool)) == 0) { + _Static_assert(sizeof(_Bool) <= sizeof(int), "Expected _Bool to be subject to vararg type promotion"); + _Bool actual = (_Bool)va_arg(v, int); + obj = [NSNumber numberWithBool:actual]; + } else if(strcmp(type, @encode(double)) == 0) { + double actual = (double)va_arg(v, double); + obj = [NSNumber numberWithDouble:actual]; + } else if(strcmp(type, @encode(float)) == 0) { + float actual = (float)va_arg(v, double); + obj = [NSNumber numberWithFloat:actual]; + } else if(strcmp(type, @encode(int)) == 0) { + int actual = (int)va_arg(v, int); + obj = [NSNumber numberWithInt:actual]; + } else if(strcmp(type, @encode(long)) == 0) { + long actual = (long)va_arg(v, long); + obj = [NSNumber numberWithLong:actual]; + } else if(strcmp(type, @encode(long long)) == 0) { + long long actual = (long long)va_arg(v, long long); + obj = [NSNumber numberWithLongLong:actual]; + } else if(strcmp(type, @encode(short)) == 0) { + short actual = (short)va_arg(v, int); + obj = [NSNumber numberWithShort:actual]; + } else if(strcmp(type, @encode(unsigned char)) == 0) { + unsigned char actual = (unsigned char)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedChar:actual]; + } else if(strcmp(type, @encode(unsigned int)) == 0) { + unsigned int actual = (int)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedInt:actual]; + } else if(strcmp(type, @encode(unsigned long)) == 0) { + unsigned long actual = (unsigned long)va_arg(v, unsigned long); + obj = [NSNumber numberWithUnsignedLong:actual]; + } else if(strcmp(type, @encode(unsigned long long)) == 0) { + unsigned long long actual = (unsigned long long)va_arg(v, unsigned long long); + obj = [NSNumber numberWithUnsignedLongLong:actual]; + } else if(strcmp(type, @encode(unsigned short)) == 0) { + unsigned short actual = (unsigned short)va_arg(v, unsigned int); + obj = [NSNumber numberWithUnsignedShort:actual]; + } else if(strstr(type, @encode(EXPBasicBlock)) != NULL) { + // @encode(EXPBasicBlock) returns @? as of clang 4.1. + // This condition must occur before the test for id/class type, + // otherwise blocks will be treated as vanilla objects. + id actual = va_arg(v, EXPBasicBlock); + obj = [[actual copy] autorelease]; + } else if((strstr(type, @encode(id)) != NULL) || (strstr(type, @encode(Class)) != 0)) { + id actual = va_arg(v, id); + obj = actual; + } else if(strcmp(type, @encode(__typeof__(nil))) == 0) { + obj = nil; + } else if(strstr(type, "ff}{") != NULL) { //TODO: of course this only works for a 2x2 e.g. CGRect + obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[4]) size:4] autorelease]; + } else if(strstr(type, "=ff}") != NULL) { + obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[2]) size:2] autorelease]; + } else if(strstr(type, "=ffff}") != NULL) { + obj = [[[EXPFloatTuple alloc] initWithFloatValues:(float *)va_arg(v, float[4]) size:4] autorelease]; + } else if(strstr(type, "dd}{") != NULL) { //TODO: same here + obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[4]) size:4] autorelease]; + } else if(strstr(type, "=dd}") != NULL) { + obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[2]) size:2] autorelease]; + } else if(strstr(type, "=dddd}") != NULL) { + obj = [[[EXPDoubleTuple alloc] initWithDoubleValues:(double *)va_arg(v, double[4]) size:4] autorelease]; + } else if(type[0] == '{') { + EXPUnsupportedObject *actual = [[[EXPUnsupportedObject alloc] initWithType:@"struct"] autorelease]; + obj = actual; + } else if(type[0] == '(') { + EXPUnsupportedObject *actual = [[[EXPUnsupportedObject alloc] initWithType:@"union"] autorelease]; + obj = actual; + } else { + void *actual = va_arg(v, void *); + obj = (actual == NULL ? nil :[NSValue valueWithPointer:actual]); + } + if([obj isKindOfClass:[NSValue class]] && ![obj isKindOfClass:[NSNumber class]]) { + [(NSValue *)obj set_EXP_objCType:type]; + } + va_end(v); + return obj; +} + +EXPExpect *_EXP_expect(id testCase, int lineNumber, const char *fileName, EXPIdBlock actualBlock) { + return [EXPExpect expectWithActualBlock:actualBlock testCase:testCase lineNumber:lineNumber fileName:fileName]; +} + +void EXPFail(id testCase, int lineNumber, const char *fileName, NSString *message) { + NSLog(@"%s:%d %@", fileName, lineNumber, message); + NSString *reason = [NSString stringWithFormat:@"%s:%d %@", fileName, lineNumber, message]; + NSException *exception = [NSException exceptionWithName:@"Expecta Error" reason:reason userInfo:nil]; + + if(testCase && [testCase respondsToSelector:@selector(failWithException:)]) { + if([[(Class)objc_getMetaClass("NSException") class] instancesRespondToSelector:@selector(failureInFile:atLine:withDescription:)]) { + exception = [NSException failureInFile:[NSString stringWithUTF8String:fileName] atLine:lineNumber withDescription:message]; + } + [testCase failWithException:exception]; + } else if(testCase && [testCase respondsToSelector:@selector(recordFailureWithDescription:inFile:atLine:expected:)]){ + [testCase recordFailureWithDescription:message + inFile:[NSString stringWithUTF8String:fileName] + atLine:lineNumber + expected:NO]; + } else { + [exception raise]; + } +} + +NSString *EXPDescribeObject(id obj) { + if(obj == nil) { + return @"nil/null"; + } else if([obj isKindOfClass:[NSValue class]] && ![obj isKindOfClass:[NSNumber class]]) { + const char *type = [(NSValue *)obj _EXP_objCType]; + if(type) { + if(strcmp(type, @encode(SEL)) == 0) { + return [NSString stringWithFormat:@"@selector(%@)", NSStringFromSelector([obj pointerValue])]; + } else if(strcmp(type, @encode(Class)) == 0) { + return NSStringFromClass([obj pointerValue]); + } + } + } + NSString *description = [obj description]; + if([obj isKindOfClass:[NSArray class]]) { + NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; + for(id o in obj) { + [arr addObject:EXPDescribeObject(o)]; + } + description = [NSString stringWithFormat:@"(%@)", [arr componentsJoinedByString:@", "]]; + } else if([obj isKindOfClass:[NSSet class]] || [obj isKindOfClass:[NSOrderedSet class]]) { + NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; + for(id o in obj) { + [arr addObject:EXPDescribeObject(o)]; + } + description = [NSString stringWithFormat:@"{(%@)}", [arr componentsJoinedByString:@", "]]; + } else if([obj isKindOfClass:[NSDictionary class]]) { + NSMutableArray *arr = [NSMutableArray arrayWithCapacity:[obj count]]; + for(id k in obj) { + id v = [obj objectForKey:k]; + [arr addObject:[NSString stringWithFormat:@"%@ = %@;",EXPDescribeObject(k), EXPDescribeObject(v)]]; + } + description = [NSString stringWithFormat:@"{%@}", [arr componentsJoinedByString:@" "]]; + } else if([obj isKindOfClass:[NSAttributedString class]]) { + description = [obj string]; + } else { + description = [description stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"]; + } + return description; +} + +void EXP_prerequisite(EXPBoolBlock block) { + [[[[NSThread currentThread] threadDictionary] objectForKey:@"EXP_currentMatcher"] setPrerequisiteBlock:block]; +} + +void EXP_match(EXPBoolBlock block) { + [[[[NSThread currentThread] threadDictionary] objectForKey:@"EXP_currentMatcher"] setMatchBlock:block]; +} + +void EXP_failureMessageForTo(EXPStringBlock block) { + [[[[NSThread currentThread] threadDictionary] objectForKey:@"EXP_currentMatcher"] setFailureMessageForToBlock:block]; +} + +void EXP_failureMessageForNotTo(EXPStringBlock block) { + [[[[NSThread currentThread] threadDictionary] objectForKey:@"EXP_currentMatcher"] setFailureMessageForNotToBlock:block]; +} + diff --git a/Example/Pods/Expecta/src/NSObject+Expecta.h b/Example/Pods/Expecta/src/NSObject+Expecta.h new file mode 100644 index 0000000..e0e881a --- /dev/null +++ b/Example/Pods/Expecta/src/NSObject+Expecta.h @@ -0,0 +1,14 @@ +#import + +@interface NSObject (Expecta) + +#ifdef USE_XCTEST +- (void)recordFailureWithDescription:(NSString *)description + inFile:(NSString *)filename + atLine:(NSUInteger)lineNumber + expected:(BOOL)expected; +#else +- (void)failWithException:(NSException *)exception; +#endif + +@end diff --git a/Example/Pods/Expecta/src/NSValue+Expecta.h b/Example/Pods/Expecta/src/NSValue+Expecta.h new file mode 100644 index 0000000..4b7dfe7 --- /dev/null +++ b/Example/Pods/Expecta/src/NSValue+Expecta.h @@ -0,0 +1,8 @@ +#import + +@interface NSValue (Expecta) + +- (const char *)_EXP_objCType; +- (void)set_EXP_objCType:(const char *)_EXP_objCType; + +@end diff --git a/Example/Pods/Expecta/src/NSValue+Expecta.m b/Example/Pods/Expecta/src/NSValue+Expecta.m new file mode 100644 index 0000000..331a234 --- /dev/null +++ b/Example/Pods/Expecta/src/NSValue+Expecta.m @@ -0,0 +1,21 @@ +#import "NSValue+Expecta.h" +#import +#import "Expecta.h" + +EXPFixCategoriesBug(NSValue_Expecta); + +@implementation NSValue (Expecta) + +static char _EXP_typeKey; + +- (const char *)_EXP_objCType { + return [(NSString *)objc_getAssociatedObject(self, &_EXP_typeKey) cStringUsingEncoding:NSASCIIStringEncoding]; +} + +- (void)set_EXP_objCType:(const char *)_EXP_objCType { + objc_setAssociatedObject(self, &_EXP_typeKey, + [NSString stringWithCString:_EXP_objCType encoding:NSASCIIStringEncoding], + OBJC_ASSOCIATION_COPY_NONATOMIC); +} + +@end diff --git a/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.h b/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.h new file mode 100644 index 0000000..5780ff6 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.h @@ -0,0 +1,4 @@ +#import + +BOOL EXPIsValuePointer(NSValue *value); +BOOL EXPIsNumberFloat(NSNumber *number); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.m b/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.m new file mode 100644 index 0000000..cec0343 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.m @@ -0,0 +1,9 @@ +#import "EXPMatcherHelpers.h" + +BOOL EXPIsValuePointer(NSValue *value) { + return [value objCType][0] == @encode(void *)[0]; +} + +BOOL EXPIsNumberFloat(NSNumber *number) { + return strcmp([number objCType], @encode(float)) == 0; +} diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h new file mode 100644 index 0000000..f683d6b --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h @@ -0,0 +1,7 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beCloseToWithin, (id expected, id within)); +EXPMatcherInterface(beCloseToWithin, (id expected, id within)); + +#define beCloseTo(expected) _beCloseToWithin(EXPObjectify((expected)), nil) +#define beCloseToWithin(expected, range) _beCloseToWithin(EXPObjectify((expected)), EXPObjectify((range))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m new file mode 100644 index 0000000..c55431a --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m @@ -0,0 +1,49 @@ +#import "EXPMatchers+beCloseTo.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beCloseToWithin, (id expected, id within)) { + prerequisite(^BOOL{ + return [actual isKindOfClass:[NSNumber class]] && + [expected isKindOfClass:[NSNumber class]] && + ([within isKindOfClass:[NSNumber class]] || (within == nil)); + }); + + match(^BOOL{ + double actualValue = [actual doubleValue]; + double expectedValue = [expected doubleValue]; + + if (within != nil) { + double withinValue = [within doubleValue]; + double lowerBound = expectedValue - withinValue; + double upperBound = expectedValue + withinValue; + return (actualValue >= lowerBound) && (actualValue <= upperBound); + } else { + double diff = fabs(actualValue - expectedValue); + actualValue = fabs(actualValue); + expectedValue = fabs(expectedValue); + double largest = (expectedValue > actualValue) ? expectedValue : actualValue; + return (diff <= largest * FLT_EPSILON); + } + }); + + failureMessageForTo(^NSString *{ + if (within) { + return [NSString stringWithFormat:@"expected %@ to be close to %@ within %@", + EXPDescribeObject(actual), EXPDescribeObject(expected), EXPDescribeObject(within)]; + } else { + return [NSString stringWithFormat:@"expected %@ to be close to %@", + EXPDescribeObject(actual), EXPDescribeObject(expected)]; + } + }); + + failureMessageForNotTo(^NSString *{ + if (within) { + return [NSString stringWithFormat:@"expected %@ not to be close to %@ within %@", + EXPDescribeObject(actual), EXPDescribeObject(expected), EXPDescribeObject(within)]; + } else { + return [NSString stringWithFormat:@"expected %@ not to be close to %@", + EXPDescribeObject(actual), EXPDescribeObject(expected)]; + } + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h new file mode 100644 index 0000000..89c8e00 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(beFalsy, (void)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m new file mode 100644 index 0000000..382cab8 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m @@ -0,0 +1,24 @@ +#import "EXPMatchers+beFalsy.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(beFalsy, (void)) { + match(^BOOL{ + if([actual isKindOfClass:[NSNumber class]]) { + return ![(NSNumber *)actual boolValue]; + } else if([actual isKindOfClass:[NSValue class]]) { + if(EXPIsValuePointer((NSValue *)actual)) { + return ![(NSValue *)actual pointerValue]; + } + } + return !actual; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: a falsy value, got: %@, which is truthy", EXPDescribeObject(actual)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: a non-falsy value, got: %@, which is falsy", EXPDescribeObject(actual)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h new file mode 100644 index 0000000..a2f9fba --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h @@ -0,0 +1,6 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beGreaterThan, (id expected)); +EXPMatcherInterface(beGreaterThan, (id expected)); + +#define beGreaterThan(expected) _beGreaterThan(EXPObjectify((expected))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m new file mode 100644 index 0000000..d725387 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m @@ -0,0 +1,20 @@ +#import "EXPMatchers+beGreaterThan.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beGreaterThan, (id expected)) { + match(^BOOL{ + if ([actual respondsToSelector:@selector(compare:)]) { + return [actual compare:expected] == NSOrderedDescending; + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ not to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h new file mode 100644 index 0000000..3e91c64 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h @@ -0,0 +1,6 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beGreaterThanOrEqualTo, (id expected)); +EXPMatcherInterface(beGreaterThanOrEqualTo, (id expected)); + +#define beGreaterThanOrEqualTo(expected) _beGreaterThanOrEqualTo(EXPObjectify((expected))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m new file mode 100644 index 0000000..3276344 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m @@ -0,0 +1,20 @@ +#import "EXPMatchers+beGreaterThanOrEqualTo.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beGreaterThanOrEqualTo, (id expected)) { + match(^BOOL{ + if ([actual respondsToSelector:@selector(compare:)]) { + return [actual compare:expected] != NSOrderedAscending; + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ not to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h new file mode 100644 index 0000000..06b9690 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h @@ -0,0 +1,10 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beIdenticalTo, (void *expected)); +EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion + +#if __has_feature(objc_arc) +#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected) +#else +#define beIdenticalTo _beIdenticalTo +#endif diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m new file mode 100644 index 0000000..f5ec33a --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m @@ -0,0 +1,24 @@ +#import "EXPMatchers+equal.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(beIdenticalTo, (void *expected)) { + match(^BOOL{ + if(actual == expected) { + return YES; + } else if([actual isKindOfClass:[NSValue class]] && EXPIsValuePointer((NSValue *)actual)) { + if([(NSValue *)actual pointerValue] == expected) { + return YES; + } + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: <%p>, got: <%p>", expected, actual]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: not <%p>, got: <%p>", expected, actual]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h new file mode 100644 index 0000000..8ea990e --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h @@ -0,0 +1,6 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); +EXPMatcherInterface(beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); + +#define beInTheRangeOf(expectedLowerBound, expectedUpperBound) _beInTheRangeOf(EXPObjectify((expectedLowerBound)), EXPObjectify((expectedUpperBound))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.m new file mode 100644 index 0000000..1631f24 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.m @@ -0,0 +1,30 @@ +#import "EXPMatchers+beInTheRangeOf.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)) { + match(^BOOL{ + if ([actual respondsToSelector:@selector(compare:)]) { + NSComparisonResult compareLowerBound = [expectedLowerBound compare: actual]; + NSComparisonResult compareUpperBound = [expectedUpperBound compare: actual]; + if (compareLowerBound == NSOrderedSame) { + return YES; + } + if (compareUpperBound == NSOrderedSame) { + return YES; + } + if ((compareLowerBound == NSOrderedAscending) && (compareUpperBound == NSOrderedDescending)) { + return YES; + } + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ to be in the range [%@, %@] (inclusive)", EXPDescribeObject(actual), EXPDescribeObject(expectedLowerBound), EXPDescribeObject(expectedUpperBound)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ not to be in the range [%@, %@] (inclusive)", EXPDescribeObject(actual), EXPDescribeObject(expectedLowerBound), EXPDescribeObject(expectedUpperBound)]; + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h new file mode 100644 index 0000000..e3c213d --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h @@ -0,0 +1,7 @@ +#import "Expecta.h" + +EXPMatcherInterface(beInstanceOf, (Class expected)); + +#define beAnInstanceOf beInstanceOf +#define beMemberOf beInstanceOf +#define beAMemberOf beInstanceOf diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m new file mode 100644 index 0000000..415b564 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m @@ -0,0 +1,27 @@ +#import "EXPMatchers+beInstanceOf.h" + +EXPMatcherImplementationBegin(beInstanceOf, (Class expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + + prerequisite(^BOOL{ + return !(actualIsNil || expectedIsNil); + }); + + match(^BOOL{ + return [actual isMemberOfClass:expected]; + }); + + failureMessageForTo(^NSString *{ + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected: an instance of %@, got: an instance of %@", [expected class], [actual class]]; + }); + + failureMessageForNotTo(^NSString *{ + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected: not an instance of %@, got: an instance of %@", [expected class], [actual class]]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h new file mode 100644 index 0000000..2774f91 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(beKindOf, (Class expected)); + +#define beAKindOf beKindOf diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m new file mode 100644 index 0000000..a61d37d --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m @@ -0,0 +1,27 @@ +#import "EXPMatchers+beKindOf.h" + +EXPMatcherImplementationBegin(beKindOf, (Class expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + + prerequisite(^BOOL{ + return !(actualIsNil || expectedIsNil); + }); + + match(^BOOL{ + return [actual isKindOfClass:expected]; + }); + + failureMessageForTo(^NSString *{ + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected: a kind of %@, got: an instance of %@, which is not a kind of %@", [expected class], [actual class], [expected class]]; + }); + + failureMessageForNotTo(^NSString *{ + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected: not a kind of %@, got: an instance of %@, which is a kind of %@", [expected class], [actual class], [expected class]]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h new file mode 100644 index 0000000..5ed0a24 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h @@ -0,0 +1,6 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beLessThan, (id expected)); +EXPMatcherInterface(beLessThan, (id expected)); + +#define beLessThan(expected) _beLessThan(EXPObjectify((expected))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m new file mode 100644 index 0000000..39b6883 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m @@ -0,0 +1,20 @@ +#import "EXPMatchers+beLessThan.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beLessThan, (id expected)) { + match(^BOOL{ + if ([actual respondsToSelector:@selector(compare:)]) { + return [actual compare:expected] == NSOrderedAscending; + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ not to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h new file mode 100644 index 0000000..2c31341 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h @@ -0,0 +1,6 @@ +#import "Expecta.h" + +EXPMatcherInterface(_beLessThanOrEqualTo, (id expected)); +EXPMatcherInterface(beLessThanOrEqualTo, (id expected)); + +#define beLessThanOrEqualTo(expected) _beLessThanOrEqualTo(EXPObjectify((expected))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m new file mode 100644 index 0000000..401c194 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m @@ -0,0 +1,20 @@ +#import "EXPMatchers+beLessThanOrEqualTo.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_beLessThanOrEqualTo, (id expected)) { + match(^BOOL{ + if ([actual respondsToSelector:@selector(compare:)]) { + return [actual compare:expected] != NSOrderedDescending; + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ not to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd \ No newline at end of file diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.h new file mode 100644 index 0000000..e64e8cf --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(beNil, (void)); + +#define beNull beNil diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.m new file mode 100644 index 0000000..73ea1d6 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.m @@ -0,0 +1,16 @@ +#import "EXPMatchers+beNil.h" + +EXPMatcherImplementationBegin(beNil, (void)) { + match(^BOOL{ + return actual == nil; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: nil/null, got: %@", EXPDescribeObject(actual)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: not nil/null, got: %@", EXPDescribeObject(actual)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h new file mode 100644 index 0000000..f06e5da --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(beSubclassOf, (Class expected)); + +#define beASubclassOf beSubclassOf diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m new file mode 100644 index 0000000..dd7daf5 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m @@ -0,0 +1,27 @@ +#import "EXPMatchers+beSubclassOf.h" +#import "NSValue+Expecta.h" +#import + +EXPMatcherImplementationBegin(beSubclassOf, (Class expected)) { + __block BOOL actualIsClass = YES; + + prerequisite(^BOOL { + actualIsClass = class_isMetaClass(object_getClass(actual)); + return actualIsClass; + }); + + match(^BOOL{ + return [actual isSubclassOfClass:expected]; + }); + + failureMessageForTo(^NSString *{ + if(!actualIsClass) return @"the actual value is not a Class"; + return [NSString stringWithFormat:@"expected: a subclass of %@, got: a class %@, which is not a subclass of %@", [expected class], actual, [expected class]]; + }); + + failureMessageForNotTo(^NSString *{ + if(!actualIsClass) return @"the actual value is not a Class"; + return [NSString stringWithFormat:@"expected: not a subclass of %@, got: a class %@, which is a subclass of %@", [expected class], actual, [expected class]]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h new file mode 100644 index 0000000..f9a47ba --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h @@ -0,0 +1,4 @@ +#import "Expecta.h" + +EXPMatcherInterface(beSupersetOf, (id subset)); + diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.m new file mode 100644 index 0000000..604a3bd --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.m @@ -0,0 +1,57 @@ +#import "EXPMatchers+contain.h" + +EXPMatcherImplementationBegin(beSupersetOf, (id subset)) { + BOOL actualIsCompatible = [actual isKindOfClass:[NSDictionary class]] || [actual respondsToSelector:@selector(containsObject:)]; + BOOL subsetIsNil = (subset == nil); + + // For some instances the isKindOfClass: method returns false, even though + // they are both actually dictionaries. e.g. Comparing a NSCFDictionary and a + // NSDictionary. + BOOL bothAreDictionaries = [actual isKindOfClass:[NSDictionary class]] && [subset isKindOfClass:[NSDictionary class]]; + + BOOL classMatches = bothAreDictionaries || [subset isKindOfClass:[actual class]]; + + prerequisite(^BOOL{ + return actualIsCompatible && !subsetIsNil && classMatches; + }); + + match(^BOOL{ + if(!actualIsCompatible) return NO; + + if([actual isKindOfClass:[NSDictionary class]]) { + for (id key in subset) { + id actualValue = [actual valueForKey:key]; + id subsetValue = [subset valueForKey:key]; + + if (![subsetValue isEqual:actualValue]) return NO; + } + } else { + for (id object in subset) { + if (![actual containsObject:object]) return NO; + } + } + + return YES; + }); + + failureMessageForTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSDictionary and does not implement -containsObject:", EXPDescribeObject(actual)]; + + if(subsetIsNil) return @"the expected value is nil/null"; + + if(!classMatches) return [NSString stringWithFormat:@"%@ does not match the class of %@", EXPDescribeObject(subset), EXPDescribeObject(actual)]; + + return [NSString stringWithFormat:@"expected %@ to be a superset of %@", EXPDescribeObject(actual), EXPDescribeObject(subset)]; + }); + + failureMessageForNotTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSDictionary and does not implement -containsObject:", EXPDescribeObject(actual)]; + + if(subsetIsNil) return @"the expected value is nil/null"; + + if(!classMatches) return [NSString stringWithFormat:@"%@ does not match the class of %@", EXPDescribeObject(subset), EXPDescribeObject(actual)]; + + return [NSString stringWithFormat:@"expected %@ not to be a superset of %@", EXPDescribeObject(actual), EXPDescribeObject(subset)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h new file mode 100644 index 0000000..1e4e78f --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(beTruthy, (void)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m new file mode 100644 index 0000000..02fa6e7 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m @@ -0,0 +1,24 @@ +#import "EXPMatchers+beTruthy.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(beTruthy, (void)) { + match(^BOOL{ + if([actual isKindOfClass:[NSNumber class]]) { + return !![(NSNumber *)actual boolValue]; + } else if([actual isKindOfClass:[NSValue class]]) { + if(EXPIsValuePointer((NSValue *)actual)) { + return !![(NSValue *)actual pointerValue]; + } + } + return !!actual; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: a truthy value, got: %@, which is falsy", EXPDescribeObject(actual)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: a non-truthy value, got: %@, which is truthy", EXPDescribeObject(actual)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h new file mode 100644 index 0000000..4ebd6d2 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(beginWith, (id expected)); + +#define startWith beginWith diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m new file mode 100644 index 0000000..2f63635 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m @@ -0,0 +1,49 @@ +#import "EXPMatchers+beginWith.h" + +EXPMatcherImplementationBegin(beginWith, (id expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + //This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same + BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]]) + || ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]]) + || ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]])); + + prerequisite(^BOOL { + return actualAndExpectedAreCompatible; + }); + + match(^BOOL { + if ([actual isKindOfClass:[NSString class]]) { + return [actual hasPrefix:expected]; + } else if ([actual isKindOfClass:[NSArray class]]) { + if ([expected count] > [actual count] || [expected count] == 0) { + return NO; + } + NSArray *subArray = [actual subarrayWithRange:NSMakeRange(0, [expected count])]; + return [subArray isEqualToArray:expected]; + } else { + if ([expected count] > [actual count] || [expected count] == 0) { + return NO; + } + + NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange(0, [expected count]) copyItems:NO]; + return [subset isEqualToOrderedSet:expected]; + } + }); + + failureMessageForTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNil) return @"the expected value is nil/null"; + if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; + return [NSString stringWithFormat:@"expected: %@ to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNil) return @"the expected value is nil/null"; + if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; + + return [NSString stringWithFormat:@"expected: %@ not to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h new file mode 100644 index 0000000..efc7b98 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(conformTo, (Protocol *expected)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m new file mode 100644 index 0000000..b88014d --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m @@ -0,0 +1,33 @@ +#import "EXPMatchers+conformTo.h" +#import "NSValue+Expecta.h" +#import + +EXPMatcherImplementationBegin(conformTo, (Protocol *expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + + prerequisite(^BOOL{ + return !(actualIsNil || expectedIsNil); + }); + + match(^BOOL{ + return [actual conformsToProtocol:expected]; + }); + + failureMessageForTo(^NSString *{ + if(actualIsNil) return @"the object is nil/null"; + if(expectedIsNil) return @"the protocol is nil/null"; + + NSString *name = NSStringFromProtocol(expected); + return [NSString stringWithFormat:@"expected: %@ to conform to %@", actual, name]; + }); + + failureMessageForNotTo(^NSString *{ + if(actualIsNil) return @"the object is nil/null"; + if(expectedIsNil) return @"the protocol is nil/null"; + + NSString *name = NSStringFromProtocol(expected); + return [NSString stringWithFormat:@"expected: %@ not to conform to %@", actual, name]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.h new file mode 100644 index 0000000..5803146 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(_contain, (id expected)); +EXPMatcherInterface(contain, (id expected)); // to aid code completion +#define contain(expected) _contain(EXPObjectify((expected))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.m new file mode 100644 index 0000000..b8a6f86 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+contain.m @@ -0,0 +1,38 @@ +#import "EXPMatchers+contain.h" + +EXPMatcherImplementationBegin(_contain, (id expected)) { + BOOL actualIsCompatible = [actual isKindOfClass:[NSString class]] || [actual conformsToProtocol:@protocol(NSFastEnumeration)]; + BOOL expectedIsNil = (expected == nil); + + prerequisite(^BOOL{ + return actualIsCompatible && !expectedIsNil; + }); + + match(^BOOL{ + if(actualIsCompatible) { + if([actual isKindOfClass:[NSString class]]) { + return [(NSString *)actual rangeOfString:[expected description]].location != NSNotFound; + } else { + for (id object in actual) { + if ([object isEqual:expected]) { + return YES; + } + } + } + } + return NO; + }); + + failureMessageForTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)]; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected %@ to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)]; + if(expectedIsNil) return @"the expected value is nil/null"; + return [NSString stringWithFormat:@"expected %@ not to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.h new file mode 100644 index 0000000..228cea9 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(endWith, (id expected)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.m new file mode 100644 index 0000000..f34bd90 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.m @@ -0,0 +1,49 @@ +#import "EXPMatchers+endWith.h" + +EXPMatcherImplementationBegin(endWith, (id expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + //This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same + BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]]) + || ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]]) + || ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]])); + + prerequisite(^BOOL { + return actualAndExpectedAreCompatible; + }); + + match(^BOOL { + if ([actual isKindOfClass:[NSString class]]) { + return [actual hasSuffix:expected]; + } else if ([actual isKindOfClass:[NSArray class]]) { + if ([expected count] > [actual count] || [expected count] == 0) { + return NO; + } + NSArray *subArray = [actual subarrayWithRange:NSMakeRange([actual count] - [expected count], [expected count])]; + return [subArray isEqualToArray:expected]; + } else { + if ([expected count] > [actual count] || [expected count] == 0) { + return NO; + } + + NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange([actual count] - [expected count], [expected count]) copyItems:NO]; + return [subset isEqualToOrderedSet:expected]; + } + }); + + failureMessageForTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNil) return @"the expected value is nil/null"; + if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; + return [NSString stringWithFormat:@"expected: %@ to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNil) return @"the expected value is nil/null"; + if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]]; + + return [NSString stringWithFormat:@"expected: %@ not to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.h new file mode 100644 index 0000000..b4047c0 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.h @@ -0,0 +1,5 @@ +#import "Expecta.h" + +EXPMatcherInterface(_equal, (id expected)); +EXPMatcherInterface(equal, (id expected)); // to aid code completion +#define equal(...) _equal(EXPObjectify((__VA_ARGS__))) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.m new file mode 100644 index 0000000..bcf96ed --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+equal.m @@ -0,0 +1,24 @@ +#import "EXPMatchers+equal.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(_equal, (id expected)) { + match(^BOOL{ + if((actual == expected) || [actual isEqual:expected]) { + return YES; + } else if([actual isKindOfClass:[NSNumber class]] && [expected isKindOfClass:[NSNumber class]]) { + if(EXPIsNumberFloat((NSNumber *)actual) || EXPIsNumberFloat((NSNumber *)expected)) { + return [(NSNumber *)actual floatValue] == [(NSNumber *)expected floatValue]; + } + } + return NO; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: not %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h new file mode 100644 index 0000000..1f70f94 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h @@ -0,0 +1,10 @@ +#import "Expecta.h" + +EXPMatcherInterface(haveCountOf, (NSUInteger expected)); + +#define haveCount haveCountOf +#define haveACountOf haveCountOf +#define haveLength haveCountOf +#define haveLengthOf haveCountOf +#define haveALengthOf haveCountOf +#define beEmpty() haveCountOf(0) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m new file mode 100644 index 0000000..04c09d5 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m @@ -0,0 +1,36 @@ +#import "EXPMatchers+haveCountOf.h" + +EXPMatcherImplementationBegin(haveCountOf, (NSUInteger expected)) { + BOOL actualIsStringy = [actual isKindOfClass:[NSString class]] || [actual isKindOfClass:[NSAttributedString class]]; + BOOL actualIsCompatible = actualIsStringy || [actual respondsToSelector:@selector(count)]; + + prerequisite(^BOOL{ + return actualIsCompatible; + }); + + NSUInteger (^count)(id) = ^(id actual) { + if(actualIsStringy) { + return [actual length]; + } else { + return [actual count]; + } + }; + + match(^BOOL{ + if(actualIsCompatible) { + return count(actual) == expected; + } + return NO; + }); + + failureMessageForTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)]; + return [NSString stringWithFormat:@"expected %@ to have a count of %zi but got %zi", EXPDescribeObject(actual), expected, count(actual)]; + }); + + failureMessageForNotTo(^NSString *{ + if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)]; + return [NSString stringWithFormat:@"expected %@ not to have a count of %zi", EXPDescribeObject(actual), expected]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.h new file mode 100644 index 0000000..2487d6f --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.h @@ -0,0 +1,4 @@ +#import "Expecta.h" + +EXPMatcherInterface(notify, (id expectedNotification)); + diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.m new file mode 100644 index 0000000..5dda3bf --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+notify.m @@ -0,0 +1,63 @@ +#import "EXPMatchers+notify.h" + +EXPMatcherImplementationBegin(notify, (id expected)){ + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNil = (expected == nil); + BOOL isNotification = [expected isKindOfClass:[NSNotification class]]; + BOOL isName = [expected isKindOfClass:[NSString class]]; + + __block NSString *expectedName; + __block BOOL expectedNotificationOccurred = NO; + __block id observer; + + prerequisite(^BOOL{ + expectedNotificationOccurred = NO; + if (actualIsNil || expectedIsNil) return NO; + if (isNotification) { + expectedName = [expected name]; + }else if(isName) { + expectedName = expected; + }else{ + return NO; + } + + observer = [[NSNotificationCenter defaultCenter] addObserverForName:expectedName object:nil queue:nil usingBlock:^(NSNotification *note){ + if (isNotification) { + expectedNotificationOccurred |= [expected isEqual:note]; + }else{ + expectedNotificationOccurred = YES; + } + }]; + ((EXPBasicBlock)actual)(); + return YES; + }); + + match(^BOOL{ + if(expectedNotificationOccurred) { + [[NSNotificationCenter defaultCenter] removeObserver:observer]; + } + return expectedNotificationOccurred; + }); + + failureMessageForTo(^NSString *{ + if (observer) { + [[NSNotificationCenter defaultCenter] removeObserver:observer]; + } + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + if(!(isNotification || isName)) return @"the actual value is not a notification or string"; + return [NSString stringWithFormat:@"expected: %@, got: none",expectedName]; + }); + + failureMessageForNotTo(^NSString *{ + if (observer) { + [[NSNotificationCenter defaultCenter] removeObserver:observer]; + } + if(actualIsNil) return @"the actual value is nil/null"; + if(expectedIsNil) return @"the expected value is nil/null"; + if(!(isNotification || isName)) return @"the actual value is not a notification or string"; + return [NSString stringWithFormat:@"expected: none, got: %@", expectedName]; + }); +} + +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.h new file mode 100644 index 0000000..1f7fae0 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.h @@ -0,0 +1,4 @@ +#import "Expecta.h" + +EXPMatcherInterface(raise, (NSString *expectedExceptionName)); +#define raiseAny() raise(nil) diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.m new file mode 100644 index 0000000..26f3c55 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+raise.m @@ -0,0 +1,30 @@ +#import "EXPMatchers+raise.h" +#import "EXPDefines.h" + +EXPMatcherImplementationBegin(raise, (NSString *expectedExceptionName)) { + __block NSException *exceptionCaught = nil; + + match(^BOOL{ + BOOL expectedExceptionCaught = NO; + @try { + ((EXPBasicBlock)actual)(); + } @catch(NSException *e) { + exceptionCaught = e; + expectedExceptionCaught = (expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]; + } + return expectedExceptionCaught; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@, got: %@", + expectedExceptionName ? expectedExceptionName : @"any exception", + exceptionCaught ? [exceptionCaught name] : @"no exception"]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@, got: %@", + expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception", + exceptionCaught ? [exceptionCaught name] : @"no exception"]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h new file mode 100644 index 0000000..2cf5a5d --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m new file mode 100644 index 0000000..3943d38 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m @@ -0,0 +1,35 @@ +#import "EXPMatchers+raiseWithReason.h" +#import "EXPDefines.h" + +EXPMatcherImplementationBegin(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)) { + __block NSException *exceptionCaught = nil; + + match(^BOOL{ + BOOL expectedExceptionCaught = NO; + @try { + ((EXPBasicBlock)actual)(); + } @catch(NSException *e) { + exceptionCaught = e; + expectedExceptionCaught = (((expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]) && + ((expectedReason == nil) || ([[exceptionCaught reason] isEqualToString:expectedReason]))); + } + return expectedExceptionCaught; + }); + + failureMessageForTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)", + expectedExceptionName ?: @"any exception", + expectedReason ?: @"any reason", + exceptionCaught ? [exceptionCaught name] : @"no exception", + exceptionCaught ? [exceptionCaught reason] : @""]; + }); + + failureMessageForNotTo(^NSString *{ + return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)", + expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception", + expectedReason ? [NSString stringWithFormat:@"not '%@'", expectedReason] : @"no reason", + exceptionCaught ? [exceptionCaught name] : @"no exception", + exceptionCaught ? [exceptionCaught reason] : @"no reason"]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h b/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h new file mode 100644 index 0000000..279131d --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h @@ -0,0 +1,3 @@ +#import "Expecta.h" + +EXPMatcherInterface(respondTo, (SEL expected)); diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m b/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m new file mode 100644 index 0000000..d294113 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m @@ -0,0 +1,28 @@ +#import "EXPMatchers+respondTo.h" +#import "EXPMatcherHelpers.h" + +EXPMatcherImplementationBegin(respondTo, (SEL expected)) { + BOOL actualIsNil = (actual == nil); + BOOL expectedIsNull = (expected == NULL); + + prerequisite (^BOOL { + return !(actualIsNil || expectedIsNull); + }); + + match(^BOOL { + return [actual respondsToSelector:expected]; + }); + + failureMessageForTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNull) return @"the selector is null"; + return [NSString stringWithFormat:@"expected: %@ to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; + }); + + failureMessageForNotTo(^NSString *{ + if (actualIsNil) return @"the object is nil/null"; + if (expectedIsNull) return @"the selector is null"; + return [NSString stringWithFormat:@"expected: %@ not to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; + }); +} +EXPMatcherImplementationEnd diff --git a/Example/Pods/Expecta/src/matchers/EXPMatchers.h b/Example/Pods/Expecta/src/matchers/EXPMatchers.h new file mode 100644 index 0000000..f313829 --- /dev/null +++ b/Example/Pods/Expecta/src/matchers/EXPMatchers.h @@ -0,0 +1,24 @@ +#import "EXPMatchers+beNil.h" +#import "EXPMatchers+equal.h" +#import "EXPMatchers+beInstanceOf.h" +#import "EXPMatchers+beKindOf.h" +#import "EXPMatchers+beSubclassOf.h" +#import "EXPMatchers+conformTo.h" +#import "EXPMatchers+beTruthy.h" +#import "EXPMatchers+beFalsy.h" +#import "EXPMatchers+contain.h" +#import "EXPMatchers+beSupersetOf.h" +#import "EXPMatchers+haveCountOf.h" +#import "EXPMatchers+beIdenticalTo.h" +#import "EXPMatchers+beGreaterThan.h" +#import "EXPMatchers+beGreaterThanOrEqualTo.h" +#import "EXPMatchers+beLessThan.h" +#import "EXPMatchers+beLessThanOrEqualTo.h" +#import "EXPMatchers+beInTheRangeOf.h" +#import "EXPMatchers+beCloseTo.h" +#import "EXPMatchers+raise.h" +#import "EXPMatchers+raiseWithReason.h" +#import "EXPMatchers+respondTo.h" +#import "EXPMatchers+notify.h" +#import "EXPMatchers+beginWith.h" +#import "EXPMatchers+endWith.h" diff --git a/Example/Pods/Headers/Public/Expecta/EXPBackwardCompatibility.h b/Example/Pods/Headers/Public/Expecta/EXPBackwardCompatibility.h new file mode 120000 index 0000000..4c2b948 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPBackwardCompatibility.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPBackwardCompatibility.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h b/Example/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h new file mode 120000 index 0000000..432150a --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPBlockDefinedMatcher.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPDefines.h b/Example/Pods/Headers/Public/Expecta/EXPDefines.h new file mode 120000 index 0000000..9a849b3 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPDefines.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPDefines.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPDoubleTuple.h b/Example/Pods/Headers/Public/Expecta/EXPDoubleTuple.h new file mode 120000 index 0000000..430f9e3 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPDoubleTuple.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPDoubleTuple.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPExpect.h b/Example/Pods/Headers/Public/Expecta/EXPExpect.h new file mode 120000 index 0000000..a036e0f --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPExpect.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPExpect.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPFloatTuple.h b/Example/Pods/Headers/Public/Expecta/EXPFloatTuple.h new file mode 120000 index 0000000..25f995d --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPFloatTuple.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPFloatTuple.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatcher.h b/Example/Pods/Headers/Public/Expecta/EXPMatcher.h new file mode 120000 index 0000000..8db6d0b --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatcher.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPMatcher.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h b/Example/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h new file mode 120000 index 0000000..65dc361 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatcherHelpers.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h new file mode 120000 index 0000000..15f74bb --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beCloseTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h new file mode 120000 index 0000000..1e43120 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beFalsy.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h new file mode 120000 index 0000000..ba8a9f1 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beGreaterThan.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h new file mode 120000 index 0000000..39ad55d --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h new file mode 120000 index 0000000..27adf4f --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beIdenticalTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h new file mode 120000 index 0000000..44fde8a --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h new file mode 120000 index 0000000..4a714be --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beInstanceOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h new file mode 120000 index 0000000..ad08730 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beKindOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h new file mode 120000 index 0000000..352fdbf --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beLessThan.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h new file mode 120000 index 0000000..c0413ac --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h new file mode 120000 index 0000000..aa8a5e5 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beNil.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h new file mode 120000 index 0000000..ef5c40d --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beSubclassOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h new file mode 120000 index 0000000..6918290 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beSupersetOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h new file mode 120000 index 0000000..5897b15 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beTruthy.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h new file mode 120000 index 0000000..bd030c4 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+beginWith.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h new file mode 120000 index 0000000..00e4e0d --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+conformTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+contain.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+contain.h new file mode 120000 index 0000000..fdbc9a0 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+contain.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+contain.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h new file mode 120000 index 0000000..aee7d84 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+endWith.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+equal.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+equal.h new file mode 120000 index 0000000..8cb4522 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+equal.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+equal.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h new file mode 120000 index 0000000..e71f6ce --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+haveCountOf.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+notify.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+notify.h new file mode 120000 index 0000000..a87c563 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+notify.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+notify.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+raise.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+raise.h new file mode 120000 index 0000000..7c01afd --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+raise.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+raise.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h new file mode 120000 index 0000000..fe2e97c --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+raiseWithReason.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h new file mode 120000 index 0000000..d171979 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers+respondTo.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPMatchers.h b/Example/Pods/Headers/Public/Expecta/EXPMatchers.h new file mode 120000 index 0000000..f2f725e --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPMatchers.h @@ -0,0 +1 @@ +../../../Expecta/src/matchers/EXPMatchers.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h b/Example/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h new file mode 120000 index 0000000..2f4492d --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h @@ -0,0 +1 @@ +../../../Expecta/src/EXPUnsupportedObject.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/Expecta.h b/Example/Pods/Headers/Public/Expecta/Expecta.h new file mode 120000 index 0000000..429c326 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/Expecta.h @@ -0,0 +1 @@ +../../../Expecta/src/Expecta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/ExpectaSupport.h b/Example/Pods/Headers/Public/Expecta/ExpectaSupport.h new file mode 120000 index 0000000..9d465aa --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/ExpectaSupport.h @@ -0,0 +1 @@ +../../../Expecta/src/ExpectaSupport.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/NSObject+Expecta.h b/Example/Pods/Headers/Public/Expecta/NSObject+Expecta.h new file mode 120000 index 0000000..d5a70d4 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/NSObject+Expecta.h @@ -0,0 +1 @@ +../../../Expecta/src/NSObject+Expecta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Expecta/NSValue+Expecta.h b/Example/Pods/Headers/Public/Expecta/NSValue+Expecta.h new file mode 120000 index 0000000..4bac200 --- /dev/null +++ b/Example/Pods/Headers/Public/Expecta/NSValue+Expecta.h @@ -0,0 +1 @@ +../../../Expecta/src/NSValue+Expecta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTExample.h b/Example/Pods/Headers/Public/Specta/SPTExample.h new file mode 120000 index 0000000..2a3ad3a --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTExample.h @@ -0,0 +1 @@ +../../../Specta/src/SPTExample.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTExampleGroup.h b/Example/Pods/Headers/Public/Specta/SPTExampleGroup.h new file mode 120000 index 0000000..a5f8422 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTExampleGroup.h @@ -0,0 +1 @@ +../../../Specta/src/SPTExampleGroup.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTNestedReporter.h b/Example/Pods/Headers/Public/Specta/SPTNestedReporter.h new file mode 120000 index 0000000..5ff34a0 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTNestedReporter.h @@ -0,0 +1 @@ +../../../Specta/src/SPTNestedReporter.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTReporter.h b/Example/Pods/Headers/Public/Specta/SPTReporter.h new file mode 120000 index 0000000..501ca2b --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTReporter.h @@ -0,0 +1 @@ +../../../Specta/src/SPTReporter.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h b/Example/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h new file mode 120000 index 0000000..2a95254 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTSharedExampleGroups.h @@ -0,0 +1 @@ +../../../Specta/src/SPTSharedExampleGroups.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTSpec.h b/Example/Pods/Headers/Public/Specta/SPTSpec.h new file mode 120000 index 0000000..8cb370e --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTSpec.h @@ -0,0 +1 @@ +../../../Specta/src/SPTSpec.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTXCTestCase.h b/Example/Pods/Headers/Public/Specta/SPTXCTestCase.h new file mode 120000 index 0000000..f7ee9e1 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTXCTestCase.h @@ -0,0 +1 @@ +../../../Specta/src/SPTXCTestCase.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SPTXCTestReporter.h b/Example/Pods/Headers/Public/Specta/SPTXCTestReporter.h new file mode 120000 index 0000000..eb4ad53 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SPTXCTestReporter.h @@ -0,0 +1 @@ +../../../Specta/src/SPTXCTestReporter.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/Specta.h b/Example/Pods/Headers/Public/Specta/Specta.h new file mode 120000 index 0000000..4611172 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/Specta.h @@ -0,0 +1 @@ +../../../Specta/src/Specta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SpectaSupport.h b/Example/Pods/Headers/Public/Specta/SpectaSupport.h new file mode 120000 index 0000000..d37c654 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SpectaSupport.h @@ -0,0 +1 @@ +../../../Specta/src/SpectaSupport.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SpectaTypes.h b/Example/Pods/Headers/Public/Specta/SpectaTypes.h new file mode 120000 index 0000000..706005a --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SpectaTypes.h @@ -0,0 +1 @@ +../../../Specta/src/SpectaTypes.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/SpectaUtility.h b/Example/Pods/Headers/Public/Specta/SpectaUtility.h new file mode 120000 index 0000000..cbf6c0a --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/SpectaUtility.h @@ -0,0 +1 @@ +../../../Specta/src/SpectaUtility.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/XCTestCase+Specta.h b/Example/Pods/Headers/Public/Specta/XCTestCase+Specta.h new file mode 120000 index 0000000..4b98f81 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/XCTestCase+Specta.h @@ -0,0 +1 @@ +../../../Specta/src/XCTestCase+Specta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/XCTestLog+Specta.h b/Example/Pods/Headers/Public/Specta/XCTestLog+Specta.h new file mode 120000 index 0000000..ba66206 --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/XCTestLog+Specta.h @@ -0,0 +1 @@ +../../../Specta/src/XCTestLog+Specta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/Specta/XCTestRun+Specta.h b/Example/Pods/Headers/Public/Specta/XCTestRun+Specta.h new file mode 120000 index 0000000..74a15fb --- /dev/null +++ b/Example/Pods/Headers/Public/Specta/XCTestRun+Specta.h @@ -0,0 +1 @@ +../../../Specta/src/XCTestRun+Specta.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/YMBarbwire/NSObject+YMBarbwire.h b/Example/Pods/Headers/Public/YMBarbwire/NSObject+YMBarbwire.h new file mode 120000 index 0000000..6615610 --- /dev/null +++ b/Example/Pods/Headers/Public/YMBarbwire/NSObject+YMBarbwire.h @@ -0,0 +1 @@ +../../../../../YMBarbwire/categories/NSObject+YMBarbwire.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/YMBarbwire/UIView+YMBarbwire.h b/Example/Pods/Headers/Public/YMBarbwire/UIView+YMBarbwire.h new file mode 120000 index 0000000..ee3d331 --- /dev/null +++ b/Example/Pods/Headers/Public/YMBarbwire/UIView+YMBarbwire.h @@ -0,0 +1 @@ +../../../../../YMBarbwire/categories/UIView+YMBarbwire.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/YMBarbwire/YMBarb.h b/Example/Pods/Headers/Public/YMBarbwire/YMBarb.h new file mode 120000 index 0000000..dda1c05 --- /dev/null +++ b/Example/Pods/Headers/Public/YMBarbwire/YMBarb.h @@ -0,0 +1 @@ +../../../../../YMBarbwire/YMBarb.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/YMBarbwire/YMBarbConfig.h b/Example/Pods/Headers/Public/YMBarbwire/YMBarbConfig.h new file mode 120000 index 0000000..1e3413f --- /dev/null +++ b/Example/Pods/Headers/Public/YMBarbwire/YMBarbConfig.h @@ -0,0 +1 @@ +../../../../../YMBarbwire/YMBarbConfig.h \ No newline at end of file diff --git a/Example/Pods/Headers/Public/YMBarbwire/YMBarbwire.h b/Example/Pods/Headers/Public/YMBarbwire/YMBarbwire.h new file mode 120000 index 0000000..9517134 --- /dev/null +++ b/Example/Pods/Headers/Public/YMBarbwire/YMBarbwire.h @@ -0,0 +1 @@ +../../../../../YMBarbwire/YMBarbwire.h \ No newline at end of file diff --git a/Example/Pods/Local Podspecs/YMBarbwire.podspec b/Example/Pods/Local Podspecs/YMBarbwire.podspec new file mode 100644 index 0000000..bb03795 --- /dev/null +++ b/Example/Pods/Local Podspecs/YMBarbwire.podspec @@ -0,0 +1,66 @@ +# +# Be sure to run `pod lib lint YMBarbwire.podspec' to ensure this is a +# valid spec and remove all comments before submitting the spec. +# +# Any lines starting with a # are optional, but encouraged +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = "YMBarbwire" + s.version = "0.0.1" + s.summary = "A short description of YMBarbwire." + s.description = <<-DESC + An optional longer description of YMBarbwire + + * Markdown format. + * Don't worry about the indent, we strip it! + DESC + s.homepage = "https://github.com/adamkaplan/YMBarbwire" + # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" + s.license = 'MIT' + s.author = { "adamkaplan" => "adamkaplan@yahoo-inc.com" } + s.source = { :git => "https://github.com/adamkaplan/YMBarbwire.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/adkap' + + s.platform = :ios, '7.0' + s.requires_arc = true + + s.source_files = 'YMBarbwire/YMBarbwire.h' + + s.subspec 'asm' do |asm| + asm.source_files = 'YMBarbwire/asm/*.s' + asm.compiler_flags = '-fno-modules' + end + + s.subspec 'no-arc' do |noarc| + noarc.source_files = 'YMBarbwire/YMBarb.{m,h}' + noarc.requires_arc = false + noarc.compiler_flags = '-fno-objc-arc' + end + + s.subspec 'core' do |core| + core.dependency 'YMBarbwire/asm' + core.dependency 'YMBarbwire/no-arc' + + core.source_files = 'YMBarbwire/YMBarbwire.m', 'YMBarbwire/YMBarbConfig.{m,h}' + end + + s.subspec 'categories' do |sc| + sc.dependency 'YMBarbwire/core' + + sc.ios.public_header_files = 'YMBarbwire/categories/*.h' + sc.ios.source_files = 'YMBarbwire/categories' + sc.osx.source_files = '' + end + + #s.source_files = 'YMBarbwire' + # s.resource_bundles = { + # 'YMBarbwire' => ['YMBarbwire/*.png'] + # } + + # s.public_header_files = 'YMBarbwire/**/*.h' + # s.frameworks = 'UIKit', 'MapKit' + # s.dependency 'AFNetworking', '~> 2.3' +end diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock new file mode 100644 index 0000000..922db08 --- /dev/null +++ b/Example/Pods/Manifest.lock @@ -0,0 +1,31 @@ +PODS: + - Expecta (0.3.1) + - Specta (0.2.1) + - YMBarbwire (0.0.1): + - YMBarbwire/asm (= 0.0.1) + - YMBarbwire/categories (= 0.0.1) + - YMBarbwire/core (= 0.0.1) + - YMBarbwire/no-arc (= 0.0.1) + - YMBarbwire/asm (0.0.1) + - YMBarbwire/categories (0.0.1): + - YMBarbwire/core + - YMBarbwire/core (0.0.1): + - YMBarbwire/asm + - YMBarbwire/no-arc + - YMBarbwire/no-arc (0.0.1) + +DEPENDENCIES: + - Expecta + - Specta (~> 0.2.1) + - YMBarbwire (from `../`) + +EXTERNAL SOURCES: + YMBarbwire: + :path: ../ + +SPEC CHECKSUMS: + Expecta: 03aabd0a89d8dea843baecb19a7fd7466a69a31d + Specta: 9141310f46b1f68b676650ff2854e1ed0b74163a + YMBarbwire: 113e6db23d34b04a60751dcc6d800734d6c9b52e + +COCOAPODS: 0.35.0 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..32b9665 --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,5320 @@ + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 005DC93ACBA8100C29826DEA + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + Expecta.h + path + src/Expecta.h + sourceTree + <group> + + 02749D311DCF38EC021B1F25 + + fileRef + F0DB2DB9B1D05AA8BA41F70F + isa + PBXBuildFile + + 035C8E42F90C83C1D64C3198 + + children + + F89D803CDB9FC74CBA5294C9 + CD2C6A6870CABFE6E8A86324 + + isa + PBXGroup + name + no-arc + sourceTree + <group> + + 03B9992DD4F4216933C67690 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beCloseTo.h + path + src/matchers/EXPMatchers+beCloseTo.h + sourceTree + <group> + + 042E43F191D8F007E864C116 + + fileRef + 6597CB63C4BFCEA4433CBE73 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 04684CBB3EEED96E14EF6D9D + + fileRef + C859A18DF59278E4376B7C5D + isa + PBXBuildFile + + 0627699BE4B43FB20DD151E1 + + fileRef + 1FA9409B208A0CF1D6590899 + isa + PBXBuildFile + + 0761075E39B4C6F193AB6E94 + + fileRef + B4A14DE4CD7409800119C7A5 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 0766A73FC14C5A26CCCF526D + + fileRef + 87DDEAFD5DAECD1AA1DBD3EE + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 0793DDF3E7F1860954834073 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Pods-YMBarbwire-dummy.m + sourceTree + <group> + + 07E0658A4C6F6D23C9C859F9 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Pods-Tests-YMBarbwire-dummy.m + sourceTree + <group> + + 085C87B97DC43B0E4258446C + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTSpec.h + path + src/SPTSpec.h + sourceTree + <group> + + 0A538F9ADEC02B1267485B75 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPDefines.h + path + src/EXPDefines.h + sourceTree + <group> + + 0B7584C056321A6959CEF9D8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTReporter.m + path + src/SPTReporter.m + sourceTree + <group> + + 0B939E639420E0045B756A9A + + fileRef + 60B37C4F240706934F7723BD + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 0B9C71605B3011F91F644819 + + fileRef + D03F4D2786A56EAF8D2E1ED1 + isa + PBXBuildFile + + 0C878AB59C08DFA93557CC2A + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES + COPY_PHASE_STRIP + YES + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + ONLY_ACTIVE_ARCH + YES + STRIP_INSTALLED_PRODUCT + NO + + isa + XCBuildConfiguration + name + Debug + + 0CC0865C73D9DD33505A690C + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Pods-Tests-environment.h + sourceTree + <group> + + 0DF985C9778DF6A941304F4D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPFloatTuple.h + path + src/EXPFloatTuple.h + sourceTree + <group> + + 0EAB96653021EF00F7C697DD + + fileRef + 07E0658A4C6F6D23C9C859F9 + isa + PBXBuildFile + + 10251D6A4F39D12C8C6B4E70 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Pods-YMBarbwire-environment.h + sourceTree + <group> + + 11816864CECCCA0B6D4226C4 + + isa + PBXTargetDependency + name + Pods-Tests-YMBarbwire + target + 7112A2EB8D48D57C739835FF + targetProxy + 759270AFAB2C555A4FC3F204 + + 11B0122ABCDDB4C390BFDEC2 + + fileRef + C0B15A4C51AC5FC681C62E52 + isa + PBXBuildFile + + 1398D68F855E315246581399 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPBlockDefinedMatcher.h + path + src/EXPBlockDefinedMatcher.h + sourceTree + <group> + + 145841D819CACC727EB611C3 + + fileRef + 232B18F994380CA619BAEEB8 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 147C5169657DA69A7E3DDC88 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPUnsupportedObject.h + path + src/EXPUnsupportedObject.h + sourceTree + <group> + + 14899BA1870F1C4A3EFCA8A5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SpectaTypes.h + path + src/SpectaTypes.h + sourceTree + <group> + + 151DD0FFB269D6CE455B09C2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+respondTo.m + path + src/matchers/EXPMatchers+respondTo.m + sourceTree + <group> + + 175F8C2234B2AFB7470D9594 + + fileRef + BC1A3494478E394A401D81F8 + isa + PBXBuildFile + + 182ACCE24EB0BD430771F46A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beInstanceOf.m + path + src/matchers/EXPMatchers+beInstanceOf.m + sourceTree + <group> + + 18DB098570EA2DA37F15BFD4 + + fileRef + 36529156BB7871319EF03FFB + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 1AAB2ADD2DEB6E2DEE381ACE + + isa + PBXTargetDependency + name + Pods-Tests-Specta + target + E4ECFE26B6336415BB09B290 + targetProxy + 4FE6A8EDFCAB9AF38B5BFDD5 + + 1B25D0757D009B0B48E96389 + + fileRef + 759B8DC26BE6348E4A753041 + isa + PBXBuildFile + + 1BDEB4E08984408B7B227933 + + fileRef + 0B7584C056321A6959CEF9D8 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 1C8D0C6FF4DB499D2379E389 + + fileRef + A2FF35B844831F6446EA958A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 1D571D5CE99A1A1AFF343F27 + + includeInIndex + 1 + isa + PBXFileReference + name + x86_64.s + path + YMBarbwire/asm/x86_64.s + sourceTree + <group> + + 1E550D6D481193543CC6AD79 + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-Tests-YMBarbwire.a + sourceTree + BUILT_PRODUCTS_DIR + + 1F3ED8C802E588AF1AFADD83 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beInstanceOf.h + path + src/matchers/EXPMatchers+beInstanceOf.h + sourceTree + <group> + + 1FA9409B208A0CF1D6590899 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+notify.h + path + src/matchers/EXPMatchers+notify.h + sourceTree + <group> + + 20CB41CECDFDABE603FD8A97 + + children + + E9B11DFFD9D49589883FE55B + C0B15A4C51AC5FC681C62E52 + 3EB4FD54A88688A9D23ADEB4 + + isa + PBXGroup + name + core + sourceTree + <group> + + 2104C6F60102D162707F708A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beIdenticalTo.m + path + src/matchers/EXPMatchers+beIdenticalTo.m + sourceTree + <group> + + 21CC4A83845B75542B40A81D + + fileRef + 669DDA0D14C27DE9A1628CF0 + isa + PBXBuildFile + + 22359045B12B774D5191649D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests.release.xcconfig + sourceTree + <group> + + 22817C9C5932A33360437135 + + children + + E4D6B6770A8B74FF80619575 + 9AA3539C037605FEC47404AF + 0793DDF3E7F1860954834073 + 10251D6A4F39D12C8C6B4E70 + 2F9705B44C7660DD5AA150C2 + 8BF37D5B56C17A000656E0C7 + E074CA34357CBFCB11049555 + + isa + PBXGroup + name + Pods-YMBarbwire + path + Target Support Files/Pods-YMBarbwire + sourceTree + <group> + + 232B18F994380CA619BAEEB8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTSpec.m + path + src/SPTSpec.m + sourceTree + <group> + + 238914E8AA38EEFD84862C00 + + baseConfigurationReference + E074CA34357CBFCB11049555 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 242B8293859BFACA0403E674 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Pods-Tests-acknowledgements.plist + sourceTree + <group> + + 24C50094318D8AF9B2B98272 + + fileRef + 45E336A09B6B569984171506 + isa + PBXBuildFile + + 25A159F85E1173A11ED58C27 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beInTheRangeOf.m + path + src/matchers/EXPMatchers+beInTheRangeOf.m + sourceTree + <group> + + 262379607101B686BAAFF03B + + fileRef + 560C3D504D910419A4F61484 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 2683AD4EBA02E3F1B5404580 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTXCTestCase.h + path + src/SPTXCTestCase.h + sourceTree + <group> + + 27A88FC4A43B585AB729A78D + + fileRef + 9CABA955DBE11AF11F50A08A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 27E055CFE30A8897D28D021B + + fileRef + BAE68BA7E1499442B4E0F15C + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 2818E7C1A7D785475B28DC57 + + fileRef + BBDAE1BF5EA41B42F109845C + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 28616F85709B8336ECC3DCDC + + fileRef + 005DC93ACBA8100C29826DEA + isa + PBXBuildFile + + 296AEF10A15A6A6517174959 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPDoubleTuple.h + path + src/EXPDoubleTuple.h + sourceTree + <group> + + 2A3229C99C5D655492F3D062 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beSubclassOf.h + path + src/matchers/EXPMatchers+beSubclassOf.h + sourceTree + <group> + + 2AE99835AAE387E953F88589 + + fileRef + C0B15A4C51AC5FC681C62E52 + isa + PBXBuildFile + + 2B17C6E81CB566408597DA0F + + attributes + + LastUpgradeCheck + 0510 + + buildConfigurationList + 9DBA8B885C58D480E7FDC649 + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + + mainGroup + 2EC9FD567DAF1E7F2D2A5E6C + productRefGroup + 99F68D4C14B15CC9BFDF5B9B + projectDirPath + + projectReferences + + projectRoot + + targets + + 724B1A91305E8B3736254090 + 4DEB311D86D40359D956EFED + E4ECFE26B6336415BB09B290 + 7112A2EB8D48D57C739835FF + C8C30E12ADC2E95E8EE9B3FC + B599BCCD2189CCA7DFA76AD8 + + + 2B57CB600E1807F458B75A34 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests.debug.xcconfig + sourceTree + <group> + + 2B74195BA5FFE3ED368F9E3E + + buildActionMask + 2147483647 + files + + 02749D311DCF38EC021B1F25 + 0EAB96653021EF00F7C697DD + BF86003B0E0AABBDA118AE5E + D424DE8432B0AAA857D0553C + 11B0122ABCDDB4C390BFDEC2 + ADD0356D2322C6ACD6AFDC1E + B75BC996F7F041F74D72658B + 64BEACAB8391B216C0EB0C69 + 5843AD433617DCCA67EE7DCE + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 2BD0611F5EC2F8BA6F257F2B + + fileRef + 0A538F9ADEC02B1267485B75 + isa + PBXBuildFile + + 2C3B30468FEC3F41A4C16C75 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+equal.m + path + src/matchers/EXPMatchers+equal.m + sourceTree + <group> + + 2CD9EAB5CCDADA6080A0EAA8 + + fileRef + 0DF985C9778DF6A941304F4D + isa + PBXBuildFile + + 2E4103992F1D6E0056FA650D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+raiseWithReason.h + path + src/matchers/EXPMatchers+raiseWithReason.h + sourceTree + <group> + + 2EC9FD567DAF1E7F2D2A5E6C + + children + + F1367DB05AF6111532FD2E63 + B36F5864F98A25D0AA9E9AF6 + 30B46EB0FB695C44A48F1CE2 + 6B072B4FC7CFBCB196F01F1D + 99F68D4C14B15CC9BFDF5B9B + 50DE4BCFFEBC0240FC81C39D + + isa + PBXGroup + sourceTree + <group> + + 2EEFF1198106DA92F2649EC4 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+notify.m + path + src/matchers/EXPMatchers+notify.m + sourceTree + <group> + + 2F9705B44C7660DD5AA150C2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.script.sh + path + Pods-YMBarbwire-resources.sh + sourceTree + <group> + + 3021F8FE986B315F7DE3F962 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + XCTestCase+Specta.m + path + src/XCTestCase+Specta.m + sourceTree + <group> + + 30703F2741DC8BD3671C3FC0 + + baseConfigurationReference + 2B57CB600E1807F458B75A34 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + 30B46EB0FB695C44A48F1CE2 + + children + + 60A57726F206E2A6699863FD + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + 31F6EE8E3DEAD7DAF0DB51A5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPBlockDefinedMatcher.m + path + src/EXPBlockDefinedMatcher.m + sourceTree + <group> + + 327D733C3018FCA24EAF6E04 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beLessThan.h + path + src/matchers/EXPMatchers+beLessThan.h + sourceTree + <group> + + 32AB48CA6BA3B7DFB403F0D4 + + fileRef + B4FD1232D311BC1E58FC86F0 + isa + PBXBuildFile + + 342E0E53682EE05B8E7B730B + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beFalsy.h + path + src/matchers/EXPMatchers+beFalsy.h + sourceTree + <group> + + 3441BC4E69FE95F9922962FF + + fileRef + 701C4D0B4BAD5C6507AD8736 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 346F756E6AD9C66D76A22B85 + + fileRef + D642FD6EADEFFE5EC64F2F94 + isa + PBXBuildFile + + 3651AD36A6874953B9F5825C + + fileRef + 61B73A419246948848D7D14E + isa + PBXBuildFile + + 36529156BB7871319EF03FFB + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTXCTestCase.m + path + src/SPTXCTestCase.m + sourceTree + <group> + + 3693C54D63C381EF22A5B66C + + buildConfigurations + + FA3FA3E9C3FD45CAD5C897D4 + 54EEDD51575246626E3A7564 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 36E6AFFEA2390E54072AA600 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beNil.m + path + src/matchers/EXPMatchers+beNil.m + sourceTree + <group> + + 36FF0D61BD6622C5C483B8BE + + children + + F9333CAC32E6FC342DB858BA + E80D72E8197676A9988F554A + 669DDA0D14C27DE9A1628CF0 + E19D4BCE9D478B50691289AE + 821AC7FD9BF5C7BD8DD8D6BC + B4A14DE4CD7409800119C7A5 + A84D12A748F8C28F9A6F1B34 + 0B7584C056321A6959CEF9D8 + CA077E971CFD2B4527CE19DB + F4BE6E94B1F14AADAADDAE98 + 085C87B97DC43B0E4258446C + 232B18F994380CA619BAEEB8 + 2683AD4EBA02E3F1B5404580 + 36529156BB7871319EF03FFB + E672480EC1BAAAE25D9C59BB + B8351C513D48681A3694EC55 + 759B8DC26BE6348E4A753041 + BAE68BA7E1499442B4E0F15C + AFBAA4B68D49691150FFB7EC + 14899BA1870F1C4A3EFCA8A5 + 8E8547631B36A6DEFB24ED8A + 7BCF9100D4573360F3F1FCA3 + B4FD1232D311BC1E58FC86F0 + 3021F8FE986B315F7DE3F962 + FA9097376C1582A5A9596C81 + 87DDEAFD5DAECD1AA1DBD3EE + 3C6A61641C223D4144A057DE + 6597CB63C4BFCEA4433CBE73 + 93367FC13E0B89E8E67C4579 + + isa + PBXGroup + name + Specta + path + Specta + sourceTree + <group> + + 375A243442C1EB3AA9FF5CF5 + + fileRef + 8D11E70F659A5DA0C73CE16E + isa + PBXBuildFile + + 381EEB79618CA434495E00B0 + + fileRef + EB286BD3B1534034CDDB1D37 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + 38BEC061BF95C605A6D9DD8D + + fileRef + CC4ED1281833D309AD4F3519 + isa + PBXBuildFile + + 3907655441AFCD48A04A8DDC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beSupersetOf.h + path + src/matchers/EXPMatchers+beSupersetOf.h + sourceTree + <group> + + 3A8E99408594CA4B13B69EA4 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-Expecta.xcconfig + sourceTree + <group> + + 3AC1EF74702A48A6D5394AE5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatcher.h + path + src/EXPMatcher.h + sourceTree + <group> + + 3C6A61641C223D4144A057DE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + XCTestRun+Specta.h + path + src/XCTestRun+Specta.h + sourceTree + <group> + + 3C7A11503A50EA7B366F80F6 + + fileRef + 147C5169657DA69A7E3DDC88 + isa + PBXBuildFile + + 3E2FC4AD99C4A80484FA34E7 + + fileRef + F9333CAC32E6FC342DB858BA + isa + PBXBuildFile + + 3EB4FD54A88688A9D23ADEB4 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + YMBarbwire.m + path + YMBarbwire/YMBarbwire.m + sourceTree + <group> + + 3F6CDA309549C14399F849D8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Pods-Tests-Specta-prefix.pch + sourceTree + <group> + + 3FB1F1A4F690A13AB29D415D + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + 40E2C57CC9F2137574ECF9E8 + + isa + PBXTargetDependency + name + Pods-YMBarbwire-YMBarbwire + target + B599BCCD2189CCA7DFA76AD8 + targetProxy + 4A3EC38D1913608EA3F2A3B3 + + 41916348A64129E51C046846 + + fileRef + F1B8CF3AFDC13CB006F5D49A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 42DB7DAE3C847CFEDA6FE68E + + buildActionMask + 2147483647 + files + + F2C64A5817C90A83C862410F + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 437D93710F091568EBFB37D0 + + fileRef + D072FD5DF588978DF1DD9CF5 + isa + PBXBuildFile + + 446FAB447553425E98DBD8CE + + buildActionMask + 2147483647 + files + + B9BAA38992AF5C9B0BE29F3A + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 4557809A71B9B3DD219BE1E2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-Expecta-Private.xcconfig + sourceTree + <group> + + 45E336A09B6B569984171506 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beIdenticalTo.h + path + src/matchers/EXPMatchers+beIdenticalTo.h + sourceTree + <group> + + 461712D21A9742938448250F + + buildActionMask + 2147483647 + files + + EE0328E1987A86D9357ABF99 + 5C97F565EDF3117A86B28FDF + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 468243A7730C04FD0658E323 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beTruthy.m + path + src/matchers/EXPMatchers+beTruthy.m + sourceTree + <group> + + 48C00880EC62426F2FA264E2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-Specta.xcconfig + sourceTree + <group> + + 48D40D1B410804D1E1A3C51D + + fileRef + 085C87B97DC43B0E4258446C + isa + PBXBuildFile + + 48EEC971EE6BCAB9C41B4078 + + fileRef + 2E4103992F1D6E0056FA650D + isa + PBXBuildFile + + 4A3EC38D1913608EA3F2A3B3 + + containerPortal + 2B17C6E81CB566408597DA0F + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + B599BCCD2189CCA7DFA76AD8 + remoteInfo + Pods-YMBarbwire-YMBarbwire + + 4A7C80ADBAFE13D4D57E16F1 + + fileRef + F0DB2DB9B1D05AA8BA41F70F + isa + PBXBuildFile + + 4B1A756A81A0E6959A20065B + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beLessThanOrEqualTo.h + path + src/matchers/EXPMatchers+beLessThanOrEqualTo.h + sourceTree + <group> + + 4BD84CC1467EA8C463666DE2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + Pods-YMBarbwire-YMBarbwire-prefix.pch + path + ../Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch + sourceTree + <group> + + 4CA0CC35256CB0038CDFF9E6 + + fileRef + 03B9992DD4F4216933C67690 + isa + PBXBuildFile + + 4DEB311D86D40359D956EFED + + buildConfigurationList + C2F40C89C1B6E23F0D2CA11D + buildPhases + + 7166C86A042376D3A2E3FAA3 + A544BAE382942BF26681E81A + E6E3A98C8A6C2534B65DD0FD + + buildRules + + dependencies + + isa + PBXNativeTarget + name + Pods-Tests-Expecta + productName + Pods-Tests-Expecta + productReference + BCAFA32F439B7C673A3E9973 + productType + com.apple.product-type.library.static + + 4DF680AE78E2F5328F0447C9 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beCloseTo.m + path + src/matchers/EXPMatchers+beCloseTo.m + sourceTree + <group> + + 4E3FD72E24951A3CB5910E02 + + buildActionMask + 2147483647 + files + + 4A7C80ADBAFE13D4D57E16F1 + E208ADD9AC4C7D9966DDB652 + 437D93710F091568EBFB37D0 + 757D73B8F2B235A4D84E23F5 + 2AE99835AAE387E953F88589 + BCBF5752A1994A223893D64F + 381EEB79618CA434495E00B0 + EE24ECC09ABAD8FD31B63A2D + E56342DB31F3A490756A32F4 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 4F13D6F24BAEE592E87B5BDE + + fileRef + 1F3ED8C802E588AF1AFADD83 + isa + PBXBuildFile + + 4FE6A8EDFCAB9AF38B5BFDD5 + + containerPortal + 2B17C6E81CB566408597DA0F + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + E4ECFE26B6336415BB09B290 + remoteInfo + Pods-Tests-Specta + + 50ABDE0F1C66F94280A83026 + + fileRef + B2B6056ECDA9C2F3AD276AC5 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 50DE4BCFFEBC0240FC81C39D + + children + + 5F276BD33C32ECC78222A5E6 + 22817C9C5932A33360437135 + + isa + PBXGroup + name + Targets Support Files + sourceTree + <group> + + 5260AE00F5E1CFC7EB44B8B5 + + includeInIndex + 1 + isa + PBXFileReference + name + armv7.s + path + YMBarbwire/asm/armv7.s + sourceTree + <group> + + 529272ADC0C87E58EBD158B6 + + fileRef + B603082470179069CC171CCE + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 5493E3F820F878D0FB9264F4 + + fileRef + B36CEECBB4395538A899BA9D + isa + PBXBuildFile + + 54EEDD51575246626E3A7564 + + baseConfigurationReference + FD9B3D5320A1BF07446F95C9 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 556BDF00ABD1EDCC6E158E8A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beTruthy.h + path + src/matchers/EXPMatchers+beTruthy.h + sourceTree + <group> + + 560C3D504D910419A4F61484 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beginWith.m + path + src/matchers/EXPMatchers+beginWith.m + sourceTree + <group> + + 561FF70882088EDC8FE41363 + + baseConfigurationReference + CBD282FF0EA679F7057C4333 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 576BACF7DC3711D543DF6918 + + fileRef + A7C96F66CE2E249D208CDFE2 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 57D86EB30DF45F634E2B326D + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-Tests.a + sourceTree + BUILT_PRODUCTS_DIR + + 5843AD433617DCCA67EE7DCE + + fileRef + 1D571D5CE99A1A1AFF343F27 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + 58D0EC0300CE0EA72C95C9D5 + + buildActionMask + 2147483647 + files + + 3E2FC4AD99C4A80484FA34E7 + 21CC4A83845B75542B40A81D + 628DE37651740E46EE60D71C + 80C116BD08A733568F4739EE + CA550A1001DE4E7E806F36FB + 48D40D1B410804D1E1A3C51D + F99B50D33E05D0AD89D27CCA + B81449832A7924479477A2D5 + 1B25D0757D009B0B48E96389 + DDB7E358458A02CA5DE0B8F5 + B5C0BE53E16E791BE954E032 + D9F84BB2511DBEEB5B6F5103 + 32AB48CA6BA3B7DFB403F0D4 + EAF983655AFEDD20261077FB + 6B718CCBDA09994F24F690E9 + + isa + PBXHeadersBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 5937E875A1BFB45311CC8049 + + fileRef + 62427AA7908ECF4D441884CC + isa + PBXBuildFile + + 5950563418B8633B6414124B + + fileRef + 89979A70920D4E64CC334011 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 5B1FB099A474613D037DC6FD + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatcherHelpers.h + path + src/matchers/EXPMatcherHelpers.h + sourceTree + <group> + + 5BC6996521109752886D98D1 + + fileRef + AB03234E19AE3AEEA2977F4D + isa + PBXBuildFile + + 5C67F24F67F56E8CBA755B4E + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-Tests-Specta.a + sourceTree + BUILT_PRODUCTS_DIR + + 5C97F565EDF3117A86B28FDF + + fileRef + B24748F3497BAB809FDC11C9 + isa + PBXBuildFile + + 5D960C56C2E0B9E80F9634D1 + + buildActionMask + 2147483647 + files + + B831F26E11DF5A7958A973EB + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 5E0ED48F5A8EB8B01CB0DE86 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+raiseWithReason.m + path + src/matchers/EXPMatchers+raiseWithReason.m + sourceTree + <group> + + 5F276BD33C32ECC78222A5E6 + + children + + C66C814934CC2DF946E8DD49 + 242B8293859BFACA0403E674 + B36CEECBB4395538A899BA9D + 0CC0865C73D9DD33505A690C + 6BEADFE54B529FC380E7D02A + 2B57CB600E1807F458B75A34 + 22359045B12B774D5191649D + + isa + PBXGroup + name + Pods-Tests + path + Target Support Files/Pods-Tests + sourceTree + <group> + + 6004F954719B2AB2AACCB4F9 + + buildConfigurations + + B09852933D6C77D21299436A + 238914E8AA38EEFD84862C00 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 60A57726F206E2A6699863FD + + children + + B2DC88599F265AEEB5EC7FBB + B24748F3497BAB809FDC11C9 + + isa + PBXGroup + name + iOS + sourceTree + <group> + + 60B37C4F240706934F7723BD + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPBackwardCompatibility.m + path + src/EXPBackwardCompatibility.m + sourceTree + <group> + + 619ED3F1E305E804E80487C5 + + fileRef + B8351C513D48681A3694EC55 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 61B73A419246948848D7D14E + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + YMBarbwire.h + path + YMBarbwire/YMBarbwire.h + sourceTree + <group> + + 62427AA7908ECF4D441884CC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + UIView+YMBarbwire.h + path + YMBarbwire/categories/UIView+YMBarbwire.h + sourceTree + <group> + + 624C544402560259119685AD + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beGreaterThan.h + path + src/matchers/EXPMatchers+beGreaterThan.h + sourceTree + <group> + + 62712BB131F0F3496966BF2A + + fileRef + E80D72E8197676A9988F554A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 628DE37651740E46EE60D71C + + fileRef + 821AC7FD9BF5C7BD8DD8D6BC + isa + PBXBuildFile + + 629E60A551236D9522F48C7A + + fileRef + 468243A7730C04FD0658E323 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 64BEACAB8391B216C0EB0C69 + + fileRef + 5260AE00F5E1CFC7EB44B8B5 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + 6597CB63C4BFCEA4433CBE73 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + XCTestRun+Specta.m + path + src/XCTestRun+Specta.m + sourceTree + <group> + + 669DDA0D14C27DE9A1628CF0 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTExampleGroup.h + path + src/SPTExampleGroup.h + sourceTree + <group> + + 66F6303DC18C178CA4F93274 + + baseConfigurationReference + BFD4A16DEC7B3DAA022A46BC + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 6879C2F251DA241B4A4C4210 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+equal.h + path + src/matchers/EXPMatchers+equal.h + sourceTree + <group> + + 6B072B4FC7CFBCB196F01F1D + + children + + 7FF8459311552322F37621B0 + 36FF0D61BD6622C5C483B8BE + + isa + PBXGroup + name + Pods + sourceTree + <group> + + 6B24280291AD2263AD2B323C + + fileRef + 342E0E53682EE05B8E7B730B + isa + PBXBuildFile + + 6B718CCBDA09994F24F690E9 + + fileRef + 3C6A61641C223D4144A057DE + isa + PBXBuildFile + + 6BEADFE54B529FC380E7D02A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.script.sh + path + Pods-Tests-resources.sh + sourceTree + <group> + + 6FA83010927376EB09A64103 + + fileRef + 2A3229C99C5D655492F3D062 + isa + PBXBuildFile + + 700A754D44122BEC0B9835D7 + + fileRef + F89D803CDB9FC74CBA5294C9 + isa + PBXBuildFile + + 701C4D0B4BAD5C6507AD8736 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + Expecta.m + path + src/Expecta.m + sourceTree + <group> + + 7112A2EB8D48D57C739835FF + + buildConfigurationList + BF952297534CF37C26EE4867 + buildPhases + + 2B74195BA5FFE3ED368F9E3E + C14BDD172C9A763C02AD880C + E493BDDBCFF9F33180552389 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + Pods-Tests-YMBarbwire + productName + Pods-Tests-YMBarbwire + productReference + 1E550D6D481193543CC6AD79 + productType + com.apple.product-type.library.static + + 7166C86A042376D3A2E3FAA3 + + buildActionMask + 2147483647 + files + + 0B939E639420E0045B756A9A + B5CFD5DCFA6F77F603AF47A7 + A39519373D469F07C43F862D + 1C8D0C6FF4DB499D2379E389 + 50ABDE0F1C66F94280A83026 + 79657914FA8C7CD0FDF127F3 + F14F57DC55C413B63271C0A3 + E8D7EF2E663A0E9E331809BD + 41916348A64129E51C046846 + 2818E7C1A7D785475B28DC57 + F3722DDAF397BEFEA2BFA123 + F76232B93AFB4F2A9EF2EBF3 + 7AEEE5281F5E977A4A8A8656 + B42700EE991A5B9009E96AD4 + 84CEADA90681D793EE8EFDEC + D5A0C59A9C08C25AFF8183A8 + 7BAC4D73D407517397C4ABFF + B267FD7C58B53B75E45C5112 + 529272ADC0C87E58EBD158B6 + 629E60A551236D9522F48C7A + 262379607101B686BAAFF03B + C3D29B2D93331973B6D28FF4 + 5950563418B8633B6414124B + 576BACF7DC3711D543DF6918 + E2925F8C0E75A8CD58D46E94 + 7B08B0C2FFB5D9EEC85B430C + FD07774CBBDE77B1994566A5 + 27A88FC4A43B585AB729A78D + ADB5496CA57CB856D7F71371 + DBA98BE3114CB499757901B5 + B71439E036D83C05A3776374 + 3441BC4E69FE95F9922962FF + B636716F425375AFAE0DFFFE + A8C1E5D5A48E2C21D52B5FCB + 04684CBB3EEED96E14EF6D9D + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 724B1A91305E8B3736254090 + + buildConfigurationList + 9CEF0A1A49CBBD74187766D4 + buildPhases + + E142116FE7666FED2FE6E650 + 42DB7DAE3C847CFEDA6FE68E + + buildRules + + dependencies + + EC3D94379E55A7DAA08DF134 + 1AAB2ADD2DEB6E2DEE381ACE + 11816864CECCCA0B6D4226C4 + + isa + PBXNativeTarget + name + Pods-Tests + productName + Pods-Tests + productReference + 57D86EB30DF45F634E2B326D + productType + com.apple.product-type.library.static + + 757D73B8F2B235A4D84E23F5 + + fileRef + CD2C6A6870CABFE6E8A86324 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc -fno-objc-arc + + + 759270AFAB2C555A4FC3F204 + + containerPortal + 2B17C6E81CB566408597DA0F + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + 7112A2EB8D48D57C739835FF + remoteInfo + Pods-Tests-YMBarbwire + + 759B8DC26BE6348E4A753041 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + Specta.h + path + src/Specta.h + sourceTree + <group> + + 76631D0DCB623F4D34E0322A + + fileRef + CC5926B710D0ABB4A5E55F93 + isa + PBXBuildFile + + 76E3C13E8938D71E434EF777 + + fileRef + 3907655441AFCD48A04A8DDC + isa + PBXBuildFile + + 77921DA2F59D97A05E06F3BD + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + NSValue+Expecta.m + path + src/NSValue+Expecta.m + sourceTree + <group> + + 78F06110057B9758FCA35F1B + + fileRef + 556BDF00ABD1EDCC6E158E8A + isa + PBXBuildFile + + 79657914FA8C7CD0FDF127F3 + + fileRef + E1DD9411068FA1624B221FF8 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 7AEEE5281F5E977A4A8A8656 + + fileRef + 182ACCE24EB0BD430771F46A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 7B08B0C2FFB5D9EEC85B430C + + fileRef + A6E45848575C02A10380AC40 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 7B621E2914F665D87E774920 + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-YMBarbwire-YMBarbwire.a + sourceTree + BUILT_PRODUCTS_DIR + + 7BAC4D73D407517397C4ABFF + + fileRef + 36E6AFFEA2390E54072AA600 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 7BCF9100D4573360F3F1FCA3 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SpectaUtility.m + path + src/SpectaUtility.m + sourceTree + <group> + + 7BFE6596586DF1B1E5770BAB + + fileRef + CF1822CB993EB02191DB1C16 + isa + PBXBuildFile + + 7CCC83535D58333AD616B23B + + fileRef + CF1822CB993EB02191DB1C16 + isa + PBXBuildFile + + 7D959D02A5ABE81C882DB1CA + + fileRef + 81DFD3A37D1CF49A2327AD59 + isa + PBXBuildFile + + 7ECD14ECBBD68B9BB8FFF981 + + fileRef + B4FA3A0E139AC4F4BD2D8D7E + isa + PBXBuildFile + + 7FA74DF2327872F334F48B3B + + baseConfigurationReference + 4557809A71B9B3DD219BE1E2 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 7FF8459311552322F37621B0 + + children + + CC5926B710D0ABB4A5E55F93 + 60B37C4F240706934F7723BD + 1398D68F855E315246581399 + 31F6EE8E3DEAD7DAF0DB51A5 + 0A538F9ADEC02B1267485B75 + 296AEF10A15A6A6517174959 + BF484F0A26E8B7CC8D99BABA + 80851C00B07723ECB9A1D068 + A2FF35B844831F6446EA958A + 0DF985C9778DF6A941304F4D + B2B6056ECDA9C2F3AD276AC5 + 3AC1EF74702A48A6D5394AE5 + 5B1FB099A474613D037DC6FD + E1DD9411068FA1624B221FF8 + AB03234E19AE3AEEA2977F4D + 03B9992DD4F4216933C67690 + 4DF680AE78E2F5328F0447C9 + 342E0E53682EE05B8E7B730B + 958D9D792795941D50E9CA60 + 624C544402560259119685AD + F1B8CF3AFDC13CB006F5D49A + 81DFD3A37D1CF49A2327AD59 + BBDAE1BF5EA41B42F109845C + 45E336A09B6B569984171506 + 2104C6F60102D162707F708A + 91F18C6E08D976A826D5CA99 + 25A159F85E1173A11ED58C27 + 1F3ED8C802E588AF1AFADD83 + 182ACCE24EB0BD430771F46A + 95DF65C05E519514896BA2B1 + 842BBB3B614F7A2E3700CEA3 + 327D733C3018FCA24EAF6E04 + 86C90E605BA2949648C3A7CE + 4B1A756A81A0E6959A20065B + F2A96ED914102A01C671A198 + 8D11E70F659A5DA0C73CE16E + 36E6AFFEA2390E54072AA600 + 2A3229C99C5D655492F3D062 + 850085CED824FC2F39861759 + 3907655441AFCD48A04A8DDC + B603082470179069CC171CCE + 556BDF00ABD1EDCC6E158E8A + 468243A7730C04FD0658E323 + AE096AC52C44B4508442E2D8 + 560C3D504D910419A4F61484 + BC1A3494478E394A401D81F8 + DED1AF56883DA9B9DB07709E + ACEA4E74221EAB9FE2E32661 + 89979A70920D4E64CC334011 + D642FD6EADEFFE5EC64F2F94 + A7C96F66CE2E249D208CDFE2 + 6879C2F251DA241B4A4C4210 + 2C3B30468FEC3F41A4C16C75 + 96ECDEAA0C7F25AD5D2ECB67 + A6E45848575C02A10380AC40 + 1FA9409B208A0CF1D6590899 + 2EEFF1198106DA92F2649EC4 + B4FA3A0E139AC4F4BD2D8D7E + 9CABA955DBE11AF11F50A08A + 2E4103992F1D6E0056FA650D + 5E0ED48F5A8EB8B01CB0DE86 + AF9A18085BE3530E5DAA8908 + 151DD0FFB269D6CE455B09C2 + 147C5169657DA69A7E3DDC88 + FD51E55A4AD184226D9AA9D1 + 005DC93ACBA8100C29826DEA + 701C4D0B4BAD5C6507AD8736 + D03F4D2786A56EAF8D2E1ED1 + 82423C814243B46726406E3C + D06A7EC5B22E339D5E989BD6 + B3547DFCF7B6AE4075E15D24 + 77921DA2F59D97A05E06F3BD + E1AE39911C34A0FFFE76DBB0 + + isa + PBXGroup + name + Expecta + path + Expecta + sourceTree + <group> + + 80851C00B07723ECB9A1D068 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPExpect.h + path + src/EXPExpect.h + sourceTree + <group> + + 80C116BD08A733568F4739EE + + fileRef + A84D12A748F8C28F9A6F1B34 + isa + PBXBuildFile + + 81DFD3A37D1CF49A2327AD59 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beGreaterThanOrEqualTo.h + path + src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h + sourceTree + <group> + + 821AC7FD9BF5C7BD8DD8D6BC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTNestedReporter.h + path + src/SPTNestedReporter.h + sourceTree + <group> + + 82423C814243B46726406E3C + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + ExpectaSupport.m + path + src/ExpectaSupport.m + sourceTree + <group> + + 8323D078A352840093BFBE23 + + fileRef + D06A7EC5B22E339D5E989BD6 + isa + PBXBuildFile + + 8347B368C74D80DFD1285D62 + + fileRef + F4BE6E94B1F14AADAADDAE98 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + 841AB4CBE3A736AD5263944A + + fileRef + 62427AA7908ECF4D441884CC + isa + PBXBuildFile + + 842BBB3B614F7A2E3700CEA3 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beKindOf.m + path + src/matchers/EXPMatchers+beKindOf.m + sourceTree + <group> + + 84CEADA90681D793EE8EFDEC + + fileRef + 86C90E605BA2949648C3A7CE + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + 850085CED824FC2F39861759 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beSubclassOf.m + path + src/matchers/EXPMatchers+beSubclassOf.m + sourceTree + <group> + + 856AEEBD0E3F770EDA5053A0 + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + 86C90E605BA2949648C3A7CE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beLessThan.m + path + src/matchers/EXPMatchers+beLessThan.m + sourceTree + <group> + + 87DDEAFD5DAECD1AA1DBD3EE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + XCTestLog+Specta.m + path + src/XCTestLog+Specta.m + sourceTree + <group> + + 87F298B3E0A75E3EA907ED4A + + fileRef + E9B11DFFD9D49589883FE55B + isa + PBXBuildFile + + 89979A70920D4E64CC334011 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+contain.m + path + src/matchers/EXPMatchers+contain.m + sourceTree + <group> + + 8B5C3D8D3C192369983A7B88 + + fileRef + 6879C2F251DA241B4A4C4210 + isa + PBXBuildFile + + 8BF37D5B56C17A000656E0C7 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-YMBarbwire.debug.xcconfig + sourceTree + <group> + + 8D11E70F659A5DA0C73CE16E + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beNil.h + path + src/matchers/EXPMatchers+beNil.h + sourceTree + <group> + + 8E8547631B36A6DEFB24ED8A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SpectaUtility.h + path + src/SpectaUtility.h + sourceTree + <group> + + 91F18C6E08D976A826D5CA99 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beInTheRangeOf.h + path + src/matchers/EXPMatchers+beInTheRangeOf.h + sourceTree + <group> + + 930ECAC1C5A7D6353F65E3AC + + fileRef + 95DF65C05E519514896BA2B1 + isa + PBXBuildFile + + 9333767993BDC8A7484EA6DF + + baseConfigurationReference + BFD4A16DEC7B3DAA022A46BC + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + 93367FC13E0B89E8E67C4579 + + children + + 48C00880EC62426F2FA264E2 + FD9B3D5320A1BF07446F95C9 + CC4ED1281833D309AD4F3519 + 3F6CDA309549C14399F849D8 + + isa + PBXGroup + name + Support Files + path + ../Target Support Files/Pods-Tests-Specta + sourceTree + <group> + + 95773D5B068EAAFD4FFAC76F + + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + CLANG_CXX_LANGUAGE_STANDARD + gnu++0x + CLANG_CXX_LIBRARY + libc++ + CLANG_ENABLE_MODULES + YES + CLANG_ENABLE_OBJC_ARC + YES + CLANG_WARN_BOOL_CONVERSION + YES + CLANG_WARN_CONSTANT_CONVERSION + YES + CLANG_WARN_DIRECT_OBJC_ISA_USAGE + YES + CLANG_WARN_EMPTY_BODY + YES + CLANG_WARN_ENUM_CONVERSION + YES + CLANG_WARN_INT_CONVERSION + YES + CLANG_WARN_OBJC_ROOT_CLASS + YES + COPY_PHASE_STRIP + NO + ENABLE_NS_ASSERTIONS + NO + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_PREPROCESSOR_DEFINITIONS + + RELEASE=1 + + GCC_WARN_64_TO_32_BIT_CONVERSION + YES + GCC_WARN_ABOUT_RETURN_TYPE + YES + GCC_WARN_UNDECLARED_SELECTOR + YES + GCC_WARN_UNINITIALIZED_AUTOS + YES + GCC_WARN_UNUSED_FUNCTION + YES + GCC_WARN_UNUSED_VARIABLE + YES + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + STRIP_INSTALLED_PRODUCT + NO + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 957997CD0BDD6DDE1BE3245F + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Pods-Tests-Expecta-prefix.pch + sourceTree + <group> + + 958D9D792795941D50E9CA60 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beFalsy.m + path + src/matchers/EXPMatchers+beFalsy.m + sourceTree + <group> + + 95DF65C05E519514896BA2B1 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beKindOf.h + path + src/matchers/EXPMatchers+beKindOf.h + sourceTree + <group> + + 968F507893BDDD64261B4A31 + + children + + CF1822CB993EB02191DB1C16 + F0DB2DB9B1D05AA8BA41F70F + 62427AA7908ECF4D441884CC + D072FD5DF588978DF1DD9CF5 + + isa + PBXGroup + name + categories + sourceTree + <group> + + 96ECDEAA0C7F25AD5D2ECB67 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+haveCountOf.h + path + src/matchers/EXPMatchers+haveCountOf.h + sourceTree + <group> + + 989A7CF862D11959B25C7054 + + fileRef + AE096AC52C44B4508442E2D8 + isa + PBXBuildFile + + 98A7AA635065E8DC66697B7D + + fileRef + F89D803CDB9FC74CBA5294C9 + isa + PBXBuildFile + + 99F68D4C14B15CC9BFDF5B9B + + children + + 57D86EB30DF45F634E2B326D + BCAFA32F439B7C673A3E9973 + 5C67F24F67F56E8CBA755B4E + 1E550D6D481193543CC6AD79 + EB143E4C30A20EC6DB0EB8B0 + 7B621E2914F665D87E774920 + + isa + PBXGroup + name + Products + sourceTree + <group> + + 9AA3539C037605FEC47404AF + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Pods-YMBarbwire-acknowledgements.plist + sourceTree + <group> + + 9CABA955DBE11AF11F50A08A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+raise.m + path + src/matchers/EXPMatchers+raise.m + sourceTree + <group> + + 9CEF0A1A49CBBD74187766D4 + + buildConfigurations + + 30703F2741DC8BD3671C3FC0 + BD0D4DFD92B2AF01B3A51CFE + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 9DBA8B885C58D480E7FDC649 + + buildConfigurations + + 0C878AB59C08DFA93557CC2A + 95773D5B068EAAFD4FFAC76F + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 9F1F992E89EA8BBBA256A397 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-YMBarbwire-YMBarbwire.xcconfig + path + ../Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire.xcconfig + sourceTree + <group> + + 9F2DB8876ECE386A68FAE06B + + buildConfigurations + + 9333767993BDC8A7484EA6DF + 66F6303DC18C178CA4F93274 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + A2FF35B844831F6446EA958A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPExpect.m + path + src/EXPExpect.m + sourceTree + <group> + + A39519373D469F07C43F862D + + fileRef + BF484F0A26E8B7CC8D99BABA + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + A3EB910B48776AE5C34FF860 + + fileRef + 61B73A419246948848D7D14E + isa + PBXBuildFile + + A544BAE382942BF26681E81A + + buildActionMask + 2147483647 + files + + D9FE1C200C9251CB1D4EE49B + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + A5E8F2801C39CDA03F159192 + + fileRef + 624C544402560259119685AD + isa + PBXBuildFile + + A6E45848575C02A10380AC40 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+haveCountOf.m + path + src/matchers/EXPMatchers+haveCountOf.m + sourceTree + <group> + + A7C96F66CE2E249D208CDFE2 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+endWith.m + path + src/matchers/EXPMatchers+endWith.m + sourceTree + <group> + + A84D12A748F8C28F9A6F1B34 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTReporter.h + path + src/SPTReporter.h + sourceTree + <group> + + A8C1E5D5A48E2C21D52B5FCB + + fileRef + 77921DA2F59D97A05E06F3BD + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + AAA44ED54A277F35EA0963DF + + fileRef + 96ECDEAA0C7F25AD5D2ECB67 + isa + PBXBuildFile + + AB03234E19AE3AEEA2977F4D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers.h + path + src/matchers/EXPMatchers.h + sourceTree + <group> + + ACEA4E74221EAB9FE2E32661 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+contain.h + path + src/matchers/EXPMatchers+contain.h + sourceTree + <group> + + ADB5496CA57CB856D7F71371 + + fileRef + 5E0ED48F5A8EB8B01CB0DE86 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + ADD0356D2322C6ACD6AFDC1E + + fileRef + 3EB4FD54A88688A9D23ADEB4 + isa + PBXBuildFile + + AE096AC52C44B4508442E2D8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+beginWith.h + path + src/matchers/EXPMatchers+beginWith.h + sourceTree + <group> + + AF9A18085BE3530E5DAA8908 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+respondTo.h + path + src/matchers/EXPMatchers+respondTo.h + sourceTree + <group> + + AFBAA4B68D49691150FFB7EC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SpectaSupport.h + path + src/SpectaSupport.h + sourceTree + <group> + + B09852933D6C77D21299436A + + baseConfigurationReference + 8BF37D5B56C17A000656E0C7 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + B24748F3497BAB809FDC11C9 + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + XCTest.framework + path + Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/XCTest.framework + sourceTree + DEVELOPER_DIR + + B267FD7C58B53B75E45C5112 + + fileRef + 850085CED824FC2F39861759 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + B2B6056ECDA9C2F3AD276AC5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPFloatTuple.m + path + src/EXPFloatTuple.m + sourceTree + <group> + + B2D0F10AE8D3E731A0B2BE0A + + children + + B85E2B7D8B612428576BA856 + CBD282FF0EA679F7057C4333 + 07E0658A4C6F6D23C9C859F9 + C975B258FDF24D6DA3BAF4BD + 9F1F992E89EA8BBBA256A397 + BFD4A16DEC7B3DAA022A46BC + D68C395B86ED165CCF507873 + 4BD84CC1467EA8C463666DE2 + + isa + PBXGroup + name + Support Files + path + Example/Pods/Target Support Files/Pods-Tests-YMBarbwire + sourceTree + <group> + + B2DC88599F265AEEB5EC7FBB + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + Foundation.framework + path + Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework + sourceTree + DEVELOPER_DIR + + B3547DFCF7B6AE4075E15D24 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + NSValue+Expecta.h + path + src/NSValue+Expecta.h + sourceTree + <group> + + B36CEECBB4395538A899BA9D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Pods-Tests-dummy.m + sourceTree + <group> + + B36F5864F98A25D0AA9E9AF6 + + children + + CA148278438169516D74393B + + isa + PBXGroup + name + Development Pods + sourceTree + <group> + + B42700EE991A5B9009E96AD4 + + fileRef + 842BBB3B614F7A2E3700CEA3 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + B4A14DE4CD7409800119C7A5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTNestedReporter.m + path + src/SPTNestedReporter.m + sourceTree + <group> + + B4FA3A0E139AC4F4BD2D8D7E + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+raise.h + path + src/matchers/EXPMatchers+raise.h + sourceTree + <group> + + B4FD1232D311BC1E58FC86F0 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + XCTestCase+Specta.h + path + src/XCTestCase+Specta.h + sourceTree + <group> + + B599BCCD2189CCA7DFA76AD8 + + buildConfigurationList + 9F2DB8876ECE386A68FAE06B + buildPhases + + 4E3FD72E24951A3CB5910E02 + 446FAB447553425E98DBD8CE + E27ACE1CBF7B2E28CADD6095 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + Pods-YMBarbwire-YMBarbwire + productName + Pods-YMBarbwire-YMBarbwire + productReference + 7B621E2914F665D87E774920 + productType + com.apple.product-type.library.static + + B5C0BE53E16E791BE954E032 + + fileRef + 14899BA1870F1C4A3EFCA8A5 + isa + PBXBuildFile + + B5CFD5DCFA6F77F603AF47A7 + + fileRef + 31F6EE8E3DEAD7DAF0DB51A5 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + B603082470179069CC171CCE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beSupersetOf.m + path + src/matchers/EXPMatchers+beSupersetOf.m + sourceTree + <group> + + B61FE1DDCB65AF1295417EE8 + + fileRef + AF9A18085BE3530E5DAA8908 + isa + PBXBuildFile + + B636716F425375AFAE0DFFFE + + fileRef + 82423C814243B46726406E3C + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + B71439E036D83C05A3776374 + + fileRef + FD51E55A4AD184226D9AA9D1 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + B75BC996F7F041F74D72658B + + fileRef + EB286BD3B1534034CDDB1D37 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + B81449832A7924479477A2D5 + + fileRef + E672480EC1BAAAE25D9C59BB + isa + PBXBuildFile + + B831F26E11DF5A7958A973EB + + fileRef + 0793DDF3E7F1860954834073 + isa + PBXBuildFile + + B8351C513D48681A3694EC55 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTXCTestReporter.m + path + src/SPTXCTestReporter.m + sourceTree + <group> + + B85E2B7D8B612428576BA856 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-YMBarbwire.xcconfig + sourceTree + <group> + + B9399086682F081C63A0CE55 + + fileRef + B3547DFCF7B6AE4075E15D24 + isa + PBXBuildFile + + B9BAA38992AF5C9B0BE29F3A + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + B9DC90FD06C28C3649D8686E + + fileRef + E19D4BCE9D478B50691289AE + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + BAE68BA7E1499442B4E0F15C + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + Specta.m + path + src/Specta.m + sourceTree + <group> + + BB760E76287B8CCC247ACA15 + + fileRef + 3021F8FE986B315F7DE3F962 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + BBDAE1BF5EA41B42F109845C + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beGreaterThanOrEqualTo.m + path + src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m + sourceTree + <group> + + BC1A3494478E394A401D81F8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+conformTo.h + path + src/matchers/EXPMatchers+conformTo.h + sourceTree + <group> + + BCAFA32F439B7C673A3E9973 + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-Tests-Expecta.a + sourceTree + BUILT_PRODUCTS_DIR + + BCBF5752A1994A223893D64F + + fileRef + 3EB4FD54A88688A9D23ADEB4 + isa + PBXBuildFile + + BD0D4DFD92B2AF01B3A51CFE + + baseConfigurationReference + 22359045B12B774D5191649D + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + YES + DSTROOT + /tmp/xcodeproj.dst + GCC_PRECOMPILE_PREFIX_HEADER + YES + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_CFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_CPLUSPLUSFLAGS + + -DNS_BLOCK_ASSERTIONS=1 + $(inherited) + + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + BF484F0A26E8B7CC8D99BABA + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPDoubleTuple.m + path + src/EXPDoubleTuple.m + sourceTree + <group> + + BF86003B0E0AABBDA118AE5E + + fileRef + D072FD5DF588978DF1DD9CF5 + isa + PBXBuildFile + + BF952297534CF37C26EE4867 + + buildConfigurations + + CA39D4B623F62550325DF552 + 561FF70882088EDC8FE41363 + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + BFD4A16DEC7B3DAA022A46BC + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + name + Pods-YMBarbwire-YMBarbwire-Private.xcconfig + path + ../Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-Private.xcconfig + sourceTree + <group> + + C0B15A4C51AC5FC681C62E52 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + YMBarbConfig.m + path + YMBarbwire/YMBarbConfig.m + sourceTree + <group> + + C14BDD172C9A763C02AD880C + + buildActionMask + 2147483647 + files + + 3FB1F1A4F690A13AB29D415D + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + C2F40C89C1B6E23F0D2CA11D + + buildConfigurations + + F1358250E24CA0800158640D + 7FA74DF2327872F334F48B3B + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + C3D29B2D93331973B6D28FF4 + + fileRef + DED1AF56883DA9B9DB07709E + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + C66C814934CC2DF946E8DD49 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text + path + Pods-Tests-acknowledgements.markdown + sourceTree + <group> + + C859A18DF59278E4376B7C5D + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Pods-Tests-Expecta-dummy.m + sourceTree + <group> + + C8C30E12ADC2E95E8EE9B3FC + + buildConfigurationList + 6004F954719B2AB2AACCB4F9 + buildPhases + + 5D960C56C2E0B9E80F9634D1 + F9EB0FDD9EEDC74D5B7153D6 + + buildRules + + dependencies + + 40E2C57CC9F2137574ECF9E8 + + isa + PBXNativeTarget + name + Pods-YMBarbwire + productName + Pods-YMBarbwire + productReference + EB143E4C30A20EC6DB0EB8B0 + productType + com.apple.product-type.library.static + + C975B258FDF24D6DA3BAF4BD + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Pods-Tests-YMBarbwire-prefix.pch + sourceTree + <group> + + CA077E971CFD2B4527CE19DB + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTSharedExampleGroups.h + path + src/SPTSharedExampleGroups.h + sourceTree + <group> + + CA148278438169516D74393B + + children + + 61B73A419246948848D7D14E + B2D0F10AE8D3E731A0B2BE0A + DD0EFF3E6DC1B706025DA569 + 968F507893BDDD64261B4A31 + 20CB41CECDFDABE603FD8A97 + 035C8E42F90C83C1D64C3198 + + isa + PBXGroup + name + YMBarbwire + path + ../.. + sourceTree + <group> + + CA39D4B623F62550325DF552 + + baseConfigurationReference + CBD282FF0EA679F7057C4333 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + CA550A1001DE4E7E806F36FB + + fileRef + CA077E971CFD2B4527CE19DB + isa + PBXBuildFile + + CBD282FF0EA679F7057C4333 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-YMBarbwire-Private.xcconfig + sourceTree + <group> + + CC00A7AA81C713A979DD9307 + + fileRef + 1398D68F855E315246581399 + isa + PBXBuildFile + + CC4ED1281833D309AD4F3519 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Pods-Tests-Specta-dummy.m + sourceTree + <group> + + CC5926B710D0ABB4A5E55F93 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPBackwardCompatibility.h + path + src/EXPBackwardCompatibility.h + sourceTree + <group> + + CD2C6A6870CABFE6E8A86324 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + YMBarb.m + path + YMBarbwire/YMBarb.m + sourceTree + <group> + + CF1822CB993EB02191DB1C16 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + NSObject+YMBarbwire.h + path + YMBarbwire/categories/NSObject+YMBarbwire.h + sourceTree + <group> + + D03F4D2786A56EAF8D2E1ED1 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + ExpectaSupport.h + path + src/ExpectaSupport.h + sourceTree + <group> + + D06A7EC5B22E339D5E989BD6 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + NSObject+Expecta.h + path + src/NSObject+Expecta.h + sourceTree + <group> + + D072FD5DF588978DF1DD9CF5 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + UIView+YMBarbwire.m + path + YMBarbwire/categories/UIView+YMBarbwire.m + sourceTree + <group> + + D348B7CE0B104638426E6AC3 + + fileRef + 91F18C6E08D976A826D5CA99 + isa + PBXBuildFile + + D424DE8432B0AAA857D0553C + + fileRef + CD2C6A6870CABFE6E8A86324 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc -fno-objc-arc + + + D4642C8FD7C9DAA2D0341B00 + + buildActionMask + 2147483647 + files + + 38BEC061BF95C605A6D9DD8D + 62712BB131F0F3496966BF2A + B9DC90FD06C28C3649D8686E + 0761075E39B4C6F193AB6E94 + 1BDEB4E08984408B7B227933 + 8347B368C74D80DFD1285D62 + 145841D819CACC727EB611C3 + 18DB098570EA2DA37F15BFD4 + 619ED3F1E305E804E80487C5 + 27E055CFE30A8897D28D021B + F1446F4AC58B6D59D506D759 + BB760E76287B8CCC247ACA15 + 0766A73FC14C5A26CCCF526D + 042E43F191D8F007E864C116 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + D5A0C59A9C08C25AFF8183A8 + + fileRef + F2A96ED914102A01C671A198 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + D642FD6EADEFFE5EC64F2F94 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + EXPMatchers+endWith.h + path + src/matchers/EXPMatchers+endWith.h + sourceTree + <group> + + D68C395B86ED165CCF507873 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + Pods-YMBarbwire-YMBarbwire-dummy.m + path + ../Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-dummy.m + sourceTree + <group> + + D9030AD5D1D23B695511A05E + + fileRef + 296AEF10A15A6A6517174959 + isa + PBXBuildFile + + D9F84BB2511DBEEB5B6F5103 + + fileRef + 8E8547631B36A6DEFB24ED8A + isa + PBXBuildFile + + D9FE1C200C9251CB1D4EE49B + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + DBA98BE3114CB499757901B5 + + fileRef + 151DD0FFB269D6CE455B09C2 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + DBEC6979195B6BC13E7F8937 + + fileRef + ACEA4E74221EAB9FE2E32661 + isa + PBXBuildFile + + DD0EFF3E6DC1B706025DA569 + + children + + EB286BD3B1534034CDDB1D37 + 5260AE00F5E1CFC7EB44B8B5 + 1D571D5CE99A1A1AFF343F27 + + isa + PBXGroup + name + asm + sourceTree + <group> + + DD913D5899149F9C270EAE90 + + fileRef + 4B1A756A81A0E6959A20065B + isa + PBXBuildFile + + DDB7E358458A02CA5DE0B8F5 + + fileRef + AFBAA4B68D49691150FFB7EC + isa + PBXBuildFile + + DED1AF56883DA9B9DB07709E + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+conformTo.m + path + src/matchers/EXPMatchers+conformTo.m + sourceTree + <group> + + E05FC019308A3014D1429BF2 + + fileRef + E9B11DFFD9D49589883FE55B + isa + PBXBuildFile + + E074CA34357CBFCB11049555 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-YMBarbwire.release.xcconfig + sourceTree + <group> + + E142116FE7666FED2FE6E650 + + buildActionMask + 2147483647 + files + + 5493E3F820F878D0FB9264F4 + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E19D4BCE9D478B50691289AE + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTExampleGroup.m + path + src/SPTExampleGroup.m + sourceTree + <group> + + E1AE39911C34A0FFFE76DBB0 + + children + + 3A8E99408594CA4B13B69EA4 + 4557809A71B9B3DD219BE1E2 + C859A18DF59278E4376B7C5D + 957997CD0BDD6DDE1BE3245F + + isa + PBXGroup + name + Support Files + path + ../Target Support Files/Pods-Tests-Expecta + sourceTree + <group> + + E1DD9411068FA1624B221FF8 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatcherHelpers.m + path + src/matchers/EXPMatcherHelpers.m + sourceTree + <group> + + E208ADD9AC4C7D9966DDB652 + + fileRef + D68C395B86ED165CCF507873 + isa + PBXBuildFile + + E27ACE1CBF7B2E28CADD6095 + + buildActionMask + 2147483647 + files + + 7BFE6596586DF1B1E5770BAB + 5937E875A1BFB45311CC8049 + 700A754D44122BEC0B9835D7 + E05FC019308A3014D1429BF2 + A3EB910B48776AE5C34FF860 + + isa + PBXHeadersBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E2925F8C0E75A8CD58D46E94 + + fileRef + 2C3B30468FEC3F41A4C16C75 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + E375E2F01C6FB822ED0F0137 + + fileRef + 327D733C3018FCA24EAF6E04 + isa + PBXBuildFile + + E493BDDBCFF9F33180552389 + + buildActionMask + 2147483647 + files + + 7CCC83535D58333AD616B23B + 841AB4CBE3A736AD5263944A + 98A7AA635065E8DC66697B7D + 87F298B3E0A75E3EA907ED4A + 3651AD36A6874953B9F5825C + + isa + PBXHeadersBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E4D6B6770A8B74FF80619575 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text + path + Pods-YMBarbwire-acknowledgements.markdown + sourceTree + <group> + + E4ECFE26B6336415BB09B290 + + buildConfigurationList + 3693C54D63C381EF22A5B66C + buildPhases + + D4642C8FD7C9DAA2D0341B00 + 461712D21A9742938448250F + 58D0EC0300CE0EA72C95C9D5 + + buildRules + + dependencies + + isa + PBXNativeTarget + name + Pods-Tests-Specta + productName + Pods-Tests-Specta + productReference + 5C67F24F67F56E8CBA755B4E + productType + com.apple.product-type.library.static + + E56342DB31F3A490756A32F4 + + fileRef + 1D571D5CE99A1A1AFF343F27 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + E5A34CA0D5FAF6B2110F98C4 + + fileRef + 5B1FB099A474613D037DC6FD + isa + PBXBuildFile + + E672480EC1BAAAE25D9C59BB + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTXCTestReporter.h + path + src/SPTXCTestReporter.h + sourceTree + <group> + + E6E3A98C8A6C2534B65DD0FD + + buildActionMask + 2147483647 + files + + 76631D0DCB623F4D34E0322A + CC00A7AA81C713A979DD9307 + 2BD0611F5EC2F8BA6F257F2B + D9030AD5D1D23B695511A05E + F6383B81D37E9FB6B5A194A0 + 2CD9EAB5CCDADA6080A0EAA8 + F99F06A690B76D710257CE92 + E5A34CA0D5FAF6B2110F98C4 + 4CA0CC35256CB0038CDFF9E6 + 6B24280291AD2263AD2B323C + A5E8F2801C39CDA03F159192 + 7D959D02A5ABE81C882DB1CA + 24C50094318D8AF9B2B98272 + D348B7CE0B104638426E6AC3 + 4F13D6F24BAEE592E87B5BDE + 930ECAC1C5A7D6353F65E3AC + E375E2F01C6FB822ED0F0137 + DD913D5899149F9C270EAE90 + 375A243442C1EB3AA9FF5CF5 + 6FA83010927376EB09A64103 + 76E3C13E8938D71E434EF777 + 78F06110057B9758FCA35F1B + 989A7CF862D11959B25C7054 + 175F8C2234B2AFB7470D9594 + DBEC6979195B6BC13E7F8937 + 346F756E6AD9C66D76A22B85 + 8B5C3D8D3C192369983A7B88 + AAA44ED54A277F35EA0963DF + 0627699BE4B43FB20DD151E1 + 7ECD14ECBBD68B9BB8FFF981 + 48EEC971EE6BCAB9C41B4078 + B61FE1DDCB65AF1295417EE8 + 5BC6996521109752886D98D1 + 3C7A11503A50EA7B366F80F6 + 28616F85709B8336ECC3DCDC + 0B9C71605B3011F91F644819 + 8323D078A352840093BFBE23 + B9399086682F081C63A0CE55 + + isa + PBXHeadersBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + E80D72E8197676A9988F554A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTExample.m + path + src/SPTExample.m + sourceTree + <group> + + E8D7EF2E663A0E9E331809BD + + fileRef + 958D9D792795941D50E9CA60 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + E9B11DFFD9D49589883FE55B + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + YMBarbConfig.h + path + YMBarbwire/YMBarbConfig.h + sourceTree + <group> + + EAF983655AFEDD20261077FB + + fileRef + FA9097376C1582A5A9596C81 + isa + PBXBuildFile + + EB143E4C30A20EC6DB0EB8B0 + + explicitFileType + archive.ar + includeInIndex + 0 + isa + PBXFileReference + path + libPods-YMBarbwire.a + sourceTree + BUILT_PRODUCTS_DIR + + EB286BD3B1534034CDDB1D37 + + includeInIndex + 1 + isa + PBXFileReference + name + arm64.s + path + YMBarbwire/asm/arm64.s + sourceTree + <group> + + EC3D94379E55A7DAA08DF134 + + isa + PBXTargetDependency + name + Pods-Tests-Expecta + target + 4DEB311D86D40359D956EFED + targetProxy + FD2DF95C23FDEFF244F1D4E9 + + EE0328E1987A86D9357ABF99 + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + EE24ECC09ABAD8FD31B63A2D + + fileRef + 5260AE00F5E1CFC7EB44B8B5 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-modules + + + F0DB2DB9B1D05AA8BA41F70F + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + NSObject+YMBarbwire.m + path + YMBarbwire/categories/NSObject+YMBarbwire.m + sourceTree + <group> + + F1358250E24CA0800158640D + + baseConfigurationReference + 4557809A71B9B3DD219BE1E2 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + F1367DB05AF6111532FD2E63 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text + name + Podfile + path + ../Podfile + sourceTree + SOURCE_ROOT + xcLanguageSpecificationIdentifier + xcode.lang.ruby + + F1446F4AC58B6D59D506D759 + + fileRef + 7BCF9100D4573360F3F1FCA3 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -DOS_OBJECT_USE_OBJC=0 + + + F14F57DC55C413B63271C0A3 + + fileRef + 4DF680AE78E2F5328F0447C9 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + F1B8CF3AFDC13CB006F5D49A + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beGreaterThan.m + path + src/matchers/EXPMatchers+beGreaterThan.m + sourceTree + <group> + + F2A96ED914102A01C671A198 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPMatchers+beLessThanOrEqualTo.m + path + src/matchers/EXPMatchers+beLessThanOrEqualTo.m + sourceTree + <group> + + F2C64A5817C90A83C862410F + + fileRef + B2DC88599F265AEEB5EC7FBB + isa + PBXBuildFile + + F3722DDAF397BEFEA2BFA123 + + fileRef + 2104C6F60102D162707F708A + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + F4BE6E94B1F14AADAADDAE98 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + SPTSharedExampleGroups.m + path + src/SPTSharedExampleGroups.m + sourceTree + <group> + + F6383B81D37E9FB6B5A194A0 + + fileRef + 80851C00B07723ECB9A1D068 + isa + PBXBuildFile + + F76232B93AFB4F2A9EF2EBF3 + + fileRef + 25A159F85E1173A11ED58C27 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + F89D803CDB9FC74CBA5294C9 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + YMBarb.h + path + YMBarbwire/YMBarb.h + sourceTree + <group> + + F9333CAC32E6FC342DB858BA + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + SPTExample.h + path + src/SPTExample.h + sourceTree + <group> + + F99B50D33E05D0AD89D27CCA + + fileRef + 2683AD4EBA02E3F1B5404580 + isa + PBXBuildFile + + F99F06A690B76D710257CE92 + + fileRef + 3AC1EF74702A48A6D5394AE5 + isa + PBXBuildFile + + F9EB0FDD9EEDC74D5B7153D6 + + buildActionMask + 2147483647 + files + + 856AEEBD0E3F770EDA5053A0 + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + FA3FA3E9C3FD45CAD5C897D4 + + baseConfigurationReference + FD9B3D5320A1BF07446F95C9 + buildSettings + + ALWAYS_SEARCH_USER_PATHS + NO + COPY_PHASE_STRIP + NO + DSTROOT + /tmp/xcodeproj.dst + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + INSTALL_PATH + $(BUILT_PRODUCTS_DIR) + IPHONEOS_DEPLOYMENT_TARGET + 7.1 + OTHER_LDFLAGS + + OTHER_LIBTOOLFLAGS + + PRODUCT_NAME + $(TARGET_NAME) + PUBLIC_HEADERS_FOLDER_PATH + $(TARGET_NAME) + SDKROOT + iphoneos + SKIP_INSTALL + YES + + isa + XCBuildConfiguration + name + Debug + + FA9097376C1582A5A9596C81 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + name + XCTestLog+Specta.h + path + src/XCTestLog+Specta.h + sourceTree + <group> + + FD07774CBBDE77B1994566A5 + + fileRef + 2EEFF1198106DA92F2649EC4 + isa + PBXBuildFile + settings + + COMPILER_FLAGS + -fno-objc-arc + + + FD2DF95C23FDEFF244F1D4E9 + + containerPortal + 2B17C6E81CB566408597DA0F + isa + PBXContainerItemProxy + proxyType + 1 + remoteGlobalIDString + 4DEB311D86D40359D956EFED + remoteInfo + Pods-Tests-Expecta + + FD51E55A4AD184226D9AA9D1 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + name + EXPUnsupportedObject.m + path + src/EXPUnsupportedObject.m + sourceTree + <group> + + FD9B3D5320A1BF07446F95C9 + + includeInIndex + 1 + isa + PBXFileReference + lastKnownFileType + text.xcconfig + path + Pods-Tests-Specta-Private.xcconfig + sourceTree + <group> + + + rootObject + 2B17C6E81CB566408597DA0F + + diff --git a/Example/Pods/Specta/LICENSE b/Example/Pods/Specta/LICENSE new file mode 100644 index 0000000..d136f6a --- /dev/null +++ b/Example/Pods/Specta/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2012-2013 Specta Team. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/Example/Pods/Specta/README.md b/Example/Pods/Specta/README.md new file mode 100644 index 0000000..0c54ad8 --- /dev/null +++ b/Example/Pods/Specta/README.md @@ -0,0 +1,146 @@ +# Specta + +A light-weight TDD / BDD framework for Objective-C & Cocoa. + +### FEATURES + +* RSpec-like BDD DSL +* Super quick and easy to set up +* Runs on top of XCTest +* Excellent Xcode integration + +### SCREENSHOT + +![Specta Screenshot](http://github.com/petejkim/stuff/raw/master/images/specta-screenshot.png) + +### SETUP + +Use [CocoaPods](http://github.com/CocoaPods/CocoaPods) + +```ruby +target :MyApp do + # your app dependencies +end + +target :MyAppTests do + pod 'Specta', '~> 0.2.1' + # pod 'Expecta', '~> 0.2.3' # expecta matchers + # pod 'OCMock', '~> 2.2.1' # OCMock + # pod 'OCHamcrest', '~> 3.0.0' # hamcrest matchers + # pod 'OCMockito', '~> 1.0.0' # OCMock + # pod 'LRMocky', '~> 0.9.1' # LRMocky +end +``` + +or + +1. Clone from Github. +2. Run `rake` in project root to build. +3. Add a "Cocoa/Cocoa Touch Unit Testing Bundle" target if you don't already have one. +4. Copy and add all header files in `products` folder to the Test target in your Xcode project. +5. For **OS X projects**, copy and add `libSpecta-macosx.a` in `products` folder to the Test target in your Xcode project. + For **iOS projects**, copy and add `libSpecta-ios-universal.a` in `products` folder to the Test target in your Xcode project. +6. Add `-ObjC` and `-all_load` to the "Other Linker Flags" build setting for the Spec/Test target in your Xcode project. +7. Add the following to your test code. + +```objective-c +#import "Specta.h" +``` + +Standard XCTest matchers such as `XCTAssertEqualObjects` and `XCTAssertNil` work, but you probably want to add a nicer matcher framework - [Expecta](http://github.com/petejkim/expecta/) to your setup. Or if you really prefer, [OCHamcrest](https://github.com/jonreid/OCHamcrest) works fine too. Also, add a mocking framework: [OCMock](http://ocmock.org/). + +## WRITING SPECS + +```objective-c +#import "Specta.h" + +SharedExamplesBegin(MySharedExamples) +// Global shared examples are shared across all spec files. + +sharedExamplesFor(@"a shared behavior", ^(NSDictionary *data) { + it(@"should do some stuff", ^{ + id obj = data[@"key"]; + // ... + }); +}); + +SharedExamplesEnd + +SpecBegin(Thing) + +describe(@"Thing", ^{ + sharedExamplesFor(@"another shared behavior", ^(NSDictionary *data) { + // Locally defined shared examples can override global shared examples within its scope. + }); + + beforeAll(^{ + // This is run once and only once before all of the examples + // in this group and before any beforeEach blocks. + }); + + beforeEach(^{ + // This is run before each example. + }); + + it(@"should do stuff", ^{ + // This is an example block. Place your assertions here. + }); + + it(@"should do some stuff asynchronously", ^AsyncBlock { + // Async example blocks need to invoke done() callback. + done(); + }); + + itShouldBehaveLike(@"a shared behavior", @{@"key" : @"obj"}); + + itShouldBehaveLike(@"another shared behavior", ^{ + // Use a block that returns a dictionary if you need the context to be evaluated lazily, + // e.g. to use an object prepared in a beforeEach block. + return @{@"key" : @"obj"}; + }); + + describe(@"Nested examples", ^{ + it(@"should do even more stuff", ^{ + // ... + }); + }); + + pending(@"pending example"); + + pending(@"another pending example", ^{ + // ... + }); + + afterEach(^{ + // This is run after each example. + }); + + afterAll(^{ + // This is run once and only once after all of the examples + // in this group and after any afterEach blocks. + }); +}); + +SpecEnd +``` + +* `beforeEach` and `afterEach` are also aliased as `before` and `after` respectively. +* `describe` is also aliased as `context`. +* `it` is also aliased as `example` and `specify`. +* `itShouldBehaveLike` is also aliased as `itBehavesLike`. +* Use `pending` or prepend `x` to `describe`, `context`, `example`, `it`, and `specify` to mark examples or groups as pending. +* Use `^AsyncBlock` as shown in the example above to make examples wait for completion. `done()` callback needs to be invoked to let Specta know that your test is complete. The default timeout is 10.0 seconds but this can be changed by calling the function `setAsyncSpecTimeout(NSTimeInterval timeout)`. +* `(before|after)(Each/All)` also accept `^AsyncBlock`s. +* Do `#define SPT_CEDAR_SYNTAX` before importing Specta if you prefer to write `SPEC_BEGIN` and `SPEC_END` instead of `SpecBegin` and `SpecEnd`. +* Prepend `f` to your `describe`, `context`, `example`, `it`, and `specify` to set focus on examples or groups. When specs are focused, all unfocused specs are skipped. +* To use original XCTest reporter, set an environment variable named `SPECTA_REPORTER_CLASS` to `SPTXCTestReporter` in your test scheme. + +### CONTRIBUTION GUIDELINES + +* Please use only spaces and indent 2 spaces at a time. +* Please prefix instance variable names with a single underscore (`_`). +* Please prefix custom classes and functions defined in the global scope with `SPT`. + +## LICENSE + +Copyright (c) 2012-2013 [Specta Team](https://github.com/specta?tab=members). This software is licensed under the [MIT License](http://github.com/petejkim/specta/raw/master/LICENSE). \ No newline at end of file diff --git a/Example/Pods/Specta/src/SPTExample.h b/Example/Pods/Specta/src/SPTExample.h new file mode 100644 index 0000000..1173803 --- /dev/null +++ b/Example/Pods/Specta/src/SPTExample.h @@ -0,0 +1,14 @@ +#import +#import "SpectaTypes.h" + +@interface SPTExample : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) id block; +@property (nonatomic) BOOL pending; +@property (nonatomic, getter = isFocused) BOOL focused; + +- (id)initWithName:(NSString *)name block:(id)block; + +@end + diff --git a/Example/Pods/Specta/src/SPTExample.m b/Example/Pods/Specta/src/SPTExample.m new file mode 100644 index 0000000..f2606ad --- /dev/null +++ b/Example/Pods/Specta/src/SPTExample.m @@ -0,0 +1,16 @@ +#import "SPTExample.h" + +@implementation SPTExample + +- (id)initWithName:(NSString *)name block:(id)block { + self = [super init]; + if (self) { + self.name = name; + self.block = block; + self.pending = block == nil; + } + return self; +} + +@end + diff --git a/Example/Pods/Specta/src/SPTExampleGroup.h b/Example/Pods/Specta/src/SPTExampleGroup.h new file mode 100644 index 0000000..c3539c5 --- /dev/null +++ b/Example/Pods/Specta/src/SPTExampleGroup.h @@ -0,0 +1,40 @@ +#import +#import +#import "SpectaTypes.h" + +@class + SPTExample +; + +@interface SPTExampleGroup : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, strong) SPTExampleGroup *root; +@property (nonatomic, strong) SPTExampleGroup *parent; +@property (nonatomic, strong) NSMutableArray *children; +@property (nonatomic, strong) NSMutableArray *beforeAllArray; +@property (nonatomic, strong) NSMutableArray *afterAllArray; +@property (nonatomic, strong) NSMutableArray *beforeEachArray; +@property (nonatomic, strong) NSMutableArray *afterEachArray; +@property (nonatomic, strong) NSMutableDictionary *sharedExamples; +@property (nonatomic) unsigned int exampleCount; +@property (nonatomic) unsigned int ranExampleCount; +@property (nonatomic, getter=isFocused) BOOL focused; + ++ (void)setAsyncSpecTimeout:(NSTimeInterval)timeout; +- (id)initWithName:(NSString *)name parent:(SPTExampleGroup *)parent root:(SPTExampleGroup *)root; + +- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name; +- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name focused:(BOOL)focused; + +- (SPTExample *)addExampleWithName:(NSString *)name block:(id)block; +- (SPTExample *)addExampleWithName:(NSString *)name block:(id)block focused:(BOOL)focused; + +- (void)addBeforeAllBlock:(SPTVoidBlock)block; +- (void)addAfterAllBlock:(SPTVoidBlock)block; +- (void)addBeforeEachBlock:(SPTVoidBlock)block; +- (void)addAfterEachBlock:(SPTVoidBlock)block; + +- (NSArray *)compileExamplesWithNameStack:(NSArray *)nameStack; + +@end diff --git a/Example/Pods/Specta/src/SPTExampleGroup.m b/Example/Pods/Specta/src/SPTExampleGroup.m new file mode 100644 index 0000000..a3a36d9 --- /dev/null +++ b/Example/Pods/Specta/src/SPTExampleGroup.m @@ -0,0 +1,326 @@ +#import "SPTExampleGroup.h" +#import "SPTExample.h" +#import "SPTXCTestCase.h" +#import "SPTSpec.h" +#import "SpectaUtility.h" +#import +#import + +static NSArray *ClassesWithClassMethod(SEL classMethodSelector) { + NSMutableArray *classesWithClassMethod = [[NSMutableArray alloc] init]; + + int numberOfClasses = objc_getClassList(NULL, 0); + if (numberOfClasses > 0) { + Class *classes = (Class *)malloc(sizeof(Class) *numberOfClasses); + numberOfClasses = objc_getClassList(classes, numberOfClasses); + + for(int classIndex = 0; classIndex < numberOfClasses; classIndex++) { + Class aClass = classes[classIndex]; + + if (strcmp("UIAccessibilitySafeCategory__NSObject", class_getName(aClass))) { + Method globalMethod = class_getClassMethod(aClass, classMethodSelector); + if (globalMethod) { + [classesWithClassMethod addObject:aClass]; + } + } + } + + free(classes); + } + + return classesWithClassMethod; +} + +@interface NSObject (SpectaGlobalBeforeAfterEach) + ++ (void)beforeEach; ++ (void)afterEach; + +@end + +static NSTimeInterval asyncSpecTimeout = 10.0; +static const char *asyncBlockSignature = NULL; + +static void runExampleBlock(id block, NSString *name) { + if (!SPTIsBlock(block)) { + return; + } + + const char *blockSignature = SPTGetBlockSignature(block); + + BOOL isAsyncBlock = strcmp(blockSignature, asyncBlockSignature) == 0; + + if (isAsyncBlock) { + __block uint32_t complete = 0; + ((SPTAsyncBlock)block)(^{ + OSAtomicOr32Barrier(1, &complete); + }); + NSTimeInterval timeout = asyncSpecTimeout; + NSDate *timeoutDate = [NSDate dateWithTimeIntervalSinceNow:timeout]; + while (!complete && [timeoutDate timeIntervalSinceNow] > 0) { + [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]]; + } + if (!complete) { + NSString *message = [NSString stringWithFormat:@"\"%@\" failed to invoke done() callback before timeout (%f seconds)", name, timeout]; + SPTXCTestCase *currentTestCase = SPTCurrentTestCase; + SPTSpec *spec = [[currentTestCase class] spt_spec]; + [currentTestCase recordFailureWithDescription:message inFile:spec.fileName atLine:spec.lineNumber expected:YES]; + } + } else { + ((SPTVoidBlock)block)(); + } +} + +@interface SPTExampleGroup () + +- (void)incrementExampleCount; +- (void)resetRanExampleCountIfNeeded; +- (void)incrementRanExampleCount; +- (void)runBeforeHooks:(NSString *)compiledName; +- (void)runAfterHooks:(NSString *)compiledName; + +@end + +@implementation SPTExampleGroup + ++ (void)initialize { + if (asyncBlockSignature == NULL) { + asyncBlockSignature = SPTGetBlockSignature(^(void (^done)(void)) {}); + } +} + +- (id)init { + self = [super init]; + if (self) { + self.name = nil; + self.root = nil; + self.parent = nil; + self.children = [NSMutableArray array]; + self.beforeAllArray = [NSMutableArray array]; + self.afterAllArray = [NSMutableArray array]; + self.beforeEachArray = [NSMutableArray array]; + self.afterEachArray = [NSMutableArray array]; + self.sharedExamples = [NSMutableDictionary dictionary]; + self.exampleCount = 0; + self.ranExampleCount = 0; + } + return self; +} + ++ (void)setAsyncSpecTimeout:(NSTimeInterval)timeout { + asyncSpecTimeout = timeout; +} + +- (id)initWithName:(NSString *)name parent:(SPTExampleGroup *)parent root:(SPTExampleGroup *)root { + self = [self init]; + if (self) { + self.name = name; + self.parent = parent; + self.root = root; + } + return self; +} + +- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name { + return [self addExampleGroupWithName:name + focused:NO]; +} + + +- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name focused:(BOOL)focused { + SPTExampleGroup *group = [[SPTExampleGroup alloc] initWithName:name parent:self root:self.root]; + group.focused = focused; + [self.children addObject:group]; + return group; +} + +- (SPTExample *)addExampleWithName:(NSString *)name block:(id)block { + return [self addExampleWithName:name + block:block + focused:NO]; +} + +- (SPTExample *)addExampleWithName:(NSString *)name block:(id)block focused:(BOOL)focused { + SPTExample *example; + @synchronized(self) { + example = [[SPTExample alloc] initWithName:name block:block]; + example.focused = focused; + [self.children addObject:example]; + [self incrementExampleCount]; + } + return example; +} + +- (void)incrementExampleCount { + SPTExampleGroup *group = self; + while (group != nil) { + group.exampleCount ++; + group = group.parent; + } +} + +- (void)resetRanExampleCountIfNeeded { + SPTExampleGroup *group = self; + while (group != nil) { + if (group.ranExampleCount >= group.exampleCount) { + group.ranExampleCount = 0; + } + group = group.parent; + } +} + +- (void)incrementRanExampleCount { + SPTExampleGroup *group = self; + while (group != nil) { + group.ranExampleCount ++; + group = group.parent; + } +} + +- (void)addBeforeAllBlock:(SPTVoidBlock)block { + if (!block) return; + [self.beforeAllArray addObject:[block copy]]; +} + +- (void)addAfterAllBlock:(SPTVoidBlock)block { + if (!block) return; + [self.afterAllArray addObject:[block copy]]; +} + +- (void)addBeforeEachBlock:(SPTVoidBlock)block { + if (!block) return; + [self.beforeEachArray addObject:[block copy]]; +} + +- (void)addAfterEachBlock:(SPTVoidBlock)block { + if (!block) return; + [self.afterEachArray addObject:[block copy]]; +} + +- (void)runGlobalBeforeEachHooks:(NSString *)compiledName { + static NSArray *globalBeforeEachClasses; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + globalBeforeEachClasses = ClassesWithClassMethod(@selector(beforeEach)); + }); + + for (Class class in globalBeforeEachClasses) { + [class beforeEach]; + } +} + +- (void)runGlobalAfterEachHooks:(NSString *)compiledName { + static NSArray *globalAfterEachClasses; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + globalAfterEachClasses = ClassesWithClassMethod(@selector(afterEach)); + }); + + for (Class class in globalAfterEachClasses) { + [class afterEach]; + } +} + +- (void)runBeforeHooks:(NSString *)compiledName { + NSMutableArray *groups = [NSMutableArray array]; + SPTExampleGroup *group = self; + while (group != nil) { + [groups insertObject:group atIndex:0]; + group = group.parent; + } + + // run beforeAll hooks + for(group in groups) { + if (group.ranExampleCount == 0) { + for(id beforeAllBlock in group.beforeAllArray) { + runExampleBlock(beforeAllBlock, [NSString stringWithFormat:@"%@ - before all block", compiledName]); + } + } + } + + // run beforeEach hooks + [self runGlobalBeforeEachHooks:compiledName]; + for(group in groups) { + for(id beforeEachBlock in group.beforeEachArray) { + runExampleBlock(beforeEachBlock, [NSString stringWithFormat:@"%@ - before each block", compiledName]); + } + } +} + +- (void)runAfterHooks:(NSString *)compiledName { + NSMutableArray *groups = [NSMutableArray array]; + SPTExampleGroup *group = self; + while (group != nil) { + [groups addObject:group]; + group = group.parent; + } + // run afterEach hooks + for(group in groups) { + for(id afterEachBlock in group.afterEachArray) { + runExampleBlock(afterEachBlock, [NSString stringWithFormat:@"%@ - after each block", compiledName]); + } + } + [self runGlobalAfterEachHooks:compiledName]; + + // run afterAll hooks + for(group in groups) { + if (group.ranExampleCount == group.exampleCount) { + for(id afterAllBlock in group.afterAllArray) { + runExampleBlock(afterAllBlock, [NSString stringWithFormat:@"%@ - after all block", compiledName]); + } + } + } +} + +- (BOOL)isFocusedOrHasFocusedAncestor { + SPTExampleGroup *ancestor = self; + while (ancestor != nil) { + if (ancestor.focused) { + return YES; + } else { + ancestor = ancestor.parent; + } + } + + return NO; +} + +- (NSArray *)compileExamplesWithNameStack:(NSArray *)nameStack { + BOOL groupIsFocusedOrHasFocusedAncestor = [self isFocusedOrHasFocusedAncestor]; + + NSArray *compiled = @[]; + for(id child in self.children) { + if ([child isKindOfClass:[SPTExampleGroup class]]) { + SPTExampleGroup *group = child; + NSArray *newNameStack = [nameStack arrayByAddingObject:group.name]; + compiled = [compiled arrayByAddingObjectsFromArray:[group compileExamplesWithNameStack:newNameStack]]; + } else if ([child isKindOfClass:[SPTExample class]]) { + SPTExample *example = child; + NSArray *newNameStack = [nameStack arrayByAddingObject:example.name]; + NSString *compiledName = [newNameStack componentsJoinedByString:@" "]; + + SPTVoidBlock compiledBlock = example.pending ? nil : ^{ + @synchronized(self.root) { + [self resetRanExampleCountIfNeeded]; + [self runBeforeHooks:compiledName]; + } + @try { + runExampleBlock(example.block, compiledName); + } + @finally { + @synchronized(self.root) { + [self incrementRanExampleCount]; + [self runAfterHooks:compiledName]; + } + } + }; + SPTExample *compiledExample = [[SPTExample alloc] initWithName:compiledName block:compiledBlock]; + compiledExample.pending = example.pending; + compiledExample.focused = (groupIsFocusedOrHasFocusedAncestor || example.focused); + compiled = [compiled arrayByAddingObject:compiledExample]; + } + } + return compiled; +} + +@end diff --git a/Example/Pods/Specta/src/SPTNestedReporter.h b/Example/Pods/Specta/src/SPTNestedReporter.h new file mode 100644 index 0000000..565c246 --- /dev/null +++ b/Example/Pods/Specta/src/SPTNestedReporter.h @@ -0,0 +1,5 @@ +#import "SPTReporter.h" + +@interface SPTNestedReporter : SPTReporter + +@end diff --git a/Example/Pods/Specta/src/SPTNestedReporter.m b/Example/Pods/Specta/src/SPTNestedReporter.m new file mode 100644 index 0000000..c12ef27 --- /dev/null +++ b/Example/Pods/Specta/src/SPTNestedReporter.m @@ -0,0 +1,194 @@ +#import "SPTNestedReporter.h" +#import "XCTestRun+Specta.h" + +@interface SPTNestedReporter () + +@property (readwrite, assign, nonatomic) NSInteger nestingLevel; +@property (readwrite, assign, nonatomic) BOOL indentationEnabled; + +@end + +@implementation SPTNestedReporter + +#pragma mark - Printing + +- (NSString *)indentation { + // XCode does not strip whitespace from the beginning of lines that report an error. Indentation should only enabled for non-error text. + + if (self.indentationEnabled) { + return [@"" stringByPaddingToLength:(self.nestingLevel * 2) + withString:@" " + startingAtIndex:0]; + } else { + return @""; + } +} + +- (void)withIndentationEnabled:(void(^)(void))block { + [self withIndentationEnabled:YES block:block]; +} + +- (void)withIndentationEnabled:(BOOL)indentationEnabled block:(void(^)(void))block { + BOOL originalValue = self.indentationEnabled; + + self.indentationEnabled = indentationEnabled; + @try { + block(); + } @finally { + self.indentationEnabled = originalValue; + } +} + +- (void)printIndentation { + [self printString:self.indentation]; +} + +- (void)printTestSuiteHeader:(XCTestRun *)testRun { + [self printIndentation]; + [self printLineWithFormat:@"= %@", testRun.test.name]; +} + +- (void)printTestSuiteFooter:(XCTestRun *)testRun { + [self printIndentation]; + [self printLine]; + + if (self.nestingLevel == 0) { + [self printConciseSummaryOfTestRun:testRun]; + } +} + +- (void)printConciseSummaryOfTestRun:(XCTestRun *)testRun { + NSUInteger numberOfTests = testRun.testCaseCount; + NSUInteger numberOfFailures = testRun.totalFailureCount; + NSUInteger numberOfExceptions = testRun.unexpectedExceptionCount; + NSUInteger numberOfSkippedTests = testRun.spt_skippedTestCaseCount; + NSUInteger numberOfPendingTests = testRun.spt_pendingTestCaseCount; + + NSString * runInfo = [[self class] conciseRunInfoWithNumberOfTests:numberOfTests + numberOfSkippedTests:numberOfSkippedTests + numberOfFailures:numberOfFailures + numberOfExceptions:numberOfExceptions + numberOfPendingTests:numberOfPendingTests]; + + [self printIndentation]; + [self printLine:runInfo]; +} + +- (void)printTestCaseHeader:(XCTestRun *)testRun { + [self printIndentation]; + [self printLineWithFormat:@"%@", testRun.test.name]; +} + +- (void)printTestCaseFooter:(XCTestRun *)testRun { + [self printIndentation]; + [self printLine]; +} + ++ (NSString *)pluralizeString:(NSString *)singularString + pluralString:(NSString *)pluralString + count:(NSInteger)count { + return (count == 1 || count == -1) ? singularString : pluralString; +} + ++ (NSString *)conciseRunInfoWithNumberOfTests:(NSUInteger)numberOfTests + numberOfSkippedTests:(NSUInteger)numberOfSkippedTests + numberOfFailures:(NSUInteger)numberOfFailures + numberOfExceptions:(NSUInteger)numberOfExceptions + numberOfPendingTests:(NSUInteger)numberOfPendingTests { + NSString * testLabel = [[self class] pluralizeString:@"test" + pluralString:@"tests" + count:numberOfTests]; + + NSString * failureLabel = [[self class] pluralizeString:@"failure" + pluralString:@"failures" + count:numberOfFailures]; + + NSString * exceptionLabel = [[self class] pluralizeString:@"exception" + pluralString:@"exceptions" + count:numberOfExceptions]; + + return [NSString stringWithFormat:@"%lu %@; %lu skipped; %lu %@; %lu %@; %lu pending", + (unsigned long)numberOfTests, + testLabel, + (unsigned long)numberOfSkippedTests, + (unsigned long)numberOfFailures, + failureLabel, + (unsigned long)numberOfExceptions, + exceptionLabel, + (unsigned long)numberOfPendingTests]; +} + +#pragma mark - XCTestObserver + +- (void)startObserving { + [super startObserving]; + + self.nestingLevel = 0; +} + +- (void)testSuiteDidStart:(XCTestRun *)testRun { + [self withIndentationEnabled:^{ + + [self printTestSuiteHeader:testRun]; + self.nestingLevel ++; + + [super testSuiteDidStart:testRun]; + [self printLine]; + + }]; +} + +- (void)testSuiteDidStop:(XCTestRun *)testRun { + [self withIndentationEnabled:^{ + + [super testSuiteDidStop:testRun]; + + self.nestingLevel --; + [self printTestSuiteFooter:testRun]; + + }]; +} + +- (void)testCaseDidStart:(XCTestRun *)testRun { + [self withIndentationEnabled:^{ + + [self printTestCaseHeader:testRun]; + self.nestingLevel ++; + + [super testCaseDidStart:testRun]; + + }]; +} + +- (void)testCaseDidStop:(XCTestRun *)testRun { + [self withIndentationEnabled:^{ + + [super testCaseDidStop:testRun]; + + self.nestingLevel --; + [self printTestCaseFooter:testRun]; + + }]; +} + +- (void)testLogWithFormat:(NSString *)format arguments:(va_list)arguments { + NSString * indentation = self.indentation; + + NSMutableString * indentedFormat = [[NSMutableString alloc] initWithString:format]; + [indentedFormat insertString:indentation atIndex:0]; + + NSRange replacementRange = NSMakeRange(0, [indentedFormat length]); + if ([indentedFormat hasSuffix:@"\n"]) { + replacementRange.length -= [@"\n" length]; + } + + [indentedFormat replaceOccurrencesOfString:@"\n" + withString:[@"\n" stringByAppendingString:indentation] + options:0 + range:replacementRange]; + + [super testLogWithFormat:indentedFormat + arguments:arguments]; +} + +@end diff --git a/Example/Pods/Specta/src/SPTReporter.h b/Example/Pods/Specta/src/SPTReporter.h new file mode 100644 index 0000000..ed34cac --- /dev/null +++ b/Example/Pods/Specta/src/SPTReporter.h @@ -0,0 +1,33 @@ +#import + +@interface SPTReporter : XCTestLog + +/* + * Returns a singleton reporter used to generate Specta's test output. + * The type of reporter can be customized by subclassing and setting the + * SPECTA_REPORTER_CLASS environment variable. + * + * Subclasses may override methods from XCTestObserver to change test output. + * Initialization shuld be performed in the -startObserving / -stopObserving methods, + * and MUST invoke the super class implementation. + */ ++ (instancetype)sharedReporter; + +#pragma mark - Run Stack + +@property (nonatomic, strong, readonly) NSArray *runStack; +@property (nonatomic, assign, readonly) NSUInteger runStackCount; + +@property (nonatomic, assign, readonly) NSInteger numberOfTestCases; +@property (nonatomic, assign, readonly) NSInteger numberOfCompletedTestCases; + +#pragma mark - Printing + +- (void)printString:(NSString *)string; +- (void)printStringWithFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); + +- (void)printLine; +- (void)printLine:(NSString *)line; +- (void)printLineWithFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); + +@end diff --git a/Example/Pods/Specta/src/SPTReporter.m b/Example/Pods/Specta/src/SPTReporter.m new file mode 100644 index 0000000..570665a --- /dev/null +++ b/Example/Pods/Specta/src/SPTReporter.m @@ -0,0 +1,134 @@ +#import "SPTReporter.h" +#import "SPTNestedReporter.h" +#import "XCTestLog+Specta.h" + +@interface SPTReporter () + +@property (nonatomic, strong, readwrite) NSArray *runStack; +@property (nonatomic, assign, readwrite) NSInteger numberOfCompletedTestCases; + +@end + +@implementation SPTReporter + ++ (instancetype)sharedReporter { + static SPTReporter * sharedReporter; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + sharedReporter = [self loadSharedReporter]; + }); + + return sharedReporter; +} + ++ (SPTReporter *)loadSharedReporter { + NSString * customReporterClassName = [[NSProcessInfo processInfo] environment][@"SPECTA_REPORTER_CLASS"]; + if (customReporterClassName != nil) { + Class customReporterClass = NSClassFromString(customReporterClassName); + if (customReporterClass != nil) { + return [[customReporterClass alloc] init]; + } + } + + return [[SPTNestedReporter alloc] init]; +} + +#pragma mark - Run Stack + +- (NSUInteger)runStackCount { + return self.runStack.count; +} + +- (void)pushRunStack:(XCTestRun *)run { + [(NSMutableArray *)self.runStack addObject:run]; +} + +- (void)popRunStack:(XCTestRun *)run { + NSAssert(run != nil, @"Attempt to pop nil test run"); + + NSAssert([self.runStack lastObject] == run, + @"Attempt to pop test run (%@) out of order: %@", + run, + self.runStack); + + [(NSMutableArray *)self.runStack removeLastObject]; +} + +- (NSInteger)numberOfTestCases { + XCTestRun * rootRun = self.runStack.firstObject; + if (rootRun) { + return rootRun.testCaseCount; + } else { + return 0; + } +} + +#pragma mark - Printing + +- (void)printString:(NSString *)string { + [[self logFileHandle] writeData:[string dataUsingEncoding:NSUTF8StringEncoding]]; +} + +- (void)printStringWithFormat:(NSString *)formatString, ... { + va_list args; + va_start(args, formatString); + NSString * formattedString = [[NSString alloc] initWithFormat:formatString arguments:args]; + va_end(args); + + [self printString:formattedString]; +} + +- (void)printLine { + [self printString:@"\n"]; +} + +- (void)printLine:(NSString *)line { + [self printStringWithFormat:@"%@\n", line]; +} + +- (void)printLineWithFormat:(NSString *)formatString, ... { + va_list args; + va_start(args, formatString); + NSString * formattedString = [[NSString alloc] initWithFormat:formatString arguments:args]; + va_end(args); + + [self printLine:formattedString]; +} + +#pragma mark - XCTestObserver + +- (void)startObserving { + [super startObserving]; + + self.runStack = [[NSMutableArray alloc] init]; +} + +- (void)stopObserving { + [super stopObserving]; + + self.runStack = nil; +} + +- (void)testSuiteDidStart:(XCTestRun *)testRun { + [super testSuiteDidStart:testRun]; + [self pushRunStack:testRun]; +} + +- (void)testSuiteDidStop:(XCTestRun *)testRun { + [super testSuiteDidStop:testRun]; + [self popRunStack:testRun]; +} + +- (void)testCaseDidStart:(XCTestRun *)testRun { + [super testCaseDidStart:testRun]; + [self pushRunStack:testRun]; +} + +- (void)testCaseDidStop:(XCTestRun *)testRun { + [super testCaseDidStop:testRun]; + [self popRunStack:testRun]; + + self.numberOfCompletedTestCases++; +} + +@end \ No newline at end of file diff --git a/Example/Pods/Specta/src/SPTSharedExampleGroups.h b/Example/Pods/Specta/src/SPTSharedExampleGroups.h new file mode 100644 index 0000000..fdd5439 --- /dev/null +++ b/Example/Pods/Specta/src/SPTSharedExampleGroups.h @@ -0,0 +1,17 @@ +#import +#import "SpectaTypes.h" + +@class + SPTExampleGroup +; + +@interface SPTSharedExampleGroups : NSObject + ++ (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup; ++ (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup; ++ (void)defineSharedExampleGroups; + ++ (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected; + +@end + diff --git a/Example/Pods/Specta/src/SPTSharedExampleGroups.m b/Example/Pods/Specta/src/SPTSharedExampleGroups.m new file mode 100644 index 0000000..bfbfd33 --- /dev/null +++ b/Example/Pods/Specta/src/SPTSharedExampleGroups.m @@ -0,0 +1,62 @@ +#import "SPTSharedExampleGroups.h" +#import "SPTExampleGroup.h" +#import "SPTXCTestCase.h" +#import "SpectaUtility.h" +#import + +NSMutableDictionary *globalSharedExampleGroups = nil; +BOOL initialized = NO; + +@implementation SPTSharedExampleGroups + ++ (void)initialize { + Class SPTSharedExampleGroupsClass = [SPTSharedExampleGroups class]; + if ([self class] == SPTSharedExampleGroupsClass) { + if (!initialized) { + initialized = YES; + globalSharedExampleGroups = [[NSMutableDictionary alloc] init]; + + Class *classes = NULL; + int numClasses = objc_getClassList(NULL, 0); + + if (numClasses > 0) { + classes = (Class *)malloc(sizeof(Class) * numClasses); + numClasses = objc_getClassList(classes, numClasses); + + Class klass, superClass; + for(uint i = 0; i < numClasses; i++) { + klass = classes[i]; + superClass = class_getSuperclass(klass); + if (superClass == SPTSharedExampleGroupsClass) { + [klass defineSharedExampleGroups]; + } + } + + free(classes); + } + } + } +} + ++ (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup { + (exampleGroup == nil ? globalSharedExampleGroups : exampleGroup.sharedExamples)[name] = [block copy]; +} + ++ (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup { + SPTDictionaryBlock sharedExampleGroup = nil; + while (exampleGroup != nil) { + if ((sharedExampleGroup = exampleGroup.sharedExamples[name])) { + return sharedExampleGroup; + } + exampleGroup = exampleGroup.parent; + } + return globalSharedExampleGroups[name]; +} + ++ (void)defineSharedExampleGroups {} + ++ (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected { + [SPTCurrentTestCase recordFailureWithDescription:description inFile:filename atLine:lineNumber expected:expected]; +} + +@end diff --git a/Example/Pods/Specta/src/SPTSpec.h b/Example/Pods/Specta/src/SPTSpec.h new file mode 100644 index 0000000..5a3f8e9 --- /dev/null +++ b/Example/Pods/Specta/src/SPTSpec.h @@ -0,0 +1,21 @@ +#import + +@class + SPTExample +, SPTExampleGroup +; + +@interface SPTSpec : NSObject + +@property (nonatomic, strong) SPTExampleGroup *rootGroup; +@property (nonatomic, strong) NSMutableArray *groupStack; +@property (nonatomic, strong) NSArray *compiledExamples; +@property (nonatomic, strong) NSString *fileName; +@property (nonatomic) NSUInteger lineNumber; +@property (nonatomic, getter = isDisabled) BOOL disabled; +@property (nonatomic) BOOL hasFocusedExamples; + +- (SPTExampleGroup *)currentGroup; +- (void)compile; + +@end diff --git a/Example/Pods/Specta/src/SPTSpec.m b/Example/Pods/Specta/src/SPTSpec.m new file mode 100644 index 0000000..fb6507e --- /dev/null +++ b/Example/Pods/Specta/src/SPTSpec.m @@ -0,0 +1,31 @@ +#import "SPTSpec.h" +#import "SPTExampleGroup.h" +#import "SPTExample.h" + +@implementation SPTSpec + +- (id)init { + self = [super init]; + if (self) { + self.rootGroup = [[SPTExampleGroup alloc] init]; + self.rootGroup.root = self.rootGroup; + self.groupStack = [NSMutableArray arrayWithObject:self.rootGroup]; + } + return self; +} + +- (SPTExampleGroup *)currentGroup { + return [self.groupStack lastObject]; +} + +- (void)compile { + self.compiledExamples = [self.rootGroup compileExamplesWithNameStack:@[]]; + for (SPTExample *example in self.compiledExamples) { + if (example.focused) { + self.hasFocusedExamples = YES; + break; + } + } +} + +@end diff --git a/Example/Pods/Specta/src/SPTXCTestCase.h b/Example/Pods/Specta/src/SPTXCTestCase.h new file mode 100644 index 0000000..16d6a6e --- /dev/null +++ b/Example/Pods/Specta/src/SPTXCTestCase.h @@ -0,0 +1,27 @@ +#import +#import "XCTestCase+Specta.h" + +@class + SPTSpec +, SPTExample +; + +@interface SPTXCTestCase : XCTestCase + +@property (nonatomic, strong) NSInvocation *spt_invocation; +@property (nonatomic, strong) XCTestCaseRun *spt_run; +@property (nonatomic, assign) BOOL spt_skipped; +@property (nonatomic, assign, readonly, getter = spt_isPending) BOOL spt_pending; + ++ (BOOL)spt_isDisabled; ++ (void)spt_setDisabled:(BOOL)disabled; ++ (BOOL)spt_focusedExamplesExist; + ++ (SPTSpec *)spt_spec; +- (void)spt_setCurrentSpecWithFileName:(const char *)fileName lineNumber:(NSUInteger)lineNumber; +- (void)spt_defineSpec; +- (void)spt_unsetCurrentSpec; +- (void)spt_runExampleAtIndex:(NSUInteger)index; +- (SPTExample *)spt_getCurrentExample; + +@end diff --git a/Example/Pods/Specta/src/SPTXCTestCase.m b/Example/Pods/Specta/src/SPTXCTestCase.m new file mode 100644 index 0000000..172fcf1 --- /dev/null +++ b/Example/Pods/Specta/src/SPTXCTestCase.m @@ -0,0 +1,151 @@ +#import "SPTXCTestCase.h" +#import "SPTSpec.h" +#import "SPTExample.h" +#import "SPTSharedExampleGroups.h" +#import "SpectaUtility.h" +#import + +@implementation SPTXCTestCase + ++ (void)initialize { + [SPTSharedExampleGroups initialize]; + SPTSpec *spec = [[SPTSpec alloc] init]; + SPTXCTestCase *testCase = [[[self class] alloc] init]; + objc_setAssociatedObject(self, "spt_spec", spec, OBJC_ASSOCIATION_RETAIN_NONATOMIC); + [testCase spt_defineSpec]; + [spec compile]; + [super initialize]; +} + ++ (SPTSpec *)spt_spec { + return objc_getAssociatedObject(self, "spt_spec"); +} + ++ (BOOL)spt_isDisabled { + return [self spt_spec].disabled; +} + ++ (void)spt_setDisabled:(BOOL)disabled { + [self spt_spec].disabled = disabled; +} + +- (BOOL)spt_isPending { + SPTExample *example = [self spt_getCurrentExample]; + return example == nil || example.pending; +} + ++ (NSArray *)spt_allSpecClasses { + static NSArray *allSpecClasses = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + + NSMutableArray *specClasses = [[NSMutableArray alloc] init]; + + int numberOfClasses = objc_getClassList(NULL, 0); + if (numberOfClasses > 0) { + Class *classes = (Class *)malloc(sizeof(Class) * numberOfClasses); + numberOfClasses = objc_getClassList(classes, numberOfClasses); + + for (int classIndex = 0; classIndex < numberOfClasses; classIndex++) { + Class aClass = classes[classIndex]; + if (SPTIsSpecClass(aClass)) { + [specClasses addObject:aClass]; + } + } + + free(classes); + } + + allSpecClasses = [specClasses copy]; + }); + + return allSpecClasses; +} + ++ (BOOL)spt_focusedExamplesExist { + for (Class specClass in [self spt_allSpecClasses]) { + SPTSpec *spec = [specClass spt_spec]; + if (spec.disabled == NO && [spec hasFocusedExamples]) { + return YES; + } + } + + return NO; +} + +- (void)spt_setCurrentSpecWithFileName:(const char *)fileName lineNumber:(NSUInteger)lineNumber { + SPTSpec *spec = [[self class] spt_spec]; + spec.fileName = @(fileName); + spec.lineNumber = lineNumber; + [[NSThread currentThread] threadDictionary][SPTCurrentSpecKey] = spec; +} + +- (void)spt_defineSpec {} + +- (void)spt_unsetCurrentSpec { + [[[NSThread currentThread] threadDictionary] removeObjectForKey:SPTCurrentSpecKey]; +} + +- (void)spt_runExampleAtIndex:(NSUInteger)index { + [[NSThread currentThread] threadDictionary][SPTCurrentTestCaseKey] = self; + SPTExample *compiledExample = ([[self class] spt_spec].compiledExamples)[index]; + if (!compiledExample.pending) { + if ([[self class] spt_isDisabled] == NO && + (compiledExample.focused || [[self class] spt_focusedExamplesExist] == NO)) { + ((SPTVoidBlock)compiledExample.block)(); + } else { + self.spt_skipped = YES; + } + } + + [[[NSThread currentThread] threadDictionary] removeObjectForKey:SPTCurrentTestCaseKey]; +} + +- (SPTExample *)spt_getCurrentExample { + if (!self.spt_invocation) { + return nil; + } + NSUInteger i; + [self.spt_invocation getArgument:&i atIndex:2]; + return ([[self class] spt_spec].compiledExamples)[i]; +} + +#pragma mark - XCTestCase overrides + ++ (NSArray *)testInvocations { + NSMutableArray *invocations = [NSMutableArray array]; + for(NSUInteger i = 0; i < [[self spt_spec].compiledExamples count]; i ++) { + NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[self instanceMethodSignatureForSelector:@selector(spt_runExampleAtIndex:)]]; + NSUInteger j = i; + [invocation setSelector:@selector(spt_runExampleAtIndex:)]; + [invocation setArgument:&j atIndex:2]; + [invocations addObject:invocation]; + } + return invocations; +} + +- (void)setInvocation:(NSInvocation *)invocation { + self.spt_invocation = invocation; + [super setInvocation:invocation]; +} + +- (NSString *)name { + NSString *specName = NSStringFromClass([self class]); + SPTExample *compiledExample = [self spt_getCurrentExample]; + NSCharacterSet *charSet = [NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"]; + NSString *exampleName = [[compiledExample.name componentsSeparatedByCharactersInSet:[charSet invertedSet]] componentsJoinedByString:@"_"]; + return [NSString stringWithFormat:@"-[%@ %@]", specName, exampleName]; +} + +- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected { + SPTXCTestCase *currentTestCase = SPTCurrentTestCase; + [currentTestCase.spt_run recordFailureInTest:currentTestCase withDescription:description inFile:filename atLine:lineNumber expected:expected]; +} + +- (void)performTest:(XCTestRun *)run { + self.spt_run = (XCTestCaseRun *)run; + [super performTest:run]; + self.spt_run = nil; +} + +@end diff --git a/Example/Pods/Specta/src/SPTXCTestReporter.h b/Example/Pods/Specta/src/SPTXCTestReporter.h new file mode 100644 index 0000000..516a667 --- /dev/null +++ b/Example/Pods/Specta/src/SPTXCTestReporter.h @@ -0,0 +1,9 @@ +#import "SPTReporter.h" + +/** + * Reporter that produces output identical to XCode's default output. Useful when integrating with 3rd-party tools that + * may not like SPTNestedReporter's indented output. + */ +@interface SPTXCTestReporter : SPTReporter + +@end diff --git a/Example/Pods/Specta/src/SPTXCTestReporter.m b/Example/Pods/Specta/src/SPTXCTestReporter.m new file mode 100644 index 0000000..12bb616 --- /dev/null +++ b/Example/Pods/Specta/src/SPTXCTestReporter.m @@ -0,0 +1,11 @@ +#import "SPTXCTestReporter.h" + +@implementation SPTXCTestReporter + +/* + * Intentionally left blank. + * This class is included for future-compatibility just in case we need to + * weak reporter output for users who want test output idential to XCTestLog. + */ + +@end diff --git a/Example/Pods/Specta/src/Specta.h b/Example/Pods/Specta/src/Specta.h new file mode 100644 index 0000000..e2a5271 --- /dev/null +++ b/Example/Pods/Specta/src/Specta.h @@ -0,0 +1,70 @@ +#import +#import +#import "SpectaSupport.h" +#import "SPTXCTestCase.h" +#import "SPTSpec.h" +#import "SPTExampleGroup.h" +#import "SPTSharedExampleGroups.h" + +@interface Specta : NSObject +@end + +#define SpecBegin(name) _SPTSpecBegin(name, __FILE__, __LINE__) +#define SpecEnd _SPTSpecEnd + +#define SharedExamplesBegin(name) _SPTSharedExampleGroupsBegin(name) +#define SharedExamplesEnd _SPTSharedExampleGroupsEnd +#define SharedExampleGroupsBegin(name) _SPTSharedExampleGroupsBegin(name) +#define SharedExampleGroupsEnd _SPTSharedExampleGroupsEnd + +#ifdef SPT_CEDAR_SYNTAX +# define SPEC_BEGIN(name) SpecBegin(name) +# define SPEC_END SpecEnd +# define SHARED_EXAMPLE_GROUPS_BEGIN(name) SharedExamplesBegin(name) +# define SHARED_EXAMPLE_GROUPS_END SharedExamplesEnd +# ifndef PENDING +# define PENDING nil +# endif +#endif + +void SPTdescribe(NSString *name, BOOL focused, void (^block)()); +void describe(NSString *name, void (^block)()); +void fdescribe(NSString *name, void (^block)()); +void context(NSString *name, void (^block)()); +void fcontext(NSString *name, void (^block)()); + +void SPTexample(NSString *name, BOOL focused, id block); +void example(NSString *name, id block); +void fexample(NSString *name, id block); +void it(NSString *name, id block); +void fit(NSString *name, id block); +void specify(NSString *name, id block); +void fspecify(NSString *name, id block); + + +void SPTpending(NSString *name, ...); +#define xdescribe(...) SPTpending(__VA_ARGS__, nil) +#define xcontext(...) SPTpending(__VA_ARGS__, nil) +#define xexample(...) SPTpending(__VA_ARGS__, nil) +#define xit(...) SPTpending(__VA_ARGS__, nil) +#define xspecify(...) SPTpending(__VA_ARGS__, nil) +#define pending(...) SPTpending(__VA_ARGS__, nil) + +void beforeAll(id block); +void afterAll(id block); +void beforeEach(id block); +void afterEach(id block); +void before(id block); +void after(id block); + +void sharedExamplesFor(NSString *name, void (^block)(NSDictionary *data)); +void sharedExamples(NSString *name, void (^block)(NSDictionary *data)); + +void SPTitShouldBehaveLike(const char *fileName, NSUInteger lineNumber, NSString *name, id dictionaryOrBlock); +void itShouldBehaveLike(NSString *name, id dictionaryOrBlockOrNil); // aid code completion +void itBehavesLike(NSString *name, id dictionaryOrBlockOrNil); +#define itShouldBehaveLike(...) SPTitShouldBehaveLike(__FILE__, __LINE__, __VA_ARGS__) +#define itBehavesLike(...) SPTitShouldBehaveLike(__FILE__, __LINE__, __VA_ARGS__) + +void setAsyncSpecTimeout(NSTimeInterval timeout); +#define AsyncBlock (void (^done)(void)) diff --git a/Example/Pods/Specta/src/Specta.m b/Example/Pods/Specta/src/Specta.m new file mode 100644 index 0000000..a2ed5c9 --- /dev/null +++ b/Example/Pods/Specta/src/Specta.m @@ -0,0 +1,144 @@ +#import "Specta.h" +#import "SpectaTypes.h" +#import "SpectaUtility.h" + +@implementation Specta +@end + +void SPTdescribe(NSString *name, BOOL focused, void (^block)()) { + if (block) { + [SPTGroupStack addObject:[SPTCurrentGroup addExampleGroupWithName:name focused:focused]]; + block(); + [SPTGroupStack removeLastObject]; + } else { + SPTexample(name, focused, nil); + } +} + +void describe(NSString *name, void (^block)()) { + SPTdescribe(name, NO, block); +} + +void fdescribe(NSString *name, void (^block)()) { + SPTdescribe(name, YES, block); +} + +void context(NSString *name, void (^block)()) { + SPTdescribe(name, NO, block); +} +void fcontext(NSString *name, void (^block)()) { + SPTdescribe(name, YES, block); +} + +void SPTexample(NSString *name, BOOL focused, id block) { + SPTReturnUnlessBlockOrNil(block); + [SPTCurrentGroup addExampleWithName:name block:block focused:focused]; +} + +void example(NSString *name, id block) { + SPTexample(name, NO, block); +} + +void fexample(NSString *name, id block) { + SPTexample(name, YES, block); +} + +void it(NSString *name, id block) { + SPTexample(name, NO, block); +} + +void fit(NSString *name, id block) { + SPTexample(name, YES, block); +} + +void specify(NSString *name, id block) { + SPTexample(name, NO, block); +} + +void fspecify(NSString *name, id block) { + SPTexample(name, YES, block); +} + +void SPTpending(NSString *name, ...) { + SPTexample(name, NO, nil); +} + +void beforeAll(id block) { + SPTReturnUnlessBlockOrNil(block); + [SPTCurrentGroup addBeforeAllBlock:block]; +} + +void afterAll(id block) { + SPTReturnUnlessBlockOrNil(block); + [SPTCurrentGroup addAfterAllBlock:block]; +} + +void beforeEach(id block) { + SPTReturnUnlessBlockOrNil(block); + [SPTCurrentGroup addBeforeEachBlock:block]; +} + +void afterEach(id block) { + SPTReturnUnlessBlockOrNil(block); + [SPTCurrentGroup addAfterEachBlock:block]; +} + +void before(id block) { + beforeEach(block); +} + +void after(id block) { + afterEach(block); +} + +void sharedExamplesFor(NSString *name, void (^block)(NSDictionary *data)) { + [SPTSharedExampleGroups addSharedExampleGroupWithName:name block:block exampleGroup:SPTCurrentGroup]; +} + +void sharedExamples(NSString *name, void (^block)(NSDictionary *data)) { + sharedExamplesFor(name, block); +} + +void SPTitShouldBehaveLike(const char *fileName, NSUInteger lineNumber, NSString *name, id dictionaryOrBlock) { + SPTDictionaryBlock block = [SPTSharedExampleGroups sharedExampleGroupWithName:name exampleGroup:SPTCurrentGroup]; + if (block) { + if (SPTIsBlock(dictionaryOrBlock)) { + id (^dataBlock)(void) = [dictionaryOrBlock copy]; + + describe(name, ^{ + __block NSMutableDictionary *dataDict = [[NSMutableDictionary alloc] init]; + + beforeEach(^{ + NSDictionary *blockData = dataBlock(); + [dataDict removeAllObjects]; + [dataDict addEntriesFromDictionary:blockData]; + }); + + block(dataDict); + + afterAll(^{ + dataDict = nil; + }); + }); + } else { + NSDictionary *data = dictionaryOrBlock; + + describe(name, ^{ + block(data); + }); + } + } else { + SPTXCTestCase *currentTestCase = SPTCurrentTestCase; + if (currentTestCase) { + [currentTestCase recordFailureWithDescription:@"itShouldBehaveLike should not be invoked inside an example block!" inFile:@(fileName) atLine:lineNumber expected:NO]; + } else { + it(name, ^{ + [currentTestCase recordFailureWithDescription:[NSString stringWithFormat:@"Shared example group \"%@\" does not exist.", name] inFile:@(fileName) atLine:lineNumber expected:NO]; + }); + } + } +} + +void setAsyncSpecTimeout(NSTimeInterval timeout) { + [SPTExampleGroup setAsyncSpecTimeout:timeout]; +} \ No newline at end of file diff --git a/Example/Pods/Specta/src/SpectaSupport.h b/Example/Pods/Specta/src/SpectaSupport.h new file mode 100644 index 0000000..5b55732 --- /dev/null +++ b/Example/Pods/Specta/src/SpectaSupport.h @@ -0,0 +1,46 @@ +#ifndef SPT_SUBCLASS +#define SPT_SUBCLASS SPTXCTestCase +#endif + + + +#define _SPTSpecBegin(name, file, line) \ +@interface name##Spec : SPT_SUBCLASS \ +@end \ +@implementation name##Spec \ +- (void)spt_defineSpec { \ + const char *specFileName = file; \ + @try { \ + [self spt_setCurrentSpecWithFileName:(file) lineNumber:(line)]; + +#define _SPTSpecEnd \ + [self spt_unsetCurrentSpec]; \ + } @catch(NSException *exception) { \ + fprintf(stderr, "%s: An exception has occured outside of tests, aborting.\n\n%s (%s) \n", specFileName, [[exception name] UTF8String], [[exception reason] UTF8String]); \ + if ([exception respondsToSelector:@selector(callStackSymbols)]) { \ + NSArray *callStackSymbols = [exception callStackSymbols]; \ + if (callStackSymbols) { \ + NSString *callStack = [NSString stringWithFormat:@"\n Call Stack:\n %@\n", [callStackSymbols componentsJoinedByString:@"\n "]]; \ + fprintf(stderr, "%s", [callStack UTF8String]); \ + } \ + } \ + exit(1); \ + } \ +} \ +@end + +#define _SPTSharedExampleGroupsBegin(name) \ +@interface name##SharedExampleGroups : SPTSharedExampleGroups \ +@end \ +@implementation name##SharedExampleGroups \ ++ (void)defineSharedExampleGroups { + +#define _SPTSharedExampleGroupsEnd \ +} \ +@end + +#undef _XCTRegisterFailure +#define _XCTRegisterFailure(condition, format...) \ +({ \ +_XCTFailureHandler((id)self, YES, __FILE__, __LINE__, condition, @"" format); \ +}) \ No newline at end of file diff --git a/Example/Pods/Specta/src/SpectaTypes.h b/Example/Pods/Specta/src/SpectaTypes.h new file mode 100644 index 0000000..24eb4c3 --- /dev/null +++ b/Example/Pods/Specta/src/SpectaTypes.h @@ -0,0 +1,3 @@ +typedef void (^SPTVoidBlock)(); +typedef void (^SPTAsyncBlock)(void (^)()); +typedef void (^SPTDictionaryBlock)(NSDictionary *dictionary); diff --git a/Example/Pods/Specta/src/SpectaUtility.h b/Example/Pods/Specta/src/SpectaUtility.h new file mode 100644 index 0000000..f34c1d5 --- /dev/null +++ b/Example/Pods/Specta/src/SpectaUtility.h @@ -0,0 +1,14 @@ +#import +extern NSString * const SPTCurrentSpecKey; +extern NSString * const SPTCurrentTestCaseKey; + +#define SPTCurrentSpec [[NSThread currentThread] threadDictionary][SPTCurrentSpecKey] +#define SPTCurrentTestCase [[NSThread currentThread] threadDictionary][SPTCurrentTestCaseKey] +#define SPTCurrentGroup [SPTCurrentSpec currentGroup] +#define SPTGroupStack [SPTCurrentSpec groupStack] + +#define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return; +#define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")] + +const char *SPTGetBlockSignature(id blockObject); +BOOL SPTIsSpecClass(Class aClass); \ No newline at end of file diff --git a/Example/Pods/Specta/src/SpectaUtility.m b/Example/Pods/Specta/src/SpectaUtility.m new file mode 100644 index 0000000..221e223 --- /dev/null +++ b/Example/Pods/Specta/src/SpectaUtility.m @@ -0,0 +1,65 @@ +#import "SpectaUtility.h" +#import "SPTXCTestCase.h" +#import + +NSString * const SPTCurrentSpecKey = @"SPTCurrentSpec"; +NSString * const SPTCurrentTestCaseKey = @"SPTCurrentTestCase"; + +// http://clang.llvm.org/docs/Block-ABI-Apple.html +struct SPTBlockLiteral { + void *isa; // initialized to &_NSConcreteStackBlock or &_NSConcreteGlobalBlock + int flags; + int reserved; + void (*invoke)(void *, ...); + struct Block_descriptor_1 { + unsigned long int reserved; // NULL + unsigned long int size; // sizeof(struct Block_literal_1) + // optional helper functions + void (*copy_helper)(void *dst, void *src); // IFF (1<<25) + void (*dispose_helper)(void *src); // IFF (1<<25) + // required ABI.2010.3.16 + const char *signature; // IFF (1<<30) + } *descriptor; + // imported variables +}; + +enum { + SPT_BLOCK_HAS_COPY_DISPOSE = (1 << 25), + SPT_BLOCK_HAS_CTOR = (1 << 26), // helpers have C++ code + SPT_BLOCK_IS_GLOBAL = (1 << 28), + SPT_BLOCK_HAS_STRET = (1 << 29), // IFF BLOCK_HAS_SIGNATURE + SPT_BLOCK_HAS_SIGNATURE = (1 << 30), +}; + +const char *SPTGetBlockSignature(id blockObject) { + struct SPTBlockLiteral *block = (__bridge struct SPTBlockLiteral *)blockObject; + + int flags = block->flags; + + if (flags & SPT_BLOCK_HAS_SIGNATURE) { + void *signaturePtr = block->descriptor; + signaturePtr += sizeof(unsigned long int); // skip reserved + signaturePtr += sizeof(unsigned long int); // skip size + + if (flags & SPT_BLOCK_HAS_COPY_DISPOSE) { + signaturePtr += sizeof(void(*)(void *dst, void *src)); // skip copy_helper + signaturePtr += sizeof(void(*)(void *src)); // skip dispose_helper + } + + return *(const char **)signaturePtr; + } + + return NULL; +} + +BOOL SPTIsSpecClass(Class aClass) { + Class superclass = class_getSuperclass(aClass); + while (superclass != Nil) { + if (superclass == [SPTXCTestCase class]) { + return YES; + } else { + superclass = class_getSuperclass(superclass); + } + } + return NO; +} \ No newline at end of file diff --git a/Example/Pods/Specta/src/XCTestCase+Specta.h b/Example/Pods/Specta/src/XCTestCase+Specta.h new file mode 100644 index 0000000..da3a56c --- /dev/null +++ b/Example/Pods/Specta/src/XCTestCase+Specta.h @@ -0,0 +1,4 @@ +#import + +@interface XCTestCase (Specta) +@end \ No newline at end of file diff --git a/Example/Pods/Specta/src/XCTestCase+Specta.m b/Example/Pods/Specta/src/XCTestCase+Specta.m new file mode 100644 index 0000000..0c69b41 --- /dev/null +++ b/Example/Pods/Specta/src/XCTestCase+Specta.m @@ -0,0 +1,26 @@ +#import "XCTestCase+Specta.h" +#import "SPTXCTestCase.h" +#import "SPTExample.h" +#import + +@interface XCTestCase (xct_allSubclasses) + +- (NSArray *)xct_allSubclasses; + +@end + +@implementation XCTestCase (Specta) + ++ (void)load { + Method xct_allSubclasses = class_getClassMethod(self, @selector(xct_allSubclasses)); + Method xct_allSubclasses_swizzle = class_getClassMethod(self, @selector(xct_allSubclasses_swizzle)); + method_exchangeImplementations(xct_allSubclasses, xct_allSubclasses_swizzle); +} + ++ (NSArray *)xct_allSubclasses_swizzle { + NSMutableArray *subclasses = [[self xct_allSubclasses_swizzle] mutableCopy]; // call original + [subclasses removeObject:[SPTXCTestCase class]]; + return subclasses; +} + +@end \ No newline at end of file diff --git a/Example/Pods/Specta/src/XCTestLog+Specta.h b/Example/Pods/Specta/src/XCTestLog+Specta.h new file mode 100644 index 0000000..f21d160 --- /dev/null +++ b/Example/Pods/Specta/src/XCTestLog+Specta.h @@ -0,0 +1,7 @@ +#import + +@interface XCTestLog (Specta) + +- (void)spt_pauseObservationInBlock:(void (^)(void))block; + +@end diff --git a/Example/Pods/Specta/src/XCTestLog+Specta.m b/Example/Pods/Specta/src/XCTestLog+Specta.m new file mode 100644 index 0000000..ba42e4d --- /dev/null +++ b/Example/Pods/Specta/src/XCTestLog+Specta.m @@ -0,0 +1,49 @@ +#import "XCTestLog+Specta.h" +#import "SPTReporter.h" +#import + +static void spt_swizzleInstanceMethod(Class class, SEL originalSelector, SEL swizzledSelector) { + Method originalMethod = class_getInstanceMethod(class, originalSelector); + Method swizzledMethod = class_getInstanceMethod(class, swizzledSelector); + + method_exchangeImplementations(originalMethod, swizzledMethod); +} + +@implementation XCTestLog (Specta) + ++ (void)load { + spt_swizzleInstanceMethod(self, @selector(startObserving), @selector(XCTestLog_startObserving)); + spt_swizzleInstanceMethod(self, @selector(stopObserving), @selector(XCTestLog_stopObserving)); +} + +- (BOOL)spt_shouldProxyToSPTReporter { + // Instances of XCTestLog (but not subclasses) simply forward to -[SPTReporter sharedReporter] + return [self isMemberOfClass:[XCTestLog class]]; +} + +- (void)spt_pauseObservationInBlock:(void (^)(void))block { + [self XCTestLog_stopObserving]; + block(); + [self XCTestLog_startObserving]; +} + +#pragma mark - XCTestObserver + +- (void)XCTestLog_startObserving { + if ([self spt_shouldProxyToSPTReporter]) { + [[SPTReporter sharedReporter] startObserving]; + } else { + [self XCTestLog_startObserving]; + } +} + +- (void)XCTestLog_stopObserving { + if ([self spt_shouldProxyToSPTReporter]) { + [[SPTReporter sharedReporter] stopObserving]; + } else { + [self XCTestLog_stopObserving]; + usleep(100000); + } +} + +@end diff --git a/Example/Pods/Specta/src/XCTestRun+Specta.h b/Example/Pods/Specta/src/XCTestRun+Specta.h new file mode 100644 index 0000000..12d33e6 --- /dev/null +++ b/Example/Pods/Specta/src/XCTestRun+Specta.h @@ -0,0 +1,8 @@ +#import + +@interface XCTestRun (Specta) + +- (NSUInteger)spt_pendingTestCaseCount; +- (NSUInteger)spt_skippedTestCaseCount; + +@end diff --git a/Example/Pods/Specta/src/XCTestRun+Specta.m b/Example/Pods/Specta/src/XCTestRun+Specta.m new file mode 100644 index 0000000..da7f915 --- /dev/null +++ b/Example/Pods/Specta/src/XCTestRun+Specta.m @@ -0,0 +1,44 @@ +#import "XCTestRun+Specta.h" +#import "SPTXCTestCase.h" + +@implementation XCTestRun (Specta) + +#pragma mark - Pending Test Cases + +- (NSUInteger)spt_pendingTestCaseCount { + NSUInteger pendingTestCaseCount = 0; + + if ([self isKindOfClass:[XCTestSuiteRun class]]) { + for (XCTestRun * testRun in [(XCTestSuiteRun *)self testRuns]) { + pendingTestCaseCount += [testRun spt_pendingTestCaseCount]; + } + } else if ([[self test] isKindOfClass:[SPTXCTestCase class]]) { + SPTXCTestCase * testCase = (SPTXCTestCase *)[self test]; + if (testCase != nil && [testCase spt_isPending]) { + pendingTestCaseCount++; + } + } + + return pendingTestCaseCount; +} + +#pragma mark - Skipped Test Cases + +- (NSUInteger)spt_skippedTestCaseCount { + NSUInteger skippedTestCaseCount = 0; + + if ([self isKindOfClass:[XCTestSuiteRun class]]) { + for (XCTestRun * testRun in [(XCTestSuiteRun *)self testRuns]) { + skippedTestCaseCount += [testRun spt_skippedTestCaseCount]; + } + } else if ([[self test] isKindOfClass:[SPTXCTestCase class]]) { + SPTXCTestCase * testCase = (SPTXCTestCase *)[self test]; + if (testCase.spt_skipped) { + skippedTestCaseCount++; + } + } + + return skippedTestCaseCount; +} + +@end \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-Private.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-Private.xcconfig new file mode 100644 index 0000000..584806a --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-Private.xcconfig @@ -0,0 +1,5 @@ +#include "Pods-Tests-Expecta.xcconfig" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/Expecta" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = ${PODS_TESTS_EXPECTA_OTHER_LDFLAGS} -ObjC +PODS_ROOT = ${SRCROOT} \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-dummy.m b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-dummy.m new file mode 100644 index 0000000..5d9e9b6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Tests_Expecta : NSObject +@end +@implementation PodsDummy_Pods_Tests_Expecta +@end diff --git a/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch new file mode 100644 index 0000000..2f298b1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta-prefix.pch @@ -0,0 +1,5 @@ +#ifdef __OBJC__ +#import +#endif + +#import "Pods-Tests-environment.h" diff --git a/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta.xcconfig new file mode 100644 index 0000000..69a7b9b --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Expecta/Pods-Tests-Expecta.xcconfig @@ -0,0 +1 @@ +PODS_TESTS_EXPECTA_OTHER_LDFLAGS = -framework "Foundation" \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-Private.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-Private.xcconfig new file mode 100644 index 0000000..6eb3166 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-Private.xcconfig @@ -0,0 +1,6 @@ +#include "Pods-Tests-Specta.xcconfig" +FRAMEWORK_SEARCH_PATHS = ${PODS_TESTS_SPECTA_FRAMEWORK_SEARCH_PATHS} +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/Specta" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = ${PODS_TESTS_SPECTA_OTHER_LDFLAGS} -ObjC +PODS_ROOT = ${SRCROOT} \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-dummy.m b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-dummy.m new file mode 100644 index 0000000..5ae3c45 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Tests_Specta : NSObject +@end +@implementation PodsDummy_Pods_Tests_Specta +@end diff --git a/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch new file mode 100644 index 0000000..2f298b1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta-prefix.pch @@ -0,0 +1,5 @@ +#ifdef __OBJC__ +#import +#endif + +#import "Pods-Tests-environment.h" diff --git a/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta.xcconfig new file mode 100644 index 0000000..1efa2db --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-Specta/Pods-Tests-Specta.xcconfig @@ -0,0 +1,2 @@ +PODS_TESTS_SPECTA_FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks" "$(PLATFORM_DIR)/Developer/Library/Frameworks" +PODS_TESTS_SPECTA_OTHER_LDFLAGS = -framework "Foundation" -framework "XCTest" \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-Private.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-Private.xcconfig new file mode 100644 index 0000000..6903cb9 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-Private.xcconfig @@ -0,0 +1,5 @@ +#include "Pods-Tests-YMBarbwire.xcconfig" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/YMBarbwire" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC +PODS_ROOT = ${SRCROOT} \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-dummy.m b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-dummy.m new file mode 100644 index 0000000..1234161 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Tests_YMBarbwire : NSObject +@end +@implementation PodsDummy_Pods_Tests_YMBarbwire +@end diff --git a/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch new file mode 100644 index 0000000..2f298b1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire-prefix.pch @@ -0,0 +1,5 @@ +#ifdef __OBJC__ +#import +#endif + +#import "Pods-Tests-environment.h" diff --git a/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire.xcconfig b/Example/Pods/Target Support Files/Pods-Tests-YMBarbwire/Pods-Tests-YMBarbwire.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.markdown new file mode 100644 index 0000000..24b43cb --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.markdown @@ -0,0 +1,73 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## Expecta + +Copyright (c) 2011-2012 Specta Team - https://github.com/specta + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +## Specta + +Copyright (c) 2012-2013 Specta Team. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +## YMBarbwire + +Copyright (c) 2014 adamkaplan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Generated by CocoaPods - http://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.plist new file mode 100644 index 0000000..a37cae8 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.plist @@ -0,0 +1,111 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2011-2012 Specta Team - https://github.com/specta + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + Title + Expecta + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2012-2013 Specta Team. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + Title + Specta + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2014 adamkaplan <adamkaplan@yahoo-inc.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + Title + YMBarbwire + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - http://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m new file mode 100644 index 0000000..4093c7b --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Tests : NSObject +@end +@implementation PodsDummy_Pods_Tests +@end diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-environment.h b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-environment.h new file mode 100644 index 0000000..8de639e --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-environment.h @@ -0,0 +1,50 @@ + +// To check if a library is compiled with CocoaPods you +// can use the `COCOAPODS` macro definition which is +// defined in the xcconfigs so it is available in +// headers also when they are imported in the client +// project. + + +// Expecta +#define COCOAPODS_POD_AVAILABLE_Expecta +#define COCOAPODS_VERSION_MAJOR_Expecta 0 +#define COCOAPODS_VERSION_MINOR_Expecta 3 +#define COCOAPODS_VERSION_PATCH_Expecta 1 + +// Specta +#define COCOAPODS_POD_AVAILABLE_Specta +#define COCOAPODS_VERSION_MAJOR_Specta 0 +#define COCOAPODS_VERSION_MINOR_Specta 2 +#define COCOAPODS_VERSION_PATCH_Specta 1 + +// YMBarbwire +#define COCOAPODS_POD_AVAILABLE_YMBarbwire +#define COCOAPODS_VERSION_MAJOR_YMBarbwire 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire 1 + +// YMBarbwire/asm +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_asm +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_asm 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_asm 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_asm 1 + +// YMBarbwire/categories +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_categories +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_categories 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_categories 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_categories 1 + +// YMBarbwire/core +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_core +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_core 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_core 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_core 1 + +// YMBarbwire/no-arc +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_no_arc +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_no_arc 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_no_arc 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_no_arc 1 + diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh new file mode 100755 index 0000000..e149064 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh @@ -0,0 +1,74 @@ +#!/bin/sh +set -e + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +install_resource() +{ + case $1 in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.framework) + echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" + xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ;; + /*) + echo "$1" + echo "$1" >> "$RESOURCES_TO_COPY" + ;; + *) + echo "${PODS_ROOT}/$1" + echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]]; then + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] +then + case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; + esac + find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig new file mode 100644 index 0000000..d70ad04 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig @@ -0,0 +1,7 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks" "$(PLATFORM_DIR)/Developer/Library/Frameworks" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Expecta" -isystem "${PODS_ROOT}/Headers/Public/Specta" -isystem "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC -l"Pods-Tests-Expecta" -l"Pods-Tests-Specta" -l"Pods-Tests-YMBarbwire" -framework "Foundation" -framework "XCTest" +OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig new file mode 100644 index 0000000..d70ad04 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig @@ -0,0 +1,7 @@ +FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks" "$(PLATFORM_DIR)/Developer/Library/Frameworks" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Expecta" -isystem "${PODS_ROOT}/Headers/Public/Specta" -isystem "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC -l"Pods-Tests-Expecta" -l"Pods-Tests-Specta" -l"Pods-Tests-YMBarbwire" -framework "Foundation" -framework "XCTest" +OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-Private.xcconfig b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-Private.xcconfig new file mode 100644 index 0000000..0f43853 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-Private.xcconfig @@ -0,0 +1,5 @@ +#include "Pods-YMBarbwire-YMBarbwire.xcconfig" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/YMBarbwire" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC +PODS_ROOT = ${SRCROOT} \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-dummy.m b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-dummy.m new file mode 100644 index 0000000..55fafc5 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_YMBarbwire_YMBarbwire : NSObject +@end +@implementation PodsDummy_Pods_YMBarbwire_YMBarbwire +@end diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch new file mode 100644 index 0000000..ede1e97 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire-prefix.pch @@ -0,0 +1,5 @@ +#ifdef __OBJC__ +#import +#endif + +#import "Pods-YMBarbwire-environment.h" diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire.xcconfig b/Example/Pods/Target Support Files/Pods-YMBarbwire-YMBarbwire/Pods-YMBarbwire-YMBarbwire.xcconfig new file mode 100644 index 0000000..e69de29 diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.markdown new file mode 100644 index 0000000..4813c14 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## YMBarbwire + +Copyright (c) 2014 adamkaplan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Generated by CocoaPods - http://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.plist new file mode 100644 index 0000000..9da76d0 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-acknowledgements.plist @@ -0,0 +1,56 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2014 adamkaplan <adamkaplan@yahoo-inc.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + Title + YMBarbwire + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - http://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-dummy.m b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-dummy.m new file mode 100644 index 0000000..f1e87b1 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_YMBarbwire : NSObject +@end +@implementation PodsDummy_Pods_YMBarbwire +@end diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-environment.h b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-environment.h new file mode 100644 index 0000000..2744c13 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-environment.h @@ -0,0 +1,38 @@ + +// To check if a library is compiled with CocoaPods you +// can use the `COCOAPODS` macro definition which is +// defined in the xcconfigs so it is available in +// headers also when they are imported in the client +// project. + + +// YMBarbwire +#define COCOAPODS_POD_AVAILABLE_YMBarbwire +#define COCOAPODS_VERSION_MAJOR_YMBarbwire 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire 1 + +// YMBarbwire/asm +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_asm +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_asm 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_asm 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_asm 1 + +// YMBarbwire/categories +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_categories +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_categories 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_categories 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_categories 1 + +// YMBarbwire/core +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_core +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_core 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_core 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_core 1 + +// YMBarbwire/no-arc +#define COCOAPODS_POD_AVAILABLE_YMBarbwire_no_arc +#define COCOAPODS_VERSION_MAJOR_YMBarbwire_no_arc 0 +#define COCOAPODS_VERSION_MINOR_YMBarbwire_no_arc 0 +#define COCOAPODS_VERSION_PATCH_YMBarbwire_no_arc 1 + diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-resources.sh b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-resources.sh new file mode 100755 index 0000000..e149064 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-resources.sh @@ -0,0 +1,74 @@ +#!/bin/sh +set -e + +mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +install_resource() +{ + case $1 in + *.storyboard) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.xib) + echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" + ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" + ;; + *.framework) + echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" + xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" + xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ;; + /*) + echo "$1" + echo "$1" >> "$RESOURCES_TO_COPY" + ;; + *) + echo "${PODS_ROOT}/$1" + echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]]; then + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] +then + case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; + esac + find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.debug.xcconfig b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.debug.xcconfig new file mode 100644 index 0000000..2c1d0ce --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.debug.xcconfig @@ -0,0 +1,6 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Expecta" -isystem "${PODS_ROOT}/Headers/Public/Specta" -isystem "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC -l"Pods-YMBarbwire-YMBarbwire" +OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.release.xcconfig b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.release.xcconfig new file mode 100644 index 0000000..2c1d0ce --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.release.xcconfig @@ -0,0 +1,6 @@ +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Expecta" "${PODS_ROOT}/Headers/Public/Specta" "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Expecta" -isystem "${PODS_ROOT}/Headers/Public/Specta" -isystem "${PODS_ROOT}/Headers/Public/YMBarbwire" +OTHER_LDFLAGS = -ObjC -l"Pods-YMBarbwire-YMBarbwire" +OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) +PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist new file mode 100644 index 0000000..41520ed --- /dev/null +++ b/Example/Tests/Tests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch new file mode 100644 index 0000000..e5cc1cd --- /dev/null +++ b/Example/Tests/Tests-Prefix.pch @@ -0,0 +1,13 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every test case source file. +// + +#ifdef __OBJC__ + + #define EXP_SHORTHAND + #import + #import + +#endif diff --git a/Example/Tests/Tests.m b/Example/Tests/Tests.m new file mode 100644 index 0000000..39ad1a8 --- /dev/null +++ b/Example/Tests/Tests.m @@ -0,0 +1,43 @@ +// +// YMBarbwireTests.m +// YMBarbwireTests +// +// Created by adamkaplan on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +SpecBegin(InitialSpecs) + +describe(@"these will fail", ^{ + + it(@"can do maths", ^{ + expect(1).to.equal(2); + }); + + it(@"can read", ^{ + expect(@"number").to.equal(@"string"); + }); + + it(@"will wait and fail", ^AsyncBlock { + + }); +}); + +describe(@"these will pass", ^{ + + it(@"can do maths", ^{ + expect(1).beLessThan(23); + }); + + it(@"can read", ^{ + expect(@"team").toNot.contain(@"I"); + }); + + it(@"will wait and succeed", ^AsyncBlock { + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ + done(); + }); + }); +}); + +SpecEnd diff --git a/Example/Tests/en.lproj/InfoPlist.strings b/Example/Tests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/Tests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Example/YMBarbwire.xcodeproj/project.pbxproj b/Example/YMBarbwire.xcodeproj/project.pbxproj new file mode 100644 index 0000000..913476d --- /dev/null +++ b/Example/YMBarbwire.xcodeproj/project.pbxproj @@ -0,0 +1,599 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 5E24B2F636740B8E3F008B5D /* libPods-Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CE45932DA20C537B493F6F7B /* libPods-Tests.a */; }; + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; + 6003F59E195388D20070C39A /* YMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* YMAppDelegate.m */; }; + 6003F5A1195388D20070C39A /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6003F59F195388D20070C39A /* Main_iPhone.storyboard */; }; + 6003F5A4195388D20070C39A /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A2195388D20070C39A /* Main_iPad.storyboard */; }; + 6003F5A7195388D20070C39A /* YMViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* YMViewController.m */; }; + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; + B46519FC5282BA49BAA4902C /* libPods-YMBarbwire.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E153D016BC7CCF306D7EE727 /* libPods-YMBarbwire.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6003F582195388D10070C39A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 6003F589195388D20070C39A; + remoteInfo = YMBarbwire; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 023B9E401A5172EE0A35A481 /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = ""; }; + 2131013D49F24FA49559A269 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 27C200C2491D6A897C939FC9 /* Pods-YMBarbwire.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YMBarbwire.release.xcconfig"; path = "Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.release.xcconfig"; sourceTree = ""; }; + 43810803C6CC48858234BE2E /* YMBarbwire.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = YMBarbwire.podspec; path = ../YMBarbwire.podspec; sourceTree = ""; }; + 59D8DE73CF77450A9BCE2228 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + 6003F58A195388D20070C39A /* YMBarbwire.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YMBarbwire.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 6003F595195388D20070C39A /* YMBarbwire-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "YMBarbwire-Info.plist"; sourceTree = ""; }; + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 6003F59B195388D20070C39A /* YMBarbwire-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "YMBarbwire-Prefix.pch"; sourceTree = ""; }; + 6003F59C195388D20070C39A /* YMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YMAppDelegate.h; sourceTree = ""; }; + 6003F59D195388D20070C39A /* YMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YMAppDelegate.m; sourceTree = ""; }; + 6003F5A0195388D20070C39A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; }; + 6003F5A3195388D20070C39A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; }; + 6003F5A5195388D20070C39A /* YMViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YMViewController.h; sourceTree = ""; }; + 6003F5A6195388D20070C39A /* YMViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YMViewController.m; sourceTree = ""; }; + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 6003F5AE195388D20070C39A /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; + 69A5FAAA3B820767183ECC9C /* Pods-YMBarbwire.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-YMBarbwire.debug.xcconfig"; path = "Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire.debug.xcconfig"; sourceTree = ""; }; + 73FD97728A82C4FE22741F40 /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = ""; }; + CE45932DA20C537B493F6F7B /* libPods-Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + E153D016BC7CCF306D7EE727 /* libPods-YMBarbwire.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-YMBarbwire.a"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6003F587195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, + B46519FC5282BA49BAA4902C /* libPods-YMBarbwire.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AB195388D20070C39A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, + 5E24B2F636740B8E3F008B5D /* libPods-Tests.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6003F581195388D10070C39A = { + isa = PBXGroup; + children = ( + 6003F593195388D20070C39A /* YMBarbwire */, + 6003F5B5195388D20070C39A /* Tests */, + 6003F58C195388D20070C39A /* Frameworks */, + 6003F58B195388D20070C39A /* Products */, + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, + EA14E65767E01909815BC2CA /* Pods */, + ); + sourceTree = ""; + }; + 6003F58B195388D20070C39A /* Products */ = { + isa = PBXGroup; + children = ( + 6003F58A195388D20070C39A /* YMBarbwire.app */, + 6003F5AE195388D20070C39A /* Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 6003F58C195388D20070C39A /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6003F58D195388D20070C39A /* Foundation.framework */, + 6003F58F195388D20070C39A /* CoreGraphics.framework */, + 6003F591195388D20070C39A /* UIKit.framework */, + 6003F5AF195388D20070C39A /* XCTest.framework */, + CE45932DA20C537B493F6F7B /* libPods-Tests.a */, + E153D016BC7CCF306D7EE727 /* libPods-YMBarbwire.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 6003F593195388D20070C39A /* YMBarbwire */ = { + isa = PBXGroup; + children = ( + 6003F59C195388D20070C39A /* YMAppDelegate.h */, + 6003F59D195388D20070C39A /* YMAppDelegate.m */, + 6003F59F195388D20070C39A /* Main_iPhone.storyboard */, + 6003F5A2195388D20070C39A /* Main_iPad.storyboard */, + 6003F5A5195388D20070C39A /* YMViewController.h */, + 6003F5A6195388D20070C39A /* YMViewController.m */, + 6003F5A8195388D20070C39A /* Images.xcassets */, + 6003F594195388D20070C39A /* Supporting Files */, + ); + path = YMBarbwire; + sourceTree = ""; + }; + 6003F594195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F595195388D20070C39A /* YMBarbwire-Info.plist */, + 6003F596195388D20070C39A /* InfoPlist.strings */, + 6003F599195388D20070C39A /* main.m */, + 6003F59B195388D20070C39A /* YMBarbwire-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 6003F5B5195388D20070C39A /* Tests */ = { + isa = PBXGroup; + children = ( + 6003F5BB195388D20070C39A /* Tests.m */, + 6003F5B6195388D20070C39A /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 6003F5B6195388D20070C39A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6003F5B7195388D20070C39A /* Tests-Info.plist */, + 6003F5B8195388D20070C39A /* InfoPlist.strings */, + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + 43810803C6CC48858234BE2E /* YMBarbwire.podspec */, + 59D8DE73CF77450A9BCE2228 /* README.md */, + 2131013D49F24FA49559A269 /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + EA14E65767E01909815BC2CA /* Pods */ = { + isa = PBXGroup; + children = ( + 023B9E401A5172EE0A35A481 /* Pods-Tests.debug.xcconfig */, + 73FD97728A82C4FE22741F40 /* Pods-Tests.release.xcconfig */, + 69A5FAAA3B820767183ECC9C /* Pods-YMBarbwire.debug.xcconfig */, + 27C200C2491D6A897C939FC9 /* Pods-YMBarbwire.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6003F589195388D20070C39A /* YMBarbwire */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "YMBarbwire" */; + buildPhases = ( + 4768C4E4D293A95337197D97 /* Check Pods Manifest.lock */, + 6003F586195388D20070C39A /* Sources */, + 6003F587195388D20070C39A /* Frameworks */, + 6003F588195388D20070C39A /* Resources */, + D28106B4E64FDF70AEA84D25 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = YMBarbwire; + productName = YMBarbwire; + productReference = 6003F58A195388D20070C39A /* YMBarbwire.app */; + productType = "com.apple.product-type.application"; + }; + 6003F5AD195388D20070C39A /* Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */; + buildPhases = ( + 3F0A6DF4948B2325FB840513 /* Check Pods Manifest.lock */, + 6003F5AA195388D20070C39A /* Sources */, + 6003F5AB195388D20070C39A /* Frameworks */, + 6003F5AC195388D20070C39A /* Resources */, + 354B523A5C0AB9240BC2E71F /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 6003F5B4195388D20070C39A /* PBXTargetDependency */, + ); + name = Tests; + productName = YMBarbwireTests; + productReference = 6003F5AE195388D20070C39A /* Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6003F582195388D10070C39A /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = YM; + LastUpgradeCheck = 0510; + ORGANIZATIONNAME = adamkaplan; + TargetAttributes = { + 6003F5AD195388D20070C39A = { + TestTargetID = 6003F589195388D20070C39A; + }; + }; + }; + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "YMBarbwire" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6003F581195388D10070C39A; + productRefGroup = 6003F58B195388D20070C39A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6003F589195388D20070C39A /* YMBarbwire */, + 6003F5AD195388D20070C39A /* Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6003F588195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5A4195388D20070C39A /* Main_iPad.storyboard in Resources */, + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, + 6003F5A1195388D20070C39A /* Main_iPhone.storyboard in Resources */, + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AC195388D20070C39A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 354B523A5C0AB9240BC2E71F /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 3F0A6DF4948B2325FB840513 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + 4768C4E4D293A95337197D97 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + showEnvVarsInLog = 0; + }; + D28106B4E64FDF70AEA84D25 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-YMBarbwire/Pods-YMBarbwire-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6003F586195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F59E195388D20070C39A /* YMAppDelegate.m in Sources */, + 6003F5A7195388D20070C39A /* YMViewController.m in Sources */, + 6003F59A195388D20070C39A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 6003F5AA195388D20070C39A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6003F5BC195388D20070C39A /* Tests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 6003F589195388D20070C39A /* YMBarbwire */; + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 6003F596195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F597195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 6003F59F195388D20070C39A /* Main_iPhone.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6003F5A0195388D20070C39A /* Base */, + ); + name = Main_iPhone.storyboard; + sourceTree = ""; + }; + 6003F5A2195388D20070C39A /* Main_iPad.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6003F5A3195388D20070C39A /* Base */, + ); + name = Main_iPad.storyboard; + sourceTree = ""; + }; + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 6003F5B9195388D20070C39A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6003F5BD195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 6003F5BE195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.1; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 6003F5C0195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69A5FAAA3B820767183ECC9C /* Pods-YMBarbwire.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "YMBarbwire/YMBarbwire-Prefix.pch"; + INFOPLIST_FILE = "YMBarbwire/YMBarbwire-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 6003F5C1195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 27C200C2491D6A897C939FC9 /* Pods-YMBarbwire.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "YMBarbwire/YMBarbwire-Prefix.pch"; + INFOPLIST_FILE = "YMBarbwire/YMBarbwire-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 6003F5C3195388D20070C39A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 023B9E401A5172EE0A35A481 /* Pods-Tests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/YMBarbwire.app/YMBarbwire"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 6003F5C4195388D20070C39A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 73FD97728A82C4FE22741F40 /* Pods-Tests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/YMBarbwire.app/YMBarbwire"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; + INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6003F585195388D10070C39A /* Build configuration list for PBXProject "YMBarbwire" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5BD195388D20070C39A /* Debug */, + 6003F5BE195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "YMBarbwire" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C0195388D20070C39A /* Debug */, + 6003F5C1195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6003F5C3195388D20070C39A /* Debug */, + 6003F5C4195388D20070C39A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6003F582195388D10070C39A /* Project object */; +} diff --git a/Example/YMBarbwire.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/YMBarbwire.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..c215690 --- /dev/null +++ b/Example/YMBarbwire.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/YMBarbwire.xcodeproj/xcshareddata/xcschemes/YMBarbwire-Example.xcscheme b/Example/YMBarbwire.xcodeproj/xcshareddata/xcschemes/YMBarbwire-Example.xcscheme new file mode 100644 index 0000000..dc7a7bf --- /dev/null +++ b/Example/YMBarbwire.xcodeproj/xcshareddata/xcschemes/YMBarbwire-Example.xcscheme @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/YMBarbwire.xcworkspace/contents.xcworkspacedata b/Example/YMBarbwire.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..2329b44 --- /dev/null +++ b/Example/YMBarbwire.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/YMBarbwire/Base.lproj/Main_iPad.storyboard b/Example/YMBarbwire/Base.lproj/Main_iPad.storyboard new file mode 100644 index 0000000..ed3ec34 --- /dev/null +++ b/Example/YMBarbwire/Base.lproj/Main_iPad.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/YMBarbwire/Base.lproj/Main_iPhone.storyboard b/Example/YMBarbwire/Base.lproj/Main_iPhone.storyboard new file mode 100644 index 0000000..62a8da1 --- /dev/null +++ b/Example/YMBarbwire/Base.lproj/Main_iPhone.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/YMBarbwire/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/YMBarbwire/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..f697f61 --- /dev/null +++ b/Example/YMBarbwire/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,53 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/YMBarbwire/Images.xcassets/LaunchImage.launchimage/Contents.json b/Example/YMBarbwire/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..4458b40 --- /dev/null +++ b/Example/YMBarbwire/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,51 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/YMBarbwire/YMAppDelegate.h b/Example/YMBarbwire/YMAppDelegate.h new file mode 100644 index 0000000..a61225c --- /dev/null +++ b/Example/YMBarbwire/YMAppDelegate.h @@ -0,0 +1,15 @@ +// +// YMAppDelegate.h +// YMBarbwire +// +// Created by CocoaPods on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +#import + +@interface YMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Example/YMBarbwire/YMAppDelegate.m b/Example/YMBarbwire/YMAppDelegate.m new file mode 100644 index 0000000..f632a16 --- /dev/null +++ b/Example/YMBarbwire/YMAppDelegate.m @@ -0,0 +1,46 @@ +// +// YMAppDelegate.m +// YMBarbwire +// +// Created by CocoaPods on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +#import "YMAppDelegate.h" + +@implementation YMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Example/YMBarbwire/YMBarbwire-Info.plist b/Example/YMBarbwire/YMBarbwire-Info.plist new file mode 100644 index 0000000..b72f059 --- /dev/null +++ b/Example/YMBarbwire/YMBarbwire-Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main_iPhone + UIMainStoryboardFile~ipad + Main_iPad + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Example/YMBarbwire/YMBarbwire-Prefix.pch b/Example/YMBarbwire/YMBarbwire-Prefix.pch new file mode 100644 index 0000000..82a2bb4 --- /dev/null +++ b/Example/YMBarbwire/YMBarbwire-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Example/YMBarbwire/YMViewController.h b/Example/YMBarbwire/YMViewController.h new file mode 100644 index 0000000..abe333c --- /dev/null +++ b/Example/YMBarbwire/YMViewController.h @@ -0,0 +1,13 @@ +// +// YMViewController.h +// YMBarbwire +// +// Created by adamkaplan on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +#import + +@interface YMViewController : UIViewController + +@end diff --git a/Example/YMBarbwire/YMViewController.m b/Example/YMBarbwire/YMViewController.m new file mode 100644 index 0000000..2b095a2 --- /dev/null +++ b/Example/YMBarbwire/YMViewController.m @@ -0,0 +1,54 @@ +// +// YMViewController.m +// YMBarbwire +// +// Created by adamkaplan on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +#import "YMViewController.h" +#import + +@interface YMViewController () { + dispatch_queue_t _queue; +} +@end + +@implementation YMViewController + +- (void)testViewBarb { + [UIView wireAll]; + + dispatch_async(_queue, ^{ + NSAssert(![NSThread isMainThread], @"Sometimes GCD picks the main thread"); + self.view.frame = CGRectZero; // FAIL + }); + + //[NSThread detachNewThreadSelector:@selector(printDesc) toTarget:self withObject:nil]; +} + +- (void)printDesc { + NSLog(@"View %ld", (long)self.view.tag); +} + +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; + + _queue = dispatch_queue_create("Queue", DISPATCH_QUEUE_CONCURRENT); + + [self testViewBarb]; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Example/YMBarbwire/en.lproj/InfoPlist.strings b/Example/YMBarbwire/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/YMBarbwire/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Example/YMBarbwire/main.m b/Example/YMBarbwire/main.m new file mode 100644 index 0000000..ccd1893 --- /dev/null +++ b/Example/YMBarbwire/main.m @@ -0,0 +1,18 @@ +// +// main.m +// YMBarbwire +// +// Created by adamkaplan on 12/24/2014. +// Copyright (c) 2014 adamkaplan. All rights reserved. +// + +#import + +#import "YMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([YMAppDelegate class])); + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a02bb52 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014 Yahoo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..52d8f15 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# YMBarbwire + +[![CI Status](http://img.shields.io/travis/adamkaplan/YMBarbwire.svg?style=flat)](https://travis-ci.org/adamkaplan/YMBarbwire) +[![Version](https://img.shields.io/cocoapods/v/YMBarbwire.svg?style=flat)](http://cocoadocs.org/docsets/YMBarbwire) +[![License](https://img.shields.io/cocoapods/l/YMBarbwire.svg?style=flat)](http://cocoadocs.org/docsets/YMBarbwire) +[![Platform](https://img.shields.io/cocoapods/p/YMBarbwire.svg?style=flat)](http://cocoadocs.org/docsets/YMBarbwire) + +## Usage + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +YMBarbwire is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + + pod "YMBarbwire" + +## Author + +adamkaplan, adamkaplan@yahoo-inc.com + +## License + +YMBarbwire is available under the MIT license. See the LICENSE file for more info. + diff --git a/YMBarbwire.podspec b/YMBarbwire.podspec new file mode 100644 index 0000000..bb03795 --- /dev/null +++ b/YMBarbwire.podspec @@ -0,0 +1,66 @@ +# +# Be sure to run `pod lib lint YMBarbwire.podspec' to ensure this is a +# valid spec and remove all comments before submitting the spec. +# +# Any lines starting with a # are optional, but encouraged +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = "YMBarbwire" + s.version = "0.0.1" + s.summary = "A short description of YMBarbwire." + s.description = <<-DESC + An optional longer description of YMBarbwire + + * Markdown format. + * Don't worry about the indent, we strip it! + DESC + s.homepage = "https://github.com/adamkaplan/YMBarbwire" + # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" + s.license = 'MIT' + s.author = { "adamkaplan" => "adamkaplan@yahoo-inc.com" } + s.source = { :git => "https://github.com/adamkaplan/YMBarbwire.git", :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/adkap' + + s.platform = :ios, '7.0' + s.requires_arc = true + + s.source_files = 'YMBarbwire/YMBarbwire.h' + + s.subspec 'asm' do |asm| + asm.source_files = 'YMBarbwire/asm/*.s' + asm.compiler_flags = '-fno-modules' + end + + s.subspec 'no-arc' do |noarc| + noarc.source_files = 'YMBarbwire/YMBarb.{m,h}' + noarc.requires_arc = false + noarc.compiler_flags = '-fno-objc-arc' + end + + s.subspec 'core' do |core| + core.dependency 'YMBarbwire/asm' + core.dependency 'YMBarbwire/no-arc' + + core.source_files = 'YMBarbwire/YMBarbwire.m', 'YMBarbwire/YMBarbConfig.{m,h}' + end + + s.subspec 'categories' do |sc| + sc.dependency 'YMBarbwire/core' + + sc.ios.public_header_files = 'YMBarbwire/categories/*.h' + sc.ios.source_files = 'YMBarbwire/categories' + sc.osx.source_files = '' + end + + #s.source_files = 'YMBarbwire' + # s.resource_bundles = { + # 'YMBarbwire' => ['YMBarbwire/*.png'] + # } + + # s.public_header_files = 'YMBarbwire/**/*.h' + # s.frameworks = 'UIKit', 'MapKit' + # s.dependency 'AFNetworking', '~> 2.3' +end diff --git a/YMBarbwire.xcworkspace/contents.xcworkspacedata b/YMBarbwire.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..0dd5c4a --- /dev/null +++ b/YMBarbwire.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/YMBarbwire/YMBarb.h b/YMBarbwire/YMBarb.h new file mode 100644 index 0000000..7293127 --- /dev/null +++ b/YMBarbwire/YMBarb.h @@ -0,0 +1,12 @@ +// +// YMBarb.h +// YMBarbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import + +// Excluding unused arguments & bypassing ARC yields a huge reduction in asm prologue overhead +void* barbWireTestFunction(__unsafe_unretained id me, SEL sel/*, ...*/); \ No newline at end of file diff --git a/YMBarbwire/YMBarb.m b/YMBarbwire/YMBarb.m new file mode 100644 index 0000000..daea2ee --- /dev/null +++ b/YMBarbwire/YMBarb.m @@ -0,0 +1,56 @@ +// +// YMBarb.m +// YMBarbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import "YMBarb.h" +#import "YMBarbConfig.h" +#import + +/* + This file should be compiled with ARC-disabled for performance reasons. + */ + +#define __BW_PRAGMA_PUSH_NO_WARNINGS _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") +#define __BW_PRAGMA_POP_NO_WARNINGS _Pragma("clang diagnostic pop") + + +void* barbWireTestFunction(__unsafe_unretained id self, SEL _cmd/*, ...*/) { + + __unsafe_unretained YMBarbConfig *config = objc_getAssociatedObject(self, _cmd); + if (!config) { + // If the object instance didn't have any config, check it's class instance. "wireAll" + // impls will store the global configs in the class instance itself. Can this cause + // class vs instance selector conflicts? If so, can we fix? + __unsafe_unretained Class clazz = object_getClass(self); + if (clazz != self) { + config = objc_getAssociatedObject(clazz, _cmd); + if (!config) { + return nil; + } + } + } + + if (config->threadPointer) { + NSAssert(config->threadPointer == [NSThread currentThread], // should be equals:? + @"-[%s %s] must be called on thread %@ (was %@)", + object_getClassName(self), sel_getName(_cmd), config->threadPointer, [NSThread currentThread]); + + return config->functionImp; + } + + if (config->queuePointer) { + __BW_PRAGMA_PUSH_NO_WARNINGS // ignore dispatch_get_current_queue() deprecation (allowed for debugging per docs) + NSAssert(config->queuePointer == dispatch_get_current_queue(), + @"-[%s %s] must be called on queue %@ (was %@)", + object_getClassName(self), sel_getName(_cmd), config->queuePointer, dispatch_get_current_queue()); + __BW_PRAGMA_POP_NO_WARNINGS + + return config->functionImp; + } + + return config->functionImp; +} diff --git a/YMBarbwire/YMBarbConfig.h b/YMBarbwire/YMBarbConfig.h new file mode 100644 index 0000000..bdd75df --- /dev/null +++ b/YMBarbwire/YMBarbConfig.h @@ -0,0 +1,18 @@ +// +// YMBarbConfig.h +// Barbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import + +@interface YMBarbConfig : NSObject { + @package + __unsafe_unretained dispatch_queue_t queuePointer; + __unsafe_unretained NSThread *threadPointer; + IMP functionImp; +} + +@end diff --git a/YMBarbwire/YMBarbConfig.m b/YMBarbwire/YMBarbConfig.m new file mode 100644 index 0000000..00f1069 --- /dev/null +++ b/YMBarbwire/YMBarbConfig.m @@ -0,0 +1,13 @@ +// +// YMBarbConfig.m +// YMBarbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import "YMBarbConfig.h" + +@implementation YMBarbConfig + +@end diff --git a/YMBarbwire/YMBarbwire.h b/YMBarbwire/YMBarbwire.h new file mode 100644 index 0000000..b7c525d --- /dev/null +++ b/YMBarbwire/YMBarbwire.h @@ -0,0 +1,25 @@ +// +// YMBarbwire.h +// YMBarbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import + +@interface YMBarbwire : NSObject + +// Add barbwire to an object. If the object is a Class, only class methods may be guarded +// Prefer using the `queue` version of this method. Queues are generally preferable to threads. ++ (void)wire:(id)target selector:(SEL)selector thread:(NSThread *)thread; + ++ (void)wire:(id)target selector:(SEL)selector queue:(dispatch_queue_t)queue; + +// Guard all instances – current and future – of the given class. +// Use this method to directly modify the class object. This would be used in edge cases like UIView, +// where every instance has the same exact config (main thread only). It should be unusual to use +// this method directly. ++ (void)wireInstancesOfClass:(Class)target selector:(SEL)selector thread:(NSThread *)thread; + +@end diff --git a/YMBarbwire/YMBarbwire.m b/YMBarbwire/YMBarbwire.m new file mode 100644 index 0000000..3140351 --- /dev/null +++ b/YMBarbwire/YMBarbwire.m @@ -0,0 +1,84 @@ +// +// Barbwire.m +// Barbwire +// +// Created by Adam Kaplan on 12/22/14. +// Copyright (c) 2014 Adam Kaplan. All rights reserved. +// + +#import "YMBarbwire.h" +#import "YMBarbConfig.h" + +#import + + +////////////////////////////////////////////////////////////////////// +#pragma mark - C Functions +////////////////////////////////////////////////////////////////////// + +extern id messengerHookAsm(id, SEL, ...); + +////////////////////////////////////////////////////////////////////// +// Barbwire Implementations +////////////////////////////////////////////////////////////////////// + +@implementation YMBarbwire + +#pragma mark - Public + ++ (void)wire:(id)target selector:(SEL)selector thread:(NSThread *)thread { + [self p_wire:target selector:selector thread:thread queue:nil modifyMetaClass:YES]; +} + ++ (void)wire:(id)target selector:(SEL)selector queue:(dispatch_queue_t)queue { + [self p_wire:target selector:selector thread:nil queue:queue modifyMetaClass:YES]; +} + ++ (void)wireInstancesOfClass:(Class)target selector:(SEL)selector thread:(NSThread *)thread { + [self p_wire:target selector:selector thread:thread queue:nil modifyMetaClass:NO]; +} + +#pragma mark - Private + ++ (void)p_wire:(id)target selector:(SEL)selector thread:(NSThread *)thread queue:(dispatch_queue_t)queue modifyMetaClass:(BOOL)modifyMetaClass { + + // Need a reference to the original method for this instance to be verified. + // If target is a class, it's "class" will be itself such that [obj class] == [[obj class] class] + // This behavior is used to determine if a class or an instance was passed into target + // If a class was passed in, operate on it's "meta class" instead. A class is actually an instance + // of it's meta class. Therefore a class method is an instance method of some meta class. + Class clazz = [target class]; + if (modifyMetaClass && clazz == target && !class_isMetaClass(clazz)) { + clazz = objc_getMetaClass(class_getName(clazz)); + } + + Method method = class_getInstanceMethod(clazz, selector); + if (!method) { + char prefix = clazz == target ? '+' : '-'; + NSAssert(false, @"Barbwire cannot wire method that does not exist %c[%@ %@]", prefix, clazz, NSStringFromSelector(selector)); + } + + // Swizzle in the verifier method + IMP imp = method_getImplementation(method); + if (imp != (IMP)messengerHookAsm) { + IMP replacedImp = class_replaceMethod(clazz, selector, (IMP)messengerHookAsm, method_getTypeEncoding(method)); + if (replacedImp) { + // If a new method was added (via subclassing), imp is NULL. Chain to the superclass' method. + imp = replacedImp; + } + } + + // Associate the proper barbwire configuration + YMBarbConfig *config = objc_getAssociatedObject(target, selector); + if (!config) { + config = [YMBarbConfig new]; + objc_setAssociatedObject(target, selector, config, OBJC_ASSOCIATION_RETAIN_NONATOMIC); + } + + // Easy to blindly set both. One should always be NULL. + config->threadPointer = thread; + config->queuePointer = queue; + config->functionImp = imp; +} + +@end diff --git a/YMBarbwire/asm/arm64.s b/YMBarbwire/asm/arm64.s new file mode 100644 index 0000000..0620afe --- /dev/null +++ b/YMBarbwire/asm/arm64.s @@ -0,0 +1,129 @@ +// +// AppDelegate-arm64.s +// Barbwire +// +// Created by Adam Kaplan on 12/19/14. +// Copyright (c) 2014 Adam Kaplan. All rights reserved. +// +#ifdef __arm64__ + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#include +#pragma clang diagnostic pop + + +////////////////////////////////////////////////////////////////////// +// Names for relative labels +////////////////////////////////////////////////////////////////////// + +#define YAssertationFailed 100 + +////////////////////////////////////////////////////////////////////// +// +// ENTRY functionName +// +// Assembly directives to begin an exported function. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro ENTRY /* name */ + .text + .align 5 + .globl _$0 +_$0: +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// END_ENTRY functionName +// +// Assembly directives to end an exported function. Just a placeholder, +// a close-parenthesis for ENTRY, until it is needed for something. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro END_ENTRY /* name */ +LExit_$0: +.endmacro + +///////////////////////////////////////////////////////////////////// +// +// SaveRegisters +// +// Pushes a stack frame and saves all registers that might contain +// parameter values. +// +///////////////////////////////////////////////////////////////////// + +.macro SaveRegisters + stp fp, lr, [sp, #-16]! + mov fp, sp + + // save parameter registers: x0..x8, q0..q7 + sub sp, sp, #(10*8 + 8*16) + stp q0, q1, [sp, #(0*16)] + stp q2, q3, [sp, #(2*16)] + stp q4, q5, [sp, #(4*16)] + stp q6, q7, [sp, #(6*16)] + stp x0, x1, [sp, #(8*16+0*8)] + stp x2, x3, [sp, #(8*16+2*8)] + stp x4, x5, [sp, #(8*16+4*8)] + stp x6, x7, [sp, #(8*16+6*8)] + str x8, [sp, #(8*16+8*8)] + +.endmacro + +///////////////////////////////////////////////////////////////////// +// +// RestoreRegisters +// +// Pops a stack frame pushed by SaveRegisters +///////////////////////////////////////////////////////////////////// + +.macro RestoreRegisters + + // restore registers and return + ldp q0, q1, [sp, #(0*16)] + ldp q2, q3, [sp, #(2*16)] + ldp q4, q5, [sp, #(4*16)] + ldp q6, q7, [sp, #(6*16)] + ldp x0, x1, [sp, #(8*16+0*8)] + ldp x2, x3, [sp, #(8*16+2*8)] + ldp x4, x5, [sp, #(8*16+4*8)] + ldp x6, x7, [sp, #(8*16+6*8)] + ldr x8, [sp, #(8*16+8*8)] + + mov sp, fp + ldp fp, lr, [sp], #16 + +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// The Callback! +// +// Save all argument registers, call the checker method, restore +// registers and jump into the target function (which is returned +// by the checker method) +// +////////////////////////////////////////////////////////////////////// + +ENTRY messengerHookAsm + + SaveRegisters // Save parameter registers + bl _barbWireTestFunction // Call function hook + mov x9, x0 // Save the return register + RestoreRegisters // Restore parameter registers + + cbz x9, YAssertationFailed // If assert, return + br x9 // Otherwise call original function + +YAssertationFailed: + ret + +END_ENTRY messengerHookAsm + +#endif \ No newline at end of file diff --git a/YMBarbwire/asm/armv7.s b/YMBarbwire/asm/armv7.s new file mode 100644 index 0000000..cf25a4f --- /dev/null +++ b/YMBarbwire/asm/armv7.s @@ -0,0 +1,79 @@ +// +// AppDelegate-armv7.s +// Barbwire +// +// Created by Adam Kaplan on 12/19/14. +// Copyright (c) 2014 Adam Kaplan. All rights reserved. +// +#ifdef __arm__ + +#include + +#ifndef _ARM_ARCH_7 +# error requires armv7 +#endif + +.syntax unified + +////////////////////////////////////////////////////////////////////// +// Names for relative labels +////////////////////////////////////////////////////////////////////// + +#define YAssertationFailed 100 + +////////////////////////////////////////////////////////////////////// +// +// ENTRY functionName +// +// Assembly directives to begin an exported function. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro ENTRY /* name */ + .text + .thumb + .globl _$0 + .thumb_func +_$0: +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// END_ENTRY functionName +// +// Assembly directives to end an exported function. Just a placeholder, +// a close-parenthesis for ENTRY, until it is needed for something. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro END_ENTRY /* name */ +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// The Callback! +// +// Save all argument registers, call the checker method, restore +// registers and jump into the target function (which is returned +// by the checker method) +// +////////////////////////////////////////////////////////////////////// + +ENTRY messengerHookAsm + stmfd sp!, {r0-r3,lr} // Push return & parameter registers onto the stack + blx _barbWireTestFunction // Call test function hook + mov r12, r0 // Save the return value + ldmfd sp!, {r0-r3,lr} // Pop return & parameter registers from the stack + + cbz r0, YAssertationFailed // If assert, simply return from here (already dead) + //bkpt 1 + bx r12 // Call original function + +YAssertationFailed: + bx lr + +END_ENTRY messengerHookAsm + +#endif \ No newline at end of file diff --git a/YMBarbwire/asm/x86_64.s b/YMBarbwire/asm/x86_64.s new file mode 100644 index 0000000..3ccec86 --- /dev/null +++ b/YMBarbwire/asm/x86_64.s @@ -0,0 +1,182 @@ +// +// AppDelegate-x86-64.s +// Barbwire +// +// Created by Adam Kaplan on 12/15/14. +// Copyright (c) 2014 Adam Kaplan. All rights reserved. +// +#include + +#if __x86_64__ && TARGET_IPHONE_SIMULATOR + +///////////////////////////////////////////////////////////////////// +//Names for relative labels +///////////////////////////////////////////////////////////////////// + +#define YAssertationFailed Y1 + +///////////////////////////////////////////////////////////////////// +// Names for parameter registers. +///////////////////////////////////////////////////////////////////// + +#define a1 rdi +#define a1d edi +#define a1b dil +#define a2 rsi +#define a2d esi +#define a2b sil +#define a3 rdx +#define a3d edx +#define a4 rcx +#define a4d ecx +#define a5 r8 +#define a5d r8d +#define a6 r9 +#define a6d r9d +#define tmp r11 + +///////////////////////////////////////////////////////////////////// +// +// SaveRegisters +// +// Pushes a stack frame and saves all registers that might contain +// parameter values. +// +// On entry: +// stack = ret +// +// On exit: +// %rsp is 16-byte aligned +// +///////////////////////////////////////////////////////////////////// + +.macro SaveRegisters + + push %rbp + .cfi_def_cfa_offset 16 + .cfi_offset rbp, -16 + + mov %rsp, %rbp + .cfi_def_cfa_register rbp + + + sub $$0x80+8, %rsp // +8 for alignment + + movdqa %xmm0, -0x80(%rbp) + push %rax // might be xmm parameter count + movdqa %xmm1, -0x70(%rbp) + push %a1 + movdqa %xmm2, -0x60(%rbp) + push %a2 + movdqa %xmm3, -0x50(%rbp) + push %a3 + movdqa %xmm4, -0x40(%rbp) + push %a4 + movdqa %xmm5, -0x30(%rbp) + push %a5 + movdqa %xmm6, -0x20(%rbp) + push %a6 + movdqa %xmm7, -0x10(%rbp) + +.endmacro + +///////////////////////////////////////////////////////////////////// +// +// RestoreRegisters +// +// Pops a stack frame pushed by SaveRegisters +// +// On entry: +// %rbp unchanged since SaveRegisters +// +// On exit: +// stack = ret +// +///////////////////////////////////////////////////////////////////// + +.macro RestoreRegisters + + movdqa -0x80(%rbp), %xmm0 + pop %a6 + movdqa -0x70(%rbp), %xmm1 + pop %a5 + movdqa -0x60(%rbp), %xmm2 + pop %a4 + movdqa -0x50(%rbp), %xmm3 + pop %a3 + movdqa -0x40(%rbp), %xmm4 + pop %a2 + movdqa -0x30(%rbp), %xmm5 + pop %a1 + movdqa -0x20(%rbp), %xmm6 + pop %rax + movdqa -0x10(%rbp), %xmm7 + + //leave + add $$0x80+8, %rsp // +8 for alignment + mov %rbp, %rsp + pop %rbp + .cfi_def_cfa rsp, 8 + //.cfi_same_value rbp + +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// ENTRY functionName +// +// Assembly directives to begin an exported function. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro ENTRY + .text + .globl _$0 +_$0: + .cfi_startproc +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// END_ENTRY functionName +// +// Assembly directives to end an exported function. Just a placeholder, +// a close-parenthesis for ENTRY, until it is needed for something. +// +// Takes: functionName - name of the exported function +////////////////////////////////////////////////////////////////////// + +.macro END_ENTRY + .cfi_endproc +LExit_$0: +.endmacro + +////////////////////////////////////////////////////////////////////// +// +// The Callback! +// +// Save all argument registers, call the checker method, restore +// registers and jump into the target function (which is returned +// by the checker method) +// +////////////////////////////////////////////////////////////////////// + +ENTRY messengerHookAsm + + //int3 + SaveRegisters + call _barbWireTestFunction + movq %rax, %tmp + RestoreRegisters + + testq %tmp, %tmp + je YAssertationFailed + jmpq *%tmp + +YAssertationFailed: + ret + +END_ENTRY messengerHookAsm + +#endif diff --git a/YMBarbwire/categories/NSObject+YMBarbwire.h b/YMBarbwire/categories/NSObject+YMBarbwire.h new file mode 100644 index 0000000..c304269 --- /dev/null +++ b/YMBarbwire/categories/NSObject+YMBarbwire.h @@ -0,0 +1,25 @@ +// +// NSObject+Barbwire.h +// Barbwire +// +// Created by Adam Kaplan on 12/23/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import + +@interface NSObject (YMBarbwire) + ++ (void)wire:(SEL)selector thread:(NSThread *)thread; + ++ (void)wire:(SEL)selector queue:(dispatch_queue_t)queue; + +@end + +@interface NSObject (BarbwireInstance) + +- (void)wire:(SEL)selector thread:(NSThread *)thread; + +- (void)wire:(SEL)selector queue:(dispatch_queue_t)queue; + +@end diff --git a/YMBarbwire/categories/NSObject+YMBarbwire.m b/YMBarbwire/categories/NSObject+YMBarbwire.m new file mode 100644 index 0000000..4a14d1e --- /dev/null +++ b/YMBarbwire/categories/NSObject+YMBarbwire.m @@ -0,0 +1,34 @@ +// +// NSObject+Barbwire.m +// Barbwire +// +// Created by Adam Kaplan on 12/23/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import "NSObject+YMBarbwire.h" +#import "YMBarbwire.h" + +@implementation NSObject (YMBarbwire) + ++ (void)wire:(SEL)selector thread:(NSThread *)thread { + [YMBarbwire wire:self selector:selector thread:thread]; +} + ++ (void)wire:(SEL)selector queue:(dispatch_queue_t)queue { + [YMBarbwire wire:self selector:selector queue:queue]; +} + +@end + +@implementation NSObject (BarbwireInstance) + +- (void)wire:(SEL)selector thread:(NSThread *)thread { + [YMBarbwire wire:self selector:selector thread:thread]; +} + +- (void)wire:(SEL)selector queue:(dispatch_queue_t)queue { + [YMBarbwire wire:self selector:selector queue:queue]; +} + +@end diff --git a/YMBarbwire/categories/UIView+YMBarbwire.h b/YMBarbwire/categories/UIView+YMBarbwire.h new file mode 100644 index 0000000..561bd5e --- /dev/null +++ b/YMBarbwire/categories/UIView+YMBarbwire.h @@ -0,0 +1,30 @@ +// +// UIView+Barbwire.h +// Barbwire +// +// Created by Adam Kaplan on 12/23/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import + +@interface UIView (YMBarbwire) + +// Guard all methods of UIView, ensuring that they are accessed from the application's main thread. +// Methods of superclasses of UIView that are not overridden by UIView are not included. +// +// UIView documentation (as of Dec 2014) states the following: +// +// "You should always call the methods of the UIView class from code running in the main thread +// of your application. The only time this may not be strictly necessary is when creating the view +// object itself but all other manipulations should occur on the main thread." +// +// For this reason, all methods on UIView should be completely covered. Although an argument can +// be made for not guarding getters, in reality the black-box implementation of a getter may include +// code which mutates internal state. +// +// This method only needs to be called one time to protect all existing and future UIView instances. +// ++ (void)wireAll; + +@end diff --git a/YMBarbwire/categories/UIView+YMBarbwire.m b/YMBarbwire/categories/UIView+YMBarbwire.m new file mode 100644 index 0000000..149c3a1 --- /dev/null +++ b/YMBarbwire/categories/UIView+YMBarbwire.m @@ -0,0 +1,58 @@ +// +// UIView+Barbwire.m +// Barbwire +// +// Created by Adam Kaplan on 12/23/14. +// Copyright (c) 2014 Yahoo. All rights reserved. +// + +#import "UIView+YMBarbwire.h" +#import "YMBarbwire.h" +#import + +static NSArray *prefixBlacklist; + +@implementation UIView (Barbwire) + ++ (void)wireAll { + if (!prefixBlacklist) { + prefixBlacklist = @[ @"alloc", @"init", + @"description", + @"retain", @"release", @"autorelease" ]; + } + + NSThread *mainThread = [NSThread mainThread]; + unsigned int count; + Method *methods = class_copyMethodList(self, &count); + + for (int index = 0; index < count; index++) { + Method method = methods[index]; + SEL selector = method_getName(method); + const char *name = sel_getName(selector); + + //if (*name == '_') { // skip methods that begin with an underscore such as "_internalInit" + if (strchr(name, '_')) { // skip methods with underscores. + continue; + } + + // Skip methods with disallowed prefixes + size_t length = strlen(name); + BOOL skip = NO; + for (NSString *prefix in prefixBlacklist) { + if (prefix.length <= length && 0 == strncmp(prefix.UTF8String, name, prefix.length)) { + skip = YES; + break; + } + } + + if (skip) { + continue; + } + + [YMBarbwire wireInstancesOfClass:self selector:selector thread:mainThread]; + } + + free(methods); +} + +@end