faye_tracking 0.2.0 → 0.2.1

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: 7fcbc653ce1ea17f6709545fd5ac543cee22bfae
4
- data.tar.gz: 4ea9bc79243cb02c01cff7a846c65c4165aa0447
3
+ metadata.gz: 2b5bc32dcffabad6cf234874363c19f599f77a77
4
+ data.tar.gz: d500ca536492f5d71582271df6a5ebf132ea9286
5
5
  SHA512:
6
- metadata.gz: 468a983f7595f5d4965d180bb8bfe52145409e0373c1d79c53c5c6acc173cb576022246527696f91f1ab72d798dd789a6ae084a511199b12219c95b145da545a
7
- data.tar.gz: 41c937b43b00d5f16ed23bd6a7af702ec9b8457567848836e9e8b57ee0c0e8ef607f5772f847c24db0c0c0989107b81f11b6a2b23445eea63193394138d492d6
6
+ metadata.gz: ebb45db8cc27a4d6be278fba007a62bfa8d40379b43373d67a5bdeb0af2995b4e173008d4579e7d3bc9b85f765145bb00b758b3be61c6ee17a9a7546e95f8417
7
+ data.tar.gz: c87e4dad1e31060b9199a840210d5faef242c9381f16168908c65aae1bf6cf22712155a149aba1fa4c775bdaf9ddce462a51fe3eb8b6c8e9808456baf5cd6181
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A Faye extension for tracking user subscriptions, i.e. can be used for
4
4
  checking if a user is online.
5
5
 
6
- BUT: http://faye.jcoglan.com/ruby/monitoring.html
6
+ Please read this before continuing: http://faye.jcoglan.com/ruby/monitoring.html
7
7
 
8
8
  ## Prerequisites
9
9
 
@@ -42,7 +42,7 @@ FayeTracking.user_in_any_channel?('/user_1')
42
42
  FayeTracking.user_in_channel?('/user_1', '/chat/1')
43
43
  ```
44
44
 
45
- Client side: a PrivatePub example using a fork here: https://github.com/he9lin/private_pub, which makes it possible to add client side Faye extensions to PrivatePub javascript.
45
+ Client side: a PrivatePub example using a fork here: https://github.com/he9lin/private_pub, a fork of Ryan Bate's PrivatePub gem. This fork makes it possible to add client side Faye extensions to PrivatePub javascript.
46
46
 
47
47
  ```coffeescript
48
48
  FayeTrackingExtension =
@@ -16,6 +16,7 @@ module FayeTracking
16
16
  @key_list.remove(channel, user)
17
17
  @key_list.remove(user, channel)
18
18
  end
19
+ @mapping.delete(client_id)
19
20
  end
20
21
 
21
22
  def remove_user_from_all_channels(client_id)
@@ -25,6 +26,7 @@ module FayeTracking
25
26
  end
26
27
  @key_list.remove_all(user)
27
28
  end
29
+ @mapping.delete(client_id)
28
30
  end
29
31
 
30
32
  def channels_for_user(user)
@@ -1,3 +1,3 @@
1
1
  module FayeTracking
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faye_tracking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin He