diff --git a/LIFXHTTPKit.podspec b/LIFXHTTPKit.podspec new file mode 100644 index 0000000..20bad9c --- /dev/null +++ b/LIFXHTTPKit.podspec @@ -0,0 +1,29 @@ +# +# Be sure to run `pod spec lint LIFXHTTPKit.podspec' to ensure this is a +# valid spec and to remove all comments including this before submitting the spec. +# +# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html +# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ +# + +Pod::Spec.new do |s| + + s.name = "LIFXHTTPKit" + s.version = "3.0.1" + s.summary = "A framework for interacting with the LIFX HTTP API that has no external dependencies. Suitable for use inside extensions." + + s.license = { :type => 'MIT', :file => 'LICENSE.txt' } + s.homepage = "https://github.com/tatey/LIFXHTTPKit" + s.author = { "Alex Stonehouse" => "alexander@lifx.co" } + s.source = { :git => "https://github.com/LIFX/LIFXHTTPKit.git", :tag => "#{s.version}" } + + # Version + s.platform = :ios + s.swift_version = "4.0" + s.ios.deployment_target = "8.2" + s.osx.deployment_target = "10.10" + s.watchos.deployment_target = "2.0" + + s.source_files = "Source/**/*" + +end diff --git a/Source/LightTargetSelector.swift b/Source/LightTargetSelector.swift index 1b8966d..c48e7f6 100644 --- a/Source/LightTargetSelector.swift +++ b/Source/LightTargetSelector.swift @@ -33,7 +33,7 @@ public struct LightTargetSelector: Equatable, CustomStringConvertible { if type == .All { self.type = type value = "" - } else if let value = components.last, value.characters.count > 0 { + } else if let value = components.last, value.count > 0 { self.type = type self.value = value } else {