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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/stalker.rb +2 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -93,7 +93,7 @@ module Stalker
93
93
  end
94
94
 
95
95
  def beanstalk_url
96
- ENV['BEANSTALK_URL'] || 'beanstalk://localhost:11300/'
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Wiggins