Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Kladek committed Sep 17, 2018
1 parent ac6d331 commit 424cbec
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
All notable changes to this project will be documented in this file.

#### 2.x Releases
- `2.0.x` Releases - [2.0.0](#200)
- `2.0.x` Releases - [2.0.0](#200), [2.1.0](#210)

#### 1.x Releases
- `1.2.x` Releases - [1.2.0](#120), [1.2.1](#121)
- `1.1.x` Releases - [1.1.0](#110)
- `1.0.x` Releases - [1.0.0](#100)

## [2.1.0](https://github.com/skladek/SKWebServiceController/releases/tag/2.1.0)

#### Added
- The ability to create POST requests with a `Data` payload

## [2.0.0](https://github.com/skladek/SKWebServiceController/releases/tag/2.0.0)

#### Added
Expand Down
2 changes: 1 addition & 1 deletion SKWebServiceController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'SKWebServiceController'
spec.version = '2.0.0'
spec.version = '2.1.0'
spec.license = 'MIT'
spec.summary = 'A barebones network controller.'
spec.homepage = 'https://github.com/skladek/SKWebServiceController'
Expand Down
2 changes: 1 addition & 1 deletion Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.0</string>
<string>2.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
8 changes: 8 additions & 0 deletions Source/WebServiceController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ open class WebServiceController: NSObject {
})
}

/// Performs a post request on the url formed from the base URL, endpoint, and parameters.
///
/// - Parameters:
/// - endpoint: The endpoint to perform the request on.
/// - data: The Data object to be included as the request body.
/// - requestConfiguration: A configuration objects affecting only a single request.
/// - completion: The closure called when the request completes.
/// - Returns: The upload task to be performed.
@discardableResult
open func post<T>(_ endpoint: String? = nil, data: Data?, requestConfiguration: RequestConfiguration? = nil, completion: @escaping JSONCompletion<T>) -> URLSessionDataTask? {
return requester.performRequest(data: data, endpoint: endpoint, httpMethod: .post, requestConfiguration: requestConfiguration, completion: { (data, response, error) in
Expand Down

0 comments on commit 424cbec

Please sign in to comment.