motion-pusher 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/motion-pusher/motion-pusher-client.rb +5 -1
- data/lib/motion-pusher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 476bdf6414745edd5e803b0224ebb2e5fa8e2d88
|
|
4
|
+
data.tar.gz: cad9d3b075c56b839691542b8239f7686d7e1c93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fe5663e16290c20216a9c4a1b7955baf98613b005351529f7db69ab0425fb9c104940f238b8e5500dda4e90d84edc1ebb1db5e7129c4c7c48cdfaf1c2392e61
|
|
7
|
+
data.tar.gz: 50567669116c9456d54b9b336dba47cc477dcaaf8f748d3fb6e5b2445342a9ff02fc7b07f4bfd8bb447314eaa2f2072bf17afe3f69af6d69cb6a3e59ca797105
|
|
@@ -19,9 +19,13 @@ class MotionPusherClient
|
|
|
19
19
|
client.subscribeToPrivateChannelNamed(channel)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
def subscribe_to_presence(channel)
|
|
23
|
+
client.subscribeToPresenceChannelNamed(channel)
|
|
24
|
+
end
|
|
25
|
+
|
|
22
26
|
def unsubscribe_from(channel)
|
|
23
27
|
channel = self.client.channelNamed(channel) if channel.is_a? String
|
|
24
|
-
channel.unsubscribe
|
|
28
|
+
channel.unsubscribe if channel
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
def config
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: motion-pusher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Larrabee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: motion-cocoapods
|