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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05df5b5ce41e1ce229ac9426bd116a2b1b9d7ae3
4
- data.tar.gz: ab4dad2e03bb63c55805a1d14d9f7820f5e098e7
3
+ metadata.gz: 476bdf6414745edd5e803b0224ebb2e5fa8e2d88
4
+ data.tar.gz: cad9d3b075c56b839691542b8239f7686d7e1c93
5
5
  SHA512:
6
- metadata.gz: 7786f88029d8344b75db4275e89ec173ccf761573246a94ce795e78450e342768adb0ff6c6b613bc3dfa56f5832b5d7fac6c21662fa396239c7d8a2dd9f0750b
7
- data.tar.gz: f55639e3cfd0244b281fcf9ee2f707a3704654f5e859df5f94ab4ccb09414a66785a01fac99cb802d0bcd047e6aae6c099d94aafc275367fbc5fe7e6637378dd
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
@@ -1,3 +1,3 @@
1
1
  module MotionPusher
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-10-27 00:00:00.000000000 Z
11
+ date: 2014-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods