jobs_dashboard 0.3.4 → 0.3.7
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 +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +109 -56
- data/README.md +12 -13
- data/app/models/jobs_dashboard/job_log.rb +12 -5
- data/lib/jobs_dashboard/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 843f029259ef601e0bdf6ca314a26e70821a6c6f4983491010a914cc1930ea40
|
|
4
|
+
data.tar.gz: 6abf1b0962032dd428c90cd674f0d08df4c9b9e18e248df99c9bb827391e1a96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d98a207aa00690b6e0d9265fe47c61bd9a35d537c9d86a748db565e1323c37f20c958981e38a282bf425d2e81be06234f473e759839dead72a20222359a722f4
|
|
7
|
+
data.tar.gz: ceafd83e1b08426f98c41241f001d2a14bd54fbacafb53c581a3157d101fb5c6f95961a8e52a73d86cb781bf78cbbf0776e5c95dca72867337280e84034b7670
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.3.10
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [0.3.7] - 2025-04-08
|
|
2
|
+
- Fix rails 7.2 compatibility
|
|
3
|
+
|
|
4
|
+
## [0.3.6] - 2025-04-08
|
|
5
|
+
- Fix compatibility with rails 7.0 / 7.1 / 7.2 for version 0.3.5
|
|
6
|
+
|
|
7
|
+
## [0.3.5] - 2025-04-08
|
|
8
|
+
- Add compatibility to rails 7.2
|
|
9
|
+
|
|
1
10
|
## [0.3.3] - 2023-11-07
|
|
2
11
|
- Fix crash when there is data without item_type / queue
|
|
3
12
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jobs_dashboard (0.3.
|
|
4
|
+
jobs_dashboard (0.3.7)
|
|
5
5
|
kaminari
|
|
6
6
|
ransack
|
|
7
7
|
sidekiq (>= 6.0)
|
|
@@ -10,37 +10,60 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actionpack (
|
|
14
|
-
actionview (=
|
|
15
|
-
activesupport (=
|
|
16
|
-
|
|
13
|
+
actionpack (8.1.2)
|
|
14
|
+
actionview (= 8.1.2)
|
|
15
|
+
activesupport (= 8.1.2)
|
|
16
|
+
nokogiri (>= 1.8.5)
|
|
17
|
+
rack (>= 2.2.4)
|
|
18
|
+
rack-session (>= 1.0.1)
|
|
17
19
|
rack-test (>= 0.6.3)
|
|
18
|
-
rails-dom-testing (~> 2.
|
|
19
|
-
rails-html-sanitizer (~> 1.
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
rails-dom-testing (~> 2.2)
|
|
21
|
+
rails-html-sanitizer (~> 1.6)
|
|
22
|
+
useragent (~> 0.16)
|
|
23
|
+
actionview (8.1.2)
|
|
24
|
+
activesupport (= 8.1.2)
|
|
22
25
|
builder (~> 3.1)
|
|
23
|
-
erubi (~> 1.
|
|
24
|
-
rails-dom-testing (~> 2.
|
|
25
|
-
rails-html-sanitizer (~> 1.
|
|
26
|
-
activemodel (
|
|
27
|
-
activesupport (=
|
|
28
|
-
activerecord (
|
|
29
|
-
activemodel (=
|
|
30
|
-
activesupport (=
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
erubi (~> 1.11)
|
|
27
|
+
rails-dom-testing (~> 2.2)
|
|
28
|
+
rails-html-sanitizer (~> 1.6)
|
|
29
|
+
activemodel (8.1.2)
|
|
30
|
+
activesupport (= 8.1.2)
|
|
31
|
+
activerecord (8.1.2)
|
|
32
|
+
activemodel (= 8.1.2)
|
|
33
|
+
activesupport (= 8.1.2)
|
|
34
|
+
timeout (>= 0.4.0)
|
|
35
|
+
activesupport (8.1.2)
|
|
36
|
+
base64
|
|
37
|
+
bigdecimal
|
|
38
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
39
|
+
connection_pool (>= 2.2.5)
|
|
40
|
+
drb
|
|
33
41
|
i18n (>= 1.6, < 2)
|
|
42
|
+
json
|
|
43
|
+
logger (>= 1.4.2)
|
|
34
44
|
minitest (>= 5.1)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
securerandom (>= 0.3)
|
|
46
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
47
|
+
uri (>= 0.13.1)
|
|
48
|
+
base64 (0.3.0)
|
|
49
|
+
bigdecimal (4.0.1)
|
|
50
|
+
builder (3.3.0)
|
|
51
|
+
concurrent-ruby (1.3.6)
|
|
52
|
+
connection_pool (3.0.2)
|
|
39
53
|
crass (1.0.6)
|
|
54
|
+
date (3.5.1)
|
|
40
55
|
diff-lcs (1.4.4)
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
drb (2.2.3)
|
|
57
|
+
erb (6.0.1)
|
|
58
|
+
erubi (1.13.1)
|
|
59
|
+
i18n (1.14.8)
|
|
43
60
|
concurrent-ruby (~> 1.0)
|
|
61
|
+
io-console (0.8.2)
|
|
62
|
+
irb (1.16.0)
|
|
63
|
+
pp (>= 0.6.0)
|
|
64
|
+
rdoc (>= 4.0.0)
|
|
65
|
+
reline (>= 0.4.2)
|
|
66
|
+
json (2.18.0)
|
|
44
67
|
kaminari (1.2.2)
|
|
45
68
|
activesupport (>= 4.1.0)
|
|
46
69
|
kaminari-actionview (= 1.2.2)
|
|
@@ -53,38 +76,61 @@ GEM
|
|
|
53
76
|
activerecord
|
|
54
77
|
kaminari-core (= 1.2.2)
|
|
55
78
|
kaminari-core (1.2.2)
|
|
56
|
-
|
|
79
|
+
logger (1.7.0)
|
|
80
|
+
loofah (2.25.0)
|
|
57
81
|
crass (~> 1.0.2)
|
|
58
82
|
nokogiri (>= 1.12.0)
|
|
59
|
-
|
|
60
|
-
minitest (
|
|
61
|
-
|
|
83
|
+
mini_portile2 (2.8.9)
|
|
84
|
+
minitest (6.0.1)
|
|
85
|
+
prism (~> 1.5)
|
|
86
|
+
nokogiri (1.19.0)
|
|
87
|
+
mini_portile2 (~> 2.8.2)
|
|
62
88
|
racc (~> 1.4)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
89
|
+
pp (0.6.3)
|
|
90
|
+
prettyprint
|
|
91
|
+
prettyprint (0.2.0)
|
|
92
|
+
prism (1.9.0)
|
|
93
|
+
psych (5.3.1)
|
|
94
|
+
date
|
|
95
|
+
stringio
|
|
96
|
+
racc (1.8.1)
|
|
97
|
+
rack (3.2.4)
|
|
98
|
+
rack-session (2.1.1)
|
|
99
|
+
base64 (>= 0.1.0)
|
|
100
|
+
rack (>= 3.0.0)
|
|
101
|
+
rack-test (2.2.0)
|
|
66
102
|
rack (>= 1.3)
|
|
67
|
-
|
|
103
|
+
rackup (2.3.1)
|
|
104
|
+
rack (>= 3)
|
|
105
|
+
rails-dom-testing (2.3.0)
|
|
68
106
|
activesupport (>= 5.0.0)
|
|
69
107
|
minitest
|
|
70
108
|
nokogiri (>= 1.6)
|
|
71
|
-
rails-html-sanitizer (1.6.
|
|
109
|
+
rails-html-sanitizer (1.6.2)
|
|
72
110
|
loofah (~> 2.21)
|
|
73
|
-
nokogiri (
|
|
74
|
-
railties (
|
|
75
|
-
actionpack (=
|
|
76
|
-
activesupport (=
|
|
77
|
-
|
|
111
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
112
|
+
railties (8.1.2)
|
|
113
|
+
actionpack (= 8.1.2)
|
|
114
|
+
activesupport (= 8.1.2)
|
|
115
|
+
irb (~> 1.13)
|
|
116
|
+
rackup (>= 1.0.0)
|
|
78
117
|
rake (>= 12.2)
|
|
79
|
-
thor (~> 1.0)
|
|
80
|
-
|
|
118
|
+
thor (~> 1.0, >= 1.2.2)
|
|
119
|
+
tsort (>= 0.2)
|
|
120
|
+
zeitwerk (~> 2.6)
|
|
81
121
|
rake (13.0.6)
|
|
82
|
-
ransack (4.
|
|
83
|
-
activerecord (>=
|
|
84
|
-
activesupport (>=
|
|
122
|
+
ransack (4.4.1)
|
|
123
|
+
activerecord (>= 7.2)
|
|
124
|
+
activesupport (>= 7.2)
|
|
85
125
|
i18n
|
|
86
|
-
|
|
126
|
+
rdoc (7.1.0)
|
|
127
|
+
erb
|
|
128
|
+
psych (>= 4.0.0)
|
|
129
|
+
tsort
|
|
130
|
+
redis-client (0.26.4)
|
|
87
131
|
connection_pool
|
|
132
|
+
reline (0.6.3)
|
|
133
|
+
io-console (~> 0.5)
|
|
88
134
|
rspec (3.10.0)
|
|
89
135
|
rspec-core (~> 3.10.0)
|
|
90
136
|
rspec-expectations (~> 3.10.0)
|
|
@@ -98,24 +144,31 @@ GEM
|
|
|
98
144
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
99
145
|
rspec-support (~> 3.10.0)
|
|
100
146
|
rspec-support (3.10.3)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
connection_pool (>=
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
147
|
+
securerandom (0.4.1)
|
|
148
|
+
sidekiq (8.1.0)
|
|
149
|
+
connection_pool (>= 3.0.0)
|
|
150
|
+
json (>= 2.16.0)
|
|
151
|
+
logger (>= 1.7.0)
|
|
152
|
+
rack (>= 3.2.0)
|
|
153
|
+
redis-client (>= 0.26.0)
|
|
154
|
+
slim (5.2.1)
|
|
107
155
|
temple (~> 0.10.0)
|
|
108
156
|
tilt (>= 2.1.0)
|
|
109
|
-
slim-rails (
|
|
157
|
+
slim-rails (4.0.0)
|
|
110
158
|
actionpack (>= 3.1)
|
|
111
159
|
railties (>= 3.1)
|
|
112
160
|
slim (>= 3.0, < 6.0, != 5.0.0)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
161
|
+
stringio (3.2.0)
|
|
162
|
+
temple (0.10.4)
|
|
163
|
+
thor (1.5.0)
|
|
164
|
+
tilt (2.7.0)
|
|
165
|
+
timeout (0.6.0)
|
|
166
|
+
tsort (0.2.0)
|
|
116
167
|
tzinfo (2.0.6)
|
|
117
168
|
concurrent-ruby (~> 1.0)
|
|
118
|
-
|
|
169
|
+
uri (1.1.1)
|
|
170
|
+
useragent (0.16.11)
|
|
171
|
+
zeitwerk (2.7.4)
|
|
119
172
|
|
|
120
173
|
PLATFORMS
|
|
121
174
|
ruby
|
data/README.md
CHANGED
|
@@ -34,6 +34,8 @@ Set JobsDashboard::JobLogger as sidekiq default logger
|
|
|
34
34
|
require 'jobs_dashboard'
|
|
35
35
|
|
|
36
36
|
Sidekiq.configure_client do |config|
|
|
37
|
+
# accepts :expiration (optional)
|
|
38
|
+
JobsDashboard.configure_server_middleware config
|
|
37
39
|
# accepts :expiration (optional)
|
|
38
40
|
JobsDashboard.configure_client_middleware config
|
|
39
41
|
end
|
|
@@ -74,21 +76,18 @@ Options can be specified in worker's sidekiq_options with the key jobs_dashboard
|
|
|
74
76
|
|
|
75
77
|
In the job
|
|
76
78
|
```ruby
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# add metadata
|
|
82
|
-
add_job_metadata(key, value)
|
|
83
|
-
```
|
|
79
|
+
class MyJob
|
|
80
|
+
include Sidekiq::Worker
|
|
81
|
+
include JobsDashboard::Worker
|
|
84
82
|
|
|
85
|
-
|
|
83
|
+
def perform
|
|
84
|
+
# add log line
|
|
85
|
+
add_job_log_line(value)
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
add_log_line(message)
|
|
87
|
+
# add metadata
|
|
88
|
+
add_job_metadata(key, value)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
92
91
|
```
|
|
93
92
|
|
|
94
93
|
## Ajout d'un attribut commun a tous les jobs
|
|
@@ -11,11 +11,18 @@ module JobsDashboard
|
|
|
11
11
|
interrupted: 'interrupted'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
if ActiveRecord.version >= Gem::Version.new('7.1')
|
|
15
|
+
serialize :args, coder: YAML, type: Array
|
|
16
|
+
serialize :metadata, coder: YAML, type: Hash
|
|
17
|
+
serialize :logs, coder: YAML, type: Array
|
|
18
|
+
serialize :backtrace, coder: YAML, type: Array
|
|
19
|
+
else
|
|
20
|
+
serialize :args, Array
|
|
21
|
+
serialize :metadata, Hash
|
|
22
|
+
serialize :logs, Array
|
|
23
|
+
serialize :backtrace, Array
|
|
24
|
+
end
|
|
25
|
+
|
|
19
26
|
validates :sidekiq_jid, presence: true, uniqueness: true
|
|
20
27
|
|
|
21
28
|
def self.ransackable_attributes(auth_object = nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jobs_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patryk
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sidekiq
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
|
-
description:
|
|
69
|
+
description:
|
|
70
70
|
email:
|
|
71
71
|
- patryk@9troisquarts.com
|
|
72
72
|
executables: []
|
|
@@ -76,6 +76,7 @@ files:
|
|
|
76
76
|
- ".github/workflows/gem-push.yml"
|
|
77
77
|
- ".gitignore"
|
|
78
78
|
- ".rspec"
|
|
79
|
+
- ".ruby-version"
|
|
79
80
|
- CHANGELOG.md
|
|
80
81
|
- Gemfile
|
|
81
82
|
- Gemfile.lock
|
|
@@ -139,7 +140,7 @@ licenses:
|
|
|
139
140
|
metadata:
|
|
140
141
|
homepage_uri: https://github.com/9troisquarts/jobs_dashboard
|
|
141
142
|
source_code_uri: https://github.com/9troisquarts/jobs_dashboard
|
|
142
|
-
post_install_message:
|
|
143
|
+
post_install_message:
|
|
143
144
|
rdoc_options: []
|
|
144
145
|
require_paths:
|
|
145
146
|
- lib
|
|
@@ -154,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
155
|
- !ruby/object:Gem::Version
|
|
155
156
|
version: '0'
|
|
156
157
|
requirements: []
|
|
157
|
-
rubygems_version: 3.
|
|
158
|
-
signing_key:
|
|
158
|
+
rubygems_version: 3.5.22
|
|
159
|
+
signing_key:
|
|
159
160
|
specification_version: 4
|
|
160
161
|
summary: Sidekiq jobs dashboard
|
|
161
162
|
test_files: []
|