dependabot-linguist 0.212.1 → 0.303.0

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.
data/Gemfile.lock CHANGED
@@ -1,224 +1,332 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dependabot-linguist (0.212.1)
5
- dependabot-omnibus (= 0.212.0)
6
- github-linguist (= 7.23.0)
7
- rugged (~> 1.5.0)
4
+ dependabot-linguist (0.303.0)
5
+ dependabot-omnibus (= 0.303.0)
6
+ github-linguist (= 9.0.0)
7
+ json (= 2.6.3)
8
+ rugged (= 1.9.0)
9
+ stringio (= 3.1.5)
8
10
 
9
11
  GEM
10
12
  remote: https://rubygems.org/
11
13
  specs:
12
- activesupport (7.0.4)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 1.6, < 2)
15
- minitest (>= 5.1)
16
- tzinfo (~> 2.0)
17
- addressable (2.8.1)
18
- public_suffix (>= 2.0.2, < 6.0)
19
- ast (2.4.2)
20
- aws-eventstream (1.2.0)
21
- aws-partitions (1.668.0)
22
- aws-sdk-codecommit (1.52.0)
23
- aws-sdk-core (~> 3, >= 3.165.0)
24
- aws-sigv4 (~> 1.1)
25
- aws-sdk-core (3.168.2)
26
- aws-eventstream (~> 1, >= 1.0.2)
27
- aws-partitions (~> 1, >= 1.651.0)
14
+ addressable (2.8.7)
15
+ public_suffix (>= 2.0.2, < 7.0)
16
+ aruba (2.3.0)
17
+ bundler (>= 1.17, < 3.0)
18
+ contracts (>= 0.16.0, < 0.18.0)
19
+ cucumber (>= 8.0, < 10.0)
20
+ rspec-expectations (~> 3.4)
21
+ thor (~> 1.0)
22
+ ast (2.4.3)
23
+ aws-eventstream (1.3.2)
24
+ aws-partitions (1.1077.0)
25
+ aws-sdk-codecommit (1.83.0)
26
+ aws-sdk-core (~> 3, >= 3.216.0)
28
27
  aws-sigv4 (~> 1.5)
28
+ aws-sdk-core (3.222.1)
29
+ aws-eventstream (~> 1, >= 1.3.0)
30
+ aws-partitions (~> 1, >= 1.992.0)
31
+ aws-sigv4 (~> 1.9)
32
+ base64
29
33
  jmespath (~> 1, >= 1.6.1)
30
- aws-sdk-ecr (1.57.0)
31
- aws-sdk-core (~> 3, >= 3.165.0)
32
- aws-sigv4 (~> 1.1)
33
- aws-sigv4 (1.5.2)
34
+ logger
35
+ aws-sdk-ecr (1.98.0)
36
+ aws-sdk-core (~> 3, >= 3.216.0)
37
+ aws-sigv4 (~> 1.5)
38
+ aws-sigv4 (1.11.0)
34
39
  aws-eventstream (~> 1, >= 1.0.2)
35
- cgi (0.3.6)
36
- charlock_holmes (0.7.7)
40
+ base64 (0.2.0)
41
+ bigdecimal (3.1.9)
42
+ builder (3.3.0)
43
+ cgi (0.4.2)
44
+ charlock_holmes (0.7.9)
37
45
  citrus (3.0.2)
