checker_jobs 1.2.0 → 1.2.1

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: be30cf913e5e2aa877d31a6f6d356395e7190c321319b9a723120994a4ba28b9
4
- data.tar.gz: 01b5908f3436abcb4f32292ff0142d659f47af87ec1b6c2b1623244dcd3a725f
3
+ metadata.gz: e2702b00cc3f7fa8a5b68ff40faf5edffe09c7ddc15bfd4c08ab627ade6bc6d4
4
+ data.tar.gz: 2ecf0e6f78a41ae17532e0ed57c4bbca00af5222fb999fb4b71dda19085e88d0
5
5
  SHA512:
6
- metadata.gz: 2c44695a2344d051520dd246556af6c871e93e98bdcec6ad440c6b01bf6cc127fa30784071410443cdc1e13e81ca5c0594f02c80b95f849dab3d55eebcdb357f
7
- data.tar.gz: 713167b5959eb3b326581f411fac1458eb7c91b57eb5a702f6665f188f889d80820a2b3a3b2d2f3fafebf4a95bcd1609567f55e6ee6d1d2f7d518331e59b47a4
6
+ metadata.gz: d1968fd1504a6b4b4bc056a0a67ae4e501658a95defc4b874bd16e24acf7567edc7f57058d412afee865ab5af2e00590422c05c6a66852009757f86da41cdf58
7
+ data.tar.gz: 7b61bfb6e7ecdfd9095058fb6bc9d4bf26edd6bf8c1798bfad79d9df6ba82c798db45f4178e2c5020b6c79508c12a5b50e5fc61b7706d14df8526500197db321
data/.circleci/config.yml CHANGED
@@ -1,48 +1,62 @@
1
1
  version: 2
2
2
  jobs:
3
- build:
3
+ test-ruby:
4
4
  docker:
5
- - image: drivy/rails-ci:0.1.2
5
+ - image: cimg/ruby:2.6.6
6
6
  steps:
7
7
  - checkout
8
-
9
- - run: git fetch origin --depth=1000
10
-
11
- # Install CodeClimate test reporter binary, rebuild without cache to update the binary
12
- - restore_cache:
13
- key: cc_test_reporter
14
8
  - run:
15
- name: Install Code Climate test reporter
9
+ name: Install CMake, pkg-config and system dependencies
10
+ command: sudo apt update && sudo apt install cmake pkg-config libsqlite3-dev
11
+ - run:
12
+ name: Install Bundler
16
13
  command: |
17
- [ -f bin/cc-test-reporter ] || curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./bin/cc-test-reporter
18
- chmod +x bin/cc-test-reporter
19
- - restore_cache:
20
- key: cc_test_reporter
21
- paths:
22
- - bin/cc-test-reporter
23
-
14
+ sudo gem update --system
15
+ gem install bundler --no-document
24
16
  - run:
25
- name: "Creating a Gemfile.lock without bundler's version"
26
- command: "head -n -3 Gemfile.lock > Gemfile.lock.no-version"
27
-
28
- # Bundle install with cache, Ignore bundler version
29
- - restore_cache:
30
- key: checker_jobs-{{ checksum "Gemfile.lock.no-version"}}
31
- - run:
32
- name: Install Ruby dependencies
33
- command: bundle install --path vendor/bundle --jobs=`nproc`
34
- - save_cache:
35
- key: checker_jobs-{{ checksum "Gemfile.lock.no-version"}}
36
- paths:
37
- - vendor/bundle
38
-
17
+ name: Install dependencies (bundler)
18
+ command: |
19
+ bundle config set frozen 'true'
20
+ bundle config set path 'vendor/bundle'
21
+ bundle install --jobs=4
39
22
  - run:
40
- name: RSpec
23
+ name: Install linting dependencies (Bundler)
41
24
  command: |
42
- ./bin/cc-test-reporter before-build
43
- bundle exec rspec --format documentation
44
- ./bin/cc-test-reporter after-build --exit-code $?
25
+ bundle config set frozen 'true'
26
+ bundle config set path 'vendor/bundle'
27
+ bundle install --jobs=4
28
+ - run:
29
+ name: Lint Ruby sources (RSpec)
30
+ command: bundle exec rspec
45
31
 
32
+ lint-ruby:
33
+ docker:
34
+ - image: cimg/ruby:2.6.6
35
+ steps:
36
+ - checkout
37
+ - run:
38
+ name: Install CMake, pkg-config and system dependencies
39
+ command: sudo apt update && sudo apt install cmake pkg-config libsqlite3-dev
40
+ - run:
41
+ name: Install Bundler
42
+ command: |
43
+ sudo gem update --system
44
+ gem install bundler --no-document
45
+ - run:
46
+ name: Install dependencies (bundler)
47
+ command: |
48
+ bundle config set frozen 'true'
49
+ bundle config set path 'vendor/bundle'
50
+ bundle install --jobs=4
46
51
  - run:
47
- name: Pronto
48
- command: bin/pronto-ci
52
+ name: Lint Ruby sources (Rubocop)
53
+ command: bundle exec rubocop
54
+
55
+ workflows:
56
+ version: 2
57
+ test-and-deploy:
58
+ jobs:
59
+ - test-ruby:
60
+ context: default
61
+ - lint-ruby:
62
+ context: default
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /tmp/
8
8
  .*.swp
9
9
  *.gem
10
+ vendor/bundle
data/.rubocop.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  require: rubocop-rspec
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.3
5
4
  Exclude:
6
5
  - "examples/*.rb"
6
+ - vendor/**/*
7
7
 
8
8
  #
9
9
  # Opinionated cops
@@ -12,7 +12,7 @@ AllCops:
12
12
  Layout/DotPosition:
13
13
  EnforcedStyle: trailing
14
14
 
15
- Layout/IndentHash:
15
+ Layout/FirstHashElementIndentation:
16
16
  EnforcedStyle: consistent
17
17
 
18
18
  Metrics/AbcSize:
@@ -43,9 +43,6 @@ Style/TrailingCommaInArguments:
43
43
  Style/FrozenStringLiteralComment:
44
44
  Enabled: false
45
45
 
46
- Style/BracesAroundHashParameters:
47
- Enabled: false
48
-
49
46
  Style/FormatString:
50
47
  Enabled: false
51
48
 
@@ -62,3 +59,6 @@ Metrics/BlockLength:
62
59
 
63
60
  Style/Proc:
64
61
  Enabled: false
