pubsubhubbub-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/pubsubhubbub.rb +1 -1
- data/lib/pubsubhubbub/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: 273f183dee76545f0be03127d2095bc9eaa2ee8a
|
4
|
+
data.tar.gz: 2525a42935abcecb584e908698234fde948b81c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5227a389a265771c07af8ebe2ee466530187fa38d53658c9c32333f8268c5d0f3b579712be2de822ed5a7dd2d98205d3f0f8c848e1a6b04ec7349ca55fb2a8b4
|
7
|
+
data.tar.gz: eda5e0ba263712b672a887e0f7e829edff13132ab77ecb0223365ee8ddf630a826adfe3baa69c8da793db65caef76d39d5855bf8af451611c871a9bb77f2b6ef
|
data/README.md
CHANGED
@@ -34,6 +34,12 @@ You can also override the fetching of the topic when it is updated, for example
|
|
34
34
|
Pubsubhubbub.render_topic = lambda { |topic_url| FeedsController.render(:show) }
|
35
35
|
```
|
36
36
|
|
37
|
+
If you want to notify the subscribers without hitting the `/pubsubhubbub` HTTP endpoint, there's a convenience method you can use right from your app:
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
Pubsubhubbub.publish(pubsubhubbub_url, feed_url(user))
|
41
|
+
```
|
42
|
+
|
37
43
|
## Installation
|
38
44
|
Add this line to your application's Gemfile:
|
39
45
|
|
data/lib/pubsubhubbub.rb
CHANGED
data/lib/pubsubhubbub/version.rb
CHANGED