From f4f34e0faa39e20c5def836506ca308e29339e15 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Mon, 4 Jul 2011 12:20:02 -0700 Subject: [PATCH 1/2] fix for public posts in development mode, in single process mode, when your pod_url is still set to localhost --- lib/pubsubhubbub.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pubsubhubbub.rb b/lib/pubsubhubbub.rb index b24b7f798..6de442a8e 100644 --- a/lib/pubsubhubbub.rb +++ b/lib/pubsubhubbub.rb @@ -12,7 +12,11 @@ class Pubsubhubbub end def publish(feed) - response = RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish') - response + begin + response = RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish') + return response + rescue RestClient::BadRequest=> e + Rails.logger.warn "Public URL for your users are incorrect. this is ok if you are in development and localhost is your pod_url#{e.inspect}" + end end end From 7bc5bc66624a8833453fd469896f09ad67c9e457 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 4 Jul 2011 12:44:02 -0700 Subject: [PATCH 2/2] Output collation in travis run --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95e2b02b1..da3c29b57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,11 +6,10 @@ rvm: before_script: - "sass --update public/stylesheets/sass/:public/stylesheets/" - "cp config/database.yml.example config/database.yml" - - "rake db:drop" - "rake db:create" - "rake db:schema:load" - "rspec spec --tag fixture" - + - 'rails runner "puts ActiveRecord::Base.connection.collation"' script: "bundle exec rake travis" env: "TRAVIS=true" notifications: