resque 1.27.4 → 2.6.0

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 (45) hide show
  1. checksums.yaml +5 -5
  2. data/HISTORY.md +122 -3
  3. data/README.markdown +441 -500
  4. data/bin/resque-web +10 -26
  5. data/lib/resque/data_store.rb +52 -58
  6. data/lib/resque/errors.rb +7 -1
  7. data/lib/resque/failure/airbrake.rb +19 -7
  8. data/lib/resque/failure/multiple.rb +6 -2
  9. data/lib/resque/failure/redis.rb +1 -1
  10. data/lib/resque/failure/redis_multi_queue.rb +1 -1
  11. data/lib/resque/failure.rb +7 -0
  12. data/lib/resque/job.rb +2 -2
  13. data/lib/resque/logging.rb +1 -1
  14. data/lib/resque/railtie.rb +10 -0
  15. data/lib/resque/server/public/jquery-3.6.0.min.js +2 -0
  16. data/lib/resque/server/public/main.js +3 -0
  17. data/lib/resque/server/public/ranger.js +7 -4
  18. data/lib/resque/server/public/style.css +3 -3
  19. data/lib/resque/server/views/error.erb +1 -1
  20. data/lib/resque/server/views/failed.erb +9 -3
  21. data/lib/resque/server/views/failed_job.erb +2 -2
  22. data/lib/resque/server/views/job_class.erb +3 -1
  23. data/lib/resque/server/views/key_string.erb +1 -1
  24. data/lib/resque/server/views/layout.erb +5 -4
  25. data/lib/resque/server/views/next_more.erb +14 -14
  26. data/lib/resque/server/views/queues.erb +6 -6
  27. data/lib/resque/server/views/stats.erb +5 -5
  28. data/lib/resque/server/views/working.erb +7 -7
  29. data/lib/resque/server.rb +11 -119
  30. data/lib/resque/server_helper.rb +185 -0
  31. data/lib/resque/stat.rb +16 -9
  32. data/lib/resque/tasks.rb +3 -11
  33. data/lib/resque/thread_signal.rb +13 -34
  34. data/lib/resque/vendor/utf8_util.rb +2 -8
  35. data/lib/resque/version.rb +1 -1
  36. data/lib/resque/web_runner.rb +374 -0
  37. data/lib/resque/worker.rb +76 -48
  38. data/lib/resque.rb +100 -27
  39. data/lib/tasks/redis.rake +10 -10
  40. metadata +44 -28
  41. data/lib/resque/server/helpers.rb +0 -64
  42. data/lib/resque/server/public/jquery-1.12.4.min.js +0 -5
  43. data/lib/resque/server/test_helper.rb +0 -19
  44. data/lib/resque/vendor/utf8_util/utf8_util_18.rb +0 -91
  45. data/lib/resque/vendor/utf8_util/utf8_util_19.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: acae072e3d9a8528a3dc20919ea2c0bd06c90d45
4
- data.tar.gz: 3de81881552589630db942941bb3ff6b8353ff24
2
+ SHA256:
3
+ metadata.gz: f8cf648f1eb756bfe114e702e712d3b9a6748288d25194bf982c29b94b7ea7b5
4
+ data.tar.gz: e878e1cbe5a8bcf2a915a35c0038b24056f52bd845782934536968da71d90719
5
5
  SHA512:
6
- metadata.gz: 20fa32261ff9fd4744a7c2bb32265fa545d2cc4dda3433f1513291e6cec91d3503cfc4120b990b2ed96507c7848dfbfe474682e10b0ed68a7188798b88819e08
7
- data.tar.gz: b623868af21a1ccb630ef02f0f9ed1892845041f01926564a01559a6bdac783c6353822705b7c82f1d750c167a743972b7d54d859c0fed66a57826c3ea498cf8
6
+ metadata.gz: 28094061441be3776fd2541ea43e678ad8270b1c620aa1bf11a2368f8c913e0c0069b481ecc1d17d336f432f7032b61b20d2a80e646231a7f86dacbd68e789b8
7
+ data.tar.gz: 3f3b8f2edc6f8b006ab650e2431db26e4fac0230adddc9f9fb748601bf9d6f16581208d20283b4a44e5303ae8a54993e8a324821492996d61a05b2e6f72adb7d
data/HISTORY.md CHANGED
@@ -1,8 +1,127 @@
1
- ## Unreleased
1
+ ## 2.6.0
2
2
 
3
- Nothing yet!
3
+ ### Fixed
4
+
5
+ * resque-web: Fix reflected XSS in queues endpoint (#1865)
6
+ * resque-web: Format args in YAML (#1875)
7
+ * Fix MiniTest undefined errors (#1879)
8
+ * Fix failing reconnect tests (#1880)
9
+
10
+ ### Added
11
+
12
+ * Documents how to make the worker shutdown when the queue is empty (#1873)
13
+
14
+ ## 2.5.0
15
+
16
+ ### Fixed
17
+
18
+ * Replace `File.exists?` with `File.exist?` (#1846)
19
+ * Escape `Resque.redis_id` for stats page (#1834)
20
+ * Escape resque info values (#1832)
21
+ * Correctly show the values of hash and none type on stats tab (#1838)
22
+ * Fix logging the worker name when starting the task (#1837)
23
+
24
+ ### Added
25
+
26
+ * Raise an error when no available Rack server was found (#1836)
27
+ * Move code in `Resque::Server.helpers` block into a module to make it testable (#1851)
28
+
29
+ ## 2.4.0
30
+
31
+ ### Fixed
32
+
33
+ * Remove `thread_safe` arg in Redis instantiaons (#1822)
34
+ * Updated Test Matrix for Redis 5.0 (#1824)
35
+ * Fix redis-rb 4.8 deprecation warnings (#1827)
36
+ * Fix redis-rb 5.0 compatibility issues (#1828)
37
+
38
+ ## 2.3.0
39
+
40
+ ### Fixed
41
+
42
+ * Fix NoMethodError: undefined method 'application' for Rails:Module when Rails module is defined but not a full Rails app (#1799)
43
+ * Fix deprecation warnings in Redis#pipelined for redis 4.6 (#1806)
44
+ * Add Ruby syntax highlighting to remaining markdown docs (#1802)
45
+ * Fix pagination section (#1809)
46
+ * Fix `before_run` undefined local variable or method `runner` (#1811)
47
+
48
+ ### Added
49
+
50
+ * Added support for pausing all workers by setting the Redis key `pause-all-workers` to string value "true" (#1803)
51
+
52
+ ## 2.2.1
53
+
54
+ ### Fixed
55
+
56
+ * Escape HTML from the params to avoid XSS (#1790)
57
+ * Remove vegas as a dependency (#1780)
58
+
59
+ ### Added
60
+
61
+ * Add support for specifying queues that workers should ignore when using globs
62
+ * Allow plugins to have spaces in their name (#1718)
63
+
64
+ ## 2.2.0
65
+
66
+ ### Added
67
+
68
+ * Add 'Retry Failed Jobs' button to Failed page
69
+
70
+ ### Fixed
71
+
72
+ * Loading railtie when it did not exist #1765
73
+ * Fix closing parent Redis connection in child process after fork
74
+ * Fix the failed queues list on /queues UI when the RedisMultiQueue backend is used #1638
75
+
76
+ ## 2.1.0
77
+
78
+ ### Security
79
+
80
+ * Fix XSS via URL path in admin web UI queues view #1687
81
+ * Replace onclick handlers in server code to support Content Security Policies that don't allow 'unsafe-inline'
82
+ * Update jQuery from 1.12.4 to 3.6.0
83
+
84
+ ### Added
85
+
86
+ * Add requeue_queue method to Resque::Failure::Multiple #1659
87
+ * Confirmation prompt in admin front-end before submitting the retry of all failed jobs. #1753
88
+ * Railtie for default rake task setup when in Rails. #1715
89
+ * Added two new hooks.
90
+ - `queue_empty` when the job queue empties and the worker becomes idle
91
+ - `worker_exit` when the worker exits
92
+
93
+ See [docs/HOOKS.md](http://github.com/resque/resque/blob/master/docs/HOOKS.md) for
94
+ further details. (@jeremywadsack)
95
+
96
+ ### Fixed
97
+
98
+ * live poller shouldn't restart itself until it successds or fails. #1740
99
+ * Fix parsing worker_id when queue name includes colon. #1691
100
+ * Prune workers which haven't been registered but have set a heartbeat. #1751
101
+ * `Resque::Failure::Multiple.remove` did not pass on the queue parameter
102
+
103
+ ## 2.0.0 (2018-11-06)
104
+
105
+ ### Fixed
106
+ * Fix Airbrake failure backend
107
+ * Fix failed jobs page "argument out of range" error
108
+
109
+ ### Changed
110
+ * Remove support for Rubies < 2.3
111
+ * Remove support to Rails < 4
112
+ * Reduce the number of redis calls when trying to get the list of queues
113
+ * Only run `eager_load!` if `Rails.application.config.eager_load` is true
114
+ * Don't display log message if running without hooks
115
+ * Add Support to Redis 4.0
116
+ * Drop complex Redis identifier logic in favor of simple inspect
117
+ * When a child process is killed, report the signal it was terminated with
118
+ * Report a job that pruned worker was processing
119
+
120
+ ### Added
121
+
122
+ * Allow to configure statistic data store
4
123
 
5
- ## 1.27.4 (2017-4-15)
124
+ ## 1.27.4 (2017-04-15)
6
125
 
7
126
  ### Fixed
8
127
  * Fix issue where removing a failure from Resque web didn't work when using `RedisMultiQueue` backend.