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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25c8d99bcb3a7e63265c395622e2f8fb9e6b0f046c5f318fa93586b3671871c0
4
- data.tar.gz: 1b8a7ffa2afd19d6653e6a0b0e0c771b8c3ebb1bb7f93a5ac27a081563359cb1
3
+ metadata.gz: 843f029259ef601e0bdf6ca314a26e70821a6c6f4983491010a914cc1930ea40
4
+ data.tar.gz: 6abf1b0962032dd428c90cd674f0d08df4c9b9e18e248df99c9bb827391e1a96
5
5
  SHA512:
6
- metadata.gz: 05b26dd1dc1db903ab5b0742500b8247e19674f115b36e936b84efea73bdb9966121049fa99c63ea03b5b73f6dd5a64e555c6234d8135247cad065cde297f764
7
- data.tar.gz: fe57891700e92baa02a191abc88afec92c5b69cf0e8190bf88e6ee919709c3010ed2f6842b93966a2c677f15df7370396fc97aee1943ffeb1f5e036f45795996
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)
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 (7.0.8)
14
- actionview (= 7.0.8)
15
- activesupport (= 7.0.8)
16
- rack (~> 2.0, >= 2.2.4)
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.0)
19
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
- actionview (7.0.8)
21
- activesupport (= 7.0.8)
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.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)
32
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- tzinfo (~> 2.0)
36
- builder (3.2.4)
37
- concurrent-ruby (1.2.2)
38
- connection_pool (2.4.1)
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
- erubi (1.12.0)
42
- i18n (1.14.1)
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
- loofah (2.21.4)
79
+ logger (1.7.0)
80
+ loofah (2.25.0)
57
81
  crass (~> 1.0.2)
58
82
  nokogiri (>= 1.12.0)
59
- method_source (1.0.0)
60
- minitest (5.20.0)
61
- nokogiri (1.15.4-arm64-darwin)
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
- racc (1.7.3)
64
- rack (2.2.8)
65
- rack-test (2.1.0)
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
- rails-dom-testing (2.2.0)
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.0)
109
+ rails-html-sanitizer (1.6.2)
72
110
  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
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
- zeitwerk (~> 2.5)
118
+ thor (~> 1.0, >= 1.2.2)
119
+ tsort (>= 0.2)
120
+ zeitwerk (~> 2.6)
81
121
  rake (13.0.6)
82
- ransack (4.1.1)
83
- activerecord (>= 6.1.5)
84
- activesupport (>= 6.1.5)
122
+ ransack (4.4.1)
123
+ activerecord (>= 7.2)
124
+ activesupport (>= 7.2)
85
125
  i18n
86
- redis-client (0.18.0)
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
- sidekiq (7.2.0)
102
- concurrent-ruby (< 2)
103
- connection_pool (>= 2.3.0)
104
- rack (>= 2.2.4)
105
- redis-client (>= 0.14.0)
106
- slim (5.1.1)
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 (3.6.3)
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
- temple (0.10.3)
114
- thor (1.3.0)
115
- tilt (2.3.0)
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
- zeitwerk (2.6.12)
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
- 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: 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)
@@ -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.7"
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.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: 2023-11-13 00:00:00.000000000 Z
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.3.7
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: []