jobs_dashboard 0.3.6 → 0.3.8

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: 6ac1716f4aaf56785c2824c1a4a29345f0e5e1072364a1365a9ae528f7c56b82
4
- data.tar.gz: ca6972d982118346327002207cf0ffba43ed625cc1d8aa19404b7d7df6751ebf
3
+ metadata.gz: 640fecb3fc6f5e5b6ea42766f7d894bde08fe2b4bcd3aa527642b9bf2a591226
4
+ data.tar.gz: 9ac62eaf8804e46afdfeb996535b8862e24ddfe2f0d3276ebe8fb6400f52d592
5
5
  SHA512:
6
- metadata.gz: 3658f36fe5b8e22b86f2094faa4afbd52d3c8af18ad948e593ebba85f3c20c8e9e25b5bc2c54246c77f937092711ea0c312bb6cbc9fb907a245cc906d5b53ca2
7
- data.tar.gz: 8ca563f3e6e0cc7c173c8fc35da70a7e771ecb10676709667405cbf1ea41f91902d13a40b6917f397986e4e11e14c6f926bd61c06e34327505a8d1fdc05685bd
6
+ metadata.gz: b436ab75222a5f468bdf4a8ec8fff3d2950f3db6a1e756538f560883c8eccf9297bf0c64fb53f5abe00c5ac55dac7c81da732aa7a53a24dad4370fe23ddcaebe
7
+ data.tar.gz: 49a6d5b0b08d392e09cc28c62a3e1036e337509ad21fd6b747423d180a98aee8db1ab90bdaa31e9498d210220694e80a084aad8208a93950c2a832cf2d8bfad5
@@ -13,14 +13,12 @@ jobs:
13
13
  packages: write
14
14
 
15
15
  steps:
16
- - uses: actions/checkout@v3
17
- - name: Set up Ruby 2.6
18
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
19
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
20
- # uses: ruby/setup-ruby@v1
21
- uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
16
+ - uses: actions/checkout@v4
17
+
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@v1
22
20
  with:
23
- ruby-version: 3.1.1
21
+ ruby-version: '3.3'
24
22
 
25
23
  - name: Publish to RubyGems
26
24
  run: |
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.10
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.3.8] - 2026-06-22
2
+ - Fix Rails 8 compatibility: use `enum :status, { ... }` syntax
3
+
4
+ ## [0.3.7] - 2025-04-08
5
+ - Fix rails 7.2 compatibility
6
+
1
7
  ## [0.3.6] - 2025-04-08
2
8
  - Fix compatibility with rails 7.0 / 7.1 / 7.2 for version 0.3.5
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jobs_dashboard (0.3.6)
4
+ jobs_dashboard (0.3.8)
5
5
  kaminari
6
6
  ransack
7
7
  sidekiq (>= 6.0)
@@ -10,62 +10,61 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (7.1.5.1)
14
- actionview (= 7.1.5.1)
15
- activesupport (= 7.1.5.1)
13
+ actionpack (8.1.3)
14
+ actionview (= 8.1.3)
15
+ activesupport (= 8.1.3)
16
16
  nokogiri (>= 1.8.5)
17
- racc
18
17
  rack (>= 2.2.4)
19
18
  rack-session (>= 1.0.1)
20
19
  rack-test (>= 0.6.3)
21
20
  rails-dom-testing (~> 2.2)
22
21
  rails-html-sanitizer (~> 1.6)
23
- actionview (7.1.5.1)
24
- activesupport (= 7.1.5.1)
22
+ useragent (~> 0.16)
23
+ actionview (8.1.3)
24
+ activesupport (= 8.1.3)
25
25
  builder (~> 3.1)
26
26
  erubi (~> 1.11)
27
27
  rails-dom-testing (~> 2.2)
28
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)
29
+ activemodel (8.1.3)
30
+ activesupport (= 8.1.3)
31
+ activerecord (8.1.3)
32
+ activemodel (= 8.1.3)
33
+ activesupport (= 8.1.3)
34
34
  timeout (>= 0.4.0)
35
- activesupport (7.1.5.1)
35
+ activesupport (8.1.3)
36
36
  base64
37
- benchmark (>= 0.3)
38
37
  bigdecimal
39
- concurrent-ruby (~> 1.0, >= 1.0.2)
38
+ concurrent-ruby (~> 1.0, >= 1.3.1)
40
39
  connection_pool (>= 2.2.5)
41
40
  drb
42
41
  i18n (>= 1.6, < 2)
42
+ json
43
43
  logger (>= 1.4.2)
44
44
  minitest (>= 5.1)
45
- mutex_m
46
45
  securerandom (>= 0.3)
47
- tzinfo (~> 2.0)
46
+ tzinfo (~> 2.0, >= 2.0.5)
47
+ uri (>= 0.13.1)
48
48
  base64 (0.3.0)
49
- benchmark (0.4.1)
50
- bigdecimal (3.2.1)
49
+ bigdecimal (4.1.2)
51
50
  builder (3.3.0)
52
- cgi (0.4.2)
53
- concurrent-ruby (1.3.5)
54
- connection_pool (2.5.3)
51
+ concurrent-ruby (1.3.7)
52
+ connection_pool (3.0.2)
55
53
  crass (1.0.6)
56
- date (3.4.1)
54
+ date (3.5.1)
57
55
  diff-lcs (1.4.4)
58
56
  drb (2.2.3)
59
- erb (4.0.4)
60
- cgi (>= 0.3.3)
57
+ erb (6.0.4)
61
58
  erubi (1.13.1)
62
- i18n (1.14.7)
59
+ i18n (1.15.2)
63
60
  concurrent-ruby (~> 1.0)
64
- io-console (0.8.0)
65
- irb (1.15.2)
61
+ io-console (0.8.2)
62
+ irb (1.18.0)
66
63
  pp (>= 0.6.0)
64
+ prism (>= 1.3.0)
67
65
  rdoc (>= 4.0.0)
68
66
  reline (>= 0.4.2)
67
+ json (2.19.9)
69
68
  kaminari (1.2.2)
70
69
  activesupport (>= 4.1.0)
71
70
  kaminari-actionview (= 1.2.2)
@@ -79,56 +78,60 @@ GEM
79
78
  kaminari-core (= 1.2.2)
80
79
  kaminari-core (1.2.2)
81
80
  logger (1.7.0)
82
- loofah (2.24.1)
81
+ loofah (2.25.1)
83
82
  crass (~> 1.0.2)
84
83
  nokogiri (>= 1.12.0)
85
84
  mini_portile2 (2.8.9)
86
- minitest (5.25.5)
87
- mutex_m (0.3.0)
88
- nokogiri (1.15.7)
85
+ minitest (6.0.6)
86
+ drb (~> 2.0)
87
+ prism (~> 1.5)
88
+ nokogiri (1.19.4)
89
89
  mini_portile2 (~> 2.8.2)
90
90
  racc (~> 1.4)
91
- pp (0.6.2)
91
+ pp (0.6.4)
92
92
  prettyprint
93
93
  prettyprint (0.2.0)
94
- psych (5.2.6)
94
+ prism (1.9.0)
95
+ psych (5.4.0)
95
96
  date
96
97
  stringio
97
98
  racc (1.8.1)
98
- rack (3.1.15)
99
- rack-session (2.1.1)
99
+ rack (3.2.6)
100
+ rack-session (2.1.2)
100
101
  base64 (>= 0.1.0)
101
102
  rack (>= 3.0.0)
102
103
  rack-test (2.2.0)
103
104
  rack (>= 1.3)
104
- rackup (2.2.1)
105
+ rackup (2.3.1)
105
106
  rack (>= 3)
106
107
  rails-dom-testing (2.3.0)
107
108
  activesupport (>= 5.0.0)
108
109
  minitest
109
110
  nokogiri (>= 1.6)
110
- rails-html-sanitizer (1.6.2)
111
- loofah (~> 2.21)
111
+ rails-html-sanitizer (1.7.0)
112
+ loofah (~> 2.25)
112
113
  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
114
+ railties (8.1.3)
115
+ actionpack (= 8.1.3)
116
+ activesupport (= 8.1.3)
117
+ irb (~> 1.13)
117
118
  rackup (>= 1.0.0)
118
119
  rake (>= 12.2)
119
120
  thor (~> 1.0, >= 1.2.2)
121
+ tsort (>= 0.2)
120
122
  zeitwerk (~> 2.6)
