job_notifier 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a655cabfb488b6ae3861c85ba21971f0d4332bd9b8f7f9d6180824604ee9268b
4
- data.tar.gz: d4f94d3f85ac42df6c1e0a46422cc8e25574c3ebb241630bf46a7502d4cb7fac
3
+ metadata.gz: 7c931476320067c7a55d9c6ec59cd781468b8f045b1eccb8b50deba8837a61d5
4
+ data.tar.gz: 320195dab71c16b72875d42c57911b322b40240be9018ed3a9478496c4443be6
5
5
  SHA512:
6
- metadata.gz: d156d5ebb8746e9baab55faad30a29a1b5af5f4d96f2beed7df9d8a96089f20fd3153cd95ab0dd8e48a286953cf6e384f558f2e4735dd194cac533332f3de092
7
- data.tar.gz: 9e7811f67f747edc1a37033cc7f50699d810b9612431ee9e160927bdbc84872bc849d863df410cf3c1ea9df94bd7971e7b860574dd6ff8c86ad7ffb1c0d8ed00
6
+ metadata.gz: 2deeff520a7e3ade447462bd0e507bf59c4edc603f02dd66eae33d4c1dc03af89da936d295a7c79362ec6e6c1bb1576f00551f94e53ed5989b29f3a6f9bf9169
7
+ data.tar.gz: 960b7879ba5e25e92ac095d81d6073fe20a03e7a0f4d83042d48e88e7db311daa86a678edd0e39805f9625e759ff4d84068003708e65139a9bc8b3ed757acd60
data/.circleci/config.yml CHANGED
@@ -14,10 +14,10 @@ executors:
14
14
  parameters:
15
15
  ruby-version:
16
16
  description: "Ruby version"
17
- default: "2.7"
17
+ default: "3.2"
18
18
  type: string
19
19
  docker:
20
- - image: circleci/ruby:<<parameters.ruby-version>>-node
20
+ - image: cimg/ruby:<<parameters.ruby-version>>-node
21
21
  environment: *env-vars
22
22
 
23
23
  commands:
@@ -56,7 +56,7 @@ jobs:
56
56
  parameters:
57
57
  ruby-version:
58
58
  description: "Ruby version"
59
- default: "2.7"
59
+ default: "3.2"
60
60
  type: string
61
61
  executor:
62
62
  name: main-executor
@@ -94,7 +94,7 @@ workflows:
94
94
  - test:
95
95
  matrix:
96
96
  parameters:
97
- ruby-version: ["2.5", "2.6", "2.7"]
97
+ ruby-version: [ "2.7", "3.1", "3.2"]
98
98
  - deploy:
99
99
  context: org-global