38
- commonmarker (0.23.6)
39
- concurrent-ruby (1.1.10)
40
- dependabot-bundler (0.212.0)
41
- dependabot-common (= 0.212.0)
42
- dependabot-cargo (0.212.0)
43
- dependabot-common (= 0.212.0)
44
- dependabot-common (0.212.0)
45
- activesupport (>= 6.0.0)
46
+ commonmarker (0.23.11)
47
+ contracts (0.17.2)
48
+ csv (3.3.3)
49
+ cucumber (9.2.1)
50
+ builder (~> 3.2)
51
+ cucumber-ci-environment (> 9, < 11)
52
+ cucumber-core (> 13, < 14)
53
+ cucumber-cucumber-expressions (~> 17.0)
54
+ cucumber-gherkin (> 24, < 28)
55
+ cucumber-html-formatter (> 20.3, < 22)
56
+ cucumber-messages (> 19, < 25)
57
+ diff-lcs (~> 1.5)
58
+ mini_mime (~> 1.1)
59
+ multi_test (~> 1.1)
60
+ sys-uname (~> 1.2)
61
+ cucumber-ci-environment (10.0.1)
62
+ cucumber-core (13.0.3)
63
+ cucumber-gherkin (>= 27, < 28)
64
+ cucumber-messages (>= 20, < 23)
65
+ cucumber-tag-expressions (> 5, < 7)
66
+ cucumber-cucumber-expressions (17.1.0)
67
+ bigdecimal
68
+ cucumber-gherkin (27.0.0)
69
+ cucumber-messages (>= 19.1.4, < 23)
70
+ cucumber-html-formatter (21.9.0)
71
+ cucumber-messages (> 19, < 28)
72
+ cucumber-messages (22.0.0)
73
+ cucumber-tag-expressions (6.1.2)
74
+ date (3.4.1)
75
+ dependabot-bun (0.303.0)
76
+ dependabot-common (= 0.303.0)
77
+ dependabot-bundler (0.303.0)
78
+ dependabot-common (= 0.303.0)
79
+ parallel (~> 1.24)
80
+ dependabot-cargo (0.303.0)
81
+ dependabot-common (= 0.303.0)
82
+ dependabot-common (0.303.0)
46
83
  aws-sdk-codecommit (~> 1.28)
47
84
  aws-sdk-ecr (~> 1.5)
48
85
  bundler (>= 1.16, < 3.0.0)
49
86
  commonmarker (>= 0.20.1, < 0.24.0)
50
- docker_registry2 (~> 1.11, >= 1.11.0)
51
- excon (~> 0.75)
52
- faraday (= 2.5.2)
53
- gitlab (= 4.19.0)
87
+ docker_registry2 (~> 1.18.2)
88
+ excon (~> 0.109)
89
+ faraday (= 2.7.11)
90
+ faraday-retry (= 2.2.0)
91
+ gitlab (= 5.0.0)
92
+ json (< 2.7)
54
93
  nokogiri (~> 1.8)
55
- octokit (>= 4.6, < 6.0)
94
+ octokit (>= 4.6, < 8.0)
95
+ opentelemetry-api (~> 1.4)
96
+ opentelemetry-metrics-api (~> 0.1)
56
97
  parser (>= 2.5, < 4.0)
57
- toml-rb (>= 1.1.2, < 3.0)
58
- dependabot-composer (0.212.0)
59
- dependabot-common (= 0.212.0)
60
- dependabot-docker (0.212.0)
61
- dependabot-common (= 0.212.0)
62
- dependabot-elm (0.212.0)
63
- dependabot-common (= 0.212.0)
64
- dependabot-git_submodules (0.212.0)
65
- dependabot-common (= 0.212.0)
98
+ psych (~> 5.0)
99
+ sorbet-runtime (~> 0.5.11952)
100
+ stackprof (~> 0.2.16)
101
+ toml-rb (>= 1.1.2)
102
+ dependabot-composer (0.303.0)
103
+ dependabot-common (= 0.303.0)
104
+ dependabot-devcontainers (0.303.0)
105
+ dependabot-common (= 0.303.0)
106
+ dependabot-docker (0.303.0)
107
+ dependabot-common (= 0.303.0)
108
+ dependabot-docker_compose (0.303.0)
109
+ dependabot-common (= 0.303.0)
110
+ dependabot-docker (= 0.303.0)
111
+ dependabot-dotnet_sdk (0.303.0)
112
+ dependabot-common (= 0.303.0)
113
+ dependabot-elm (0.303.0)
114
+ dependabot-common (= 0.303.0)
115
+ dependabot-git_submodules (0.303.0)
116
+ dependabot-common (= 0.303.0)
66
117
  parseconfig (~> 1.0, < 1.1.0)
