stalker 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|