Skip to content

Commit

Permalink
tweak service schemas to match github.com
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Jun 29, 2011
1 parent 9b9019f commit e777929
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -16,7 +16,9 @@ namespace :services do
file = ENV["FILE"] || File.expand_path("../config/services.json", __FILE__)
require File.expand_path("../config/load", __FILE__)
services = Service.services.inject({}) do |memo, svc|
memo.update svc.hook_name => svc.schema
memo.update svc.title => {
:short_name => svc.hook_name,
:schema => svc.schema}
end
File.open file, 'w' do |io|
io << services.to_json
Expand Down
2 changes: 1 addition & 1 deletion services/amqp.rb
@@ -1,5 +1,5 @@
class Service::AMQP < Service
string :host, :port, :vhost, :exchange, :username
string :server, :port, :vhost, :exchange, :username
password :password

def receive_push
Expand Down
1 change: 1 addition & 0 deletions services/geocommit.rb
@@ -1,4 +1,5 @@
class Service::GeoCommit < Service
self.title = 'geocommit'
def receive_push
http.headers['Content-Type'] = 'application/githubpostreceive+json'
http_post 'http://hook.geocommit.com/api/github',
Expand Down
2 changes: 2 additions & 0 deletions services/rdocinfo.rb
@@ -1,4 +1,6 @@
class Service::RDocInfo < Service
self.title = 'Rdocinfo'

def receive_push
http_post 'http://rubydoc.info/checkout', :payload => payload.to_json
end
Expand Down

0 comments on commit e777929

Please sign in to comment.