Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/sabberworm/github-services
Browse files Browse the repository at this point in the history
…into sabberworm-master
  • Loading branch information
technoweenie committed Mar 21, 2011
2 parents c96250f + 16c3215 commit c2ffad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/prowl
Expand Up @@ -3,12 +3,12 @@ Prowl

Prowl is an iPhone App+Web Service for arbitrary Push Notifications. After installing the app and registering the device, you receive an API key and can send notifications from your computer via Growl (with the Prowl GrowlStyle installed) or from any server with very little work (at least as far as the Push submission is concerned).

To get started, create a user account for Prowl at http://prowl.weks.net/.
To get started, create a user account for Prowl at https://www.prowlapp.com/.

Install Notes
-------------

1. apikey is your API key supplied from the Prowl website at https://prowl.weks.net/settings.php
1. Create a new API key for GitHub at the Prowl website https://www.prowlapp.com/api_settings.php.

Developer Notes
---------------
Expand Down
4 changes: 2 additions & 2 deletions services/prowl.rb
@@ -1,5 +1,5 @@
service :prowl do |data, payload|
url = URI.parse('https://prowl.weks.net/publicapi/add')
url = URI.parse('https://api.prowlapp.com/publicapi/add')
repository = payload['repository']['url'].split("/")
event = repository[-2], "/", repository[-1]
application = "GitHub"
Expand All @@ -9,7 +9,7 @@
#{payload['commits'][-1]['id'][0..7]} #{payload['commits'][-1]['message']}"

req = Net::HTTP::Post.new(url.path)
req.set_form_data('apikey' => data['apikey'], 'application' => application, 'event' => event, 'description' => description)
req.set_form_data('apikey' => data['apikey'], 'application' => application, 'event' => event, 'description' => description, 'url' => payload['compare'])

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true if url.port == 443 || url.instance_of?(URI::HTTPS)
Expand Down

0 comments on commit c2ffad6

Please sign in to comment.