Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 536 Bytes
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
class Pubsubhubbub
def initialize(hub, options={})
@hub = hub
def publish(feed)
conn = do |c|
c.use Faraday::Request::UrlEncoded # encode request params as "www-form-urlencoded"
c.use Faraday::Adapter::NetHttp # perform requests with Net::HTTP
end @hub, {'hub.url' => feed, 'hub.mode' => 'publish'}
Jump to Line
Something went wrong with that request. Please try again.