cocoapods-deintegrate 0.2.1 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/cocoapods/command/deintegrate.rb +51 -0
- data/lib/cocoapods/deintegrate/gem_version.rb +3 -0
- data/lib/cocoapods/deintegrator.rb +123 -0
- data/lib/cocoapods_deintegrate.rb +2 -4
- data/lib/cocoapods_plugin.rb +4 -2
- metadata +14 -649
- data/.gitignore +0 -3
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -74
- data/Rakefile +0 -19
- data/cocoapods_deintegrate.gemspec +0 -21
- data/lib/pod/command/deintegrate.rb +0 -153
- data/spec/command/deintegrate_spec.rb +0 -62
- data/spec/fixtures/Project/Frameworks/Podfile +0 -12
- data/spec/fixtures/Project/Frameworks/Podfile.lock +0 -42
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/QueryKit/QKAttribute.h +0 -210
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/QueryKit/QKQuerySet.h +0 -155
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/QueryKit/QueryKit.h +0 -19
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/Quick/NSString+QCKSelectorName.h +0 -17
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/Quick/QCKDSL.h +0 -211
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/Quick/Quick.h +0 -13
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/Quick/QuickConfiguration.h +0 -30
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Private/Quick/QuickSpec.h +0 -48
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/QueryKit/QKAttribute.h +0 -210
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/QueryKit/QKQuerySet.h +0 -155
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/QueryKit/QueryKit.h +0 -19
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/Quick/NSString+QCKSelectorName.h +0 -17
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/Quick/QCKDSL.h +0 -211
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/Quick/Quick.h +0 -13
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/Quick/QuickConfiguration.h +0 -30
- data/spec/fixtures/Project/Frameworks/Pods/Headers/Public/Quick/QuickSpec.h +0 -48
- data/spec/fixtures/Project/Frameworks/Pods/Manifest.lock +0 -42
- data/spec/fixtures/Project/Frameworks/Pods/Pods.xcodeproj/project.pbxproj +0 -995
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/LICENSE +0 -23
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/Attribute.swift +0 -124
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/Expression.swift +0 -41
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKAttribute.h +0 -210
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKAttribute.m +0 -315
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKAttribute.swift +0 -13
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKQuerySet.h +0 -155
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKQuerySet.m +0 -314
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/ObjectiveC/QKQuerySet.swift +0 -28
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/Predicate.swift +0 -21
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/QueryKit.h +0 -19
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/QueryKit/QuerySet.swift +0 -237
- data/spec/fixtures/Project/Frameworks/Pods/QueryKit/README.md +0 -151
- data/spec/fixtures/Project/Frameworks/Pods/Quick/LICENSE +0 -201
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Callsite.swift +0 -28
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Configuration/Configuration.swift +0 -147
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Configuration/QuickConfiguration.h +0 -30
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Configuration/QuickConfiguration.m +0 -83
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/DSL/DSL.swift +0 -227
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/DSL/QCKDSL.h +0 -211
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/DSL/QCKDSL.m +0 -70
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/DSL/World+DSL.swift +0 -100
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Example.swift +0 -103
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/ExampleGroup.swift +0 -97
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/ExampleMetadata.swift +0 -22
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Failure.swift +0 -16
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Filter.swift +0 -29
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Hooks/Closures.swift +0 -35
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Hooks/ExampleHooks.swift +0 -36
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Hooks/SuiteHooks.swift +0 -34
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/NSString+QCKSelectorName.h +0 -17
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/NSString+QCKSelectorName.m +0 -33
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Quick.h +0 -13
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/QuickSpec.h +0 -48
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/QuickSpec.m +0 -142
- data/spec/fixtures/Project/Frameworks/Pods/Quick/Quick/World.swift +0 -197
- data/spec/fixtures/Project/Frameworks/Pods/Quick/README.md +0 -979
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Info.plist +0 -26
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit-Private.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit-dummy.m +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit-prefix.pch +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit-umbrella.h +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit.modulemap +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit.xcconfig b/data/spec/fixtures/Project/Frameworks/Pods/Target Support → Files/Pods-TestProject-QueryKit/Pods-TestProject-QueryKit.xcconfig +0 -0
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Info.plist +0 -26
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-acknowledgements.markdown +0 -30
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-acknowledgements.plist +0 -60
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-dummy.m +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-environment.h +0 -74
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-frameworks.sh +0 -55
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-resources.sh +0 -74
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-umbrella.h +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject.debug.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject.modulemap +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProject/Pods-TestProject.release.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Info.plist +0 -26
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick-Private.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick-dummy.m +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick-prefix.pch +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick-umbrella.h +0 -11
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick.modulemap +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests-Quick/Pods-TestProjectTests-Quick.xcconfig +0 -2
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Info.plist +0 -26
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-acknowledgements.markdown +0 -208
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-acknowledgements.plist +0 -238
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-dummy.m +0 -5
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-environment.h +0 -14
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-frameworks.sh +0 -55
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-resources.sh +0 -74
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-umbrella.h +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests.debug.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests.modulemap +0 -6
- data/spec/fixtures/Project/Frameworks/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests.release.xcconfig +0 -9
- data/spec/fixtures/Project/Frameworks/TestProject.xcodeproj/project.pbxproj +0 -557
- data/spec/fixtures/Project/Frameworks/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/spec/fixtures/Project/Frameworks/TestProject.xcworkspace/contents.xcworkspacedata +0 -10
- data/spec/fixtures/Project/Frameworks/TestProject/AppDelegate.swift +0 -46
- data/spec/fixtures/Project/Frameworks/TestProject/Base.lproj/LaunchScreen.xib +0 -41
- data/spec/fixtures/Project/Frameworks/TestProject/Base.lproj/Main.storyboard +0 -25
- data/spec/fixtures/Project/Frameworks/TestProject/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- data/spec/fixtures/Project/Frameworks/TestProject/Info.plist +0 -40
- data/spec/fixtures/Project/Frameworks/TestProject/ViewController.swift +0 -25
- data/spec/fixtures/Project/Frameworks/TestProjectTests/Info.plist +0 -24
- data/spec/fixtures/Project/Frameworks/TestProjectTests/TestProjectTests.swift +0 -36
- data/spec/fixtures/Project/None/TestProject.xcodeproj/project.pbxproj +0 -420
- data/spec/fixtures/Project/None/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/spec/fixtures/Project/None/TestProject/AppDelegate.swift +0 -46
- data/spec/fixtures/Project/None/TestProject/Base.lproj/LaunchScreen.xib +0 -41
- data/spec/fixtures/Project/None/TestProject/Base.lproj/Main.storyboard +0 -25
- data/spec/fixtures/Project/None/TestProject/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- data/spec/fixtures/Project/None/TestProject/Info.plist +0 -40
- data/spec/fixtures/Project/None/TestProject/ViewController.swift +0 -25
- data/spec/fixtures/Project/None/TestProjectTests/Info.plist +0 -24
- data/spec/fixtures/Project/None/TestProjectTests/TestProjectTests.swift +0 -36
- data/spec/fixtures/Project/StaticLibraries/Podfile +0 -12
- data/spec/fixtures/Project/StaticLibraries/Podfile.lock +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/LICENSE +0 -19
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/README.md +0 -308
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPBackwardCompatibility.h +0 -42
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPBackwardCompatibility.m +0 -17
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPBlockDefinedMatcher.h +0 -25
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPBlockDefinedMatcher.m +0 -60
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPDefines.h +0 -17
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPDoubleTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPDoubleTuple.m +0 -42
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPExpect.h +0 -45
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPExpect.m +0 -214
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPFloatTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPFloatTuple.m +0 -42
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPMatcher.h +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPUnsupportedObject.h +0 -11
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/EXPUnsupportedObject.m +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/Expecta.h +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/Expecta.m +0 -15
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/ExpectaSupport.h +0 -64
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/ExpectaSupport.m +0 -187
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/NSObject+Expecta.h +0 -14
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/NSValue+Expecta.h +0 -8
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/NSValue+Expecta.m +0 -21
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatcherHelpers.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatcherHelpers.m +0 -9
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.m +0 -49
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.m +0 -30
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beNil.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beNil.m +0 -16
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.m +0 -57
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m +0 -49
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m +0 -33
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+contain.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+contain.m +0 -38
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+endWith.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+endWith.m +0 -49
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+equal.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+equal.m +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m +0 -36
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+notify.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+notify.m +0 -63
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+raise.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+raise.m +0 -30
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m +0 -35
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m +0 -28
- data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers.h +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPBackwardCompatibility.h +0 -42
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h +0 -25
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPDefines.h +0 -17
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPDoubleTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPExpect.h +0 -45
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPFloatTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatcher.h +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+contain.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+equal.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+notify.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+raise.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPMatchers.h +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h +0 -11
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/Expecta.h +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/ExpectaSupport.h +0 -64
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/NSObject+Expecta.h +0 -14
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/Expecta/NSValue+Expecta.h +0 -8
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Private/NSAttributedString+CCLFormat/NSAttributedString+CCLFormat.h +0 -21
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPBackwardCompatibility.h +0 -42
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPBlockDefinedMatcher.h +0 -25
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPDefines.h +0 -17
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPDoubleTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPExpect.h +0 -45
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPFloatTuple.h +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatcher.h +0 -20
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatcherHelpers.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beCloseTo.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beFalsy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beIdenticalTo.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beInTheRangeOf.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beInstanceOf.h +0 -7
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beKindOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beLessThan.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beLessThanOrEqualTo.h +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beNil.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beSubclassOf.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beSupersetOf.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beTruthy.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+beginWith.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+conformTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+contain.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+endWith.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+equal.h +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+haveCountOf.h +0 -10
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+notify.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+raise.h +0 -4
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+raiseWithReason.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers+respondTo.h +0 -3
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPMatchers.h +0 -24
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/EXPUnsupportedObject.h +0 -11
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/Expecta.h +0 -27
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/ExpectaSupport.h +0 -64
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/NSObject+Expecta.h +0 -14
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/Expecta/NSValue+Expecta.h +0 -8
- data/spec/fixtures/Project/StaticLibraries/Pods/Headers/Public/NSAttributedString+CCLFormat/NSAttributedString+CCLFormat.h +0 -21
- data/spec/fixtures/Project/StaticLibraries/Pods/Manifest.lock +0 -13
- data/spec/fixtures/Project/StaticLibraries/Pods/NSAttributedString+CCLFormat/LICENSE +0 -23
- data/spec/fixtures/Project/StaticLibraries/Pods/NSAttributedString+CCLFormat/NSAttributedString+CCLFormat.h +0 -21
- data/spec/fixtures/Project/StaticLibraries/Pods/NSAttributedString+CCLFormat/NSAttributedString+CCLFormat.m +0 -51
- data/spec/fixtures/Project/StaticLibraries/Pods/NSAttributedString+CCLFormat/README.md +0 -57
- data/spec/fixtures/Project/StaticLibraries/Pods/Pods.xcodeproj/project.pbxproj +0 -943
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject-NSAttributedString+CCLFormat/Pods-TestProject-NSAttributedString+CCLFormat-Private.xcconfig +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject-NSAttributedString+CCLFormat/Pods-TestProject-NSAttributedString+CCLFormat-dummy.m +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject-NSAttributedString+CCLFormat/Pods-TestProject-NSAttributedString+CCLFormat-prefix.pch +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject-NSAttributedString+CCLFormat/Pods-TestProject-NSAttributedString+CCLFormat.xcconfig b/data/spec/fixtures/Project/StaticLibraries/Pods/Target Support → Files/Pods-TestProject-NSAttributedString+CCLFormat/Pods-TestProject-NSAttributedString+CCLFormat.xcconfig +0 -0
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-acknowledgements.markdown +0 -30
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-acknowledgements.plist +0 -60
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-dummy.m +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-environment.h +0 -14
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject-resources.sh +0 -74
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject.debug.xcconfig +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProject/Pods-TestProject.release.xcconfig +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests-Expecta/Pods-TestProjectTests-Expecta-Private.xcconfig +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests-Expecta/Pods-TestProjectTests-Expecta-dummy.m +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests-Expecta/Pods-TestProjectTests-Expecta-prefix.pch +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests-Expecta/Pods-TestProjectTests-Expecta.xcconfig +0 -1
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-acknowledgements.markdown +0 -26
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-acknowledgements.plist +0 -56
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-dummy.m +0 -5
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-environment.h +0 -14
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests-resources.sh +0 -74
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests.debug.xcconfig +0 -6
- data/spec/fixtures/Project/StaticLibraries/Pods/Target Support Files/Pods-TestProjectTests/Pods-TestProjectTests.release.xcconfig +0 -6
- data/spec/fixtures/Project/StaticLibraries/TestProject.xcodeproj/project.pbxproj +0 -525
- data/spec/fixtures/Project/StaticLibraries/TestProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- data/spec/fixtures/Project/StaticLibraries/TestProject.xcworkspace/contents.xcworkspacedata +0 -10
- data/spec/fixtures/Project/StaticLibraries/TestProject/AppDelegate.swift +0 -46
- data/spec/fixtures/Project/StaticLibraries/TestProject/Base.lproj/LaunchScreen.xib +0 -41
- data/spec/fixtures/Project/StaticLibraries/TestProject/Base.lproj/Main.storyboard +0 -25
- data/spec/fixtures/Project/StaticLibraries/TestProject/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- data/spec/fixtures/Project/StaticLibraries/TestProject/Info.plist +0 -40
- data/spec/fixtures/Project/StaticLibraries/TestProject/ViewController.swift +0 -25
- data/spec/fixtures/Project/StaticLibraries/TestProjectTests/Info.plist +0 -24
- data/spec/fixtures/Project/StaticLibraries/TestProjectTests/TestProjectTests.swift +0 -36
- data/spec/spec_helper.rb +0 -29
@@ -1,42 +0,0 @@
|
|
1
|
-
#import "EXPExpect.h"
|
2
|
-
|
3
|
-
@interface EXPExpect (BackwardCompatiblity)
|
4
|
-
|
5
|
-
@property(nonatomic, readonly) EXPExpect *Not;
|
6
|
-
@property(nonatomic, readonly) EXPExpect *isGoing;
|
7
|
-
@property(nonatomic, readonly) EXPExpect *isNotGoing;
|
8
|
-
|
9
|
-
@end
|
10
|
-
|
11
|
-
#define toBeFalsy beFalsy
|
12
|
-
#define toBeGreaterThan beGreaterThan
|
13
|
-
#define toBeGreaterThanOrEqualTo beGreaterThanOrEqualTo
|
14
|
-
#define toBeIdenticalTo beIdenticalTo
|
15
|
-
#define toBeInTheRangeOf beInTheRangeOf
|
16
|
-
#define toBeInstanceOf beInstanceOf
|
17
|
-
#define toBeAnInstanceOf beInstanceOf
|
18
|
-
#define toBeMemberOf beInstanceOf
|
19
|
-
#define toBeAMemberOf beInstanceOf
|
20
|
-
#define toBeKindOf beKindOf
|
21
|
-
#define toBeAKindOf beKindOf
|
22
|
-
#define toBeLessThan beLessThan
|
23
|
-
#define toBeLessThanOrEqualTo beLessThanOrEqualTo
|
24
|
-
#define toBeNil beNil
|
25
|
-
#define toBeNull beNil
|
26
|
-
#define toBeSubclassOf beSubclassOf
|
27
|
-
#define toBeASubclassOf beSubclassOf
|
28
|
-
#define toBeTruthy beTruthy
|
29
|
-
#define toBeFalsy beFalsy
|
30
|
-
#define toContain contain
|
31
|
-
#define toEqual equal
|
32
|
-
#define toBeCloseTo beCloseTo
|
33
|
-
#define toBeCloseToWithin beCloseToWithin
|
34
|
-
#define toHaveCount haveCountOf
|
35
|
-
#define toHaveCountOf haveCountOf
|
36
|
-
#define toHaveACountOf haveCountOf
|
37
|
-
#define toHaveLength haveCountOf
|
38
|
-
#define toHaveLengthOf haveCountOf
|
39
|
-
#define toHaveALengthOf haveCountOf
|
40
|
-
#define toBeEmpty beEmpty
|
41
|
-
#define toRaise raise
|
42
|
-
#define toRaiseAny raiseAny
|
@@ -1,17 +0,0 @@
|
|
1
|
-
#import "EXPBackwardCompatibility.h"
|
2
|
-
|
3
|
-
@implementation EXPExpect (BackwardCompatiblity)
|
4
|
-
|
5
|
-
- (EXPExpect *)Not {
|
6
|
-
return self.toNot;
|
7
|
-
}
|
8
|
-
|
9
|
-
- (EXPExpect *)isGoing {
|
10
|
-
return self.will;
|
11
|
-
}
|
12
|
-
|
13
|
-
- (EXPExpect *)isNotGoing {
|
14
|
-
return self.willNot;
|
15
|
-
}
|
16
|
-
|
17
|
-
@end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// EXPRuntimeMatcher.h
|
3
|
-
// Expecta
|
4
|
-
//
|
5
|
-
// Created by Luke Redpath on 26/03/2012.
|
6
|
-
// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#import <Foundation/Foundation.h>
|
10
|
-
#import "EXPMatcher.h"
|
11
|
-
#import "EXPDefines.h"
|
12
|
-
|
13
|
-
@interface EXPBlockDefinedMatcher : NSObject <EXPMatcher> {
|
14
|
-
EXPBoolBlock prerequisiteBlock;
|
15
|
-
EXPBoolBlock matchBlock;
|
16
|
-
EXPStringBlock failureMessageForToBlock;
|
17
|
-
EXPStringBlock failureMessageForNotToBlock;
|
18
|
-
}
|
19
|
-
|
20
|
-
@property(nonatomic, copy) EXPBoolBlock prerequisiteBlock;
|
21
|
-
@property(nonatomic, copy) EXPBoolBlock matchBlock;
|
22
|
-
@property(nonatomic, copy) EXPStringBlock failureMessageForToBlock;
|
23
|
-
@property(nonatomic, copy) EXPStringBlock failureMessageForNotToBlock;
|
24
|
-
|
25
|
-
@end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// EXPRuntimeMatcher.m
|
3
|
-
// Expecta
|
4
|
-
//
|
5
|
-
// Created by Luke Redpath on 26/03/2012.
|
6
|
-
// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#import "EXPBlockDefinedMatcher.h"
|
10
|
-
|
11
|
-
@implementation EXPBlockDefinedMatcher
|
12
|
-
|
13
|
-
- (void)dealloc
|
14
|
-
{
|
15
|
-
self.prerequisiteBlock = nil;
|
16
|
-
self.matchBlock = nil;
|
17
|
-
self.failureMessageForToBlock = nil;
|
18
|
-
self.failureMessageForNotToBlock = nil;
|
19
|
-
|
20
|
-
[super dealloc];
|
21
|
-
}
|
22
|
-
|
23
|
-
@synthesize prerequisiteBlock;
|
24
|
-
@synthesize matchBlock;
|
25
|
-
@synthesize failureMessageForToBlock;
|
26
|
-
@synthesize failureMessageForNotToBlock;
|
27
|
-
|
28
|
-
- (BOOL)meetsPrerequesiteFor:(id)actual
|
29
|
-
{
|
30
|
-
if (self.prerequisiteBlock) {
|
31
|
-
return self.prerequisiteBlock();
|
32
|
-
}
|
33
|
-
return YES;
|
34
|
-
}
|
35
|
-
|
36
|
-
- (BOOL)matches:(id)actual
|
37
|
-
{
|
38
|
-
if (self.matchBlock) {
|
39
|
-
return self.matchBlock();
|
40
|
-
}
|
41
|
-
return YES;
|
42
|
-
}
|
43
|
-
|
44
|
-
- (NSString *)failureMessageForTo:(id)actual
|
45
|
-
{
|
46
|
-
if (self.failureMessageForToBlock) {
|
47
|
-
return self.failureMessageForToBlock();
|
48
|
-
}
|
49
|
-
return nil;
|
50
|
-
}
|
51
|
-
|
52
|
-
- (NSString *)failureMessageForNotTo:(id)actual
|
53
|
-
{
|
54
|
-
if (self.failureMessageForNotToBlock) {
|
55
|
-
return self.failureMessageForNotToBlock();
|
56
|
-
}
|
57
|
-
return nil;
|
58
|
-
}
|
59
|
-
|
60
|
-
@end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// EXPDefines.h
|
3
|
-
// Expecta
|
4
|
-
//
|
5
|
-
// Created by Luke Redpath on 26/03/2012.
|
6
|
-
// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#ifndef Expecta_EXPDefines_h
|
10
|
-
#define Expecta_EXPDefines_h
|
11
|
-
|
12
|
-
typedef void (^EXPBasicBlock)();
|
13
|
-
typedef id (^EXPIdBlock)();
|
14
|
-
typedef BOOL (^EXPBoolBlock)();
|
15
|
-
typedef NSString *(^EXPStringBlock)();
|
16
|
-
|
17
|
-
#endif
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
|
3
|
-
@interface EXPDoubleTuple : NSObject {
|
4
|
-
double *_values;
|
5
|
-
size_t _size;
|
6
|
-
}
|
7
|
-
|
8
|
-
@property (nonatomic, assign) double *values;
|
9
|
-
@property (nonatomic, assign) size_t size;
|
10
|
-
|
11
|
-
- (id)initWithDoubleValues:(double *)values size:(size_t)size;
|
12
|
-
|
13
|
-
@end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
#import "EXPDoubleTuple.h"
|
2
|
-
|
3
|
-
@implementation EXPDoubleTuple
|
4
|
-
|
5
|
-
@synthesize values = _values, size = _size;
|
6
|
-
|
7
|
-
- (id)initWithDoubleValues:(double *)values size:(size_t)size {
|
8
|
-
if ((self = [super init])) {
|
9
|
-
self.values = malloc(sizeof(double) * size);
|
10
|
-
memcpy(self.values, values, sizeof(double) * size);
|
11
|
-
self.size = size;
|
12
|
-
}
|
13
|
-
return self;
|
14
|
-
}
|
15
|
-
|
16
|
-
- (void)dealloc {
|
17
|
-
free(self.values);
|
18
|
-
[super dealloc];
|
19
|
-
}
|
20
|
-
|
21
|
-
- (BOOL)isEqual:(id)object {
|
22
|
-
if (![object isKindOfClass:[EXPDoubleTuple class]]) return NO;
|
23
|
-
EXPDoubleTuple *other = (EXPDoubleTuple *)object;
|
24
|
-
if (self.size == other.size) {
|
25
|
-
for (int i = 0; i < self.size; ++i) {
|
26
|
-
if (self.values[i] != other.values[i]) return NO;
|
27
|
-
}
|
28
|
-
return YES;
|
29
|
-
}
|
30
|
-
return NO;
|
31
|
-
}
|
32
|
-
|
33
|
-
- (NSString *)description {
|
34
|
-
if (self.size == 2) {
|
35
|
-
return [NSString stringWithFormat:@"Double tuple: {%f, %f}", self.values[0], self.values[1]];
|
36
|
-
} else if (self.size == 4) {
|
37
|
-
return [NSString stringWithFormat:@"Double tuple: {%f, %f, %f, %f}", self.values[0], self.values[1], self.values[2], self.values[3]];
|
38
|
-
}
|
39
|
-
return [NSString stringWithFormat:@"Double tuple of unexpected size %zd, sadly", self.size];
|
40
|
-
}
|
41
|
-
|
42
|
-
@end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
#import "EXPMatcher.h"
|
3
|
-
#import "EXPDefines.h"
|
4
|
-
|
5
|
-
@interface EXPExpect : NSObject {
|
6
|
-
EXPIdBlock _actualBlock;
|
7
|
-
id _testCase;
|
8
|
-
int _lineNumber;
|
9
|
-
char *_fileName;
|
10
|
-
BOOL _negative;
|
11
|
-
BOOL _asynchronous;
|
12
|
-
NSTimeInterval _timeout;
|
13
|
-
}
|
14
|
-
|
15
|
-
@property(nonatomic, copy) EXPIdBlock actualBlock;
|
16
|
-
@property(nonatomic, readonly) id actual;
|
17
|
-
@property(nonatomic, assign) id testCase;
|
18
|
-
@property(nonatomic) int lineNumber;
|
19
|
-
@property(nonatomic) const char *fileName;
|
20
|
-
@property(nonatomic) BOOL negative;
|
21
|
-
@property(nonatomic) BOOL asynchronous;
|
22
|
-
@property(nonatomic) NSTimeInterval timeout;
|
23
|
-
|
24
|
-
@property(nonatomic, readonly) EXPExpect *to;
|
25
|
-
@property(nonatomic, readonly) EXPExpect *toNot;
|
26
|
-
@property(nonatomic, readonly) EXPExpect *notTo;
|
27
|
-
@property(nonatomic, readonly) EXPExpect *will;
|
28
|
-
@property(nonatomic, readonly) EXPExpect *willNot;
|
29
|
-
@property(nonatomic, readonly) EXPExpect *(^after)(NSTimeInterval timeInterval);
|
30
|
-
|
31
|
-
- (id)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName;
|
32
|
-
+ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName;
|
33
|
-
|
34
|
-
- (void)applyMatcher:(id<EXPMatcher>)matcher;
|
35
|
-
- (void)applyMatcher:(id<EXPMatcher>)matcher to:(NSObject **)actual;
|
36
|
-
|
37
|
-
@end
|
38
|
-
|
39
|
-
@interface EXPDynamicPredicateMatcher : NSObject <EXPMatcher> {
|
40
|
-
EXPExpect *_expectation;
|
41
|
-
SEL _selector;
|
42
|
-
}
|
43
|
-
- (id)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector;
|
44
|
-
- (void (^)(void))dispatch;
|
45
|
-
@end
|
@@ -1,214 +0,0 @@
|
|
1
|
-
#import "EXPExpect.h"
|
2
|
-
#import "NSObject+Expecta.h"
|
3
|
-
#import "Expecta.h"
|
4
|
-
#import "EXPUnsupportedObject.h"
|
5
|
-
#import "EXPMatcher.h"
|
6
|
-
#import "EXPBlockDefinedMatcher.h"
|
7
|
-
#import <libkern/OSAtomic.h>
|
8
|
-
|
9
|
-
@implementation EXPExpect
|
10
|
-
|
11
|
-
@dynamic
|
12
|
-
actual,
|
13
|
-
to,
|
14
|
-
toNot,
|
15
|
-
notTo,
|
16
|
-
will,
|
17
|
-
willNot,
|
18
|
-
after;
|
19
|
-
|
20
|
-
@synthesize
|
21
|
-
actualBlock=_actualBlock,
|
22
|
-
testCase=_testCase,
|
23
|
-
negative=_negative,
|
24
|
-
asynchronous=_asynchronous,
|
25
|
-
timeout=_timeout,
|
26
|
-
lineNumber=_lineNumber,
|
27
|
-
fileName=_fileName;
|
28
|
-
|
29
|
-
- (id)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName {
|
30
|
-
self = [super init];
|
31
|
-
if(self) {
|
32
|
-
self.actualBlock = actualBlock;
|
33
|
-
self.testCase = testCase;
|
34
|
-
self.negative = NO;
|
35
|
-
self.asynchronous = NO;
|
36
|
-
self.timeout = [Expecta asynchronousTestTimeout];
|
37
|
-
self.lineNumber = lineNumber;
|
38
|
-
self.fileName = fileName;
|
39
|
-
}
|
40
|
-
return self;
|
41
|
-
}
|
42
|
-
|
43
|
-
- (void)dealloc
|
44
|
-
{
|
45
|
-
self.actualBlock = nil;
|
46
|
-
[super dealloc];
|
47
|
-
}
|
48
|
-
|
49
|
-
+ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName {
|
50
|
-
return [[[EXPExpect alloc] initWithActualBlock:actualBlock testCase:(id)testCase lineNumber:lineNumber fileName:fileName] autorelease];
|
51
|
-
}
|
52
|
-
|
53
|
-
#pragma mark -
|
54
|
-
|
55
|
-
- (EXPExpect *)to {
|
56
|
-
return self;
|
57
|
-
}
|
58
|
-
|
59
|
-
- (EXPExpect *)toNot {
|
60
|
-
self.negative = !self.negative;
|
61
|
-
return self;
|
62
|
-
}
|
63
|
-
|
64
|
-
- (EXPExpect *)notTo {
|
65
|
-
return [self toNot];
|
66
|
-
}
|
67
|
-
|
68
|
-
- (EXPExpect *)will {
|
69
|
-
self.asynchronous = YES;
|
70
|
-
return self;
|
71
|
-
}
|
72
|
-
|
73
|
-
- (EXPExpect *)willNot {
|
74
|
-
return self.will.toNot;
|
75
|
-
}
|
76
|
-
|
77
|
-
- (EXPExpect *(^)(NSTimeInterval))after
|
78
|
-
{
|
79
|
-
EXPExpect * (^block)(NSTimeInterval) = [^EXPExpect *(NSTimeInterval timeout) {
|
80
|
-
self.asynchronous = YES;
|
81
|
-
self.timeout = timeout;
|
82
|
-
return self;
|
83
|
-
} copy];
|
84
|
-
|
85
|
-
return [block autorelease];
|
86
|
-
}
|
87
|
-
|
88
|
-
#pragma mark -
|
89
|
-
|
90
|
-
- (id)actual {
|
91
|
-
if(self.actualBlock) {
|
92
|
-
return self.actualBlock();
|
93
|
-
}
|
94
|
-
return nil;
|
95
|
-
}
|
96
|
-
|
97
|
-
- (void)applyMatcher:(id<EXPMatcher>)matcher
|
98
|
-
{
|
99
|
-
id actual = [self actual];
|
100
|
-
[self applyMatcher:matcher to:&actual];
|
101
|
-
}
|
102
|
-
|
103
|
-
- (void)applyMatcher:(id<EXPMatcher>)matcher to:(NSObject **)actual {
|
104
|
-
if([*actual isKindOfClass:[EXPUnsupportedObject class]]) {
|
105
|
-
EXPFail(self.testCase, self.lineNumber, self.fileName,
|
106
|
-
[NSString stringWithFormat:@"expecting a %@ is not supported", ((EXPUnsupportedObject *)*actual).type]);
|
107
|
-
} else {
|
108
|
-
BOOL failed = NO;
|
109
|
-
if([matcher respondsToSelector:@selector(meetsPrerequesiteFor:)] &&
|
110
|
-
![matcher meetsPrerequesiteFor:*actual]) {
|
111
|
-
failed = YES;
|
112
|
-
} else {
|
113
|
-
BOOL matchResult = NO;
|
114
|
-
if(self.asynchronous) {
|
115
|
-
NSTimeInterval timeOut = self.timeout;
|
116
|
-
NSDate *expiryDate = [NSDate dateWithTimeIntervalSinceNow:timeOut];
|
117
|
-
while(1) {
|
118
|
-
matchResult = [matcher matches:*actual];
|
119
|
-
failed = self.negative ? matchResult : !matchResult;
|
120
|
-
if(!failed || ([(NSDate *)[NSDate date] compare:expiryDate] == NSOrderedDescending)) {
|
121
|
-
break;
|
122
|
-
}
|
123
|
-
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
|
124
|
-
OSMemoryBarrier();
|
125
|
-
*actual = self.actual;
|
126
|
-
}
|
127
|
-
} else {
|
128
|
-
matchResult = [matcher matches:*actual];
|
129
|
-
}
|
130
|
-
failed = self.negative ? matchResult : !matchResult;
|
131
|
-
}
|
132
|
-
if(failed) {
|
133
|
-
NSString *message = nil;
|
134
|
-
|
135
|
-
if(self.negative) {
|
136
|
-
if ([matcher respondsToSelector:@selector(failureMessageForNotTo:)]) {
|
137
|
-
message = [matcher failureMessageForNotTo:*actual];
|
138
|
-
}
|
139
|
-
} else {
|
140
|
-
if ([matcher respondsToSelector:@selector(failureMessageForTo:)]) {
|
141
|
-
message = [matcher failureMessageForTo:*actual];
|
142
|
-
}
|
143
|
-
}
|
144
|
-
if (message == nil) {
|
145
|
-
message = @"Match Failed.";
|
146
|
-
}
|
147
|
-
|
148
|
-
EXPFail(self.testCase, self.lineNumber, self.fileName, message);
|
149
|
-
}
|
150
|
-
}
|
151
|
-
self.negative = NO;
|
152
|
-
}
|
153
|
-
|
154
|
-
#pragma mark - Dynamic predicate dispatch
|
155
|
-
|
156
|
-
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
157
|
-
{
|
158
|
-
if ([self.actual respondsToSelector:aSelector]) {
|
159
|
-
return [self.actual methodSignatureForSelector:aSelector];
|
160
|
-
}
|
161
|
-
return [super methodSignatureForSelector:aSelector];
|
162
|
-
}
|
163
|
-
|
164
|
-
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
165
|
-
{
|
166
|
-
if ([self.actual respondsToSelector:anInvocation.selector]) {
|
167
|
-
EXPDynamicPredicateMatcher *matcher = [[EXPDynamicPredicateMatcher alloc] initWithExpectation:self selector:anInvocation.selector];
|
168
|
-
[anInvocation setSelector:@selector(dispatch)];
|
169
|
-
[anInvocation invokeWithTarget:matcher];
|
170
|
-
[matcher release];
|
171
|
-
}
|
172
|
-
else {
|
173
|
-
[super forwardInvocation:anInvocation];
|
174
|
-
}
|
175
|
-
}
|
176
|
-
|
177
|
-
@end
|
178
|
-
|
179
|
-
@implementation EXPDynamicPredicateMatcher
|
180
|
-
|
181
|
-
- (id)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector
|
182
|
-
{
|
183
|
-
if ((self = [super init])) {
|
184
|
-
_expectation = expectation;
|
185
|
-
_selector = selector;
|
186
|
-
}
|
187
|
-
return self;
|
188
|
-
}
|
189
|
-
|
190
|
-
- (BOOL)matches:(id)actual
|
191
|
-
{
|
192
|
-
return (BOOL)[actual performSelector:_selector];
|
193
|
-
}
|
194
|
-
|
195
|
-
- (NSString *)failureMessageForTo:(id)actual
|
196
|
-
{
|
197
|
-
return [NSString stringWithFormat:@"expected %@ to be true", NSStringFromSelector(_selector)];
|
198
|
-
}
|
199
|
-
|
200
|
-
- (NSString *)failureMessageForNotTo:(id)actual
|
201
|
-
{
|
202
|
-
return [NSString stringWithFormat:@"expected %@ to be false", NSStringFromSelector(_selector)];
|
203
|
-
}
|
204
|
-
|
205
|
-
- (void (^)(void))dispatch
|
206
|
-
{
|
207
|
-
__block id blockExpectation = _expectation;
|
208
|
-
|
209
|
-
return [[^{
|
210
|
-
[blockExpectation applyMatcher:self];
|
211
|
-
} copy] autorelease];
|
212
|
-
}
|
213
|
-
|
214
|
-
@end
|