resque 1.14.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of resque might be problematic. Click here for more details.

data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.15.0 (2011-03-18)
2
+
3
+ * Fallback to Redis.connect. Makes ENV variables and whatnot work.
4
+ * Fixed Sinatra 1.2 compatibility
5
+
1
6
  ## 1.14.0 (2011-03-17)
2
7
 
3
8
  * Sleep interval can now be a float
data/lib/resque.rb CHANGED
@@ -54,7 +54,7 @@ module Resque
54
54
  # create a new one.
55
55
  def redis
56
56
  return @redis if @redis
57
- self.redis = 'localhost:6379'
57
+ self.redis = Redis.respond_to?(:connect) ? Redis.connect : "localhost:6379"
58
58
  self.redis
59
59
  end
60
60
 
data/lib/resque/server.rb CHANGED
@@ -110,7 +110,7 @@ module Resque
110
110
  if @polling
111
111
  text = "Last Updated: #{Time.now.strftime("%H:%M:%S")}"
112
112
  else
113
- text = "<a href='#{url(request.path_info)}.poll' rel='poll'>Live Poll</a>"
113
+ text = "<a href='#{u(request.path_info)}.poll' rel='poll'>Live Poll</a>"
114
114
  end
115
115
  "<p class='poll'>#{text}</p>"
116
116
  end
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.14.0'
2
+ Version = VERSION = '1.15.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 14
8
+ - 15
9
9
  - 0
10
- version: 1.14.0
10
+ version: 1.15.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-17 00:00:00 -07:00
18
+ date: 2011-03-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency