pubsubhubbub-rails 0.2.1 → 0.2.2
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 +12 -2
- data/app/controllers/pubsubhubbub/subscriptions_controller.rb +2 -0
- data/lib/pubsubhubbub.rb +2 -0
- 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: 51b911c4708d544e5e92f761de1f988d237f895c
|
4
|
+
data.tar.gz: 8dd3bbbc86ae5183271e6b24315d146c52cb2640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e918b92fc3d44fc6c386c8983cba1957b300e0c5208f3134195ee04109769b84d01c4aad99216e9efdd02330c360946018c1950278d55b99af3a89e8282b7af3
|
7
|
+
data.tar.gz: d932bb8527324d21d571e260b18dcd5c84cc39b9918c161d69fea1387dbbdd52ca89b3852f4319ab5499906c8677563ec39bb47e63a22916e50e72bf8ce0fc3e
|
data/README.md
CHANGED
@@ -12,11 +12,21 @@ This is a mountable PubSubHubbub server conforming to the v0.4 of the spec.
|
|
12
12
|
|
13
13
|
In `routes.rb`:
|
14
14
|
|
15
|
-
|
15
|
+
```ruby
|
16
|
+
mount Pubsubhubbub::Engine, at: 'pubsubhubbub', as: :pubsubhubbub
|
17
|
+
```
|
16
18
|
|
17
19
|
In feed:
|
18
20
|
|
19
|
-
|
21
|
+
```erb
|
22
|
+
<link rel="hub" href="<%= pubsubhubbub_url %>" />
|
23
|
+
```
|
24
|
+
|
25
|
+
If you want to override topic verification (which is done before subscribe/unsubscribe events to confirm that the topic is in fact using the hub), you can add a custom initializer, e.g. `config/initializers/pubsubhubbub.rb`:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
Pubsubhubbub.verify_topic = lambda { |topic_url| topic_url == 'http://mysite.com/my-feed' }
|
29
|
+
```
|
20
30
|
|
21
31
|
## Installation
|
22
32
|
Add this line to your application's Gemfile:
|
data/lib/pubsubhubbub.rb
CHANGED
data/lib/pubsubhubbub/version.rb
CHANGED