Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
Dan Goldenberg 2011-07-04 13:34:05 -07:00
commit 20e2a16717
2 changed files with 7 additions and 4 deletions

View file

@ -6,11 +6,10 @@ rvm:
before_script: before_script:
- "sass --update public/stylesheets/sass/:public/stylesheets/" - "sass --update public/stylesheets/sass/:public/stylesheets/"
- "cp config/database.yml.example config/database.yml" - "cp config/database.yml.example config/database.yml"
- "rake db:drop"
- "rake db:create" - "rake db:create"
- "rake db:schema:load" - "rake db:schema:load"
- "rspec spec --tag fixture" - "rspec spec --tag fixture"
- 'rails runner "puts ActiveRecord::Base.connection.collation"'
script: "bundle exec rake travis" script: "bundle exec rake travis"
env: "TRAVIS=true" env: "TRAVIS=true"
notifications: notifications:

View file

@ -12,7 +12,11 @@ class Pubsubhubbub
end end
def publish(feed) def publish(feed)
response = RestClient.post(@hub, :headers => @headers, 'hub.url' => feed, 'hub.mode' => 'publish') begin
response 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
end end