resque 3.0.2 → 3.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 357503e977394f513419b3146484eab796354a978d6d96e74e16fae0dc2fd3de
4
- data.tar.gz: 4e3da6258793f0b094cba61c35436d30f1193d8d43553e312b8e5c14cbb7ee5b
3
+ metadata.gz: acde04f0564445d35441b5d8fc947ece39fb99b181c9f67a0942ecf14c08fa8d
4
+ data.tar.gz: 2ed7744e0f167229c3b814d472223e8b860ddee3a20d20783cddfcb9a18f0bfe
5
5
  SHA512:
6
- metadata.gz: 00e3f45822df5638bb129c32c10878e2651cb74081711d4d4ef30da47403195c07276a4dbcb60e650c35dbc40ba0bcfb48d4a2c625eb442dec476e8a18929a7a
7
- data.tar.gz: 942ff614b651c87ab52726aa88564243fd60b3c87edff7670fcb61491f2a45516a8c91eed44119d5945a322f0598f9be28d3ab5d610146e9d488e261514bf0af
6
+ metadata.gz: 2269306cd35af0f83ae337d24914eb40a2945fa7d7091be12942dce5415d29ce51ace66b56669a7748a5727610a208b81dc9146934b473dfd2a404ba325a95ae
7
+ data.tar.gz: c69034d1674ebfde72aa382317ee390cee6ddc62d31e1c0424eab392c106b2338021330cf1a4b7d0cd8fb3004e4fabc3902956481a494264a9194c744af77a8f
data/HISTORY.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 3.0.3
2
+
3
+ ### Fixed
4
+
5
+ * resque-web: Fix an off-by-one error in the failed jobs pagination end index (#1931)
6
+ * resque-web: Pass the browser url as an argv element instead of a shell string, and launch it on Windows without going through `cmd.exe` (#1956)
7
+ * resque-web: Probe ports with `URI(...).open` instead of `Kernel.open` (#1955)
8
+ * resque-web: Build the relatized time markup with DOM APIs instead of HTML strings (#1957)
9
+
1
10
  ## 3.0.2
2
11
 
3
12
  ### Added
@@ -11,10 +11,9 @@ $(function() {
11
11
  } else {
12
12
  $(this)
13
13
  .text('')
14
- .append( $('<a href="#" class="toggle_format" title="' + dt + '" />')
15
- .append('<span class="date_time">' + dt +
16
- '</span><span class="relatized_time">' +
17
- relatized + '</span>') )
14
+ .append( $('<a href="#" class="toggle_format" />').attr('title', dt)
15
+ .append( $('<span class="date_time" />').text(dt) )
16
+ .append( $('<span class="relatized_time" />').text(relatized) ) )
18
17
  }
19
18
  };
20
19
 
@@ -150,7 +150,7 @@ module Resque
150
150
 
151
151
  def failed_end_at
152
152
  if failed_start_at + failed_per_page > failed_size
153
- failed_size
153
+ failed_size - 1
154
154
  else
155
155
  failed_start_at + failed_per_page - 1
156
156
  end
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
@@ -156,8 +156,8 @@ module Resque
156
156
  end
157
157
  end
158
158
 
159
- def uri_open(*args)
160
- (RbConfig::CONFIG['ruby_version'] < '2.7') ? open(*args) : URI.open(*args)
159
+ def uri_open(url, *args)
160
+ URI.parse(url).open(*args)
161
161
  end
162
162
 
163
163
  def write_url
@@ -226,8 +226,8 @@ module Resque
226
226
 
227
227
  def launch!(specific_url = nil, path = nil)
228
228
  return if options[:skip_launch]
229
- cmd = WINDOWS ? "start" : "open"
230
- system "#{cmd} #{specific_url || url}#{path}"
229
+ target = "#{specific_url || url}#{path}"
230
+ WINDOWS ? system("rundll32", "url.dll,FileProtocolHandler", target) : system("open", target)
231
231
  end
232
232
 
233
233
  def kill!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubygems_version: 4.0.6
246
+ rubygems_version: 4.0.16
247
247
  specification_version: 4
248
248
  summary: Resque is a Redis-backed queueing system.
249
249
  test_files: []