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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +4 -5
  3. data/.gitignore +1 -1
  4. data/.rubocop.yml +0 -10
  5. data/Gemfile.lock +117 -112
  6. data/README.md +123 -140
  7. data/acidic_job.gemspec +2 -0
  8. data/bin/sandbox +1958 -0
  9. data/gemfiles/{rails_6.1_sidekiq_6.4.gemfile → rails_6.1.gemfile} +0 -2
  10. data/gemfiles/{rails_7.0_sidekiq_6.4.gemfile → rails_7.0.gemfile} +0 -2
  11. data/lib/acidic_job/active_kiq.rb +15 -44
  12. data/lib/acidic_job/arguments.rb +0 -8
  13. data/lib/acidic_job/errors.rb +0 -1
  14. data/lib/acidic_job/mixin.rb +19 -30
  15. data/lib/acidic_job/perform_wrapper.rb +5 -5
  16. data/lib/acidic_job/processor.rb +9 -8
  17. data/lib/acidic_job/run.rb +6 -27
  18. data/lib/acidic_job/serializer.rb +2 -2
  19. data/lib/acidic_job/serializers/exception_serializer.rb +18 -23
  20. data/lib/acidic_job/serializers/job_serializer.rb +14 -6
  21. data/lib/acidic_job/serializers/worker_serializer.rb +6 -4
  22. data/lib/acidic_job/version.rb +1 -1
  23. data/lib/acidic_job/workflow.rb +8 -0
  24. data/lib/acidic_job.rb +10 -10
  25. metadata +35 -23
  26. data/.github/FUNDING.yml +0 -13
  27. data/gemfiles/rails_6.1_sidekiq_6.5.gemfile +0 -10
  28. data/gemfiles/rails_6.1_sidekiq_7.0.gemfile +0 -10
  29. data/gemfiles/rails_7.0_sidekiq_6.5.gemfile +0 -10
  30. data/gemfiles/rails_7.0_sidekiq_7.0.gemfile +0 -10
  31. data/gemfiles/rails_7.1_sidekiq_6.4.gemfile +0 -10
  32. data/gemfiles/rails_7.1_sidekiq_6.5.gemfile +0 -10
  33. data/gemfiles/rails_7.1_sidekiq_7.0.gemfile +0 -10
  34. data/lib/acidic_job/configured_job.rb +0 -11
  35. data/lib/acidic_job/extensions/action_mailer.rb +0 -19
  36. data/lib/acidic_job/extensions/noticed.rb +0 -46
  37. data/lib/acidic_job/perform_acidicly.rb +0 -23
  38. data/lib/acidic_job/railtie.rb +0 -44
  39. data/lib/acidic_job/serializers/active_kiq_serializer.rb +0 -25
  40. data/lib/acidic_job/serializers/new_record_serializer.rb +0 -25
  41. data/lib/acidic_job/test_case.rb +0 -9
  42. data/lib/acidic_job/testing.rb +0 -73
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81f0d07fd3ed80da090cad46ec491cc26eb563daf53409929a35c82cb63205fd
4
- data.tar.gz: 64de5c5c2ae35b4ce1fc50495b1dd647c722a80075f6371aa62dd7ba6996ebdc
3
+ metadata.gz: 85bf301347e6dc78c6c2522dc435e3feec6c06aa79f3b0031b29b7d3300a2f9f
4
+ data.tar.gz: e0ee892b3e137e50cd4b0dcfcbf16c5a4800bc50e85d934a5b766dee477a0043
5
5
  SHA512:
6
- metadata.gz: 0fd0a5171079377a1c9e9d810af1e95e955defbe5bb1bd929b627f1b5e66bdea3ae7276728de7369076ad09fd3bf24b23427706f971b69bdb68c912fffdbd14d
7
- data.tar.gz: 12a1ba218ac52d17bdff46307055a04df317c95600f40eb4391e8d40a8f37169ac3360a8c6fa05657d5c3fb5fac3de92aea8f79b6b81f72604690a63ae4d14cd
6
+ metadata.gz: 10da5b0f01d6b852cc5d083e4671e94707b600a0f95b7122b0f5f249ef71117fbdb77efb988daa7aa02a35ff013f923258ea0463aa2e37a1e21be45ad2be63f5
7
+ data.tar.gz: 210ff73c0292333978d488e8c31869db626df35f0ca64f728c9ec8b3e867938a52b4ab59bb95a6334a469223bdd5f0c188f9a241e92f07b8383e635c16b1cdaf
@@ -9,9 +9,8 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby: ["2.7", "3.0", "3.1", "3.2"]
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 }}_sidekiq_${{ matrix.sidekiq }}.gemfile
26
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile
28
27
 
29
28
  steps:
30
- - uses: actions/checkout@v3
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
@@ -14,4 +14,4 @@ slides.md
14
14
  /database.sqlite
15
15
  /test/combustion/database.sqlite
16
16
  /test/combustion/log/test.log
