jobs_dashboard 0.3.4 → 0.3.6

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: 25c8d99bcb3a7e63265c395622e2f8fb9e6b0f046c5f318fa93586b3671871c0
4
- data.tar.gz: 1b8a7ffa2afd19d6653e6a0b0e0c771b8c3ebb1bb7f93a5ac27a081563359cb1
3
+ metadata.gz: 6ac1716f4aaf56785c2824c1a4a29345f0e5e1072364a1365a9ae528f7c56b82
4
+ data.tar.gz: ca6972d982118346327002207cf0ffba43ed625cc1d8aa19404b7d7df6751ebf
5
5
  SHA512:
6
- metadata.gz: 05b26dd1dc1db903ab5b0742500b8247e19674f115b36e936b84efea73bdb9966121049fa99c63ea03b5b73f6dd5a64e555c6234d8135247cad065cde297f764
7
- data.tar.gz: fe57891700e92baa02a191abc88afec92c5b69cf0e8190bf88e6ee919709c3010ed2f6842b93966a2c677f15df7370396fc97aee1943ffeb1f5e036f45795996
6
+ metadata.gz: 3658f36fe5b8e22b86f2094faa4afbd52d3c8af18ad948e593ebba85f3c20c8e9e25b5bc2c54246c77f937092711ea0c312bb6cbc9fb907a245cc906d5b53ca2
7
+ data.tar.gz: 8ca563f3e6e0cc7c173c8fc35da70a7e771ecb10676709667405cbf1ea41f91902d13a40b6917f397986e4e11e14c6f926bd61c06e34327505a8d1fdc05685bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.3.6] - 2025-04-08
2
+ - Fix compatibility with rails 7.0 / 7.1 / 7.2 for version 0.3.5
3
+
4
+ ## [0.3.5] - 2025-04-08
5
+ - Add compatibility to rails 7.2
6
+
1
7
  ## [0.3.3] - 2023-11-07
2
8
  - Fix crash when there is data without item_type / queue
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jobs_dashboard (0.3.4)
4
+ jobs_dashboard (0.3.6)
5
5
  kaminari
6
6
  ransack
7
7
  sidekiq (>= 6.0)
@@ -10,37 +10,62 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (7.0.8)
14
- actionview (= 7.0.8)
15
- activesupport (= 7.0.8)
16
- rack (~> 2.0, >= 2.2.4)
13
+ actionpack (7.1.5.1)
14
+ actionview (= 7.1.5.1)
15
+ activesupport (= 7.1.5.1)
16
+ nokogiri (>= 1.8.5)
17
+ racc
18
+ rack (>= 2.2.4)
19
+ rack-session (>= 1.0.1)
17
20
  rack-test (>= 0.6.3)
18
- rails-dom-testing (~> 2.0)
19
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
- actionview (7.0.8)
21
- activesupport (= 7.0.8)
21
+ rails-dom-testing (~> 2.2)
22
+ rails-html-sanitizer (~> 1.6)
23
+ actionview (7.1.5.1)
24
+ activesupport (= 7.1.5.1)
22
25
  builder (~> 3.1)
23
- erubi (~> 1.4)
24
- rails-dom-testing (~> 2.0)
25
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
- activemodel (7.0.8)
27
- activesupport (= 7.0.8)
28
- activerecord (7.0.8)
29
- activemodel (= 7.0.8)
30
- activesupport (= 7.0.8)
31
- activesupport (7.0.8)
26
+ erubi (~> 1.11)
27
+ rails-dom-testing (~> 2.2)
28
+ rails-html-sanitizer (~> 1.6)
29
+ activemodel (7.1.5.1)
30
+ activesupport (= 7.1.5.1)
31
+ activerecord (7.1.5.1)
32
+ activemodel (= 7.1.5.1)
33
+ activesupport (= 7.1.5.1)
34
+ timeout (>= 0.4.0)
35
+ activesupport (7.1.5.1)
36
+ base64
37
+ benchmark (>= 0.3)
38
+ bigdecimal
32
39
  concurrent-ruby (~> 1.0, >= 1.0.2)
