dependabot-linguist 0.217.0 → 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,216 +1,332 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dependabot-linguist (0.217.0)
5
- dependabot-omnibus (= 0.217.0)
6
- github-linguist (= 7.25.0)
7
- rugged (= 1.6.3)
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
- addressable (2.8.4)
13
- public_suffix (>= 2.0.2, < 6.0)
14
- ast (2.4.2)
15
- aws-eventstream (1.2.0)
16
- aws-partitions (1.763.0)
17
- aws-sdk-codecommit (1.53.0)
18
- aws-sdk-core (~> 3, >= 3.165.0)
19
- aws-sigv4 (~> 1.1)
20
- aws-sdk-core (3.172.0)
21
- aws-eventstream (~> 1, >= 1.0.2)
22
- 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)
23
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
24
33
  jmespath (~> 1, >= 1.6.1)
25
- aws-sdk-ecr (1.58.0)
26
- aws-sdk-core (~> 3, >= 3.165.0)
27
- aws-sigv4 (~> 1.1)
28
- 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)
29
39
  aws-eventstream (~> 1, >= 1.0.2)
30
- cgi (0.3.6)
31
- 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)
32
45
  citrus (3.0.2)
33
- commonmarker (0.23.9)
34
- dependabot-bundler (0.217.0)
35
- dependabot-common (= 0.217.0)
36
- dependabot-cargo (0.217.0)
37
- dependabot-common (= 0.217.0)
38
- dependabot-common (0.217.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)
39
83
  aws-sdk-codecommit (~> 1.28)
40
84
  aws-sdk-ecr (~> 1.5)
41
85
  bundler (>= 1.16, < 3.0.0)
42
86
  commonmarker (>= 0.20.1, < 0.24.0)
43
- docker_registry2 (~> 1.14)
44
- excon (~> 0.96, < 0.100)
45
- faraday (= 2.7.4)
46
- faraday-retry (= 2.1.0)
47
- 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)
48
93
  nokogiri (~> 1.8)
49
- octokit (>= 4.6, < 7.0)
94
+ octokit (>= 4.6, < 8.0)
95
+ opentelemetry-api (~> 1.4)
96
+ opentelemetry-metrics-api (~> 0.1)
50
97
  parser (>= 2.5, < 4.0)
51
98
  psych (~> 5.0)
52
- toml-rb (>= 1.1.2, < 3.0)
53
- dependabot-composer (0.217.0)
54
- dependabot-common (= 0.217.0)
55
- dependabot-docker (0.217.0)
56
- dependabot-common (= 0.217.0)
57
- dependabot-elm (0.217.0)
58
- dependabot-common (= 0.217.0)
59
- dependabot-git_submodules (0.217.0)
60
- dependabot-common (= 0.217.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)
61
117
  parseconfig (~> 1.0, < 1.1.0)
62
- dependabot-github_actions (0.217.0)
63
- dependabot-common (= 0.217.0)
64
- dependabot-go_modules (0.217.0)
65
- dependabot-common (= 0.217.0)
66
- dependabot-gradle (0.217.0)
67
- dependabot-common (= 0.217.0)
68
- dependabot-maven (= 0.217.0)
69
- dependabot-hex (0.217.0)
70
- dependabot-common (= 0.217.0)
71
- dependabot-maven (0.217.0)
72
- dependabot-common (= 0.217.0)
73
- dependabot-npm_and_yarn (0.217.0)
74
- dependabot-common (= 0.217.0)
75
- dependabot-nuget (0.217.0)
76
- dependabot-common (= 0.217.0)
77
- dependabot-omnibus (0.217.0)
78
- dependabot-bundler (= 0.217.0)
79
- dependabot-cargo (= 0.217.0)
80
- dependabot-common (= 0.217.0)
81
- dependabot-composer (= 0.217.0)
82
- dependabot-docker (= 0.217.0)
83
- dependabot-elm (= 0.217.0)
84
- dependabot-git_submodules (= 0.217.0)
85
- dependabot-github_actions (= 0.217.0)
86
- dependabot-go_modules (= 0.217.0)
87
- dependabot-gradle (= 0.217.0)
88
- dependabot-hex (= 0.217.0)
89
- dependabot-maven (= 0.217.0)
90
- dependabot-npm_and_yarn (= 0.217.0)
91
- dependabot-nuget (= 0.217.0)
92
- dependabot-pub (= 0.217.0)
93
- dependabot-python (= 0.217.0)
94
- dependabot-terraform (= 0.217.0)
95
- dependabot-pub (0.217.0)
96
- dependabot-common (= 0.217.0)
97
- dependabot-python (0.217.0)
98
- dependabot-common (= 0.217.0)
99
- dependabot-terraform (0.217.0)
100
- dependabot-common (= 0.217.0)
101
- diff-lcs (1.5.0)
102
- docker_registry2 (1.15.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)
103
174
  rest-client (>= 1.8.0)
104
- domain_name (0.5.20190701)
105
- unf (>= 0.0.5, < 1.0.0)
106
- excon (0.99.0)
107
- faraday (2.7.4)
175
+ domain_name (0.6.20240107)
176
+ excon (0.112.0)
177
+ faraday (2.7.11)
178
+ base64
108
179
  faraday-net_http (>= 2.0, < 3.1)
109
180
  ruby2_keywords (>= 0.0.4)
110
181
  faraday-net_http (3.0.2)
111
- faraday-retry (2.1.0)
182
+ faraday-retry (2.2.0)
112
183
  faraday (~> 2.0)
113
- github-linguist (7.25.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)
114
193
  cgi
115
194
  charlock_holmes (~> 0.7.7)
116
195
  mini_mime (~> 1.0)
117
196
  rugged (~> 1.0)
118
- gitlab (4.19.0)
197
+ gitlab (5.0.0)
119
198
  httparty (~> 0.20)
120
199
  terminal-table (>= 1.5.1)
121
200
  http-accept (1.7.0)
122
- http-cookie (1.0.5)
201
+ http-cookie (1.0.8)
123
202
  domain_name (~> 0.5)
124
- httparty (0.21.0)
203
+ httparty (0.23.1)
204
+ csv
125
205
  mini_mime (>= 1.0.0)
126
206
  multi_xml (>= 0.5.2)
127
207
  jmespath (1.6.2)
128
208
  json (2.6.3)
129
- mime-types (3.4.1)
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
130
214
  mime-types-data (~> 3.2015)
131
- mime-types-data (3.2023.0218.1)
132
- mini_mime (1.1.2)
133
- mini_portile2 (2.8.2)
134
- 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)
135
220
  netrc (0.11.0)
136
- nokogiri (1.14.4)
137
- 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)
138
234
  racc (~> 1.4)
139
- nokogiri (1.14.4-x86_64-linux)
235
+ nokogiri (1.18.6-x86_64-linux-musl)
140
236
  racc (~> 1.4)
141
- octokit (6.1.1)
237
+ octokit (7.2.0)
142
238
  faraday (>= 1, < 3)
143
239
  sawyer (~> 0.9)
144
- 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)
145
244
  parseconfig (1.0.8)
146
- parser (3.2.2.1)
245
+ parser (3.3.7.3)
147
246
  ast (~> 2.4.1)
148
- psych (5.1.0)
247
+ racc
248
+ prism (1.4.0)
249
+ psych (5.2.3)
250
+ date
149
251
  stringio
150
- public_suffix (5.0.1)
151
- racc (1.6.2)
252
+ public_suffix (6.0.1)
253
+ racc (1.8.1)
152
254
  rainbow (3.1.1)
153
- rake (13.0.6)
154
- rdoc (6.5.0)
255
+ rake (13.2.1)
256
+ rdoc (6.13.1)
155
257
  psych (>= 4.0.0)
156
- regexp_parser (2.8.0)
258
+ regexp_parser (2.10.0)
157
259
  rest-client (2.1.0)
158
260
  http-accept (>= 1.7.0, < 2.0)
159
261
  http-cookie (>= 1.0.2, < 2.0)
160
262
  mime-types (>= 1.16, < 4.0)
161
263
  netrc (~> 0.8)
162
- rexml (3.2.5)
163
- rspec (3.12.0)
164
- rspec-core (~> 3.12.0)
165
- rspec-expectations (~> 3.12.0)
166
- rspec-mocks (~> 3.12.0)
167
- rspec-core (3.12.0)
168
- rspec-support (~> 3.12.0)
169
- 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)
170
271
  diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.12.0)