67
- dependabot-github_actions (0.212.0)
68
- dependabot-common (= 0.212.0)
69
- dependabot-go_modules (0.212.0)
70
- dependabot-common (= 0.212.0)
71
- dependabot-gradle (0.212.0)
72
- dependabot-common (= 0.212.0)
73
- dependabot-maven (= 0.212.0)
74
- dependabot-hex (0.212.0)
75
- dependabot-common (= 0.212.0)
76
- dependabot-maven (0.212.0)
77
- dependabot-common (= 0.212.0)
78
- dependabot-npm_and_yarn (0.212.0)
79
- dependabot-common (= 0.212.0)
80
- dependabot-nuget (0.212.0)
81
- dependabot-common (= 0.212.0)
82
- dependabot-omnibus (0.212.0)
83
- dependabot-bundler (= 0.212.0)
84
- dependabot-cargo (= 0.212.0)
85
- dependabot-common (= 0.212.0)
86
- dependabot-composer (= 0.212.0)
87
- dependabot-docker (= 0.212.0)
88
- dependabot-elm (= 0.212.0)
89
- dependabot-git_submodules (= 0.212.0)
90
- dependabot-github_actions (= 0.212.0)
91
- dependabot-go_modules (= 0.212.0)
92
- dependabot-gradle (= 0.212.0)
93
- dependabot-hex (= 0.212.0)
94
- dependabot-maven (= 0.212.0)
95
- dependabot-npm_and_yarn (= 0.212.0)
96
- dependabot-nuget (= 0.212.0)
97
- dependabot-pub (= 0.212.0)
98
- dependabot-python (= 0.212.0)
99
- dependabot-terraform (= 0.212.0)
100
- dependabot-pub (0.212.0)
101
- dependabot-common (= 0.212.0)
102
- dependabot-python (0.212.0)
103
- dependabot-common (= 0.212.0)
104
- dependabot-terraform (0.212.0)
105
- dependabot-common (= 0.212.0)
106
- diff-lcs (1.5.0)
107
- docker_registry2 (1.12.0)
118
+ dependabot-github_actions (0.303.0)
119
+ dependabot-common (= 0.303.0)
120
+ dependabot-go_modules (0.303.0)
121
+ dependabot-common (= 0.303.0)
122
+ dependabot-gradle (0.303.0)
123
+ dependabot-common (= 0.303.0)
124
+ dependabot-maven (= 0.303.0)
125
+ dependabot-helm (0.303.0)
126
+ dependabot-common (= 0.303.0)
127
+ dependabot-docker (= 0.303.0)
128
+ dependabot-hex (0.303.0)
129
+ dependabot-common (= 0.303.0)
130
+ dependabot-maven (0.303.0)
131
+ dependabot-common (= 0.303.0)
132
+ dependabot-npm_and_yarn (0.303.0)
133
+ dependabot-common (= 0.303.0)
134
+ dependabot-nuget (0.303.0)
135
+ dependabot-common (= 0.303.0)
136
+ rubyzip (>= 2.3.2, < 3.0)
137
+ dependabot-omnibus (0.303.0)
138
+ dependabot-bun (= 0.303.0)
139
+ dependabot-bundler (= 0.303.0)
140
+ dependabot-cargo (= 0.303.0)
141
+ dependabot-common (= 0.303.0)
142
+ dependabot-composer (= 0.303.0)
143
+ dependabot-devcontainers (= 0.303.0)
144
+ dependabot-docker (= 0.303.0)
145
+ dependabot-docker_compose (= 0.303.0)
146
+ dependabot-dotnet_sdk (= 0.303.0)
147
+ dependabot-elm (= 0.303.0)
148
+ dependabot-git_submodules (= 0.303.0)
149
+ dependabot-github_actions (= 0.303.0)
150
+ dependabot-go_modules (= 0.303.0)
151
+ dependabot-gradle (= 0.303.0)
152
+ dependabot-helm (= 0.303.0)
153
+ dependabot-hex (= 0.303.0)
154
+ dependabot-maven (= 0.303.0)
155
+ dependabot-npm_and_yarn (= 0.303.0)
156
+ dependabot-nuget (= 0.303.0)
157
+ dependabot-pub (= 0.303.0)
158
+ dependabot-python (= 0.303.0)
159
+ dependabot-swift (= 0.303.0)
160
+ dependabot-terraform (= 0.303.0)
161
+ dependabot-uv (= 0.303.0)
162
+ dependabot-pub (0.303.0)
163
+ dependabot-common (= 0.303.0)
164
+ dependabot-python (0.303.0)
165
+ dependabot-common (= 0.303.0)
166
+ dependabot-swift (0.303.0)
167
+ dependabot-common (= 0.303.0)
168
+ dependabot-terraform (0.303.0)
169
+ dependabot-common (= 0.303.0)
170
+ dependabot-uv (0.303.0)
171
+ dependabot-common (= 0.303.0)
172
+ diff-lcs (1.6.1)
173
+ docker_registry2 (1.18.2)
108
174
  rest-client (>= 1.8.0)
