Skip to content

Commit

Permalink
Updates Unfuddle service to send data via HTTPS & process commit mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
reagent committed Aug 24, 2011
1 parent 94341fc commit 73023eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions services/unfuddle.rb
Expand Up @@ -8,7 +8,7 @@ def receive_push
branch = payload['ref_name']
before = payload['before']

http.url_prefix = "http://#{data['subdomain']}.unfuddle.com"
http.url_prefix = "https://#{data['subdomain']}.unfuddle.com"
http.basic_auth data['username'], data['password']

# grab people data for matching author-id
Expand Down Expand Up @@ -64,14 +64,10 @@ def receive_push
XML

begin
res = http_post "/api/v1/repositories/#{u_repoid}/changesets.json" do |req|
res = http_post "/api/v1/repositories/#{u_repoid}/changesets.json?process_message_actions=true" do |req|
req.headers['Content-Type'] = 'application/xml'
req.body = changeset_xml
end
http.put res.headers['location'] do |req|
req.headers['Content-Type'] = 'application/xml'
req.body = "<request><process-message-actions>true</process-message-actions></request>"
end
end
end
end
Expand Down

0 comments on commit 73023eb

Please sign in to comment.