bump version

This commit is contained in:
Erik 2016-09-14 07:22:27 -04:00
parent 83ac8c9ac2
commit 79e22b7d07
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D
2 changed files with 10 additions and 8 deletions

View File

@ -6,7 +6,7 @@ Socket.IO-client for iOS/OS X.
##Example
```swift
import SocketIO
let socket = SocketIOClient(socketURL: NSURL(string: "http://localhost:8080")!, config: [.log(true), .forcePolling(true)])
let socket = SocketIOClient(socketURL: URL(string: "http://localhost:8080")!, config: [.log(true), .forcePolling(true)])
socket.on("connect") {data, ack in
print("socket connected")
@ -14,7 +14,7 @@ socket.on("connect") {data, ack in
socket.on("currentAmount") {data, ack in
if let cur = data[0] as? Double {
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
socket.emitWithAck("canUpdate", cur)(0) {data in
socket.emit("update", ["amount": cur + 2.50])
}
@ -59,6 +59,8 @@ SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{
##Installation
Requires Swift 3/Xcode 8.x
If you need swift 2.3 use the swift2.3 branch (Pre-Swift 3 support is no longer maintained)
If you need swift 2.2 use 7.x (Pre-Swift 3 support is no longer maintained)
If you need Swift 2.1 use v5.5.0 (Pre-Swift 2.2 support is no longer maintained)
@ -81,7 +83,7 @@ import PackageDescription
let package = Package(
name: "YourSocketIOProject",
dependencies: [
.Package(url: "https://github.com/socketio/socket.io-client-swift", majorVersion: 6)
.Package(url: "https://github.com/socketio/socket.io-client-swift", majorVersion: 8)
]
)
```
@ -92,7 +94,7 @@ Carthage
-----------------
Add this line to your `Cartfile`:
```
github "socketio/socket.io-client-swift" ~> 7.0.3 # Or latest version
github "socketio/socket.io-client-swift" ~> 8.0.0 # Or latest version
```
Run `carthage update --platform ios,macosx`.
@ -105,7 +107,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
use_frameworks!
target 'YourApp' do
pod 'Socket.IO-Client-Swift', '~> 7.0.3' # Or latest version
pod 'Socket.IO-Client-Swift', '~> 8.0.0' # Or latest version
end
```
@ -134,7 +136,7 @@ CocoaSeeds
Add this line to your `Seedfile`:
```
github "socketio/socket.io-client-swift", "v7.0.3", :files => "Source/*.swift" # Or latest version
github "socketio/socket.io-client-swift", "v8.0.0", :files => "Source/*.swift" # Or latest version
```
Run `seed install`.

View File

@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Socket.IO-Client-Swift"
s.module_name = "SocketIO"
s.version = "7.0.3"
s.version = "8.0.0"
s.summary = "Socket.IO-client for iOS and OS X"
s.description = <<-DESC
Socket.IO-client for iOS and OS X.
@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v7.0.3' }
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v8.0.0' }
s.source_files = "Source/**/*.swift"
s.requires_arc = true
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files