40
+ connection_pool (>= 2.2.5)
41
+ drb
33
42
  i18n (>= 1.6, < 2)
43
+ logger (>= 1.4.2)
34
44
  minitest (>= 5.1)
45
+ mutex_m
46
+ securerandom (>= 0.3)
35
47
  tzinfo (~> 2.0)
36
- builder (3.2.4)
37
- concurrent-ruby (1.2.2)
38
- connection_pool (2.4.1)
48
+ base64 (0.3.0)
49
+ benchmark (0.4.1)
50
+ bigdecimal (3.2.1)
51
+ builder (3.3.0)
52
+ cgi (0.4.2)
53
+ concurrent-ruby (1.3.5)
54
+ connection_pool (2.5.3)
39
55
  crass (1.0.6)
56
+ date (3.4.1)
40
57
  diff-lcs (1.4.4)
41
- erubi (1.12.0)
42
- i18n (1.14.1)
58
+ drb (2.2.3)
59
+ erb (4.0.4)
60
+ cgi (>= 0.3.3)
61
+ erubi (1.13.1)
62
+ i18n (1.14.7)
43
63
  concurrent-ruby (~> 1.0)
64
+ io-console (0.8.0)
65
+ irb (1.15.2)
66
+ pp (>= 0.6.0)
67
+ rdoc (>= 4.0.0)
68
+ reline (>= 0.4.2)
44
69
  kaminari (1.2.2)
45
70
  activesupport (>= 4.1.0)
46
71
  kaminari-actionview (= 1.2.2)
@@ -53,38 +78,58 @@ GEM
53
78
  activerecord
54
79
  kaminari-core (= 1.2.2)
55
80
  kaminari-core (1.2.2)
56
- loofah (2.21.4)
81
+ logger (1.7.0)
82
+ loofah (2.24.1)
57
83
  crass (~> 1.0.2)
58
84
  nokogiri (>= 1.12.0)
59
- method_source (1.0.0)
60
- minitest (5.20.0)
61
- nokogiri (1.15.4-arm64-darwin)
85
+ mini_portile2 (2.8.9)
86
+ minitest (5.25.5)
87
+ mutex_m (0.3.0)
88
+ nokogiri (1.15.7)
89
+ mini_portile2 (~> 2.8.2)
62
90
  racc (~> 1.4)
63
- racc (1.7.3)
64
- rack (2.2.8)
65
- rack-test (2.1.0)
91
+ pp (0.6.2)
92
+ prettyprint
93
+ prettyprint (0.2.0)
94
+ psych (5.2.6)
95
+ date
96
+ stringio
97
+ racc (1.8.1)
98
+ rack (3.1.15)
99
+ rack-session (2.1.1)
100
+ base64 (>= 0.1.0)
101
+ rack (>= 3.0.0)
102
+ rack-test (2.2.0)
66
103
  rack (>= 1.3)
67
- rails-dom-testing (2.2.0)
104
+ rackup (2.2.1)
105
+ rack (>= 3)
106
+ rails-dom-testing (2.3.0)
68
107
  activesupport (>= 5.0.0)
69
108
  minitest
70
109
  nokogiri (>= 1.6)
71
- rails-html-sanitizer (1.6.0)
110
+ rails-html-sanitizer (1.6.2)
72
111
  loofah (~> 2.21)
73
- nokogiri (~> 1.14)
74
- railties (7.0.8)
75
- actionpack (= 7.0.8)
76
- activesupport (= 7.0.8)
77
- method_source
112
+ 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)
113
+ railties (7.1.5.1)
114
+ actionpack (= 7.1.5.1)
115
+ activesupport (= 7.1.5.1)
116
+ irb
117
+ rackup (>= 1.0.0)
78
118
  rake (>= 12.2)