109
- domain_name (0.5.20190701)
110
- unf (>= 0.0.5, < 1.0.0)
111
- excon (0.94.0)
112
- faraday (2.5.2)
175
+ domain_name (0.6.20240107)
176
+ excon (0.112.0)
177
+ faraday (2.7.11)
178
+ base64
113
179
  faraday-net_http (>= 2.0, < 3.1)
114
180
  ruby2_keywords (>= 0.0.4)
115
181
  faraday-net_http (3.0.2)
116
- github-linguist (7.23.0)
182
+ faraday-retry (2.2.0)
183
+ faraday (~> 2.0)
184
+ ffi (1.17.1-aarch64-linux-gnu)
185
+ ffi (1.17.1-aarch64-linux-musl)
186
+ ffi (1.17.1-arm-linux-gnu)
187
+ ffi (1.17.1-arm-linux-musl)
188
+ ffi (1.17.1-arm64-darwin)
189
+ ffi (1.17.1-x86_64-darwin)
190
+ ffi (1.17.1-x86_64-linux-gnu)
191
+ ffi (1.17.1-x86_64-linux-musl)
192
+ github-linguist (9.0.0)
117
193
  cgi
118
194
  charlock_holmes (~> 0.7.7)
119
195
  mini_mime (~> 1.0)
120
196
  rugged (~> 1.0)
121
- gitlab (4.19.0)
197
+ gitlab (5.0.0)
122
198
  httparty (~> 0.20)
123
199
  terminal-table (>= 1.5.1)
124
200
  http-accept (1.7.0)
125
- http-cookie (1.0.5)
201
+ http-cookie (1.0.8)
126
202
  domain_name (~> 0.5)
127
- httparty (0.20.0)
128
- mime-types (~> 3.0)
203
+ httparty (0.23.1)
204
+ csv
205
+ mini_mime (>= 1.0.0)
129
206
  multi_xml (>= 0.5.2)
130
- i18n (1.12.0)
131
- concurrent-ruby (~> 1.0)
132
207
  jmespath (1.6.2)
133
- json (2.6.2)
134
- mime-types (3.4.1)
208
+ json (2.6.3)
209
+ language_server-protocol (3.17.0.4)
210
+ lint_roller (1.1.0)
211
+ logger (1.7.0)
212
+ mime-types (3.6.2)
213
+ logger
135
214
  mime-types-data (~> 3.2015)
136
- mime-types-data (3.2022.0105)
137
- mini_mime (1.1.2)
138
- mini_portile2 (2.8.0)
139
- minitest (5.16.3)
140
- multi_xml (0.6.0)
215
+ mime-types-data (3.2025.0325)
216
+ mini_mime (1.1.5)
217
+ multi_test (1.1.0)
218
+ multi_xml (0.7.1)
219
+ bigdecimal (~> 3.1)
141
220
  netrc (0.11.0)
142
- nokogiri (1.13.9)
143
- mini_portile2 (~> 2.8.0)
221
+ nokogiri (1.18.6-aarch64-linux-gnu)
222
+ racc (~> 1.4)
223
+ nokogiri (1.18.6-aarch64-linux-musl)
224
+ racc (~> 1.4)
225
+ nokogiri (1.18.6-arm-linux-gnu)
226
+ racc (~> 1.4)
227
+ nokogiri (1.18.6-arm-linux-musl)
228
+ racc (~> 1.4)
229
+ nokogiri (1.18.6-arm64-darwin)
230
+ racc (~> 1.4)
231
+ nokogiri (1.18.6-x86_64-darwin)
232
+ racc (~> 1.4)
233
+ nokogiri (1.18.6-x86_64-linux-gnu)
144
234
  racc (~> 1.4)
145
- nokogiri (1.13.9-x86_64-linux)
235
+ nokogiri (1.18.6-x86_64-linux-musl)
146
236
  racc (~> 1.4)
147
- octokit (5.6.1)
237
+ octokit (7.2.0)
148
238
  faraday (>= 1, < 3)
149
239
  sawyer (~> 0.9)
150
- parallel (1.22.1)
240
+ opentelemetry-api (1.5.0)
241
+ opentelemetry-metrics-api (0.3.0)
242
+ opentelemetry-api (~> 1.0)
243
+ parallel (1.26.3)
151
244
  parseconfig (1.0.8)
152
- parser (3.1.2.1)
245
+ parser (3.3.7.3)
153
246
  ast (~> 2.4.1)
154
- psych (4.0.6)
247
+ racc
248
+ prism (1.4.0)
249
+ psych (5.2.3)
250
+ date
155
251
  stringio
