jacs 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/actionjabber.rb +10 -9
- metadata +2 -2
data/lib/actionjabber.rb
CHANGED
@@ -40,17 +40,18 @@ module ActionJabber
|
|
40
40
|
hash = parts.first
|
41
41
|
path_parts = parts.last.split('?', 2)
|
42
42
|
request = Request.new(hash, from, path_parts.first, ((path_parts.length == 2) ? path_parts.last : ''))
|
43
|
-
begin
|
43
|
+
#begin
|
44
44
|
response = {:status => 200, :data => ''}.merge @controller.route!(request)
|
45
45
|
respond_to request, :status => response[:status], :data => response[:data]
|
46
|
-
rescue
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
else
|
51
|
-
|
52
|
-
end
|
53
|
-
puts "
|
46
|
+
#rescue
|
47
|
+
# respond_to request, :status => 500
|
48
|
+
# puts "Error responding to #{message.from.to_s.strip}:"
|
49
|
+
# puts $!
|
50
|
+
#else
|
51
|
+
# puts "Responded to '#{from}' in #{(Time.now - start).to_s} seconds."
|
52
|
+
#end
|
53
|
+
puts "Responded to '#{from}' in #{(Time.now - start).to_s} seconds.\n"
|
54
|
+
#puts "\n"
|
54
55
|
end
|
55
56
|
end
|
56
57
|
end
|