Skip to content

Commit

Permalink
Merge pull request #1 from cactuslab/feature/swift-4
Browse files Browse the repository at this point in the history
Feature/swift 4
  • Loading branch information
TomCarey authored Sep 2, 2018
2 parents 0b7fbd4 + 805c560 commit 5345daf
Show file tree
Hide file tree
Showing 14 changed files with 278 additions and 83 deletions.
6 changes: 4 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
platform :ios, '9.0'
use_frameworks!

target 'Succulent_Example' do
pod 'Succulent', :path => '../'



target 'Succulent_Tests' do
inherit! :search_paths

pod 'Succulent', :path => '../'
pod 'Succulent', :path => '../'
end
end
16 changes: 8 additions & 8 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
PODS:
- Embassy (3.1.0)
- Succulent (0.2.0):
- Embassy (~> 3.1.0)
- Embassy (4.0.0)
- Succulent (0.3.1):
- Embassy

DEPENDENCIES:
- Succulent (from `../`)

EXTERNAL SOURCES:
Succulent:
:path: "../"
:path: ../

SPEC CHECKSUMS:
Embassy: 00408403423e4d9d5f21057bec13b1e96e838a32
Succulent: ee64a0964b0a2043bf4ed8a1f9183556c447f89b
Embassy: a01efce4e30c1c6a3c19e6aa27e1b75ca0e1efd3
Succulent: 7f86fed63259e195def10417708873337374e65c

PODFILE CHECKSUM: 60c9c334acbd0ab8d1c4c1f8d8dec7402b22133a
PODFILE CHECKSUM: 7cd1cfcf6f8a40e41dceed9093f40f64c15e361d

COCOAPODS: 1.2.1
COCOAPODS: 1.4.0
50 changes: 41 additions & 9 deletions Example/Succulent.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,16 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0830;
LastUpgradeCheck = 0900;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0830;
LastSwiftMigration = 0900;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0820;
LastSwiftMigration = 0900;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -285,9 +285,14 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Succulent_Example/Pods-Succulent_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Embassy/Embassy.framework",
"${BUILT_PRODUCTS_DIR}/Succulent/Succulent.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Embassy.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Succulent.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -315,13 +320,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Succulent_Tests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
67E0017B1BEC836750F951B1 /* [CP] Embed Pods Frameworks */ = {
Expand All @@ -330,9 +338,14 @@
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Succulent_Tests/Pods-Succulent_Tests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Embassy/Embassy.framework",
"${BUILT_PRODUCTS_DIR}/Succulent/Succulent.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Embassy.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Succulent.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -360,13 +373,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Succulent_Example-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -430,14 +446,20 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
Expand Down Expand Up @@ -477,14 +499,20 @@
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
Expand Down Expand Up @@ -521,7 +549,8 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -536,7 +565,8 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand All @@ -552,7 +582,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -568,7 +599,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -40,6 +40,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down Expand Up @@ -69,6 +70,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
31 changes: 31 additions & 0 deletions Example/Tests/Succulent/Tests_testIgnoreAllParameters.trace
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
HTTP-Trace-Version: 1.0
Generator: Succulent/1.0


Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /query.txt?
Response-Header:<<--EOF-2-
HTTP/1.1 200 OK
Content-Type: text/plain

--EOF-2-
Response-Body:<<--EOF-2-
Success for query
--EOF-2-

Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /query2.txt
Response-Header:<<--EOF-2-
HTTP/1.1 200 OK
Content-Type: text/plain

--EOF-2-
Response-Body:<<--EOF-2-
Success for query
--EOF-2-
38 changes: 38 additions & 0 deletions Example/Tests/Succulent/Tests_testIgnorePostVersioning.trace
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
HTTP-Trace-Version: 1.0
Generator: Succulent/1.0

Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /get1.txt
Response-Body:<<--EOF-1-
get1
--EOF-1-

Method: POST
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /ignore_post.txt
Response-Body:<<--EOF-1-
posted1
--EOF-1-

Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /get2.txt
Response-Body:<<--EOF-1-
get2
--EOF-1-

Method: POST
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /post2.txt
Response-Body:<<--EOF-1-
posted2
--EOF-1-
20 changes: 20 additions & 0 deletions Example/Tests/Succulent/Tests_testPOSTEmptyBody.trace
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
HTTP-Trace-Version: 1.0
Generator: Succulent/1.0

Method: POST
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /testing.txt
Response-Body:<<--EOF-1-
posted
--EOF-1-

Method: GET
Protocol-Version: HTTP/1.1
Protocol: http
Host: www.cactuslab.com
File: /testing.txt
Response-Body:<<--EOF-1-
Hello!
--EOF-1-
Loading

0 comments on commit 5345daf

Please sign in to comment.