Skip to content

Commit

Permalink
Merge pull request #51 from CodaFi/x-gon-give-it-to-you
Browse files Browse the repository at this point in the history
Update to Swift 2.2
  • Loading branch information
CodaFi committed Mar 22, 2016
2 parents 15142fa + e6db0e6 commit 95b8978
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 60 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: objective-c
osx_image: xcode7.2
osx_image: xcode7.3
env:
- TEST_CONFIG="RELEASE"
- TEST_CONFIG="PODS"

before_install: true
install: true
script:
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then script/cibuild Swiftx Swiftx-iOS ; fi
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then script/cibuild Swiftx ; fi
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then xcodebuild test -scheme Swiftx-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p' ; fi
- if [[ "$TEST_CONFIG" == "RELEASE" ]]; then xcodebuild build -scheme Swiftx-watchOS -destination 'platform=watchOS Simulator,name=Apple Watch - 42mm' ; fi
- if [[ "$TEST_CONFIG" == "PODS" ]]; then pod lib lint; fi
Expand Down
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "typelift/Operadics" "0.1.4"
github "typelift/SwiftCheck" "v0.4.4"
github "typelift/Operadics" "0.2.0"
github "typelift/SwiftCheck" "v0.6.0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Operadics
Submodule Operadics updated 3 files
+10 −0 Operators.swift
+4 −0 Package.swift
+38 −0 README.md
2 changes: 1 addition & 1 deletion Carthage/Checkouts/SwiftCheck
Submodule SwiftCheck updated 47 files
+25 −0 .github/CONTRIBUTING.md
+35 −0 .github/ISSUE_TEMPLATE.md
+24 −0 .github/PULL_REQUEST_TEMPLATE.md
+38 −11 .travis.yml
+11 −0 Package.swift
+2 −2 README.md
+90 −44 Sources/Arbitrary.swift
+38 −24 Sources/Check.swift
+34 −11 Sources/CoArbitrary.swift
+177 −166 Sources/Gen.swift
+0 −0 Sources/Info.plist
+20 −7 Sources/Lattice.swift
+101 −31 Sources/Modifiers.swift
+246 −0 Sources/Operators.swift
+154 −129 Sources/Property.swift
+69 −30 Sources/Random.swift
+60 −56 Sources/Rose.swift
+28 −14 Sources/State.swift
+0 −0 Sources/SwiftCheck.h
+354 −294 Sources/Test.swift
+28 −19 Sources/TestOperators.swift
+19 −10 Sources/Testable.swift
+34 −26 Sources/Witness.swift
+20 −40 Sources/WitnessedArbitrary.swift
+2 −2 SwiftCheck.podspec
+274 −249 SwiftCheck.xcodeproj/project.pbxproj
+6 −6 SwiftCheck.xcodeproj/xcshareddata/xcschemes/SwiftCheck-iOS.xcscheme
+0 −43 SwiftCheck/Equatable.swift
+0 −52 SwiftCheckTests/PropertySpec.swift
+1 −0 Tests/BooleanIdentitySpec.swift
+18 −23 Tests/ComplexSpec.swift
+1 −0 Tests/DiscardSpec.swift
+2 −1 Tests/FailureSpec.swift
+13 −6 Tests/GenSpec.swift
+0 −0 Tests/Info.plist
+192 −0 Tests/LambdaSpec.swift
+1 −0 Tests/ModifierSpec.swift
+101 −0 Tests/PathSpec.swift
+153 −0 Tests/PropertySpec.swift
+1 −0 Tests/ReplaySpec.swift
+63 −0 Tests/RoseSpec.swift
+1 −0 Tests/ShrinkSpec.swift
+20 −0 Tests/SimpleSpec.swift
+2 −1 Tests/TestSpec.swift
+81 −76 Tutorial.playground/Contents.swift
+0 −6 Tutorial.playground/timeline.xctimeline
+2 −2 script/cibuild
2 changes: 1 addition & 1 deletion Swiftx.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = "9.1"
s.watchos.deployment_target = "2.1"
s.source = { :git => "https://github.com/typelift/Swiftx.git", :tag => "v#{s.version}", :submodules => true }
s.source_files = "Swiftx/*.swift", "Carthage/Checkouts/Operadics/*.swift"
s.source_files = "Swiftx/*.swift", "Carthage/Checkouts/Operadics/Operators.swift"
end

