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 +4 -4
- data/README.md +2 -2
- data/lib/faye_tracking/tracker.rb +2 -0
- data/lib/faye_tracking/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b5bc32dcffabad6cf234874363c19f599f77a77
|
4
|
+
data.tar.gz: d500ca536492f5d71582271df6a5ebf132ea9286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
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)
|