Skip to content

Commit

Permalink
Merge pull request #9 from tigran-stdev/master
Browse files Browse the repository at this point in the history
Fixing issue with delete method
  • Loading branch information
Tigran Hamabrdzumyan authored May 10, 2018
2 parents 37d6ed1 + 3344be9 commit 6a401c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/RxRestClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
9A39C51F206A6F180036BA02 /* UIImage+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIImage+Extensions.swift"; sourceTree = "<group>"; };
A42DAEEC8A3AEE1412D49087 /* Pods-RxRestClient_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RxRestClient_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RxRestClient_Example/Pods-RxRestClient_Example.debug.xcconfig"; sourceTree = "<group>"; };
A69909A321AE479CD71890C3 /* Pods_RxRestClient_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxRestClient_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
C5407349FC1D9AC921C11477 /* RxRestClient.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = RxRestClient.podspec; path = ../RxRestClient.podspec; sourceTree = "<group>"; };
C5407349FC1D9AC921C11477 /* RxRestClient.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = RxRestClient.podspec; path = ../RxRestClient.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
C8286D04B278F325D5FEBCD8 /* Pods_RxRestClient_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RxRestClient_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F2D69DA486E24050EF561D90 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down
2 changes: 1 addition & 1 deletion RxRestClient.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxRestClient'
s.version = '0.1.3'
s.version = '0.1.4'
s.summary = 'Simple REST Client based on RxSwift and Alamofire.'

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions RxRestClient/Classes/RxRestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ open class RxRestClient {
/// - endpoint: Relative path of endpoint which will be appended to baseUrl
/// - array: array representing body of request, default value is empty
/// - Returns: An observable of a the response state
public func delete<T: ResponseState>(_ endpoint: String, array: [Any] = []) -> Observable<T> {
public func delete<T: ResponseState>(_ endpoint: String, array: [Any]) -> Observable<T> {
guard let url = buildURL(endpoint) else {
return Observable.error(RxRestClientError.urlBuildFailed)
}
Expand All @@ -233,7 +233,7 @@ open class RxRestClient {
/// - url: absalute url
/// - array: array representing body of request, default value is empty
/// - Returns: An observable of a the response state
public func delete<T: ResponseState>(url: URL, array: [Any] = []) -> Observable<T> {
public func delete<T: ResponseState>(url: URL, array: [Any]) -> Observable<T> {
return run(request(.delete, url, array: array))
}

Expand Down

0 comments on commit 6a401c0

Please sign in to comment.