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,24 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+beTruthy.h"
|
2
|
-
#import "EXPMatcherHelpers.h"
|
3
|
-
|
4
|
-
EXPMatcherImplementationBegin(beTruthy, (void)) {
|
5
|
-
match(^BOOL{
|
6
|
-
if([actual isKindOfClass:[NSNumber class]]) {
|
7
|
-
return !![(NSNumber *)actual boolValue];
|
8
|
-
} else if([actual isKindOfClass:[NSValue class]]) {
|
9
|
-
if(EXPIsValuePointer((NSValue *)actual)) {
|
10
|
-
return !![(NSValue *)actual pointerValue];
|
11
|
-
}
|
12
|
-
}
|
13
|
-
return !!actual;
|
14
|
-
});
|
15
|
-
|
16
|
-
failureMessageForTo(^NSString *{
|
17
|
-
return [NSString stringWithFormat:@"expected: a truthy value, got: %@, which is falsy", EXPDescribeObject(actual)];
|
18
|
-
});
|
19
|
-
|
20
|
-
failureMessageForNotTo(^NSString *{
|
21
|
-
return [NSString stringWithFormat:@"expected: a non-truthy value, got: %@, which is truthy", EXPDescribeObject(actual)];
|
22
|
-
});
|
23
|
-
}
|
24
|
-
EXPMatcherImplementationEnd
|
data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beginWith.m
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+beginWith.h"
|
2
|
-
|
3
|
-
EXPMatcherImplementationBegin(beginWith, (id expected)) {
|
4
|
-
BOOL actualIsNil = (actual == nil);
|
5
|
-
BOOL expectedIsNil = (expected == nil);
|
6
|
-
//This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same
|
7
|
-
BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]])
|
8
|
-
|| ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]])
|
9
|
-
|| ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]]));
|
10
|
-
|
11
|
-
prerequisite(^BOOL {
|
12
|
-
return actualAndExpectedAreCompatible;
|
13
|
-
});
|
14
|
-
|
15
|
-
match(^BOOL {
|
16
|
-
if ([actual isKindOfClass:[NSString class]]) {
|
17
|
-
return [actual hasPrefix:expected];
|
18
|
-
} else if ([actual isKindOfClass:[NSArray class]]) {
|
19
|
-
if ([expected count] > [actual count] || [expected count] == 0) {
|
20
|
-
return NO;
|
21
|
-
}
|
22
|
-
NSArray *subArray = [actual subarrayWithRange:NSMakeRange(0, [expected count])];
|
23
|
-
return [subArray isEqualToArray:expected];
|
24
|
-
} else {
|
25
|
-
if ([expected count] > [actual count] || [expected count] == 0) {
|
26
|
-
return NO;
|
27
|
-
}
|
28
|
-
|
29
|
-
NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange(0, [expected count]) copyItems:NO];
|
30
|
-
return [subset isEqualToOrderedSet:expected];
|
31
|
-
}
|
32
|
-
});
|
33
|
-
|
34
|
-
failureMessageForTo(^NSString *{
|
35
|
-
if (actualIsNil) return @"the object is nil/null";
|
36
|
-
if (expectedIsNil) return @"the expected value is nil/null";
|
37
|
-
if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]];
|
38
|
-
return [NSString stringWithFormat:@"expected: %@ to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
39
|
-
});
|
40
|
-
|
41
|
-
failureMessageForNotTo(^NSString *{
|
42
|
-
if (actualIsNil) return @"the object is nil/null";
|
43
|
-
if (expectedIsNil) return @"the expected value is nil/null";
|
44
|
-
if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]];
|
45
|
-
|
46
|
-
return [NSString stringWithFormat:@"expected: %@ not to begin with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
47
|
-
});
|
48
|
-
}
|
49
|
-
EXPMatcherImplementationEnd
|
data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+conformTo.h"
|
2
|
-
#import "NSValue+Expecta.h"
|
3
|
-
#import <objc/runtime.h>
|
4
|
-
|
5
|
-
EXPMatcherImplementationBegin(conformTo, (Protocol *expected)) {
|
6
|
-
BOOL actualIsNil = (actual == nil);
|
7
|
-
BOOL expectedIsNil = (expected == nil);
|
8
|
-
|
9
|
-
prerequisite(^BOOL{
|
10
|
-
return !(actualIsNil || expectedIsNil);
|
11
|
-
});
|
12
|
-
|
13
|
-
match(^BOOL{
|
14
|
-
return [actual conformsToProtocol:expected];
|
15
|
-
});
|
16
|
-
|
17
|
-
failureMessageForTo(^NSString *{
|
18
|
-
if(actualIsNil) return @"the object is nil/null";
|
19
|
-
if(expectedIsNil) return @"the protocol is nil/null";
|
20
|
-
|
21
|
-
NSString *name = NSStringFromProtocol(expected);
|
22
|
-
return [NSString stringWithFormat:@"expected: %@ to conform to %@", actual, name];
|
23
|
-
});
|
24
|
-
|
25
|
-
failureMessageForNotTo(^NSString *{
|
26
|
-
if(actualIsNil) return @"the object is nil/null";
|
27
|
-
if(expectedIsNil) return @"the protocol is nil/null";
|
28
|
-
|
29
|
-
NSString *name = NSStringFromProtocol(expected);
|
30
|
-
return [NSString stringWithFormat:@"expected: %@ not to conform to %@", actual, name];
|
31
|
-
});
|
32
|
-
}
|
33
|
-
EXPMatcherImplementationEnd
|
@@ -1,38 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+contain.h"
|
2
|
-
|
3
|
-
EXPMatcherImplementationBegin(_contain, (id expected)) {
|
4
|
-
BOOL actualIsCompatible = [actual isKindOfClass:[NSString class]] || [actual conformsToProtocol:@protocol(NSFastEnumeration)];
|
5
|
-
BOOL expectedIsNil = (expected == nil);
|
6
|
-
|
7
|
-
prerequisite(^BOOL{
|
8
|
-
return actualIsCompatible && !expectedIsNil;
|
9
|
-
});
|
10
|
-
|
11
|
-
match(^BOOL{
|
12
|
-
if(actualIsCompatible) {
|
13
|
-
if([actual isKindOfClass:[NSString class]]) {
|
14
|
-
return [(NSString *)actual rangeOfString:[expected description]].location != NSNotFound;
|
15
|
-
} else {
|
16
|
-
for (id object in actual) {
|
17
|
-
if ([object isEqual:expected]) {
|
18
|
-
return YES;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
return NO;
|
24
|
-
});
|
25
|
-
|
26
|
-
failureMessageForTo(^NSString *{
|
27
|
-
if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)];
|
28
|
-
if(expectedIsNil) return @"the expected value is nil/null";
|
29
|
-
return [NSString stringWithFormat:@"expected %@ to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
30
|
-
});
|
31
|
-
|
32
|
-
failureMessageForNotTo(^NSString *{
|
33
|
-
if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString or NSFastEnumeration", EXPDescribeObject(actual)];
|
34
|
-
if(expectedIsNil) return @"the expected value is nil/null";
|
35
|
-
return [NSString stringWithFormat:@"expected %@ not to contain %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
36
|
-
});
|
37
|
-
}
|
38
|
-
EXPMatcherImplementationEnd
|
@@ -1,49 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+endWith.h"
|
2
|
-
|
3
|
-
EXPMatcherImplementationBegin(endWith, (id expected)) {
|
4
|
-
BOOL actualIsNil = (actual == nil);
|
5
|
-
BOOL expectedIsNil = (expected == nil);
|
6
|
-
//This condition allows the comparison of an immutable string or ordered collection to the mutable type of the same
|
7
|
-
BOOL actualAndExpectedAreCompatible = (([actual isKindOfClass:[NSString class]] && [expected isKindOfClass:[NSString class]])
|
8
|
-
|| ([actual isKindOfClass:[NSArray class]] && [expected isKindOfClass:[NSArray class]])
|
9
|
-
|| ([actual isKindOfClass:[NSOrderedSet class]] && [expected isKindOfClass:[NSOrderedSet class]]));
|
10
|
-
|
11
|
-
prerequisite(^BOOL {
|
12
|
-
return actualAndExpectedAreCompatible;
|
13
|
-
});
|
14
|
-
|
15
|
-
match(^BOOL {
|
16
|
-
if ([actual isKindOfClass:[NSString class]]) {
|
17
|
-
return [actual hasSuffix:expected];
|
18
|
-
} else if ([actual isKindOfClass:[NSArray class]]) {
|
19
|
-
if ([expected count] > [actual count] || [expected count] == 0) {
|
20
|
-
return NO;
|
21
|
-
}
|
22
|
-
NSArray *subArray = [actual subarrayWithRange:NSMakeRange([actual count] - [expected count], [expected count])];
|
23
|
-
return [subArray isEqualToArray:expected];
|
24
|
-
} else {
|
25
|
-
if ([expected count] > [actual count] || [expected count] == 0) {
|
26
|
-
return NO;
|
27
|
-
}
|
28
|
-
|
29
|
-
NSOrderedSet *subset = [NSOrderedSet orderedSetWithOrderedSet:actual range:NSMakeRange([actual count] - [expected count], [expected count]) copyItems:NO];
|
30
|
-
return [subset isEqualToOrderedSet:expected];
|
31
|
-
}
|
32
|
-
});
|
33
|
-
|
34
|
-
failureMessageForTo(^NSString *{
|
35
|
-
if (actualIsNil) return @"the object is nil/null";
|
36
|
-
if (expectedIsNil) return @"the expected value is nil/null";
|
37
|
-
if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]];
|
38
|
-
return [NSString stringWithFormat:@"expected: %@ to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
39
|
-
});
|
40
|
-
|
41
|
-
failureMessageForNotTo(^NSString *{
|
42
|
-
if (actualIsNil) return @"the object is nil/null";
|
43
|
-
if (expectedIsNil) return @"the expected value is nil/null";
|
44
|
-
if (!actualAndExpectedAreCompatible) return [NSString stringWithFormat:@"%@ and %@ are not instances of one of %@, %@, or %@", EXPDescribeObject(actual), EXPDescribeObject(expected), [NSString class], [NSArray class], [NSOrderedSet class]];
|
45
|
-
|
46
|
-
return [NSString stringWithFormat:@"expected: %@ not to end with %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
|
47
|
-
});
|
48
|
-
}
|
49
|
-
EXPMatcherImplementationEnd
|
@@ -1,24 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+equal.h"
|
2
|
-
#import "EXPMatcherHelpers.h"
|
3
|
-
|
4
|
-
EXPMatcherImplementationBegin(_equal, (id expected)) {
|
5
|
-
match(^BOOL{
|
6
|
-
if((actual == expected) || [actual isEqual:expected]) {
|
7
|
-
return YES;
|
8
|
-
} else if([actual isKindOfClass:[NSNumber class]] && [expected isKindOfClass:[NSNumber class]]) {
|
9
|
-
if(EXPIsNumberFloat((NSNumber *)actual) || EXPIsNumberFloat((NSNumber *)expected)) {
|
10
|
-
return [(NSNumber *)actual floatValue] == [(NSNumber *)expected floatValue];
|
11
|
-
}
|
12
|
-
}
|
13
|
-
return NO;
|
14
|
-
});
|
15
|
-
|
16
|
-
failureMessageForTo(^NSString *{
|
17
|
-
return [NSString stringWithFormat:@"expected: %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)];
|
18
|
-
});
|
19
|
-
|
20
|
-
failureMessageForNotTo(^NSString *{
|
21
|
-
return [NSString stringWithFormat:@"expected: not %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)];
|
22
|
-
});
|
23
|
-
}
|
24
|
-
EXPMatcherImplementationEnd
|
data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#import "Expecta.h"
|
2
|
-
|
3
|
-
EXPMatcherInterface(haveCountOf, (NSUInteger expected));
|
4
|
-
|
5
|
-
#define haveCount haveCountOf
|
6
|
-
#define haveACountOf haveCountOf
|
7
|
-
#define haveLength haveCountOf
|
8
|
-
#define haveLengthOf haveCountOf
|
9
|
-
#define haveALengthOf haveCountOf
|
10
|
-
#define beEmpty() haveCountOf(0)
|
data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.m
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+haveCountOf.h"
|
2
|
-
|
3
|
-
EXPMatcherImplementationBegin(haveCountOf, (NSUInteger expected)) {
|
4
|
-
BOOL actualIsStringy = [actual isKindOfClass:[NSString class]] || [actual isKindOfClass:[NSAttributedString class]];
|
5
|
-
BOOL actualIsCompatible = actualIsStringy || [actual respondsToSelector:@selector(count)];
|
6
|
-
|
7
|
-
prerequisite(^BOOL{
|
8
|
-
return actualIsCompatible;
|
9
|
-
});
|
10
|
-
|
11
|
-
NSUInteger (^count)(id) = ^(id actual) {
|
12
|
-
if(actualIsStringy) {
|
13
|
-
return [actual length];
|
14
|
-
} else {
|
15
|
-
return [actual count];
|
16
|
-
}
|
17
|
-
};
|
18
|
-
|
19
|
-
match(^BOOL{
|
20
|
-
if(actualIsCompatible) {
|
21
|
-
return count(actual) == expected;
|
22
|
-
}
|
23
|
-
return NO;
|
24
|
-
});
|
25
|
-
|
26
|
-
failureMessageForTo(^NSString *{
|
27
|
-
if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)];
|
28
|
-
return [NSString stringWithFormat:@"expected %@ to have a count of %zi but got %zi", EXPDescribeObject(actual), expected, count(actual)];
|
29
|
-
});
|
30
|
-
|
31
|
-
failureMessageForNotTo(^NSString *{
|
32
|
-
if(!actualIsCompatible) return [NSString stringWithFormat:@"%@ is not an instance of NSString, NSAttributedString, NSArray, NSSet, NSOrderedSet, or NSDictionary", EXPDescribeObject(actual)];
|
33
|
-
return [NSString stringWithFormat:@"expected %@ not to have a count of %zi", EXPDescribeObject(actual), expected];
|
34
|
-
});
|
35
|
-
}
|
36
|
-
EXPMatcherImplementationEnd
|
@@ -1,63 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+notify.h"
|
2
|
-
|
3
|
-
EXPMatcherImplementationBegin(notify, (id expected)){
|
4
|
-
BOOL actualIsNil = (actual == nil);
|
5
|
-
BOOL expectedIsNil = (expected == nil);
|
6
|
-
BOOL isNotification = [expected isKindOfClass:[NSNotification class]];
|
7
|
-
BOOL isName = [expected isKindOfClass:[NSString class]];
|
8
|
-
|
9
|
-
__block NSString *expectedName;
|
10
|
-
__block BOOL expectedNotificationOccurred = NO;
|
11
|
-
__block id observer;
|
12
|
-
|
13
|
-
prerequisite(^BOOL{
|
14
|
-
expectedNotificationOccurred = NO;
|
15
|
-
if (actualIsNil || expectedIsNil) return NO;
|
16
|
-
if (isNotification) {
|
17
|
-
expectedName = [expected name];
|
18
|
-
}else if(isName) {
|
19
|
-
expectedName = expected;
|
20
|
-
}else{
|
21
|
-
return NO;
|
22
|
-
}
|
23
|
-
|
24
|
-
observer = [[NSNotificationCenter defaultCenter] addObserverForName:expectedName object:nil queue:nil usingBlock:^(NSNotification *note){
|
25
|
-
if (isNotification) {
|
26
|
-
expectedNotificationOccurred |= [expected isEqual:note];
|
27
|
-
}else{
|
28
|
-
expectedNotificationOccurred = YES;
|
29
|
-
}
|
30
|
-
}];
|
31
|
-
((EXPBasicBlock)actual)();
|
32
|
-
return YES;
|
33
|
-
});
|
34
|
-
|
35
|
-
match(^BOOL{
|
36
|
-
if(expectedNotificationOccurred) {
|
37
|
-
[[NSNotificationCenter defaultCenter] removeObserver:observer];
|
38
|
-
}
|
39
|
-
return expectedNotificationOccurred;
|
40
|
-
});
|
41
|
-
|
42
|
-
failureMessageForTo(^NSString *{
|
43
|
-
if (observer) {
|
44
|
-
[[NSNotificationCenter defaultCenter] removeObserver:observer];
|
45
|
-
}
|
46
|
-
if(actualIsNil) return @"the actual value is nil/null";
|
47
|
-
if(expectedIsNil) return @"the expected value is nil/null";
|
48
|
-
if(!(isNotification || isName)) return @"the actual value is not a notification or string";
|
49
|
-
return [NSString stringWithFormat:@"expected: %@, got: none",expectedName];
|
50
|
-
});
|
51
|
-
|
52
|
-
failureMessageForNotTo(^NSString *{
|
53
|
-
if (observer) {
|
54
|
-
[[NSNotificationCenter defaultCenter] removeObserver:observer];
|
55
|
-
}
|
56
|
-
if(actualIsNil) return @"the actual value is nil/null";
|
57
|
-
if(expectedIsNil) return @"the expected value is nil/null";
|
58
|
-
if(!(isNotification || isName)) return @"the actual value is not a notification or string";
|
59
|
-
return [NSString stringWithFormat:@"expected: none, got: %@", expectedName];
|
60
|
-
});
|
61
|
-
}
|
62
|
-
|
63
|
-
EXPMatcherImplementationEnd
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+raise.h"
|
2
|
-
#import "EXPDefines.h"
|
3
|
-
|
4
|
-
EXPMatcherImplementationBegin(raise, (NSString *expectedExceptionName)) {
|
5
|
-
__block NSException *exceptionCaught = nil;
|
6
|
-
|
7
|
-
match(^BOOL{
|
8
|
-
BOOL expectedExceptionCaught = NO;
|
9
|
-
@try {
|
10
|
-
((EXPBasicBlock)actual)();
|
11
|
-
} @catch(NSException *e) {
|
12
|
-
exceptionCaught = e;
|
13
|
-
expectedExceptionCaught = (expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName];
|
14
|
-
}
|
15
|
-
return expectedExceptionCaught;
|
16
|
-
});
|
17
|
-
|
18
|
-
failureMessageForTo(^NSString *{
|
19
|
-
return [NSString stringWithFormat:@"expected: %@, got: %@",
|
20
|
-
expectedExceptionName ? expectedExceptionName : @"any exception",
|
21
|
-
exceptionCaught ? [exceptionCaught name] : @"no exception"];
|
22
|
-
});
|
23
|
-
|
24
|
-
failureMessageForNotTo(^NSString *{
|
25
|
-
return [NSString stringWithFormat:@"expected: %@, got: %@",
|
26
|
-
expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception",
|
27
|
-
exceptionCaught ? [exceptionCaught name] : @"no exception"];
|
28
|
-
});
|
29
|
-
}
|
30
|
-
EXPMatcherImplementationEnd
|
data/spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.m
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
#import "EXPMatchers+raiseWithReason.h"
|
2
|
-
#import "EXPDefines.h"
|
3
|
-
|
4
|
-
EXPMatcherImplementationBegin(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)) {
|
5
|
-
__block NSException *exceptionCaught = nil;
|
6
|
-
|
7
|
-
match(^BOOL{
|
8
|
-
BOOL expectedExceptionCaught = NO;
|
9
|
-
@try {
|
10
|
-
((EXPBasicBlock)actual)();
|
11
|
-
} @catch(NSException *e) {
|
12
|
-
exceptionCaught = e;
|
13
|
-
expectedExceptionCaught = (((expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]) &&
|
14
|
-
((expectedReason == nil) || ([[exceptionCaught reason] isEqualToString:expectedReason])));
|
15
|
-
}
|
16
|
-
return expectedExceptionCaught;
|
17
|
-
});
|
18
|
-
|
19
|
-
failureMessageForTo(^NSString *{
|
20
|
-
return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)",
|
21
|
-
expectedExceptionName ?: @"any exception",
|
22
|
-
expectedReason ?: @"any reason",
|
23
|
-
exceptionCaught ? [exceptionCaught name] : @"no exception",
|
24
|
-
exceptionCaught ? [exceptionCaught reason] : @""];
|
25
|
-
});
|
26
|
-
|
27
|
-
failureMessageForNotTo(^NSString *{
|
28
|
-
return [NSString stringWithFormat:@"expected: %@ (%@), got: %@ (%@)",
|
29
|
-
expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception",
|
30
|
-
expectedReason ? [NSString stringWithFormat:@"not '%@'", expectedReason] : @"no reason",
|
31
|
-
exceptionCaught ? [exceptionCaught name] : @"no exception",
|
32
|
-
exceptionCaught ? [exceptionCaught reason] : @"no reason"];
|
33
|
-
});
|
34
|
-
}
|
35
|
-
EXPMatcherImplementationEnd
|