acidic_job 0.9.0 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +4 -5
- data/.gitignore +1 -1
- data/.rubocop.yml +0 -10
- data/Gemfile.lock +117 -112
- data/README.md +123 -140
- data/acidic_job.gemspec +2 -0
- data/bin/sandbox +1958 -0
- data/gemfiles/{rails_6.1_sidekiq_6.4.gemfile → rails_6.1.gemfile} +0 -2
- data/gemfiles/{rails_7.0_sidekiq_6.4.gemfile → rails_7.0.gemfile} +0 -2
- data/lib/acidic_job/active_kiq.rb +15 -44
- data/lib/acidic_job/arguments.rb +0 -8
- data/lib/acidic_job/errors.rb +0 -1
- data/lib/acidic_job/mixin.rb +19 -30
- data/lib/acidic_job/perform_wrapper.rb +5 -5
- data/lib/acidic_job/processor.rb +9 -8
- data/lib/acidic_job/run.rb +6 -27
- data/lib/acidic_job/serializer.rb +2 -2
- data/lib/acidic_job/serializers/exception_serializer.rb +18 -23
- data/lib/acidic_job/serializers/job_serializer.rb +14 -6
- data/lib/acidic_job/serializers/worker_serializer.rb +6 -4
- data/lib/acidic_job/version.rb +1 -1
- data/lib/acidic_job/workflow.rb +8 -0
- data/lib/acidic_job.rb +10 -10
- metadata +35 -23
- data/.github/FUNDING.yml +0 -13
- data/gemfiles/rails_6.1_sidekiq_6.5.gemfile +0 -10
- data/gemfiles/rails_6.1_sidekiq_7.0.gemfile +0 -10
- data/gemfiles/rails_7.0_sidekiq_6.5.gemfile +0 -10
- data/gemfiles/rails_7.0_sidekiq_7.0.gemfile +0 -10
- data/gemfiles/rails_7.1_sidekiq_6.4.gemfile +0 -10
- data/gemfiles/rails_7.1_sidekiq_6.5.gemfile +0 -10
- data/gemfiles/rails_7.1_sidekiq_7.0.gemfile +0 -10
- data/lib/acidic_job/configured_job.rb +0 -11
- data/lib/acidic_job/extensions/action_mailer.rb +0 -19
- data/lib/acidic_job/extensions/noticed.rb +0 -46
- data/lib/acidic_job/perform_acidicly.rb +0 -23
- data/lib/acidic_job/railtie.rb +0 -44
- data/lib/acidic_job/serializers/active_kiq_serializer.rb +0 -25
- data/lib/acidic_job/serializers/new_record_serializer.rb +0 -25
- data/lib/acidic_job/test_case.rb +0 -9
- data/lib/acidic_job/testing.rb +0 -73
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85bf301347e6dc78c6c2522dc435e3feec6c06aa79f3b0031b29b7d3300a2f9f
|
4
|
+
data.tar.gz: e0ee892b3e137e50cd4b0dcfcbf16c5a4800bc50e85d934a5b766dee477a0043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10da5b0f01d6b852cc5d083e4671e94707b600a0f95b7122b0f5f249ef71117fbdb77efb988daa7aa02a35ff013f923258ea0463aa2e37a1e21be45ad2be63f5
|
7
|
+
data.tar.gz: 210ff73c0292333978d488e8c31869db626df35f0ca64f728c9ec8b3e867938a52b4ab59bb95a6334a469223bdd5f0c188f9a241e92f07b8383e635c16b1cdaf
|
data/.github/workflows/main.yml
CHANGED
@@ -9,9 +9,8 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
fail-fast: false
|
11
11
|
matrix:
|
12
|
-
ruby: ["2.7", "3.0", "3.1"
|
13
|
-
rails: ["6.1", "7.0"]
|
14
|
-
sidekiq: ["6.4", "6.5", "7.0"]
|
12
|
+
ruby: ["2.7", "3.0", "3.1"]
|
13
|
+
rails: [ "6.1", "7.0" ]
|
15
14
|
services:
|
16
15
|
redis:
|
17
16
|
image: redis
|
@@ -24,10 +23,10 @@ jobs:
|
|
24
23
|
- 6379:6379
|
25
24
|
|
26
25
|
env:
|
27
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}
|
26
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile
|
28
27
|
|
29
28
|
steps:
|
30
|
-
- uses: actions/checkout@
|
29
|
+
- uses: actions/checkout@v2
|
31
30
|
|
32
31
|
- name: Set up Ruby
|
33
32
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-minitest
|
3
|
-
- rubocop-rake
|
4
|
-
|
5
1
|
AllCops:
|
6
2
|
TargetRubyVersion: 2.7
|
7
3
|
NewCops: enable
|
@@ -17,9 +13,6 @@ Style/StringLiteralsInInterpolation:
|
|
17
13
|
Layout/LineLength:
|
18
14
|
Max: 120
|
19
15
|
|
20
|
-
Gemspec/DevelopmentDependencies:
|
21
|
-
Enabled: false
|
22
|
-
|
23
16
|
Style/Documentation:
|
24
17
|
Enabled: false
|
25
18
|
|
@@ -42,7 +35,4 @@ Metrics/PerceivedComplexity:
|
|
42
35
|
Enabled: false
|
43
36
|
|
44
37
|
Metrics/ClassLength:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Minitest/MultipleAssertions:
|
48
38
|
Enabled: false
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
acidic_job (0.
|
4
|
+
acidic_job (1.0.0.beta.1)
|
5
5
|
activejob
|
6
6
|
activerecord
|
7
7
|
activesupport
|
@@ -9,94 +9,94 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (7.0.
|
13
|
-
actionpack (= 7.0.
|
14
|
-
activesupport (= 7.0.
|
12
|
+
actioncable (7.0.3.1)
|
13
|
+
actionpack (= 7.0.3.1)
|
14
|
+
activesupport (= 7.0.3.1)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (7.0.
|
18
|
-
actionpack (= 7.0.
|
19
|
-
activejob (= 7.0.
|
20
|
-
activerecord (= 7.0.
|
21
|
-
activestorage (= 7.0.
|
22
|
-
activesupport (= 7.0.
|
17
|
+
actionmailbox (7.0.3.1)
|
18
|
+
actionpack (= 7.0.3.1)
|
19
|
+
activejob (= 7.0.3.1)
|
20
|
+
activerecord (= 7.0.3.1)
|
21
|
+
activestorage (= 7.0.3.1)
|
22
|
+
activesupport (= 7.0.3.1)
|
23
23
|
mail (>= 2.7.1)
|
24
24
|
net-imap
|
25
25
|
net-pop
|
26
26
|
net-smtp
|
27
|
-
actionmailer (7.0.
|
28
|
-
actionpack (= 7.0.
|
29
|
-
actionview (= 7.0.
|
30
|
-
activejob (= 7.0.
|
31
|
-
activesupport (= 7.0.
|
27
|
+
actionmailer (7.0.3.1)
|
28
|
+
actionpack (= 7.0.3.1)
|
29
|
+
actionview (= 7.0.3.1)
|
30
|
+
activejob (= 7.0.3.1)
|
31
|
+
activesupport (= 7.0.3.1)
|
32
32
|
mail (~> 2.5, >= 2.5.4)
|
33
33
|
net-imap
|
34
34
|
net-pop
|
35
35
|
net-smtp
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
|
-
actionpack (7.0.
|
38
|
-
actionview (= 7.0.
|
39
|
-
activesupport (= 7.0.
|
37
|
+
actionpack (7.0.3.1)
|
38
|
+
actionview (= 7.0.3.1)
|
39
|
+
activesupport (= 7.0.3.1)
|
40
40
|
rack (~> 2.0, >= 2.2.0)
|
41
41
|
rack-test (>= 0.6.3)
|
42
42
|
rails-dom-testing (~> 2.0)
|
43
43
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
44
|
-
actiontext (7.0.
|
45
|
-
actionpack (= 7.0.
|
46
|
-
activerecord (= 7.0.
|
47
|
-
activestorage (= 7.0.
|
48
|
-
activesupport (= 7.0.
|
44
|
+
actiontext (7.0.3.1)
|
45
|
+
actionpack (= 7.0.3.1)
|
46
|
+
activerecord (= 7.0.3.1)
|
47
|
+
activestorage (= 7.0.3.1)
|
48
|
+
activesupport (= 7.0.3.1)
|
49
49
|
globalid (>= 0.6.0)
|
50
50
|
nokogiri (>= 1.8.5)
|
51
|
-
actionview (7.0.
|
52
|
-
activesupport (= 7.0.
|
51
|
+
actionview (7.0.3.1)
|
52
|
+
activesupport (= 7.0.3.1)
|
53
53
|
builder (~> 3.1)
|
54
54
|
erubi (~> 1.4)
|
55
55
|
rails-dom-testing (~> 2.0)
|
56
56
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
57
|
-
activejob (7.0.
|
58
|
-
activesupport (= 7.0.
|
57
|
+
activejob (7.0.3.1)
|
58
|
+
activesupport (= 7.0.3.1)
|
59
59
|
globalid (>= 0.3.6)
|
60
|
-
activemodel (7.0.
|
61
|
-
activesupport (= 7.0.
|
62
|
-
activerecord (7.0.
|
63
|
-
activemodel (= 7.0.
|
64
|
-
activesupport (= 7.0.
|
65
|
-
activestorage (7.0.
|
66
|
-
actionpack (= 7.0.
|
67
|
-
activejob (= 7.0.
|
68
|
-
activerecord (= 7.0.
|
69
|
-
activesupport (= 7.0.
|
60
|
+
activemodel (7.0.3.1)
|
61
|
+
activesupport (= 7.0.3.1)
|
62
|
+
activerecord (7.0.3.1)
|
63
|
+
activemodel (= 7.0.3.1)
|
64
|
+
activesupport (= 7.0.3.1)
|
65
|
+
activestorage (7.0.3.1)
|
66
|
+
actionpack (= 7.0.3.1)
|
67
|
+
activejob (= 7.0.3.1)
|
68
|
+
activerecord (= 7.0.3.1)
|
69
|
+
activesupport (= 7.0.3.1)
|
70
70
|
marcel (~> 1.0)
|
71
71
|
mini_mime (>= 1.1.0)
|
72
|
-
activesupport (7.0.
|
72
|
+
activesupport (7.0.3.1)
|
73
73
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
74
74
|
i18n (>= 1.6, < 2)
|
75
75
|
minitest (>= 5.1)
|
76
76
|
tzinfo (~> 2.0)
|
77
|
-
addressable (2.8.
|
78
|
-
public_suffix (>= 2.0.2, <
|
77
|
+
addressable (2.8.0)
|
78
|
+
public_suffix (>= 2.0.2, < 5.0)
|
79
79
|
ast (2.4.2)
|
80
80
|
builder (3.2.4)
|
81
81
|
combustion (1.3.7)
|
82
82
|
activesupport (>= 3.0.0)
|
83
83
|
railties (>= 3.0.0)
|
84
84
|
thor (>= 0.14.6)
|
85
|
-
concurrent-ruby (1.
|
86
|
-
connection_pool (2.
|
85
|
+
concurrent-ruby (1.1.10)
|
86
|
+
connection_pool (2.2.5)
|
87
87
|
crass (1.0.6)
|
88
|
-
|
88
|
+
digest (3.1.0)
|
89
89
|
docile (1.4.0)
|
90
90
|
domain_name (0.5.20190701)
|
91
91
|
unf (>= 0.0.5, < 1.0.0)
|
92
|
-
erubi (1.
|
92
|
+
erubi (1.10.0)
|
93
93
|
ffi (1.15.5)
|
94
94
|
ffi-compiler (1.0.1)
|
95
95
|
ffi (>= 1.0.0)
|
96
96
|
rake
|
97
|
-
globalid (1.
|
97
|
+
globalid (1.0.0)
|
98
98
|
activesupport (>= 5.0)
|
99
|
-
http (5.1.
|
99
|
+
http (5.1.0)
|
100
100
|
addressable (~> 2.8)
|
101
101
|
http-cookie (~> 1.0)
|
102
102
|
http-form_data (~> 2.2)
|
@@ -106,124 +106,127 @@ GEM
|
|
106
106
|
http-form_data (2.3.0)
|
107
107
|
i18n (1.12.0)
|
108
108
|
concurrent-ruby (~> 1.0)
|
109
|
-
json (2.6.
|
109
|
+
json (2.6.2)
|
110
110
|
llhttp-ffi (0.4.0)
|
111
111
|
ffi-compiler (~> 1.0)
|
112
112
|
rake (~> 13.0)
|
113
|
-
loofah (2.
|
113
|
+
loofah (2.18.0)
|
114
114
|
crass (~> 1.0.2)
|
115
115
|
nokogiri (>= 1.5.9)
|
116
|
-
mail (2.
|
116
|
+
mail (2.7.1)
|
117
117
|
mini_mime (>= 0.1.1)
|
118
|
-
net-imap
|
119
|
-
net-pop
|
120
|
-
net-smtp
|
121
118
|
marcel (1.0.2)
|
122
119
|
method_source (1.0.0)
|
123
120
|
mini_mime (1.1.2)
|
124
|
-
mini_portile2 (2.8.
|
125
|
-
minitest (5.
|
126
|
-
net-imap (0.3
|
127
|
-
|
121
|
+
mini_portile2 (2.8.0)
|
122
|
+
minitest (5.16.2)
|
123
|
+
net-imap (0.2.3)
|
124
|
+
digest
|
128
125
|
net-protocol
|
129
|
-
|
126
|
+
strscan
|
127
|
+
net-pop (0.1.1)
|
128
|
+
digest
|
130
129
|
net-protocol
|
131
|
-
net-protocol (0.2.1)
|
132
130
|
timeout
|
133
|
-
net-
|
131
|
+
net-protocol (0.1.3)
|
132
|
+
timeout
|
133
|
+
net-smtp (0.3.1)
|
134
|
+
digest
|
134
135
|
net-protocol
|
135
|
-
|
136
|
-
|
136
|
+
timeout
|
137
|
+
nio4r (2.5.8)
|
138
|
+
nokogiri (1.13.7)
|
137
139
|
mini_portile2 (~> 2.8.0)
|
138
140
|
racc (~> 1.4)
|
139
|
-
nokogiri (1.
|
141
|
+
nokogiri (1.13.7-x86_64-darwin)
|
140
142
|
racc (~> 1.4)
|
141
|
-
noticed (1.
|
143
|
+
noticed (1.5.9)
|
142
144
|
http (>= 4.0.0)
|
143
145
|
rails (>= 5.2.0)
|
144
146
|
parallel (1.22.1)
|
145
|
-
parser (3.
|
147
|
+
parser (3.1.2.0)
|
146
148
|
ast (~> 2.4.1)
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
149
|
+
psych (4.0.4)
|
150
|
+
stringio
|
151
|
+
public_suffix (4.0.7)
|
152
|
+
racc (1.6.0)
|
153
|
+
rack (2.2.4)
|
154
|
+
rack-test (2.0.2)
|
151
155
|
rack (>= 1.3)
|
152
|
-
rails (7.0.
|
153
|
-
actioncable (= 7.0.
|
154
|
-
actionmailbox (= 7.0.
|
155
|
-
actionmailer (= 7.0.
|
156
|
-
actionpack (= 7.0.
|
157
|
-
actiontext (= 7.0.
|
158
|
-
actionview (= 7.0.
|
159
|
-
activejob (= 7.0.
|
160
|
-
activemodel (= 7.0.
|
161
|
-
activerecord (= 7.0.
|
162
|
-
activestorage (= 7.0.
|
163
|
-
activesupport (= 7.0.
|
156
|
+
rails (7.0.3.1)
|
157
|
+
actioncable (= 7.0.3.1)
|
158
|
+
actionmailbox (= 7.0.3.1)
|
159
|
+
actionmailer (= 7.0.3.1)
|
160
|
+
actionpack (= 7.0.3.1)
|
161
|
+
actiontext (= 7.0.3.1)
|
162
|
+
actionview (= 7.0.3.1)
|
163
|
+
activejob (= 7.0.3.1)
|
164
|
+
activemodel (= 7.0.3.1)
|
165
|
+
activerecord (= 7.0.3.1)
|
166
|
+
activestorage (= 7.0.3.1)
|
167
|
+
activesupport (= 7.0.3.1)
|
164
168
|
bundler (>= 1.15.0)
|
165
|
-
railties (= 7.0.
|
169
|
+
railties (= 7.0.3.1)
|
166
170
|
rails-dom-testing (2.0.3)
|
167
171
|
activesupport (>= 4.2.0)
|
168
172
|
nokogiri (>= 1.6)
|
169
|
-
rails-html-sanitizer (1.
|
170
|
-
loofah (~> 2.
|
171
|
-
railties (7.0.
|
172
|
-
actionpack (= 7.0.
|
173
|
-
activesupport (= 7.0.
|
173
|
+
rails-html-sanitizer (1.4.3)
|
174
|
+
loofah (~> 2.3)
|
175
|
+
railties (7.0.3.1)
|
176
|
+
actionpack (= 7.0.3.1)
|
177
|
+
activesupport (= 7.0.3.1)
|
174
178
|
method_source
|
175
179
|
rake (>= 12.2)
|
176
180
|
thor (~> 1.0)
|
177
181
|
zeitwerk (~> 2.5)
|
178
182
|
rainbow (3.1.1)
|
179
183
|
rake (13.0.6)
|
180
|
-
redis
|
181
|
-
|
182
|
-
regexp_parser (2.8.0)
|
184
|
+
redis (4.7.1)
|
185
|
+
regexp_parser (2.5.0)
|
183
186
|
rexml (3.2.5)
|
184
|
-
rubocop (1.
|
187
|
+
rubocop (1.31.2)
|
185
188
|
json (~> 2.3)
|
186
189
|
parallel (~> 1.10)
|
187
|
-
parser (>= 3.
|
190
|
+
parser (>= 3.1.0.0)
|
188
191
|
rainbow (>= 2.2.2, < 4.0)
|
189
192
|
regexp_parser (>= 1.8, < 3.0)
|
190
193
|
rexml (>= 3.2.5, < 4.0)
|
191
|
-
rubocop-ast (>= 1.
|
194
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
192
195
|
ruby-progressbar (~> 1.7)
|
193
|
-
unicode-display_width (>=
|
194
|
-
rubocop-ast (1.
|
195
|
-
parser (>= 3.
|
196
|
-
rubocop-minitest (0.
|
197
|
-
rubocop (>=
|
196
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
197
|
+
rubocop-ast (1.19.1)
|
198
|
+
parser (>= 3.1.1.0)
|
199
|
+
rubocop-minitest (0.20.1)
|
200
|
+
rubocop (>= 0.90, < 2.0)
|
198
201
|
rubocop-rake (0.6.0)
|
199
202
|
rubocop (~> 1.0)
|
200
|
-
ruby-progressbar (1.
|
201
|
-
sidekiq (
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
simplecov (0.22.0)
|
203
|
+
ruby-progressbar (1.11.0)
|
204
|
+
sidekiq (6.5.1)
|
205
|
+
connection_pool (>= 2.2.2)
|
206
|
+
rack (~> 2.0)
|
207
|
+
redis (>= 4.2.0)
|
208
|
+
simplecov (0.21.2)
|
207
209
|
docile (~> 1.1)
|
208
210
|
simplecov-html (~> 0.11)
|
209
211
|
simplecov_json_formatter (~> 0.1)
|
210
212
|
simplecov-html (0.12.3)
|
211
213
|
simplecov_json_formatter (0.1.4)
|
212
|
-
sqlite3 (1.
|
213
|
-
|
214
|
-
|
214
|
+
sqlite3 (1.4.4)
|
215
|
+
stringio (3.0.2)
|
216
|
+
strscan (3.0.3)
|
215
217
|
thor (1.2.1)
|
216
|
-
timeout (0.3.
|
217
|
-
tzinfo (2.0.
|
218
|
+
timeout (0.3.0)
|
219
|
+
tzinfo (2.0.4)
|
218
220
|
concurrent-ruby (~> 1.0)
|
219
221
|
unf (0.1.4)
|
220
222
|
unf_ext
|
221
223
|
unf_ext (0.0.8.2)
|
222
|
-
unicode-display_width (2.
|
224
|
+
unicode-display_width (2.2.0)
|
225
|
+
warning (1.3.0)
|
223
226
|
websocket-driver (0.7.5)
|
224
227
|
websocket-extensions (>= 0.1.0)
|
225
228
|
websocket-extensions (0.1.5)
|
226
|
-
zeitwerk (2.6.
|
229
|
+
zeitwerk (2.6.0)
|
227
230
|
|
228
231
|
PLATFORMS
|
229
232
|
ruby
|
@@ -235,6 +238,7 @@ DEPENDENCIES
|
|
235
238
|
minitest
|
236
239
|
net-smtp
|
237
240
|
noticed
|
241
|
+
psych (> 4.0)
|
238
242
|
railties
|
239
243
|
rake
|
240
244
|
rubocop
|
@@ -243,6 +247,7 @@ DEPENDENCIES
|
|
243
247
|
sidekiq
|
244
248
|
simplecov
|
245
249
|
sqlite3
|
250
|
+
warning
|
246
251
|
|
247
252
|
BUNDLED WITH
|
248
|
-
2.
|
253
|
+
2.2.32
|