stalker 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/stalker.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/stalker.rb
CHANGED
@@ -93,7 +93,7 @@ module Stalker
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def beanstalk_url
|
96
|
-
ENV['BEANSTALK_URL'] || 'beanstalk://localhost
|
96
|
+
ENV['BEANSTALK_URL'] || 'beanstalk://localhost/'
|
97
97
|
end
|
98
98
|
|
99
99
|
class BadURL < RuntimeError; end
|
@@ -101,7 +101,7 @@ module Stalker
|
|
101
101
|
def beanstalk_host_and_port
|
102
102
|
uri = URI.parse(beanstalk_url)
|
103
103
|
raise(BadURL, beanstalk_url) if uri.scheme != 'beanstalk'
|
104
|
-
return "#{uri.host}:#{uri.port}"
|
104
|
+
return "#{uri.host}:#{uri.port || 11300}"
|
105
105
|
end
|
106
106
|
|
107
107
|
def exception_message(e)
|