diff --git a/.gitignore b/.gitignore index 7be657e..cbb76d2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ GCDKit.xcodeproj/xcuserdata GCDKit.xcodeproj/project.xcworkspace/xcuserdata +DerivedData diff --git a/GCDKit.podspec b/GCDKit.podspec index 157107e..cfa934e 100644 --- a/GCDKit.podspec +++ b/GCDKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "GCDKit" - s.version = "1.1.7" + s.version = "1.1.8" s.license = "MIT" s.summary = "GCDKit is Grand Central Dispatch simplified with Swift" s.homepage = "https://github.com/JohnEstropia/GCDKit" diff --git a/GCDKit/GCDQueue.swift b/GCDKit/GCDQueue.swift index fd7d76f..1e1f3ad 100644 --- a/GCDKit/GCDQueue.swift +++ b/GCDKit/GCDQueue.swift @@ -71,7 +71,7 @@ public enum GCDQueue { /** Creates a custom queue to which blocks can be submitted serially. - - parameter label: A String label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. + - parameter label: An optional string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. - returns: A new custom serial queue. */ public static func createSerial(label: String? = nil) -> GCDQueue { @@ -82,7 +82,7 @@ public enum GCDQueue { /** Creates a custom queue and specifies a target queue to which blocks can be submitted serially. - - parameter label: A String label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. + - parameter label: An optional string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. - parameter targetQueue: The new target queue for the custom queue. - returns: A new custom serial queue. */ @@ -105,7 +105,7 @@ public enum GCDQueue { /** Creates a custom queue and specifies a target queue to which blocks can be submitted concurrently. - - parameter label: A string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. + - parameter label: An optional string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. - parameter targetQueue: The new target queue for the custom queue. - returns: A new custom concurrent queue. */ @@ -302,11 +302,11 @@ public enum GCDQueue { } } - private static func createCustom(isConcurrent isConcurrent: Bool, label: String? = nil, targetQueue: GCDQueue?) -> GCDQueue { + private static func createCustom(isConcurrent isConcurrent: Bool, label: String?, targetQueue: GCDQueue?) -> GCDQueue { let queue = GCDQueue.Custom( dispatch_queue_create( - (label as NSString?)?.UTF8String ?? nil, + label.flatMap { ($0 as NSString).UTF8String } ?? nil, (isConcurrent ? DISPATCH_QUEUE_CONCURRENT : DISPATCH_QUEUE_SERIAL) ) ) diff --git a/GCDKit/Info.plist b/GCDKit/Info.plist index a553e1c..6a6a435 100644 --- a/GCDKit/Info.plist +++ b/GCDKit/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.7 + 1.1.8 CFBundleSignature ???? CFBundleVersion