17
- /gemfiles/*.lock
17
+ /gemfiles/rails_6.1.gemfile.lock
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.9.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.4.3)
13
- actionpack (= 7.0.4.3)
14
- activesupport (= 7.0.4.3)
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.4.3)
18
- actionpack (= 7.0.4.3)
19
- activejob (= 7.0.4.3)
20
- activerecord (= 7.0.4.3)
21
- activestorage (= 7.0.4.3)
22
- activesupport (= 7.0.4.3)
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.4.3)
28
- actionpack (= 7.0.4.3)
29
- actionview (= 7.0.4.3)
30
- activejob (= 7.0.4.3)
31
- activesupport (= 7.0.4.3)
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.4.3)
38
- actionview (= 7.0.4.3)
39
- activesupport (= 7.0.4.3)
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.4.3)
45
- actionpack (= 7.0.4.3)
46
- activerecord (= 7.0.4.3)
47
- activestorage (= 7.0.4.3)
48
- activesupport (= 7.0.4.3)
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.4.3)
52
- activesupport (= 7.0.4.3)
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.4.3)
58
- activesupport (= 7.0.4.3)
57
+ activejob (7.0.3.1)
58
+ activesupport (= 7.0.3.1)
59
59
  globalid (>= 0.3.6)
60
- activemodel (7.0.4.3)
61
- activesupport (= 7.0.4.3)
62
- activerecord (7.0.4.3)
63
- activemodel (= 7.0.4.3)
64
- activesupport (= 7.0.4.3)
65
- activestorage (7.0.4.3)
66
- actionpack (= 7.0.4.3)
67
- activejob (= 7.0.4.3)
68
- activerecord (= 7.0.4.3)
69
- activesupport (= 7.0.4.3)
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.4.3)
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.4)
78
- public_suffix (>= 2.0.2, < 6.0)
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.2.2)
86
- connection_pool (2.4.0)
85
+ concurrent-ruby (1.1.10)
86
+ connection_pool (2.2.5)
87
87
  crass (1.0.6)
88
- date (3.3.3)
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.12.0)
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.1.0)
97
+ globalid (1.0.0)
98
98
  activesupport (>= 5.0)
99
- http (5.1.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.3)
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.20.0)
113
+ loofah (2.18.0)
114
114
  crass (~> 1.0.2)
115
115
  nokogiri (>= 1.5.9)
116
- mail (2.8.1)
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.1)
125
- minitest (5.18.0)
126
- net-imap (0.3.4)
127
- date
121
+ mini_portile2 (2.8.0)
122
+ minitest (5.16.2)
123
+ net-imap (0.2.3)
124
+ digest
128
125
  net-protocol
129
- net-pop (0.1.2)
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-smtp (0.3.3)
131
+ net-protocol (0.1.3)
132
+ timeout
133
+ net-smtp (0.3.1)
134
+ digest
134
135
  net-protocol
135
- nio4r (2.5.9)
136
- nokogiri (1.14.3)
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.14.3-x86_64-darwin)
141
+ nokogiri (1.13.7-x86_64-darwin)
140
142
  racc (~> 1.4)
141
- noticed (1.6.0)
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.2.2.0)
147
+ parser (3.1.2.0)
146
148
  ast (~> 2.4.1)
147
- public_suffix (5.0.1)
148
- racc (1.6.2)
149
- rack (2.2.6.4)
150
- rack-test (2.1.0)
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.4.3)
153
- actioncable (= 7.0.4.3)
154
- actionmailbox (= 7.0.4.3)
155
- actionmailer (= 7.0.4.3)
156
- actionpack (= 7.0.4.3)
157
- actiontext (= 7.0.4.3)
158
- actionview (= 7.0.4.3)
159
- activejob (= 7.0.4.3)
160
- activemodel (= 7.0.4.3)
161
- activerecord (= 7.0.4.3)
162
- activestorage (= 7.0.4.3)
163
- activesupport (= 7.0.4.3)
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.4.3)
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.5.0)
170
- loofah (~> 2.19, >= 2.19.1)
171
- railties (7.0.4.3)
172
- actionpack (= 7.0.4.3)
173
- activesupport (= 7.0.4.3)
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-client (0.14.1)
181
- connection_pool
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.50.2)
187
+ rubocop (1.31.2)
185
188
  json (~> 2.3)
186
189
  parallel (~> 1.10)
187
- parser (>= 3.2.0.0)
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.28.0, < 2.0)
194
+ rubocop-ast (>= 1.18.0, < 2.0)
192
195
  ruby-progressbar (~> 1.7)
193
- unicode-display_width (>= 2.4.0, < 3.0)
194
- rubocop-ast (1.28.0)
195
- parser (>= 3.2.1.0)
196
- rubocop-minitest (0.30.0)
197
- rubocop (>= 1.39, < 2.0)
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.13.0)
201
- sidekiq (7.0.8)
202
- concurrent-ruby (< 2)
203
- connection_pool (>= 2.3.0)
204
- rack (>= 2.2.4)
205
- redis-client (>= 0.11.0)
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.6.2)
213
- mini_portile2 (~> 2.8.0)
214
- sqlite3 (1.6.2-x86_64-darwin)
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.2)
217
- tzinfo (2.0.6)
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.4.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.7)
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.3.19
253
+ 2.2.32