Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tweak service schemas to match github.com

  • Loading branch information...
commit e77792966c40a0d051f3a1b2b706d5fee97b6581 1 parent 9b9019f
@technoweenie technoweenie authored
View
4 Rakefile
@@ -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
2  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
View
1  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',
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.