156
- public_suffix (5.0.0)
157
- racc (1.6.0)
252
+ public_suffix (6.0.1)
253
+ racc (1.8.1)
158
254
  rainbow (3.1.1)
159
- rake (13.0.6)
160
- rdoc (6.4.0)
255
+ rake (13.2.1)
256
+ rdoc (6.13.1)
161
257
  psych (>= 4.0.0)
162
- regexp_parser (2.6.1)
258
+ regexp_parser (2.10.0)
163
259
  rest-client (2.1.0)
164
260
  http-accept (>= 1.7.0, < 2.0)
165
261
  http-cookie (>= 1.0.2, < 2.0)
166
262
  mime-types (>= 1.16, < 4.0)
167
263
  netrc (~> 0.8)
168
- rexml (3.2.5)
169
- rspec (3.12.0)
170
- rspec-core (~> 3.12.0)
171
- rspec-expectations (~> 3.12.0)
172
- rspec-mocks (~> 3.12.0)
173
- rspec-core (3.12.0)
174
- rspec-support (~> 3.12.0)
175
- rspec-expectations (3.12.0)
264
+ rspec (3.13.0)
265
+ rspec-core (~> 3.13.0)
266
+ rspec-expectations (~> 3.13.0)
267
+ rspec-mocks (~> 3.13.0)
268
+ rspec-core (3.13.3)
269
+ rspec-support (~> 3.13.0)
270
+ rspec-expectations (3.13.3)
176
271
  diff-lcs (>= 1.2.0, < 2.0)
177
- rspec-support (~> 3.12.0)
178
- rspec-mocks (3.12.0)
272
+ rspec-support (~> 3.13.0)
273
+ rspec-mocks (3.13.2)
179
274
  diff-lcs (>= 1.2.0, < 2.0)
180
- rspec-support (~> 3.12.0)
181
- rspec-support (3.12.0)
182
- rubocop (1.39.0)
275
+ rspec-support (~> 3.13.0)
276
+ rspec-support (3.13.2)
277
+ rubocop (1.75.1)
183
278
  json (~> 2.3)
279
+ language_server-protocol (~> 3.17.0.2)
280
+ lint_roller (~> 1.1.0)
184
281
  parallel (~> 1.10)
185
- parser (>= 3.1.2.1)
282
+ parser (>= 3.3.0.2)
186
283
  rainbow (>= 2.2.2, < 4.0)
187
- regexp_parser (>= 1.8, < 3.0)
188
- rexml (>= 3.2.5, < 4.0)
189
- rubocop-ast (>= 1.23.0, < 2.0)
284
+ regexp_parser (>= 2.9.3, < 3.0)
285
+ rubocop-ast (>= 1.43.0, < 2.0)
190
286
  ruby-progressbar (~> 1.7)
191
- unicode-display_width (>= 1.4.0, < 3.0)
192
- rubocop-ast (1.23.0)
193
- parser (>= 3.1.1.0)
194
- ruby-progressbar (1.11.0)
287
+ unicode-display_width (>= 2.4.0, < 4.0)
288
+ rubocop-ast (1.43.0)
289
+ parser (>= 3.3.7.2)
290
+ prism (~> 1.4)
291
+ ruby-progressbar (1.13.0)
195
292
  ruby2_keywords (0.0.5)
196
- rugged (1.5.0.1)
293
+ rubyzip (2.4.1)
294
+ rugged (1.9.0)
197
295
  sawyer (0.9.2)
198
296
  addressable (>= 2.3.5)
199
297
  faraday (>= 0.17.3, < 3)
200
- stringio (3.0.2)
201
- terminal-table (3.0.2)
202
- unicode-display_width (>= 1.1.1, < 3)
203
- toml-rb (2.2.0)
298
+ sorbet-runtime (0.5.11966)
299
+ stackprof (0.2.27)
300
+ stringio (3.1.5)
301
+ sys-uname (1.3.1)
302
+ ffi (~> 1.1)
303
+ terminal-table (4.0.0)
304
+ unicode-display_width (>= 1.1.1, < 4)
305
+ thor (1.3.2)
306
+ toml-rb (4.0.0)
204
307
  citrus (~> 3.0, > 3.0)