121
123
  rake (13.0.6)
122
- ransack (4.0.0)
123
- activerecord (>= 6.1.5)
124
- activesupport (>= 6.1.5)
124
+ ransack (4.4.1)
125
+ activerecord (>= 7.2)
126
+ activesupport (>= 7.2)
125
127
  i18n
126
- rdoc (6.14.0)
128
+ rdoc (7.2.0)
127
129
  erb
128
130
  psych (>= 4.0.0)
129
- redis-client (0.24.0)
131
+ tsort
132
+ redis-client (0.30.0)
130
133
  connection_pool
131
- reline (0.6.1)
134
+ reline (0.6.3)
132
135
  io-console (~> 0.5)
133
136
  rspec (3.10.0)
134
137
  rspec-core (~> 3.10.0)
@@ -143,28 +146,31 @@ GEM
143
146
  diff-lcs (>= 1.2.0, < 2.0)
144
147
  rspec-support (~> 3.10.0)
145
148
  rspec-support (3.10.3)
146
- securerandom (0.3.2)
147
- sidekiq (7.3.9)
148
- base64
149
- connection_pool (>= 2.3.0)
150
- logger
151
- rack (>= 2.2.4)
152
- redis-client (>= 0.22.2)
149
+ securerandom (0.4.1)
150
+ sidekiq (8.1.6)
151
+ connection_pool (>= 3.0.0)
152
+ json (>= 2.16.0)
153
+ logger (>= 1.7.0)
154
+ rack (>= 3.2.0)
155
+ redis-client (>= 0.29.0)
153
156
  slim (5.2.1)
154
157
  temple (~> 0.10.0)
155
158
  tilt (>= 2.1.0)
156
- slim-rails (3.7.0)
159
+ slim-rails (4.0.0)
157
160
  actionpack (>= 3.1)
158
161
  railties (>= 3.1)
159
162
  slim (>= 3.0, < 6.0, != 5.0.0)
160
- stringio (3.1.7)
161
- temple (0.10.3)
162
- thor (1.3.2)
163
- tilt (2.6.0)
164
- timeout (0.4.3)
163
+ stringio (3.2.0)
164
+ temple (0.10.4)
165
+ thor (1.5.0)
166
+ tilt (2.7.0)
167
+ timeout (0.6.1)
168
+ tsort (0.2.0)
165
169
  tzinfo (2.0.6)
166
170
  concurrent-ruby (~> 1.0)
167
- zeitwerk (2.6.18)
171
+ uri (1.1.1)
172
+ useragent (0.16.11)
173
+ zeitwerk (2.8.2)
168
174
 
169
175
  PLATFORMS
170
176
  ruby
@@ -2,20 +2,26 @@ module JobsDashboard
2
2
  DEFAULT_LOCAL_TIME_ZONE = 'Europe/Paris'
3
3
 
4
4
  class JobLog < ApplicationRecord
5
- enum status: {
5
+ STATUSES = {
6
6
  queued: 'queued',
7
7
  working: 'working',
8
8
  retrying: 'retrying',
9
9
  complete: 'complete',
10
10
  failed: 'failed',
11
11
  interrupted: 'interrupted'
12
- }
12
+ }.freeze
13
13
 
14
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
15
+ enum :status, STATUSES
16
+ else
17
+ enum status: STATUSES
18
+ end
19
+
20
+ if ActiveRecord.version >= Gem::Version.new('7.1')
21
+ serialize :args, coder: YAML, type: Array
22
+ serialize :metadata, coder: YAML, type: Hash
23
+ serialize :logs, coder: YAML, type: Array
24
+ serialize :backtrace, coder: YAML, type: Array
19
25
  else
20
26
  serialize :args, Array
21
27
  serialize :metadata, Hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JobsDashboard
4
- VERSION = "0.3.6"
4
+ VERSION = "0.3.8"
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.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patryk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-06-02 00:00:00.000000000 Z
11
+ date: 2026-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -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
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  - !ruby/object:Gem::Version
155
156
  version: '0'
156
157
  requirements: []
157
- rubygems_version: 3.1.6
158
+ rubygems_version: 3.5.22
158
159
  signing_key:
159
160
  specification_version: 4
160
161
  summary: Sidekiq jobs dashboard