79
- thor (~> 1.0)
80
- zeitwerk (~> 2.5)
119
+ thor (~> 1.0, >= 1.2.2)
120
+ zeitwerk (~> 2.6)
81
121
  rake (13.0.6)
82
- ransack (4.1.1)
122
+ ransack (4.0.0)
83
123
  activerecord (>= 6.1.5)
84
124
  activesupport (>= 6.1.5)
85
125
  i18n
86
- redis-client (0.18.0)
126
+ rdoc (6.14.0)
127
+ erb
128
+ psych (>= 4.0.0)
129
+ redis-client (0.24.0)
87
130
  connection_pool
131
+ reline (0.6.1)
132
+ io-console (~> 0.5)
88
133
  rspec (3.10.0)
89
134
  rspec-core (~> 3.10.0)
90
135
  rspec-expectations (~> 3.10.0)
@@ -98,24 +143,28 @@ GEM
98
143
  diff-lcs (>= 1.2.0, < 2.0)
99
144
  rspec-support (~> 3.10.0)
100
145
  rspec-support (3.10.3)
101
- sidekiq (7.2.0)
102
- concurrent-ruby (< 2)
146
+ securerandom (0.3.2)
147
+ sidekiq (7.3.9)
148
+ base64
103
149
  connection_pool (>= 2.3.0)
150
+ logger
104
151
  rack (>= 2.2.4)
105
- redis-client (>= 0.14.0)
106
- slim (5.1.1)
152
+ redis-client (>= 0.22.2)
153
+ slim (5.2.1)
107
154
  temple (~> 0.10.0)
108
155
  tilt (>= 2.1.0)
109
- slim-rails (3.6.3)
156
+ slim-rails (3.7.0)
110
157
  actionpack (>= 3.1)
111
158
  railties (>= 3.1)
112
159
  slim (>= 3.0, < 6.0, != 5.0.0)
160
+ stringio (3.1.7)
113
161
  temple (0.10.3)
114
- thor (1.3.0)
115
- tilt (2.3.0)
162
+ thor (1.3.2)
163
+ tilt (2.6.0)
164
+ timeout (0.4.3)
116
165
  tzinfo (2.0.6)
117
166
  concurrent-ruby (~> 1.0)
118
- zeitwerk (2.6.12)
167
+ zeitwerk (2.6.18)
119
168
 
120
169
  PLATFORMS
121
170
  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
- include JobsDashboard::Worker
78
- # add log line
79
- add_job_log_line(value)
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
- ## Add a custom attribute
83
+ def perform
84
+ # add log line
85
+ add_job_log_line(value)
86
86
 
87
- Custom attribute can be added on the jobs_dashboard_job_logs table
88
-
89
- ```ruby
90
- include JobsDashboard::Worker
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
- serialize :args, Array
15
- serialize :metadata, Hash
16
- serialize :logs, Array
17
- serialize :backtrace, Array
18
-
14
+ if ActiveRecord.version >= Gem::Version.new('7.1')
15
+ serialize :args, coder: Array
16
+ serialize :metadata, coder: Hash
17
+ serialize :logs, coder: Array
18
+ serialize :backtrace, coder: 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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JobsDashboard
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.6"
5
5
  end
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
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patryk
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2025-06-02 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: []
@@ -139,7 +139,7 @@ licenses:
139
139
  metadata:
140
140
  homepage_uri: https://github.com/9troisquarts/jobs_dashboard
141
141
  source_code_uri: https://github.com/9troisquarts/jobs_dashboard
142
- post_install_message:
142
+ post_install_message:
143
143
  rdoc_options: []
144
144
  require_paths:
145
145
  - lib
@@ -154,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.3.7
158
- signing_key:
157
+ rubygems_version: 3.1.6
158
+ signing_key:
159
159
  specification_version: 4
160
160
  summary: Sidekiq jobs dashboard
161
161
  test_files: []