From 86fe2db24eabb050018c0e49ac36e3b219ac6bf5 Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Wed, 30 Mar 2011 10:41:47 -0700 Subject: [PATCH] update publish job to include .atom --- Gemfile.lock | 32 +++++++++++++++++-------------- app/models/jobs/publish_to_hub.rb | 3 ++- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 19d176ecbc..adf9621aae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -65,6 +65,7 @@ PATH GEM remote: http://rubygems.org/ specs: + SystemTimer (1.2.1) abstract (1.0.0) actionmailer (3.0.3) actionpack (= 3.0.3) @@ -93,7 +94,6 @@ GEM activesupport (= 3.0.3) activesupport (3.0.3) addressable (2.2.2) - archive-tar-minitar (0.5.2) arel (2.0.9) aws (2.3.32) activesupport @@ -120,6 +120,7 @@ GEM selenium-webdriver (>= 0.0.3) carrierwave (0.5.2) activesupport (~> 3.0) + cgi_multipart_eof_fix (2.5.0) chalofa_ruby-progressbar (0.0.9.1) chef (0.9.12) bunny (>= 0.6.0) @@ -174,6 +175,7 @@ GEM faraday_middleware (0.3.2) faraday (~> 0.5.4) fastercsv (1.5.4) + fastthread (1.0.7) ffi (0.6.3) rake (>= 0.8.7) fixture_builder (0.2.0) @@ -192,6 +194,7 @@ GEM chalofa_ruby-progressbar (~> 0.0.9) rspec (~> 2.0) rspec-instafail (~> 0.1.4) + gem_plugin (0.2.3) gherkin (2.3.5) json (>= 1.4.6) haml (3.0.25) @@ -213,8 +216,7 @@ GEM launchy (0.4.0) configuration (>= 0.0.5) rake (>= 0.8.1) - linecache19 (0.5.11) - ruby_core_source (>= 0.1.4) + linecache (0.43) mail (2.2.15) activesupport (>= 2.3.6) i18n (>= 0.4.0) @@ -229,6 +231,11 @@ GEM mixlib-config (1.1.2) mixlib-log (1.2.0) moneta (0.6.0) + mongrel (1.1.5) + cgi_multipart_eof_fix (>= 2.4) + daemons (>= 1.0.3) + fastthread (>= 1.0.1) + gem_plugin (>= 0.2.3) multi_json (0.0.5) multi_xml (0.2.2) multipart-post (1.1.0) @@ -331,20 +338,15 @@ GEM activesupport (~> 3.0) railties (~> 3.0) rspec (~> 2.5.0) - ruby-debug-base19 (0.11.24) - columnize (>= 0.3.1) - linecache19 (>= 0.5.11) - ruby_core_source (>= 0.1.4) - ruby-debug19 (0.11.6) - columnize (>= 0.3.1) - linecache19 (>= 0.5.11) - ruby-debug-base19 (>= 0.11.19) + ruby-debug (0.10.4) + columnize (>= 0.1) + ruby-debug-base (~> 0.10.4.0) + ruby-debug-base (0.10.4) + linecache (>= 0.3) ruby-hmac (0.4.0) ruby-openid (2.1.8) ruby-openid-apps-discovery (1.2.0) ruby-openid (>= 2.1.7) - ruby_core_source (0.1.4) - archive-tar-minitar (>= 0.5.2) rubyntlm (0.1.1) rubyzip (0.9.4) selenium-client (1.2.18) @@ -390,6 +392,7 @@ PLATFORMS ruby DEPENDENCIES + SystemTimer (= 1.2.1) acts-as-taggable-on! addressable (= 2.2.2) aws (= 2.3.32) @@ -420,6 +423,7 @@ DEPENDENCIES json (= 1.4.6) launchy mini_magick (= 3.2) + mongrel mysql2 (= 0.2.6) nokogiri (= 1.4.3.1) omniauth (= 0.1.6) @@ -431,7 +435,7 @@ DEPENDENCIES rspec (>= 2.0.0) rspec-instafail (>= 0.1.7) rspec-rails (>= 2.0.0) - ruby-debug19 + ruby-debug selenium-webdriver (= 0.1.3) thin (= 1.2.8) twitter! diff --git a/app/models/jobs/publish_to_hub.rb b/app/models/jobs/publish_to_hub.rb index 6a5d83725c..0c12a9dbd3 100644 --- a/app/models/jobs/publish_to_hub.rb +++ b/app/models/jobs/publish_to_hub.rb @@ -8,7 +8,8 @@ module Job def self.perform_delegate(sender_public_url) require File.join(Rails.root, 'lib/pubsubhubbub') - Pubsubhubbub.new(AppConfig[:pubsub_server]).publish(sender_public_url) + atom_url = sender_public_url + '.atom' + Pubsubhubbub.new(AppConfig[:pubsub_server]).publish(atom_url) end end end -- GitLab