62
+
63
+ RSpec/MultipleMemoizedHelpers:
64
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.6
data/Gemfile.lock CHANGED
@@ -1,73 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- checker_jobs (1.2.0)
4
+ checker_jobs (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionmailer (5.2.1)
10
- actionpack (= 5.2.1)
11
- actionview (= 5.2.1)
12
- activejob (= 5.2.1)
9
+ actionmailer (6.1.3.1)
10
+ actionpack (= 6.1.3.1)
11
+ actionview (= 6.1.3.1)
12
+ activejob (= 6.1.3.1)
13
+ activesupport (= 6.1.3.1)
13
14
  mail (~> 2.5, >= 2.5.4)
14
15
  rails-dom-testing (~> 2.0)
15
- actionpack (5.2.1)
16
- actionview (= 5.2.1)
17
- activesupport (= 5.2.1)
18
- rack (~> 2.0)
16
+ actionpack (6.1.3.1)
17
+ actionview (= 6.1.3.1)
18
+ activesupport (= 6.1.3.1)
19
+ rack (~> 2.0, >= 2.0.9)
19
20
  rack-test (>= 0.6.3)
20
21
  rails-dom-testing (~> 2.0)
21
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
22
- actionview (5.2.1)
23
- activesupport (= 5.2.1)
22
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
23
+ actionview (6.1.3.1)
24
+ activesupport (= 6.1.3.1)
24
25
  builder (~> 3.1)
25
26
  erubi (~> 1.4)
26
27
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
28
- activejob (5.2.1)
29
- activesupport (= 5.2.1)
28
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
29
+ activejob (6.1.3.1)
30
+ activesupport (= 6.1.3.1)
30
31
  globalid (>= 0.3.6)
31
- activesupport (5.2.1)
32
+ activesupport (6.1.3.1)
32
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
33
- i18n (>= 0.7, < 2)
34
- minitest (~> 5.1)
35
- tzinfo (~> 1.1)
36
- addressable (2.5.2)
37
- public_suffix (>= 2.0.2, < 4.0)
38
- ast (2.4.0)
39
- bugsnag (5.4.1)
40
- builder (3.2.3)
41
- byebug (10.0.2)
42
- coderay (1.1.2)
43
- concurrent-ruby (1.0.5)
44
- connection_pool (2.2.2)
45
- crass (1.0.4)
46
- daemons (1.2.6)
47
- diff-lcs (1.3)
48
- docile (1.3.1)
49
- erubi (1.7.1)
50
- eventmachine (1.2.5)
51
- faraday (0.15.3)
34
+ i18n (>= 1.6, < 2)
35
+ minitest (>= 5.1)
36
+ tzinfo (~> 2.0)
37
+ zeitwerk (~> 2.3)
38
+ addressable (2.7.0)
39
+ public_suffix (>= 2.0.2, < 5.0)
40
+ ast (2.4.2)
41
+ bugsnag (6.20.0)
42
+ concurrent-ruby (~> 1.0)
43
+ builder (3.2.4)
44
+ byebug (11.1.3)
45
+ coderay (1.1.3)
46
+ concurrent-ruby (1.1.8)
47
+ connection_pool (2.2.5)
48
+ crass (1.0.6)
49
+ daemons (1.3.1)
50
+ diff-lcs (1.4.4)
51
+ docile (1.3.5)
52
+ erubi (1.10.0)
53
+ eventmachine (1.2.7)
54
+ faraday (1.4.1)
55
+ faraday-excon (~> 1.1)
56
+ faraday-net_http (~> 1.0)
57
+ faraday-net_http_persistent (~> 1.1)
52
58
  multipart-post (>= 1.2, < 3)
53
- gitlab (4.5.0)
54
- httparty (>= 0.14.0)
55
- terminal-table (>= 1.5.1)
56
- globalid (0.4.1)
59
+ ruby2_keywords (>= 0.0.4)
60
+ faraday-excon (1.1.0)
61
+ faraday-net_http (1.0.1)
62
+ faraday-net_http_persistent (1.1.0)
63
+ gitlab (4.17.0)
64
+ httparty (~> 0.18)
65
+ terminal-table (~> 1.5, >= 1.5.1)
66
+ globalid (0.4.2)
57
67
  activesupport (>= 4.2.0)
58
- haml (5.0.4)
68
+ haml (5.2.1)
59
69
  temple (>= 0.8.0)
60
70
  tilt
61
- httparty (0.16.2)
71
+ httparty (0.18.1)
72
+ mime-types (~> 3.0)
62
73
  multi_xml (>= 0.5.2)
63
- i18n (1.1.0)
74
+ i18n (1.8.10)
64
75
  concurrent-ruby (~> 1.0)
65
- jaro_winkler (1.5.1)
66
- json (2.1.0)
67
- loofah (2.2.3)
76
+ json (2.5.1)
77
+ loofah (2.9.1)
68
78
  crass (~> 1.0.2)
69
79
  nokogiri (>= 1.5.9)
70
- mail (2.7.0)
80
+ mail (2.7.1)
71
81
  mini_mime (>= 0.1.1)
72
82
  mailcatcher (0.2.4)
73
83
  eventmachine
@@ -79,132 +89,146 @@ GEM
79
89
  skinny (>= 0.1.2)
80
90
  sqlite3-ruby
81
91
  thin
82
- method_source (0.9.0)
83
- mini_mime (1.0.0)
84
- mini_portile2 (2.3.0)
85
- minitest (5.11.3)
92
+ method_source (1.0.0)
93
+ mime-types (3.3.1)
94
+ mime-types-data (~> 3.2015)
95
+ mime-types-data (3.2021.0225)
96
+ mini_mime (1.1.0)
97
+ mini_portile2 (2.5.1)
98
+ minitest (5.14.4)
86
99
  multi_xml (0.6.0)
87
- multipart-post (2.0.0)
88
- mustermann (1.0.2)
89
- nokogiri (1.8.5)
90
- mini_portile2 (~> 2.3.0)
91
- octokit (4.12.0)
100
+ multipart-post (2.1.1)
101
+ mustermann (1.1.1)
102
+ ruby2_keywords (~> 0.0.1)
103
+ nokogiri (1.11.3)
104
+ mini_portile2 (~> 2.5.0)
105
+ racc (~> 1.4)
106
+ octokit (4.21.0)
107
+ faraday (>= 0.9)
92
108
  sawyer (~> 0.8.0, >= 0.5.3)
93
- parallel (1.12.1)
94
- parser (2.5.1.2)
95
- ast (~> 2.4.0)
96
- powerpack (0.1.2)
97
- pronto (0.9.5)
98
- gitlab (~> 4.0, >= 4.0.0)
109
+ parallel (1.20.1)
110
+ parser (3.0.1.0)
111
+ ast (~> 2.4.1)
112
+ pronto (0.11.0)
113
+ gitlab (~> 4.4, >= 4.4.0)
99
114
  httparty (>= 0.13.7)
100
115
  octokit (~> 4.7, >= 4.7.0)
101
- rainbow (~> 2.1)
102
- rugged (~> 0.24, >= 0.23.0)
103
- thor (~> 0.19.0)
104
- pronto-rubocop (0.9.1)
105
- pronto (~> 0.9.0)
106
- rubocop (~> 0.50, >= 0.49.1)
107
- pry (0.11.3)
108
- coderay (~> 1.1.0)
109
- method_source (~> 0.9.0)
110
- pry-byebug (3.6.0)
111
- byebug (~> 10.0)
112
- pry (~> 0.10)
113
- public_suffix (3.0.3)
114
- rack (2.0.6)
115
- rack-protection (2.0.3)
116
+ rainbow (>= 2.2, < 4.0)
117
+ rexml (~> 3.2)
118
+ rugged (>= 0.23.0, < 1.1.0)
119
+ thor (>= 0.20.3, < 2.0)
120
+ pronto-rubocop (0.11.1)
121
+ pronto (~> 0.11.0)
122
+ rubocop (>= 0.63.1, < 2.0)
123
+ pry (0.13.1)
124
+ coderay (~> 1.1)
125
+ method_source (~> 1.0)
126
+ pry-byebug (3.9.0)
127
+ byebug (~> 11.0)
128
+ pry (~> 0.13.0)
129
+ public_suffix (4.0.6)
130
+ racc (1.5.2)
131
+ rack (2.2.3)
132
+ rack-protection (2.1.0)
116
133
  rack
117
134
  rack-test (1.1.0)
118
135
  rack (>= 1.0, < 3)
119
136
  rails-dom-testing (2.0.3)
120
137
  activesupport (>= 4.2.0)
121
138
  nokogiri (>= 1.6)
122
- rails-html-sanitizer (1.0.4)
123
- loofah (~> 2.2, >= 2.2.2)
124
- rainbow (2.2.2)
125
- rake
126
- rake (12.3.1)
127
- redis (4.0.3)
128
- rspec (3.8.0)
129
- rspec-core (~> 3.8.0)
130
- rspec-expectations (~> 3.8.0)
131
- rspec-mocks (~> 3.8.0)
132
- rspec-core (3.8.0)
133
- rspec-support (~> 3.8.0)
134
- rspec-expectations (3.8.1)
139
+ rails-html-sanitizer (1.3.0)
140
+ loofah (~> 2.3)
141
+ rainbow (3.0.0)
142
+ rake (13.0.3)
143
+ redis (4.2.5)
144
+ regexp_parser (2.1.1)
145
+ rexml (3.2.5)
146
+ rspec (3.10.0)
147
+ rspec-core (~> 3.10.0)
148
+ rspec-expectations (~> 3.10.0)
149
+ rspec-mocks (~> 3.10.0)
150
+ rspec-core (3.10.1)
151
+ rspec-support (~> 3.10.0)
152
+ rspec-expectations (3.10.1)
135
153
  diff-lcs (>= 1.2.0, < 2.0)
136
- rspec-support (~> 3.8.0)
137
- rspec-mocks (3.8.0)
154
+ rspec-support (~> 3.10.0)
155
+ rspec-mocks (3.10.2)
138
156
  diff-lcs (>= 1.2.0, < 2.0)
139
- rspec-support (~> 3.8.0)
140
- rspec-support (3.8.0)
141
- rubocop (0.59.2)
142
- jaro_winkler (~> 1.5.1)
157
+ rspec-support (~> 3.10.0)
158
+ rspec-support (3.10.2)
159
+ rubocop (1.13.0)
143
160
  parallel (~> 1.10)
144
- parser (>= 2.5, != 2.5.1.1)
145
- powerpack (~> 0.1)
161
+ parser (>= 3.0.0.0)
146
162
  rainbow (>= 2.2.2, < 4.0)
163
+ regexp_parser (>= 1.8, < 3.0)
164
+ rexml
165
+ rubocop-ast (>= 1.2.0, < 2.0)
147
166
  ruby-progressbar (~> 1.7)
148
- unicode-display_width (~> 1.0, >= 1.0.1)
149
- rubocop-rspec (1.29.1)
150
- rubocop (>= 0.58.0)
151
- ruby-progressbar (1.10.0)
152
- rugged (0.27.4)
153
- sawyer (0.8.1)
154
- addressable (>= 2.3.5, < 2.6)
155
- faraday (~> 0.8, < 1.0)
156
- sidekiq (5.2.3)
157
- connection_pool (~> 2.2, >= 2.2.2)
158
- rack-protection (>= 1.5.0)
159
- redis (>= 3.3.5, < 5)
160
- simplecov (0.16.1)
167
+ unicode-display_width (>= 1.4.0, < 3.0)
168
+ rubocop-ast (1.4.1)
169
+ parser (>= 2.7.1.5)
170
+ rubocop-rspec (2.3.0)
171
+ rubocop (~> 1.0)
172
+ rubocop-ast (>= 1.1.0)
173
+ ruby-progressbar (1.11.0)
174
+ ruby2_keywords (0.0.4)
175
+ rugged (1.0.1)
176
+ sawyer (0.8.2)
177
+ addressable (>= 2.3.5)
178
+ faraday (> 0.8, < 2.0)
179
+ sidekiq (6.2.1)
180
+ connection_pool (>= 2.2.2)
181
+ rack (~> 2.0)
182
+ redis (>= 4.2.0)
183
+ simplecov (0.21.2)
161
184
  docile (~> 1.1)
162
- json (>= 1.8, < 3)
163
- simplecov-html (~> 0.10.0)
164
- simplecov-html (0.10.2)
165
- sinatra (2.0.3)
185
+ simplecov-html (~> 0.11)
186
+ simplecov_json_formatter (~> 0.1)
187
+ simplecov-html (0.12.3)
188
+ simplecov_json_formatter (0.1.2)
189
+ sinatra (2.1.0)
166
190
  mustermann (~> 1.0)
167
- rack (~> 2.0)
168
- rack-protection (= 2.0.3)
191
+ rack (~> 2.2)
192
+ rack-protection (= 2.1.0)
169
193
  tilt (~> 2.0)
170
194
  skinny (0.2.2)
171
195
  eventmachine (~> 1.0)
172
196
  thin
173
- sqlite3 (1.3.13)
197
+ sqlite3 (1.4.2)
174
198
  sqlite3-ruby (1.3.3)
175
199
  sqlite3 (>= 1.3.3)
176
- temple (0.8.0)
200
+ temple (0.8.2)
177
201
  terminal-table (1.8.0)
178
202
  unicode-display_width (~> 1.1, >= 1.1.1)
179
- thin (1.7.2)
203
+ thin (1.8.0)
180
204
  daemons (~> 1.0, >= 1.0.9)
181
205
  eventmachine (~> 1.0, >= 1.0.4)
182
206
  rack (>= 1, < 3)
183
- thor (0.19.4)
184
- thread_safe (0.3.6)
185
- tilt (2.0.8)
186
- tzinfo (1.2.5)
187
- thread_safe (~> 0.1)
188
- unicode-display_width (1.4.0)
207
+ thor (1.1.0)
208
+ tilt (2.0.10)
209
+ tzinfo (2.0.4)
210
+ concurrent-ruby (~> 1.0)
211
+ unicode-display_width (1.7.0)
212
+ zeitwerk (2.4.2)
189
213
 
190
214
  PLATFORMS
191
215
  ruby
192
216
 
193
217
  DEPENDENCIES
194
- actionmailer (~> 5.0)
218
+ actionmailer (>= 5.0, < 7.0)
195
219
  bugsnag
196
- bundler (~> 1.13)
220
+ bundler
197
221
  checker_jobs!
198
222
  mailcatcher
199
223
  pronto
200
224
  pronto-rubocop
201
225
  pry-byebug
202
- rake (~> 12.3)
203
- rspec (~> 3.7)
226
+ rake (~> 13.0)
227
+ rspec (~> 3.10)
204
228
  rubocop
205
229
  rubocop-rspec
206
- sidekiq (~> 5.0)
230
+ sidekiq (>= 6.0, < 7.0)
207
231
  simplecov
208
232
 
209
233
  BUNDLED WITH
210
- 1.17.0
234
+ 2.1.4
data/README.md CHANGED
@@ -23,7 +23,7 @@ you like and then those checks are run by your application, in background jobs.
23
23
 
24
24
  A small DSL is provided to helps you express your predicates:
25
25
 
26
- - `ensure_no` will check that the result of a given block is `zero?` or `empty?`
26
+ - `ensure_no` will check that the result of a given block is `zero?`, `empty?` or `false`
27
27
  - `ensure_more` will check that the result of a given block is `>=` than a given number
28
28
  - `ensure_fewer` will check that the result of a given block is `<=` than a given number
29
29
 
data/checker_jobs.gemspec CHANGED
@@ -19,18 +19,19 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
19
19
  spec.bindir = "exe"
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
+ spec.required_ruby_version = ">= 2.6.0"
22
23
 
23
- spec.add_development_dependency "actionmailer", "~> 5.0"
24
+ spec.add_development_dependency "actionmailer", ">= 5.0", "< 7.0"
24
25
  spec.add_development_dependency "bugsnag"
25
- spec.add_development_dependency "bundler", "~> 1.13"
26
+ spec.add_development_dependency "bundler"
26
27
  spec.add_development_dependency "mailcatcher"
27
28
  spec.add_development_dependency "pronto"
28
29
  spec.add_development_dependency "pronto-rubocop"
29
30
  spec.add_development_dependency "pry-byebug"
30
- spec.add_development_dependency "rake", "~> 12.3"
31
- spec.add_development_dependency "rspec", "~> 3.7"
31
+ spec.add_development_dependency "rake", "~> 13.0"
32
+ spec.add_development_dependency "rspec", "~> 3.10"
32
33
  spec.add_development_dependency "rubocop"
33
34
  spec.add_development_dependency "rubocop-rspec"
34
- spec.add_development_dependency "sidekiq", "~> 5.0"
35
+ spec.add_development_dependency "sidekiq", ">= 6.0", "< 7.0"
35
36
  spec.add_development_dependency "simplecov"
36
37
  end
@@ -9,8 +9,8 @@ class CheckerJobs::Notifiers::Bugsnag < CheckerJobs::Notifiers::Base
9
9
 
10
10
  def notify
11
11
  raise @formatter.base_error
12
- rescue Error => error
13
- ::Bugsnag.notify(error) do |notification|
12
+ rescue Error => e
13
+ ::Bugsnag.notify(e) do |notification|
14
14
  notification.severity = @formatter.severity
15
15
  notification.context = @formatter.context
16
16
  notification.grouping_hash = @formatter.grouping_hash
@@ -24,7 +24,7 @@ class CheckerJobs::Notifiers::EmailDefaultFormatter
24
24
 
25
25
  private
26
26
 
27
- def format_entry(entry)
27
+ def format_entry(entry) # rubocop:disable Lint/UselessMethodDefinition
28
28
  # NOTE: inherit and override to support your custom objects
29
29
  super
30
30
  end
@@ -25,7 +25,7 @@ module CheckerJobs::Notifiers::FormatterHelpers
25
25
 
26
26
  def github_url
27
27
  filepath, line_number = @check.block.source_location
28
- filepath = filepath.sub(Dir.pwd + "/", "")
28
+ filepath = filepath.sub("#{Dir.pwd}/", "")
29
29
  GITHUB_URL_FORMAT % {
30
30
  repository: repository_configuration[:github],
31
31
  path: filepath,
@@ -19,7 +19,7 @@ class CheckerJobs::Notifiers::Logger < CheckerJobs::Notifiers::Base
19
19
 
20
20
  def self.default_options
21
21
  {
22
- logdev: STDOUT,
22
+ logdev: $stdout,
23
23
  level: Logger::INFO,
24
24
  }
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module CheckerJobs
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checker_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy
8
8
  - Nicolas Zermati
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-11-15 00:00:00.000000000 Z
12
+ date: 2024-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionmailer
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '5.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '7.0'
21
24
  type: :development
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: '5.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: bugsnag
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +49,16 @@ dependencies:
43
49
  name: bundler
44
50
  requirement: !ruby/object:Gem::Requirement
45
51
  requirements:
46
- - - "~>"
52
+ - - ">="
47
53
  - !ruby/object:Gem::Version
48
- version: '1.13'
54
+ version: '0'
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
- - - "~>"
59
+ - - ">="
54
60
  - !ruby/object:Gem::Version
55
- version: '1.13'
61
+ version: '0'
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: mailcatcher
58
64
  requirement: !ruby/object:Gem::Requirement
@@ -115,28 +121,28 @@ dependencies:
115
121
  requirements:
116
122
  - - "~>"
117
123
  - !ruby/object:Gem::Version
118
- version: '12.3'
124
+ version: '13.0'
119
125
  type: :development
120
126
  prerelease: false
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
129
  - - "~>"
124
130
  - !ruby/object:Gem::Version
125
- version: '12.3'
131
+ version: '13.0'
126
132
  - !ruby/object:Gem::Dependency
127
133
  name: rspec
128
134
  requirement: !ruby/object:Gem::Requirement
129
135
  requirements:
130
136
  - - "~>"
131
137
  - !ruby/object:Gem::Version
132
- version: '3.7'
138
+ version: '3.10'
133
139
  type: :development
134
140
  prerelease: false
135
141
  version_requirements: !ruby/object:Gem::Requirement
136
142
  requirements:
137
143
  - - "~>"
138
144
  - !ruby/object:Gem::Version
139
- version: '3.7'
145
+ version: '3.10'
140
146
  - !ruby/object:Gem::Dependency
141
147
  name: rubocop
142
148
  requirement: !ruby/object:Gem::Requirement
@@ -169,16 +175,22 @@ dependencies:
169
175
  name: sidekiq
170
176
  requirement: !ruby/object:Gem::Requirement
171
177
  requirements:
172
- - - "~>"
178
+ - - ">="
173
179
  - !ruby/object:Gem::Version
174
- version: '5.0'
180
+ version: '6.0'
181
+ - - "<"
182
+ - !ruby/object:Gem::Version
183
+ version: '7.0'
175
184
  type: :development
176
185
  prerelease: false
177
186
  version_requirements: !ruby/object:Gem::Requirement
178
187
  requirements:
179
- - - "~>"
188
+ - - ">="
180
189
  - !ruby/object:Gem::Version
181
- version: '5.0'
190
+ version: '6.0'
191
+ - - "<"
192
+ - !ruby/object:Gem::Version
193
+ version: '7.0'
182
194
  - !ruby/object:Gem::Dependency
183
195
  name: simplecov
184
196
  requirement: !ruby/object:Gem::Requirement
@@ -204,6 +216,7 @@ files:
204
216
  - ".gitignore"
205
217
  - ".rspec"
206
218
  - ".rubocop.yml"
219
+ - ".ruby-version"
207
220
  - Gemfile
208
221
  - Gemfile.lock
209
222
  - LICENSE.txt
@@ -239,7 +252,7 @@ homepage: https://github.com/drivy/checker_jobs
239
252
  licenses:
240
253
  - MIT
241
254
  metadata: {}
242
- post_install_message:
255
+ post_install_message:
243
256
  rdoc_options: []
244
257
  require_paths:
245
258
  - lib
@@ -247,16 +260,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
260
  requirements:
248
261
  - - ">="
249
262
  - !ruby/object:Gem::Version
250
- version: '0'
263
+ version: 2.6.0
251
264
  required_rubygems_version: !ruby/object:Gem::Requirement
252
265
  requirements:
253
266
  - - ">="
254
267
  - !ruby/object:Gem::Version
255
268
  version: '0'
256
269
  requirements: []
257
- rubyforge_project:
258
- rubygems_version: 2.7.7
259
- signing_key:
270
+ rubygems_version: 3.2.33
271
+ signing_key:
260
272
  specification_version: 4
261
273
  summary: Regression tests for data
262
274
  test_files: []