resque 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8cf648f1eb756bfe114e702e712d3b9a6748288d25194bf982c29b94b7ea7b5
4
- data.tar.gz: e878e1cbe5a8bcf2a915a35c0038b24056f52bd845782934536968da71d90719
3
+ metadata.gz: 7419ce3cc8734b05527a47b0c5fb4a9eea0a5d33265a6e3214bb429980c37681
4
+ data.tar.gz: 4216e18e121883e0350275e00c19e1d6c6f0965915d4b48a8a0a29f07e652317
5
5
  SHA512:
6
- metadata.gz: 28094061441be3776fd2541ea43e678ad8270b1c620aa1bf11a2368f8c913e0c0069b481ecc1d17d336f432f7032b61b20d2a80e646231a7f86dacbd68e789b8
7
- data.tar.gz: 3f3b8f2edc6f8b006ab650e2431db26e4fac0230adddc9f9fb748601bf9d6f16581208d20283b4a44e5303ae8a54993e8a324821492996d61a05b2e6f72adb7d
6
+ metadata.gz: 7301e154b368d012161ae22d69cb8e4400977a3099392f7789369ca37b04a413d0abec092e60dd9dddee01bda81c55dbf182da5cede4a8c2beff94f8ed44bc94
7
+ data.tar.gz: 85d0c05d98502b0da28ae60ca6117d3b4a47bbfc981b48c4168f6bf727bac8c4c325dcebf604f8916d0e04c97bf933651b6077b55ead117e7ecb1cc2cf4655f0
data/HISTORY.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 2.7.0
2
+
3
+ ### Fixed
4
+ * Update README.markdown (#1891)
5
+ * Ruby does not allow logging within trap handlers (#1729)
6
+ * Fix typo in stat.rb warning: data_strore -> data_store (#1904)
7
+ * Ensure ruby 3.3 compatibility (#1907)
8
+
1
9
  ## 2.6.0
2
10
 
3
11
  ### Fixed
data/README.markdown CHANGED
@@ -133,6 +133,15 @@ require 'your/app' # Include this line if you want your workers to have access t
133
133
 
134
134
  #### Rails
135
135
 
136
+ ##### Rails 7.1
137
+
138
+ If you're using Rails 7.1.x, use [rack-session version 1.0.2](https://rubygems.org/gems/rack-session/versions/1.0.2). This is because resque-web's dependency, [Sinatra, isn't compatible with rack 3.0](https://github.com/sinatra/sinatra/issues/1797), which is [required by rack-session 2.0.0](https://rubygems.org/gems/rack-session/versions/2.0.0).
139
+
140
+ ```
141
+ gem 'rails', '~> 7.1'
142
+ gem 'rack-session', '~> 1.0', '>= 1.0.2'
143
+ ```
144
+
136
145
  To make resque specific changes, you can override the `resque:setup` job in `lib/tasks` (ex: `lib/tasks/resque.rake`). GitHub's setup task looks like this:
137
146
 
138
147
  ``` ruby
data/lib/resque/stat.rb CHANGED
@@ -9,7 +9,7 @@ module Resque
9
9
  extend self
10
10
 
11
11
  def redis
12
- warn '[Resque] [Deprecation] Resque::Stat #redis method is deprecated (please use #data_strore)'
12
+ warn '[Resque] [Deprecation] Resque::Stat #redis method is deprecated (please use #data_store)'
13
13
  data_store
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- VERSION = '2.6.0'
2
+ VERSION = '2.7.0'
3
3
  end
data/lib/resque/worker.rb CHANGED
@@ -585,14 +585,16 @@ module Resque
585
585
  # Stop processing jobs after the current one has completed (if we're
586
586
  # currently running one).
587
587
  def pause_processing
588
- log_with_severity :info, "USR2 received; pausing job processing"
588
+ _, self_write = IO.pipe
589
+ self_write.puts "USR2 received; pausing job processing"
589
590
  run_hook :before_pause, self
590
591
  @paused = true
591
592
  end
592
593
 
593
594
  # Start processing jobs again after a pause
594
595
  def unpause_processing
595
- log_with_severity :info, "CONT received; resuming job processing"
596
+ _, self_write = IO.pipe
597
+ self_write.puts "CONT received; resuming job processing"
596
598
  @paused = false
597
599
  run_hook :after_pause, self
598
600
  end
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: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-08-19 00:00:00.000000000 Z
14
+ date: 2024-12-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: redis-namespace
@@ -61,14 +61,14 @@ dependencies:
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '1.0'
64
+ version: '1'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '1.0'
71
+ version: '1'
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: thin
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
- rubygems_version: 3.4.10
205
+ rubygems_version: 3.0.3.1
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Resque is a Redis-backed queueing system.