Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created December 2, 2014 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyagawa/7987ea3d0ac52f6fba61 to your computer and use it in GitHub Desktop.
Save miyagawa/7987ea3d0ac52f6fba61 to your computer and use it in GitHub Desktop.
diff --git a/Rakefile b/Rakefile
index ca4af4d..0ba34e1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -214,16 +214,11 @@ def next_episode
}.max + 1
end
-desc "ping updates to FeedPress"
+desc "ping updates to Superfeedr Hub"
task :ping do |t|
- require 'xmlrpc/client'
- server = XMLRPC::Client.new("feed.press", "/ping", 443, nil, nil, nil, nil, true)
- begin
- result = server.call("weblogUpdates.ping", "Rebuild", "http://rebuild.fm/")
- p result
- rescue Exception => e
- p e
- end
+ system "curl",
+ "-d", "hub.mode=publish", "-d", "hub.url=http://feeds.rebuild.fm/rebuildfm",
+ "http://rebuildfm.superfeedr.com/"
end
desc "Send PushBullet updates"
diff --git a/feed.xml b/feed.xml
index 20cc7c9..9495ee5 100644
--- a/feed.xml
+++ b/feed.xml
@@ -8,6 +8,7 @@ layout: none
<description>{{ site.description }}</description>
<generator>Jekyll</generator>
<link>{{ site.url }}</link>
+ <atom:link href="http://rebuildfm.superfeedr.com/" rel="hub" />
<atom:link href="{{ site.feed }}" rel="self" type="application/rss+xml" />
<media:thumbnail url="{{ site.url }}/images/icon240.png" />
<media:keywords>{{ site.keywords }}</media:keywords>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment