Skip to content

Commit

Permalink
Bump version to v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ballard committed Jan 3, 2017
1 parent 366a201 commit ea1285e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PMHTTP.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PMHTTP"
s.version = "1.0.4"
s.version = "2.0.0"
s.summary = "Swift/Obj-C HTTP framework with a focus on REST and JSON"

s.description = <<-DESC
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PMHTTP

[![Version](https://img.shields.io/badge/version-v1.0.4-blue.svg)](https://github.com/postmates/PMHTTP/releases/latest)
[![Version](https://img.shields.io/badge/version-v2.0.0-blue.svg)](https://github.com/postmates/PMHTTP/releases/latest)
![Platforms](https://img.shields.io/badge/platforms-ios%20%7C%20osx%20%7C%20watchos%20%7C%20tvos-lightgrey.svg)
![Languages](https://img.shields.io/badge/languages-swift%20%7C%20objc-orange.svg)
![License](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)
Expand Down Expand Up @@ -366,7 +366,7 @@ After installation with any mechanism, you can use this by adding `import PMHTTP
To install using [Carthage][], add the following to your Cartfile:

```
github "postmates/PMHTTP" ~> 1.0
github "postmates/PMHTTP" ~> 2.0
```

This release supports Swift 3.0. For Swift 2.3 you can use
Expand All @@ -379,7 +379,7 @@ github "postmates/PMHTTP" ~> 0.9.3
To install using [CocoaPods](https://cocoapods.org), add the following to your Podfile:

```
pod "PMHTTP", "~> 1.0"
pod "PMHTTP", "~> 2.0"
```

This release supports Swift 3.0. For Swift 2.3 you can use:
Expand All @@ -402,7 +402,7 @@ Unless you explicitly state otherwise, any contribution intentionally submitted

## Version History

#### Development
#### v2.0.0 (2017-01-03)

* Support `text/json` in addition to `application/json`.
* Add 2 convenience methods for uploading `UIImage`s as PNG or JPEG data.
Expand Down
2 changes: 1 addition & 1 deletion Sources/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>1.0.4</string>
<string>2.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 3 additions & 3 deletions Sources/ObjectiveC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ extension HTTPManagerError: CustomNSError {

extension HTTPManagerError {
/// Returns an `NSError` that represents a given `ErrorType`.
@available(*, deprecated, message: "cast the error using `as NSError` instead")
@available(*, unavailable, message: "cast the error using `as NSError` instead")
public static func toNSError(_ error: Error) -> NSError {
return error as NSError
}
Expand All @@ -181,7 +181,7 @@ extension HTTPManagerError {
/// In particular, null values will be stripped and JSON payloads where the top-level value is not an
/// object will be omitted.
/// - SeeAlso: `init?(_ error:)`.
@available(*, deprecated, message: "cast the error using `as NSError` instead")
@available(*, unavailable, message: "cast the error using `as NSError` instead")
public func toNSError() -> NSError {
return self as NSError
}
Expand All @@ -192,7 +192,7 @@ extension HTTPManagerError {
/// In particular, null values will be stripped and JSON payloads where the top-level value is not an
/// object will be omitted from the `NSError` version.
/// - SeeAlso: `toNSError()`.
@available(*, deprecated, message: "cast the error using `as? HTTPManagerError` instead")
@available(*, unavailable, message: "cast the error using `as? HTTPManagerError` instead")
public init?(_ error: NSError) {
guard let httpError = error as? HTTPManagerError else { return nil }
self = httpError
Expand Down
2 changes: 1 addition & 1 deletion Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>2.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit ea1285e

Please sign in to comment.