Permalink
Browse files

RestClient replaced with HTTPClient - see issue 1

Signed-off-by: Julio Capote <jcapote@gmail.com>
  • Loading branch information...
zh authored and capotej committed Jun 9, 2009
1 parent 642659a commit 2782a3e5a635fb2f1e932cfd0e0826df1b060741
Showing with 7 additions and 3 deletions.
  1. +5 −0 .gitignore
  2. BIN watercoolr.db
  3. +2 −3 watercoolr.rb
View
@@ -0,0 +1,5 @@
+*.orig
+*.rej
+*~
+*.log
+*.db
View
Binary file not shown.
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'sinatra'
require 'sequel'
-require 'rest_client'
+require 'httpclient'
require 'zlib'
require 'json'
@@ -73,7 +73,7 @@ def gen_id
if subs
subs.each do |sub|
begin
- RestClient.post sub[:url], :data => message
+ HTTPClient.post(sub[:url], :data => message)
rescue
end
res = true
@@ -87,4 +87,3 @@ def gen_id
{ :status => 'FAIL' }.to_json
end
end
-

0 comments on commit 2782a3e

Please sign in to comment.