Skip to content

Commit

Permalink
Fixes in order to publsh the new release verions to cocoa pods.
Browse files Browse the repository at this point in the history
  • Loading branch information
elenipapanik committed Feb 3, 2020
1 parent 1e50d79 commit 1c383a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

1 change: 1 addition & 0 deletions ErrorHandler.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Pod::Spec.new do |s|
s.name = "ErrorHandler"
s.version = "0.8.2"
s.swift_versions = ['4.2', '5.0']
s.summary = "Elegant and flexible error handling for Swift"
s.description = <<-DESC
> Elegant and flexible error handling for Swift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import Foundation

public extension ErrorHandler {

public func onAFError(withStatus statusCode: Int, do action: @escaping ErrorAction) -> ErrorHandler {
func onAFError(withStatus statusCode: Int, do action: @escaping ErrorAction) -> ErrorHandler {
let matcher = AFErrorStatusCodeMatcher(statusCode: statusCode)
return self.on(matcher, do: action)
}

public func onAFError(withStatus range: Range<Int>, do action: @escaping ErrorAction) -> ErrorHandler {
func onAFError(withStatus range: Range<Int>, do action: @escaping ErrorAction) -> ErrorHandler {
let matcher = AFErrorStatusCodeMatcher(range)
return self.on(matcher, do: action)
}
Expand Down

0 comments on commit 1c383a2

Please sign in to comment.