Skip to content

Commit f3638ba

Browse files
committed
Bump to version 0.1.6
1 parent 15b6414 commit f3638ba

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 0.1.5
3+
## 0.1.6
44

55
###### Misc
66

PusherSwift.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Pod::Spec.new do |s|
22
s.name = 'PusherSwift'
3-
s.version = '0.1.4'
3+
s.version = '0.1.6'
44
s.summary = 'A Pusher client library in Swift'
5-
s.homepage = 'https://github.com/pusher/pusher-websocket-swift'
5+
s.homepage = 'https://github.com/pusher-community/pusher-websocket-swift'
66
s.license = 'MIT'
77
s.author = { "Hamilton Chapman" => "[email protected]" }
88
s.source = { git: "https://github.com/pusher/pusher-websocket-swift.git", tag: s.version.to_s }

Sources/PusherSwift.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public typealias PusherUserInfoObject = Dictionary<String, AnyObject>
1515
public typealias PusherUserData = PresenceChannelMember
1616

1717
let PROTOCOL = 7
18-
let VERSION = "0.1.4"
18+
let VERSION = "0.1.6"
1919
let CLIENT_NAME = "pusher-websocket-swift"
2020

2121
public class Pusher {
@@ -435,7 +435,7 @@ public class PusherConnection: WebSocketDelegate {
435435
private func sendAuthorisationRequest(endpoint: String, socket: String, channel: PusherChannel, callback: ((Dictionary<String, String>?) -> Void)? = nil) {
436436
var request = NSMutableURLRequest(URL: NSURL(string: "\(endpoint)?socket_id=\(socket)&channel_name=\(channel.name)")!)
437437
request.HTTPMethod = "POST"
438-
438+
439439
if let handler = self.options.authRequestCustomizer {
440440
request = handler(request)
441441
}
@@ -517,23 +517,23 @@ public class PusherConnection: WebSocketDelegate {
517517
if let error = error {
518518
print("Websocket is disconnected: \(error.localizedDescription)")
519519
}
520-
520+
521521
self.connected = false
522522
for (_, channel) in self.channels.channels {
523523
channel.subscribed = false
524524
}
525-
525+
526526
if let reconnect = self.options.autoReconnect where reconnect {
527527
let reachability = try! Reachability.reachabilityForInternetConnection()
528-
528+
529529
if let reachability = try? Reachability.reachabilityForInternetConnection() {
530530

531531
reachability.whenReachable = { reachability in
532532
if !self.connected {
533533
self.socket.connect()
534534
}
535535
}
536-
536+
537537
reachability.whenUnreachable = { reachability in
538538
print("Network unreachable")
539539
}

Tests/PusherSwiftTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class PusherClientInitializationSpec: QuickSpec {
223223

224224
context("with default config") {
225225
it("has the correct conection url") {
226-
expect(pusher.connection.url).to(equal("wss://ws.pusherapp.com:443/app/testKey123?client=pusher-websocket-swift&version=0.1.4&protocol=7"))
226+
expect(pusher.connection.url).to(equal("wss://ws.pusherapp.com:443/app/testKey123?client=pusher-websocket-swift&version=0.1.6&protocol=7"))
227227
}
228228

229229
it("has auth endpoint as nil") {
@@ -263,7 +263,7 @@ class PusherClientInitializationSpec: QuickSpec {
263263
context("unencrypted") {
264264
it("has the correct conection url") {
265265
pusher = Pusher(key: key, options: ["encrypted": false])
266-
expect(pusher.connection.url).to(equal("ws://ws.pusherapp.com:80/app/testKey123?client=pusher-websocket-swift&version=0.1.4&protocol=7"))
266+
expect(pusher.connection.url).to(equal("ws://ws.pusherapp.com:80/app/testKey123?client=pusher-websocket-swift&version=0.1.6&protocol=7"))
267267
}
268268
}
269269

0 commit comments

Comments
 (0)