12 changes: 3 additions & 9 deletions Swiftx.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@
84DF767C1B0BDE0A00C912B0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand Down Expand Up @@ -1138,10 +1138,7 @@
APPLICATION_EXTENSION_API_ONLY = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand All @@ -1161,10 +1158,7 @@
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = SwiftxTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
Expand Down
4 changes: 2 additions & 2 deletions Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx-iOS.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "84DF76711B0BDE0A00C912B0"
Expand Down
8 changes: 4 additions & 4 deletions Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -52,11 +52,11 @@
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
Expand All @@ -74,10 +74,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
Expand Down
7 changes: 1 addition & 6 deletions Swiftx/Combinators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ public func const<A, B>(x : A) -> B -> A {
}

/// Flip a function's arguments
public func flip<A, B, C>(f : ((A, B) -> C), b : B, a : A) -> C {
return f(a, b)
}

/// Flip a function's arguments and return a function that takes the arguments in flipped order.
public func flip<A, B, C>(f : (A, B) -> C)(b : B, a : A) -> C {
public func flip<A, B, C>(f : ((A, B) -> C), _ b : B, _ a : A) -> C {
return f(a, b)
}

Expand Down
32 changes: 0 additions & 32 deletions Swiftx/Sections.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1095,14 +1095,6 @@ public prefix func == <T>(rhs : UnsafePointer<T>) -> UnsafePointer<T> -> Bool {
return { lhs in lhs == rhs }
}

public postfix func ==(lhs : Bit) -> Bit -> Bool {
return { rhs in lhs == rhs }
}

public prefix func ==(rhs : Bit) -> Bit -> Bool {
return { lhs in lhs == rhs }
}

public postfix func ==(lhs : UInt) -> UInt -> Bool {
return { rhs in lhs == rhs }
}
Expand Down Expand Up @@ -1400,14 +1392,6 @@ public postfix func == <I>(lhs : ReverseRandomAccessIndex<I>) -> ReverseRandomAc
return { rhs in lhs == rhs }
}

public prefix func == <T : _Strideable>(y : T) -> T -> Bool {
return { x in x == y }
}

public postfix func == <T : _Strideable>(x : T) -> T -> Bool {
return { y in x == y }
}

public postfix func ==(lhs : String) -> String -> Bool {
return { rhs in lhs == rhs }
}
Expand Down Expand Up @@ -1491,14 +1475,6 @@ public prefix func != <T>(rhs : UnsafePointer<T>) -> UnsafePointer<T> -> Bool {
return { lhs in lhs != rhs }
}

public postfix func !=(lhs : Bit) -> Bit -> Bool {
return { rhs in lhs != rhs }
}

public prefix func !=(rhs : Bit) -> Bit -> Bool {
return { lhs in lhs != rhs }
}

public postfix func !=(lhs : UInt) -> UInt -> Bool {
return { rhs in lhs != rhs }
}
Expand Down Expand Up @@ -2057,10 +2033,6 @@ public prefix func >(rhs : UInt64) -> UInt64 -> Bool {
return { lhs in lhs > rhs }
}

public prefix func >(rhs : Bit) -> Bit -> Bool {
return { lhs in lhs > rhs }
}

public prefix func > <T>(rhs : UnsafePointer<T>) -> UnsafePointer<T> -> Bool {
return { lhs in lhs > rhs }
}
Expand Down Expand Up @@ -2162,10 +2134,6 @@ public postfix func <(lhs : UInt64) -> UInt64 -> Bool {
return { rhs in lhs < rhs }
}

public postfix func <(lhs : Bit) -> Bit -> Bool {
return { rhs in lhs < rhs }
}

public postfix func <<T : Hashable>(lhs : SetIndex<T>) -> SetIndex<T> -> Bool {
return { rhs in lhs < rhs }
}
Expand Down

0 comments on commit 95b8978

Please sign in to comment.