100
100
  filters:
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ spec/dummy/log/*.log
7
7
  spec/dummy/tmp/
8
8
  spec/dummy/.sass-cache
9
9
  coverage/
10
+ .DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7
1
+ 3.2
data/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
+
5
+ ### v3.0.0
6
+
7
+ ##### Added
8
+
9
+ * Add Ruby 3.1 and 3.2 support
10
+
11
+ ##### Removed
12
+
13
+ * Remove Ruby 2.5 and 2.6 support
14
+
4
15
  ### v2.0.0
16
+
5
17
  ##### Changed
6
18
 
7
19
  - Replace travis with CircleCI.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- job_notifier (2.0.0)
4
+ job_notifier (3.0.0)
5
5
  colorize (>= 0.7.7)
6
6
  enumerize (>= 1.0)
7
7
  rails (>= 6.0)
@@ -10,70 +10,76 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.1.3.2)
14
- actionpack (= 6.1.3.2)
15
- activesupport (= 6.1.3.2)
13
+ actioncable (7.0.6)
14
+ actionpack (= 7.0.6)
15
+ activesupport (= 7.0.6)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (6.1.3.2)
19
- actionpack (= 6.1.3.2)
20
- activejob (= 6.1.3.2)
21
- activerecord (= 6.1.3.2)
22
- activestorage (= 6.1.3.2)
23
- activesupport (= 6.1.3.2)
18
+ actionmailbox (7.0.6)
19
+ actionpack (= 7.0.6)
20
+ activejob (= 7.0.6)
21
+ activerecord (= 7.0.6)
22
+ activestorage (= 7.0.6)
23
+ activesupport (= 7.0.6)
24
24
  mail (>= 2.7.1)
25
- actionmailer (6.1.3.2)
26
- actionpack (= 6.1.3.2)
27
- actionview (= 6.1.3.2)
28
- activejob (= 6.1.3.2)
29
- activesupport (= 6.1.3.2)
25
+ net-imap
26
+ net-pop
27
+ net-smtp
28
+ actionmailer (7.0.6)
29
+ actionpack (= 7.0.6)
30
+ actionview (= 7.0.6)
31
+ activejob (= 7.0.6)
32
+ activesupport (= 7.0.6)
30
33
  mail (~> 2.5, >= 2.5.4)
34
+ net-imap
35
+ net-pop
36
+ net-smtp
31
37
  rails-dom-testing (~> 2.0)
32
- actionpack (6.1.3.2)
33
- actionview (= 6.1.3.2)
34
- activesupport (= 6.1.3.2)
35
- rack (~> 2.0, >= 2.0.9)
38
+ actionpack (7.0.6)
39
+ actionview (= 7.0.6)
40
+ activesupport (= 7.0.6)
41
+ rack (~> 2.0, >= 2.2.4)
36
42
  rack-test (>= 0.6.3)
37
43
  rails-dom-testing (~> 2.0)
38
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (6.1.3.2)
40
- actionpack (= 6.1.3.2)
41
- activerecord (= 6.1.3.2)
42
- activestorage (= 6.1.3.2)
43
- activesupport (= 6.1.3.2)
45
+ actiontext (7.0.6)
46
+ actionpack (= 7.0.6)
47
+ activerecord (= 7.0.6)
48
+ activestorage (= 7.0.6)
49
+ activesupport (= 7.0.6)
50
+ globalid (>= 0.6.0)
44
51
  nokogiri (>= 1.8.5)
45
- actionview (6.1.3.2)
46
- activesupport (= 6.1.3.2)
52
+ actionview (7.0.6)
53
+ activesupport (= 7.0.6)
47
54
  builder (~> 3.1)
48
55
  erubi (~> 1.4)
49
56
  rails-dom-testing (~> 2.0)
50
57
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
- activejob (6.1.3.2)
52
- activesupport (= 6.1.3.2)
58
+ activejob (7.0.6)
59
+ activesupport (= 7.0.6)
53
60
  globalid (>= 0.3.6)
54
- activemodel (6.1.3.2)
55
- activesupport (= 6.1.3.2)
56
- activerecord (6.1.3.2)
57
- activemodel (= 6.1.3.2)
58
- activesupport (= 6.1.3.2)
59
- activestorage (6.1.3.2)
60
- actionpack (= 6.1.3.2)
61
- activejob (= 6.1.3.2)
62
- activerecord (= 6.1.3.2)
63
- activesupport (= 6.1.3.2)
64
- marcel (~> 1.0.0)
65
- mini_mime (~> 1.0.2)
66
- activesupport (6.1.3.2)
61
+ activemodel (7.0.6)
62
+ activesupport (= 7.0.6)
63
+ activerecord (7.0.6)
64
+ activemodel (= 7.0.6)
65
+ activesupport (= 7.0.6)
66
+ activestorage (7.0.6)
67
+ actionpack (= 7.0.6)
68
+ activejob (= 7.0.6)
69
+ activerecord (= 7.0.6)
70
+ activesupport (= 7.0.6)
71
+ marcel (~> 1.0)
72
+ mini_mime (>= 1.1.0)
73
+ activesupport (7.0.6)
67
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
68
75
  i18n (>= 1.6, < 2)
69
76
  minitest (>= 5.1)
70
77
  tzinfo (~> 2.0)
71
- zeitwerk (~> 2.3)
72
78
  ast (2.4.2)
73
79
  builder (3.2.4)
74
80
  coderay (1.1.3)
75
- colorize (0.8.1)
76
- concurrent-ruby (1.1.9)
81
+ colorize (1.1.0)
82
+ concurrent-ruby (1.2.2)
77
83
  coveralls (0.8.23)
78
84
  json (>= 1.8, < 3)
79
85
  simplecov (~> 0.16.1)
@@ -81,139 +87,156 @@ GEM
81
87
  thor (>= 0.19.4, < 2.0)
82
88
  tins (~> 1.6)
83
89
  crass (1.0.6)
84
- diff-lcs (1.4.4)
90
+ date (3.3.3)
91
+ diff-lcs (1.5.0)
85
92
  docile (1.4.0)
86
- enumerize (2.4.0)
93
+ enumerize (2.6.1)
87
94
  activesupport (>= 3.2)
88
- erubi (1.10.0)
89
- factory_bot (6.2.0)
95
+ erubi (1.12.0)
96
+ factory_bot (6.2.1)
90
97
  activesupport (>= 5.0.0)
91
98
  factory_bot_rails (6.2.0)
92
99
  factory_bot (~> 6.2.0)
93
100
  railties (>= 5.0.0)
94
- globalid (0.4.2)
95
- activesupport (>= 4.2.0)
96
- i18n (1.8.10)
101
+ globalid (1.1.0)
102
+ activesupport (>= 5.0)
103
+ i18n (1.14.1)
97
104
  concurrent-ruby (~> 1.0)
98
- json (2.5.1)
99
- loofah (2.10.0)
105
+ json (2.6.3)
106
+ language_server-protocol (3.17.0.3)
107
+ loofah (2.21.3)
100
108
  crass (~> 1.0.2)
101
- nokogiri (>= 1.5.9)
102
- mail (2.7.1)
109
+ nokogiri (>= 1.12.0)
110
+ mail (2.8.1)
103
111
  mini_mime (>= 0.1.1)
104
- marcel (1.0.1)
112
+ net-imap
113
+ net-pop
114
+ net-smtp
115
+ marcel (1.0.2)
105
116
  method_source (1.0.0)
106
- mini_mime (1.0.3)
107
- minitest (5.14.4)
108
- nio4r (2.5.7)
109
- nokogiri (1.11.7-x86_64-darwin)
117
+ mini_mime (1.1.2)
118
+ minitest (5.18.1)
119
+ net-imap (0.3.6)
120
+ date
121
+ net-protocol
122
+ net-pop (0.1.2)
123
+ net-protocol
124
+ net-protocol (0.2.1)
125
+ timeout
126
+ net-smtp (0.3.3)
127
+ net-protocol
128
+ nio4r (2.5.9)
129
+ nokogiri (1.15.2-arm64-darwin)
130
+ racc (~> 1.4)
131
+ nokogiri (1.15.2-x86_64-darwin)
110
132
  racc (~> 1.4)
111
- nokogiri (1.11.7-x86_64-linux)
133
+ nokogiri (1.15.2-x86_64-linux)
112
134
  racc (~> 1.4)
113
- parallel (1.20.1)
114
- parser (3.0.1.1)
135
+ parallel (1.23.0)
136
+ parser (3.2.2.3)
115
137
  ast (~> 2.4.1)
116
- pry (0.14.1)
138
+ racc
139
+ pry (0.14.2)
117
140
  coderay (~> 1.1)
118
141
  method_source (~> 1.0)
119
- racc (1.5.2)
120
- rack (2.2.3)
121
- rack-test (1.1.0)
122
- rack (>= 1.0, < 3)
123
- rails (6.1.3.2)
124
- actioncable (= 6.1.3.2)
125
- actionmailbox (= 6.1.3.2)
126
- actionmailer (= 6.1.3.2)
127
- actionpack (= 6.1.3.2)
128
- actiontext (= 6.1.3.2)
129
- actionview (= 6.1.3.2)
130
- activejob (= 6.1.3.2)
131
- activemodel (= 6.1.3.2)
132
- activerecord (= 6.1.3.2)
133
- activestorage (= 6.1.3.2)
134
- activesupport (= 6.1.3.2)
142
+ racc (1.7.1)
143
+ rack (2.2.7)
144
+ rack-test (2.1.0)
145
+ rack (>= 1.3)
146
+ rails (7.0.6)
147
+ actioncable (= 7.0.6)
148
+ actionmailbox (= 7.0.6)
149
+ actionmailer (= 7.0.6)
150
+ actionpack (= 7.0.6)
151
+ actiontext (= 7.0.6)
152
+ actionview (= 7.0.6)
153
+ activejob (= 7.0.6)
154
+ activemodel (= 7.0.6)
155
+ activerecord (= 7.0.6)
156
+ activestorage (= 7.0.6)
157
+ activesupport (= 7.0.6)
135
158
  bundler (>= 1.15.0)
136
- railties (= 6.1.3.2)
137
- sprockets-rails (>= 2.0.0)
159
+ railties (= 7.0.6)
138
160
  rails-dom-testing (2.0.3)
139
161
  activesupport (>= 4.2.0)
140
162
  nokogiri (>= 1.6)
141
- rails-html-sanitizer (1.3.0)
142
- loofah (~> 2.3)
143
- railties (6.1.3.2)
144
- actionpack (= 6.1.3.2)
145
- activesupport (= 6.1.3.2)
163
+ rails-html-sanitizer (1.6.0)
164
+ loofah (~> 2.21)
165
+ nokogiri (~> 1.14)
166
+ railties (7.0.6)
167
+ actionpack (= 7.0.6)
168
+ activesupport (= 7.0.6)
146
169
  method_source
147
- rake (>= 0.8.7)
170
+ rake (>= 12.2)
148
171
  thor (~> 1.0)
149
- rainbow (3.0.0)
150
- rake (13.0.3)
151
- regexp_parser (2.1.1)
172
+ zeitwerk (~> 2.5)
173
+ rainbow (3.1.1)
174
+ rake (13.0.6)
175
+ regexp_parser (2.8.1)
152
176
  rexml (3.2.5)
153
- rspec-core (3.10.1)
154
- rspec-support (~> 3.10.0)
155
- rspec-expectations (3.10.1)
177
+ rspec-core (3.12.2)
178
+ rspec-support (~> 3.12.0)
179
+ rspec-expectations (3.12.3)
156
180
  diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.10.0)
158
- rspec-mocks (3.10.2)
181
+ rspec-support (~> 3.12.0)
182
+ rspec-mocks (3.12.5)
159
183
  diff-lcs (>= 1.2.0, < 2.0)
160
- rspec-support (~> 3.10.0)
161
- rspec-rails (5.0.1)
162
- actionpack (>= 5.2)
163
- activesupport (>= 5.2)
164
- railties (>= 5.2)
165
- rspec-core (~> 3.10)
166
- rspec-expectations (~> 3.10)
167
- rspec-mocks (~> 3.10)
168
- rspec-support (~> 3.10)
169
- rspec-support (3.10.2)
170
- rspec_junit_formatter (0.4.1)
184
+ rspec-support (~> 3.12.0)
185
+ rspec-rails (6.0.3)
186
+ actionpack (>= 6.1)
187
+ activesupport (>= 6.1)
188
+ railties (>= 6.1)
189
+ rspec-core (~> 3.12)
190
+ rspec-expectations (~> 3.12)
191
+ rspec-mocks (~> 3.12)
192
+ rspec-support (~> 3.12)
193
+ rspec-support (3.12.1)
194
+ rspec_junit_formatter (0.6.0)
171
195
  rspec-core (>= 2, < 4, != 2.12.0)
172
- rubocop (1.17.0)
196
+ rubocop (1.53.1)
197
+ json (~> 2.3)
198
+ language_server-protocol (>= 3.17.0)
173
199
  parallel (~> 1.10)
174
- parser (>= 3.0.0.0)
200
+ parser (>= 3.2.2.3)
175
201
  rainbow (>= 2.2.2, < 4.0)
176
202
  regexp_parser (>= 1.8, < 3.0)
177
- rexml
178
- rubocop-ast (>= 1.7.0, < 2.0)
203
+ rexml (>= 3.2.5, < 4.0)
204
+ rubocop-ast (>= 1.28.0, < 2.0)
179
205
  ruby-progressbar (~> 1.7)
180
- unicode-display_width (>= 1.4.0, < 3.0)
181
- rubocop-ast (1.7.0)
182
- parser (>= 3.0.1.1)
183
- rubocop-rails (2.10.1)
206
+ unicode-display_width (>= 2.4.0, < 3.0)
207
+ rubocop-ast (1.29.0)
208
+ parser (>= 3.2.1.0)
209
+ rubocop-rails (2.20.2)
184
210
  activesupport (>= 4.2.0)
185
211
  rack (>= 1.1)
186
- rubocop (>= 1.7.0, < 2.0)
187
- ruby-progressbar (1.11.0)
212
+ rubocop (>= 1.33.0, < 2.0)
213
+ ruby-progressbar (1.13.0)
188
214
  silencer (1.0.0.rc3)
189
215
  simplecov (0.16.1)
190
216
  docile (~> 1.1)
191
217
  json (>= 1.8, < 3)
192
218
  simplecov-html (~> 0.10.0)
193
219
  simplecov-html (0.10.2)
194
- sprockets (4.0.2)
195
- concurrent-ruby (~> 1.0)
196
- rack (> 1, < 3)
197
- sprockets-rails (3.2.2)
198
- actionpack (>= 4.0)
199
- activesupport (>= 4.0)
200
- sprockets (>= 3.0.0)
201
- sqlite3 (1.4.2)
220
+ sqlite3 (1.6.3-arm64-darwin)
221
+ sqlite3 (1.6.3-x86_64-darwin)
222
+ sqlite3 (1.6.3-x86_64-linux)
202
223
  sync (0.5.0)
203
224
  term-ansicolor (1.7.1)
204
225
  tins (~> 1.0)
205
- thor (1.1.0)
206
- tins (1.29.1)
226
+ thor (1.2.2)
227
+ timeout (0.4.0)
228
+ tins (1.32.1)
207
229
  sync
208
- tzinfo (2.0.4)
230
+ tzinfo (2.0.6)
209
231
  concurrent-ruby (~> 1.0)
210
- unicode-display_width (2.0.0)
232
+ unicode-display_width (2.4.2)
211
233
  websocket-driver (0.7.5)
212
234
  websocket-extensions (>= 0.1.0)
213
235
  websocket-extensions (0.1.5)
214
- zeitwerk (2.4.2)
236
+ zeitwerk (2.6.8)
215
237
 
216
238
  PLATFORMS
239
+ arm64-darwin-22
217
240
  x86_64-darwin-20
218
241
  x86_64-linux
219
242
 
@@ -16,10 +16,6 @@ module JobNotifier
16
16
  require_relative "./adapters"
17
17
  require_relative "./logger"
18
18
 
19
- ActiveSupport.on_load :action_controller do
20
- helper(JobNotifier::ApplicationHelper)
21
- end
22
-
23
19
  if JobNotifier.silenced_log
24
20
  Rails.application.middleware.swap(
25
21
  Rails::Rack::Logger,
@@ -1,3 +1,3 @@
1
1
  module JobNotifier
2
- VERSION = "2.0.0"
2
+ VERSION = "3.0.0"
3
3
  end
@@ -2,8 +2,6 @@ require "rails_helper"
2
2
 
3
3
  module JobNotifier
4
4
  RSpec.describe Job, type: :model do
5
- it { is_expected.to enumerize(:status).in(:pending, :finished, :failed) }
6
-
7
5
  describe "#unnotified_by_identifier" do
8
6
  subject { JobNotifier::Job }
9
7
  let!(:job1) { create(:job_notifier_job, identifier: "jcm14n", notified: false) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: job_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-06-18 00:00:00.000000000 Z
13
+ date: 2023-07-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -262,7 +262,6 @@ files:
262
262
  - spec/dummy/config/environments/production.rb
263
263
  - spec/dummy/config/environments/test.rb
264
264
  - spec/dummy/config/initializers/application_controller_renderer.rb
265
- - spec/dummy/config/initializers/assets.rb
266
265
  - spec/dummy/config/initializers/backtrace_silencers.rb
267
266
  - spec/dummy/config/initializers/content_security_policy.rb
268
267
  - spec/dummy/config/initializers/cookies_serializer.rb
@@ -312,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
311
  - !ruby/object:Gem::Version
313
312
  version: '0'
314
313
  requirements: []
315
- rubygems_version: 3.1.6
314
+ rubygems_version: 3.4.10
316
315
  signing_key:
317
316
  specification_version: 4
318
317
  summary: Rails engine to persist job results and notify job status changes
@@ -340,7 +339,6 @@ test_files:
340
339
  - spec/dummy/bin/rails
341
340
  - spec/dummy/bin/rake
342
341
  - spec/dummy/bin/setup
343
- - spec/dummy/config.ru
344
342
  - spec/dummy/config/application.rb
345
343
  - spec/dummy/config/boot.rb
346
344
  - spec/dummy/config/cable.yml
@@ -350,7 +348,6 @@ test_files:
350
348
  - spec/dummy/config/environments/production.rb
351
349
  - spec/dummy/config/environments/test.rb
352
350
  - spec/dummy/config/initializers/application_controller_renderer.rb
353
- - spec/dummy/config/initializers/assets.rb
354
351
  - spec/dummy/config/initializers/backtrace_silencers.rb
355
352
  - spec/dummy/config/initializers/content_security_policy.rb
356
353
  - spec/dummy/config/initializers/cookies_serializer.rb
@@ -366,6 +363,7 @@ test_files:
366
363
  - spec/dummy/config/routes.rb
367
364
  - spec/dummy/config/secrets.yml
368
365
  - spec/dummy/config/storage.yml
366
+ - spec/dummy/config.ru
369
367
  - spec/dummy/db/schema.rb
370
368
  - spec/dummy/public/404.html
371
369
  - spec/dummy/public/422.html
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path.
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in the app/assets
11
- # folder are already added.
12
- # Rails.application.config.assets.precompile += %w( admin.js admin.css )