172
- rspec-mocks (3.12.0)
272
+ rspec-support (~> 3.13.0)
273
+ rspec-mocks (3.13.2)
173
274
  diff-lcs (>= 1.2.0, < 2.0)
174
- rspec-support (~> 3.12.0)
175
- rspec-support (3.12.0)
176
- rubocop (1.50.2)
275
+ rspec-support (~> 3.13.0)
276
+ rspec-support (3.13.2)
277
+ rubocop (1.75.1)
177
278
  json (~> 2.3)
279
+ language_server-protocol (~> 3.17.0.2)
280
+ lint_roller (~> 1.1.0)
178
281
  parallel (~> 1.10)
179
- parser (>= 3.2.0.0)
282
+ parser (>= 3.3.0.2)
180
283
  rainbow (>= 2.2.2, < 4.0)
181
- regexp_parser (>= 1.8, < 3.0)
182
- rexml (>= 3.2.5, < 4.0)
183
- rubocop-ast (>= 1.28.0, < 2.0)
284
+ regexp_parser (>= 2.9.3, < 3.0)
285
+ rubocop-ast (>= 1.43.0, < 2.0)
184
286
  ruby-progressbar (~> 1.7)
185
- unicode-display_width (>= 2.4.0, < 3.0)
186
- rubocop-ast (1.28.0)
187
- parser (>= 3.2.1.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)
188
291
  ruby-progressbar (1.13.0)
189
292
  ruby2_keywords (0.0.5)
190
- rugged (1.6.3)
293
+ rubyzip (2.4.1)
294
+ rugged (1.9.0)
191
295
  sawyer (0.9.2)
192
296
  addressable (>= 2.3.5)
193
297
  faraday (>= 0.17.3, < 3)
194
- stringio (3.0.5)
195
- terminal-table (3.0.2)
196
- unicode-display_width (>= 1.1.1, < 3)
197
- 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)
198
307
  citrus (~> 3.0, > 3.0)
199
- unf (0.1.4)
200
- unf_ext
201
- unf_ext (0.0.8.2)
202
- unicode-display_width (2.4.2)
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)
203
312
 
204
313
  PLATFORMS
205
- ruby
206
- 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
207
322
 
208
323
  DEPENDENCIES
324
+ aruba (~> 2.3)
209
325
  dependabot-linguist!
210
- rake (~> 13.0)
211
- rdoc (~> 6.0)
212
- rspec (~> 3.12)
213
- rubocop (~> 1.37)
326
+ rake (~> 13.2)
327
+ rdoc (~> 6.12)
328
+ rspec (~> 3.13)
329
+ rubocop (~> 1.73)
214
330
 
215
331
  BUNDLED WITH
216
- 2.3.24
332
+ 2.6.5
data/Makefile CHANGED
@@ -1,54 +1,126 @@
1
- .PHONY: setup setup_github clean docs docs_view demo test lint 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
99
+ $(RAKE) spec
30
100
 
31
101
  lint: clean
32
- bundle exec rake rubocop
102
+ $(RAKE) rubocop
33
103
 
34
104
  # We can choose from `gem build dependabot-linguist.gemspec` or `bundle exec rake build`.
35
105
  # The gem build command creates a ./dependabot-linguist-$VER.gem file, and the rake build
36
106
  # (within bundle context) creates a ./pkg/dependabot-linguist-$VER.gem file.
37
107
  build: test lint
38
- bundle exec rake build
108
+ $(RAKE) build
39
109
 
40
110
  # --user-install means no need for sudo or expectation of
41
111
  # changing the folder permissions or access but will need
42
112
  # "gem environment"'s "USER INSTALLATION DIRECTORY" (+ "/bin")
43
113
  # in the PATH to then use any gem executables that it may contain.
44
- install: build
45
- 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
46
118
 
47
119
  # Will be run with one "pkg/dependabot-linguist-*.gem" file
48
120
  # rubygems_api_key and the rubygems host are the default
49
121
  push_rubygems:
50
- gem push $$(find . | grep pkg/dependabot-linguist-*.gem)
122
+ $(GEM) push $$(find . | grep pkg/dependabot-linguist-*.gem)
51
123
 
52
124
  # Will be run with one "pkg/dependabot-linguist-*.gem" file
53
125
  push_github:
54
- 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)