205
- tzinfo (2.0.5)
206
- concurrent-ruby (~> 1.0)
207
- unf (0.1.4)
208
- unf_ext
209
- unf_ext (0.0.8.2)
210
- unicode-display_width (2.3.0)
308
+ racc (~> 1.7)
309
+ unicode-display_width (3.1.4)
310
+ unicode-emoji (~> 4.0, >= 4.0.4)
311
+ unicode-emoji (4.0.4)
211
312
 
212
313
  PLATFORMS
213
- ruby
214
- x86_64-linux
314
+ aarch64-linux-gnu
315
+ aarch64-linux-musl
316
+ arm-linux-gnu
317
+ arm-linux-musl
318
+ arm64-darwin
319
+ x86_64-darwin
320
+ x86_64-linux-gnu
321
+ x86_64-linux-musl
215
322
 
216
323
  DEPENDENCIES
324
+ aruba (~> 2.3)
217
325
  dependabot-linguist!
218
- rake (~> 13.0)
219
- rdoc (~> 6.0)
220
- rspec (~> 3.12)
221
- rubocop (~> 1.37)
326
+ rake (~> 13.2)
327
+ rdoc (~> 6.12)
328
+ rspec (~> 3.13)
329
+ rubocop (~> 1.73)
222
330
 
223
331
  BUNDLED WITH
224
- 2.3.24
332
+ 2.6.5
data/Makefile CHANGED
@@ -1,52 +1,126 @@
1
- .PHONY: setup setup_github clean docs docs_view demo test build install push_rubygems push_github
1
+ # It's assumed you have https://rvm.io/ -- see "Developing" in the README
2
+ # https://github.com/Skenvy/dependabot-linguist/blob/main/ruby/README.md#developing
3
+
4
+ # ruby binaries -- https://rvm.io/binaries/ ~= ubuntu 24 x86
5
+ DEVELOPMENT_RUBY_VERSION=ruby-$$(cat ./.ruby-version)
6
+ # https://rubygems.org/gems/bundler
7
+ DEVELOPMENT_BUNDLER_VERSION=2.6.5
8
+ # https://rubygems.org/gems/rubygems-update
9
+ DEVELOPMENT_GEMSYS_VERSION=3.6.5
10
+
11
+ # Instructions to load corepack in all subshells, required by the npm dependabot
12
+ # Not part of my standard ruby project makefile, but required for this one lol.
13
+ # The gh runners already have a default node installed which is good enough.
14
+ DEVELOPMENT_COREPACK_VERSION=0.31.0
15
+ NVM=source $$NVM_DIR/nvm.sh && nvm
16
+ __=$(NVM) use &&
17
+ NPM=$(__) npm
18
+ INSTALL_NODE=$(NVM) install $$(cat ./.nvmrc)
19
+ INSTALL_COREPACK=$(NPM) i -g corepack@$(DEVELOPMENT_COREPACK_VERSION)
20
+
21
+ # Back to the standard ruby project makefile config, besides $(__) injected on _
22
+ RVM=source "$$RVM_DIR/scripts/rvm" && rvm
23
+ INSTALL_RUBY=$(RVM) install "$(DEVELOPMENT_RUBY_VERSION)"
24
+ _=$(RVM) use $(DEVELOPMENT_RUBY_VERSION) &&
25
+ GEM=$(__) $(_) gem
26
+ RUBY=$(__) $(_) ruby
27
+ INSTALL_BUNDLER=$(GEM) install bundler -v $(DEVELOPMENT_BUNDLER_VERSION)
28
+ UPDATE_RUBYGEMS=$(GEM) update --system $(DEVELOPMENT_GEMSYS_VERSION)
29
+ # With multiple bundler versions installed, specify which to use with _ver_
30
+ BUNDLE=$(__) $(_) bundle _$(DEVELOPMENT_BUNDLER_VERSION)_
31
+ RAKE=$(BUNDLE) exec rake
32
+
2
33
  SHELL:=/bin/bash
3
34
 
4
- # Assumes `gem install bundler`
5
- setup:
6
- bundle install
35
+ .PHONY: preinit initialise_ruby initialise_corepack initialise
36
+
37
+ # See https://github.com/Skenvy/dependabot-linguist?tab=readme-ov-file#linguist-dependencies
38
+ # Packages that need to be installed for native compilation of deps of linguist
39
+ # You'll probably need to `sudo make preinit` if setup fails to build some pkgs.
40
+ # These should all already be installed on the gh runner.
41
+ preinit:
42
+ apt-get install build-essential cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev
43
+
44
+ # How to setup for ruby development ~ might require compiling ruby locally.
45
+ initialise_ruby:
46
+ $(INSTALL_RUBY)
47
+ $(INSTALL_BUNDLER)
48
+ $(UPDATE_RUBYGEMS)
49
+
50
+ initialise_corepack:
51
+ $(INSTALL_NODE)
52
+ $(INSTALL_COREPACK)
53
+
54
+ initialise: initialise_ruby initialise_corepack
55
+
56
+ .PHONY: freeze unfreeze setup update setup_github clean
7
57
 
