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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c675e536b288c0e673e17095e1e71e9e3291b29
4
- data.tar.gz: f483dbe28eeb7c04504e8860fa2c89f337475085
3
+ metadata.gz: 273f183dee76545f0be03127d2095bc9eaa2ee8a
4
+ data.tar.gz: 2525a42935abcecb584e908698234fde948b81c1
5
5
  SHA512:
6
- metadata.gz: 1682d9bd26db344a7e292b7682dcfc9c690c625059fbda7a0e9c23ab67409945f22a7deedaf78bf617b221ec9fc2c0a6939c62311a0208e3e3d1b8eeed07f3fe
7
- data.tar.gz: 5c9f2ad9eec55148d473ec582ec7e34ab4e53a0fce946e23d65390f34e99a80957cdddb75c1557eb2c4bd4b7998030fa47f0396ffee8c1d73cd5ed336843302d
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
 
@@ -24,7 +24,7 @@ module Pubsubhubbub
24
24
  module Utils
25
25
  def http_client
26
26
  HTTP.timeout(:per_operation, write: 30, connect: 20, read: 30)
27
- .headers(user_agent: "PubSubHubbub/#{Pubsubhubbub::VERSION}")
27
+ .headers(user_agent: "PubSubHubbub/#{VERSION}")
28
28
  end
29
29
  end
30
30
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Pubsubhubbub
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubsubhubbub-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Rochko