Permalink
Browse files

tweak service schemas to match github.com

  • Loading branch information...
1 parent 9b9019f commit e77792966c40a0d051f3a1b2b706d5fee97b6581 @technoweenie technoweenie committed Jun 29, 2011
Showing with 7 additions and 2 deletions.
  1. +3 −1 Rakefile
  2. +1 −1 services/amqp.rb
  3. +1 −0 services/geocommit.rb
  4. +2 −0 services/rdocinfo.rb
View
@@ -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
View
@@ -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
View
@@ -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',
View
@@ -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

0 comments on commit e777929

Please sign in to comment.