8
- setup_github:
9
- gem install keycutter
58
+ freeze:
59
+ $(BUNDLE) config set frozen true
60
+
61
+ unfreeze:
62
+ $(BUNDLE) config set frozen false
63
+
64
+ # `--full-index` can be a useful flag on the `bundle install` but the action
65
+ # currently doesn't support this https://github.com/ruby/setup-ruby/issues/714
66
+ # so if we get an error ~ "revealed dependencies not in the API" we rollback.
67
+
68
+ setup: initialise freeze
69
+ $(BUNDLE) install
70
+
71
+ update: initialise unfreeze
72
+ $(BUNDLE) install
73
+
74
+ setup_github: unfreeze
75
+ $(GEM) install keycutter
10
76
 
11
77
  clean:
12
- bundle exec rake clean
13
- bundle exec rake clobber
78
+ $(RAKE) clean
79
+ $(RAKE) clobber
14
80
  rm -f dependabot-linguist-*.gem
15
81
  rm -f pkg/dependabot-linguist-*.gem
16
82
 
83
+ .PHONY: docs docs_view demo
84
+
17
85
  docs: clean
18
- bundle exec rake rdoc
86
+ $(RAKE) rdoc
19
87
 
20
88
  # http://localhost:8080/
21
89
  docs_view: docs
22
- ruby -run -e httpd doc
90
+ $(RUBY) -run -e httpd doc
23
91
 
24
92
  demo:
25
- bundle exec ruby demo_script.rb
93
+ $(BUNDLE) exec ruby demo_script.rb
94
+
95
+ .PHONY: test lint build install
26
96
 
27
97
  # default (just `rake`) is spec + rubocop, but be pedantic in case this changes.
28
98
  test: clean
29
- bundle exec rake spec
30
- bundle exec rake rubocop
99
+ $(RAKE) spec
100
+
101
+ lint: clean
102
+ $(RAKE) rubocop
31
103
 
32
104
  # We can choose from `gem build dependabot-linguist.gemspec` or `bundle exec rake build`.
33
105
  # The gem build command creates a ./dependabot-linguist-$VER.gem file, and the rake build
34
106
  # (within bundle context) creates a ./pkg/dependabot-linguist-$VER.gem file.
35
- build: test
36
- bundle exec rake build
107
+ build: test lint
108
+ $(RAKE) build
37
109
 
38
110
  # --user-install means no need for sudo or expectation of
39
111
  # changing the folder permissions or access but will need
40
112
  # "gem environment"'s "USER INSTALLATION DIRECTORY" (+ "/bin")
41
113
  # in the PATH to then use any gem executables that it may contain.
42
- install: build
43
- gem install ./pkg/dependabot-linguist-$$(grep lib/dependabot/linguist/version.rb -e "VERSION" | cut -d \" -f 2).gem --user-install
114
+ install: build unfreeze
115
+ $(GEM) install ./pkg/dependabot-linguist-$$(grep lib/dependabot/linguist/version.rb -e "VERSION" | cut -d \" -f 2).gem --user-install
116
+
117
+ .PHONY: push_rubygems push_github
44
118
 
45
119
  # Will be run with one "pkg/dependabot-linguist-*.gem" file
46
120
  # rubygems_api_key and the rubygems host are the default
47
121
  push_rubygems:
48
- gem push $$(find . | grep pkg/dependabot-linguist-*.gem)
122
+ $(GEM) push $$(find . | grep pkg/dependabot-linguist-*.gem)
49
123
 
50
124
  # Will be run with one "pkg/dependabot-linguist-*.gem" file
51
125
  push_github:
52
- gem push --key github --host https://rubygems.pkg.github.com/Skenvy $$(find . | grep pkg/dependabot-linguist-*.gem)
126
+ $(GEM) push --key github --host https://rubygems.pkg.github.com/Skenvy $$(find . | grep pkg/dependabot-linguist-*.gem)