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.
- checksums.yaml +4 -4
- data/.nvmrc +1 -0
- data/.rubocop.yml +100 -7
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +2 -0
- data/Gemfile.lock +261 -145
- data/Makefile +90 -18
- data/README.md +32 -4
- data/SECURITY.md +1 -0
- data/dependabot-linguist.gemspec +19 -11
- data/lib/dependabot/linguist/dependabot_patch.rb +2 -2
- data/lib/dependabot/linguist/file_fetchers/bundler.rb +1 -1
- data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +4 -4
- data/lib/dependabot/linguist/file_fetchers/go_modules.rb +1 -1
- data/lib/dependabot/linguist/language.rb +3 -3
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +24 -21
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts_applied.rb +1 -1
- data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +672 -42
- data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +33 -21
- data/lib/dependabot/linguist/languages_to_patch.txt +1 -0
- data/lib/dependabot/linguist/linguist_patch.rb +1 -1
- data/lib/dependabot/linguist/repository.rb +5 -1
- data/lib/dependabot/linguist/version.rb +1 -1
- metadata +62 -20
data/Gemfile.lock
CHANGED
@@ -1,216 +1,332 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dependabot-linguist (0.
|
5
|
-
dependabot-omnibus (= 0.
|
6
|
-
github-linguist (=
|
7
|
-
|
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.
|
13
|
-
public_suffix (>= 2.0.2, <
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
26
|
-
|
27
|
-
aws-
|
28
|
-
|
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
|
-
|
31
|
-
|
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.
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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.
|
44
|
-
excon (~> 0.
|
45
|
-
faraday (= 2.7.
|
46
|
-
faraday-retry (= 2.
|
47
|
-
gitlab (=
|
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, <
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
dependabot-
|
56
|
-
dependabot-common (= 0.
|
57
|
-
dependabot-
|
58
|
-
dependabot-common (= 0.
|
59
|
-
dependabot-
|
60
|
-
dependabot-common (= 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.
|
63
|
-
dependabot-common (= 0.
|
64
|
-
dependabot-go_modules (0.
|
65
|
-
dependabot-common (= 0.
|
66
|
-
dependabot-gradle (0.
|
67
|
-
dependabot-common (= 0.
|
68
|
-
dependabot-maven (= 0.
|
69
|
-
dependabot-
|
70
|
-
dependabot-common (= 0.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
dependabot-
|
80
|
-
|
81
|
-
|
82
|
-
dependabot-
|
83
|
-
dependabot-
|
84
|
-
dependabot-
|
85
|
-
dependabot-
|
86
|
-
dependabot-
|
87
|
-
dependabot-
|
88
|
-
dependabot-
|
89
|
-
dependabot-
|
90
|
-
dependabot-
|
91
|
-
dependabot-
|
92
|
-
dependabot-
|
93
|
-
dependabot-
|
94
|
-
dependabot-
|
95
|
-
|
96
|
-
dependabot-
|
97
|
-
|
98
|
-
dependabot-
|
99
|
-
|
100
|
-
dependabot-
|
101
|
-
|
102
|
-
|
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.
|
105
|
-
|
106
|
-
|
107
|
-
|
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.
|
182
|
+
faraday-retry (2.2.0)
|
112
183
|
faraday (~> 2.0)
|
113
|
-
|
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 (
|
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.
|
201
|
+
http-cookie (1.0.8)
|
123
202
|
domain_name (~> 0.5)
|
124
|
-
httparty (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
|
-
|
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.
|
132
|
-
mini_mime (1.1.
|
133
|
-
|
134
|
-
multi_xml (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.
|
137
|
-
|
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.
|
235
|
+
nokogiri (1.18.6-x86_64-linux-musl)
|
140
236
|
racc (~> 1.4)
|
141
|
-
octokit (
|
237
|
+
octokit (7.2.0)
|
142
238
|
faraday (>= 1, < 3)
|
143
239
|
sawyer (~> 0.9)
|
144
|
-
|
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.
|
245
|
+
parser (3.3.7.3)
|
147
246
|
ast (~> 2.4.1)
|
148
|
-
|
247
|
+
racc
|
248
|
+
prism (1.4.0)
|
249
|
+
psych (5.2.3)
|
250
|
+
date
|
149
251
|
stringio
|
150
|
-
public_suffix (
|
151
|
-
racc (1.
|
252
|
+
public_suffix (6.0.1)
|
253
|
+
racc (1.8.1)
|
152
254
|
rainbow (3.1.1)
|
153
|
-
rake (13.
|
154
|
-
rdoc (6.
|
255
|
+
rake (13.2.1)
|
256
|
+
rdoc (6.13.1)
|
155
257
|
psych (>= 4.0.0)
|
156
|
-
regexp_parser (2.
|
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
|
-
|
163
|
-
|
164
|
-
rspec-
|
165
|
-
rspec-
|
166
|
-
|
167
|
-
|
168
|
-
|
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.
|
172
|
-
rspec-mocks (3.
|
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.
|
175
|
-
rspec-support (3.
|
176
|
-
rubocop (1.
|
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.
|
282
|
+
parser (>= 3.3.0.2)
|
180
283
|
rainbow (>= 2.2.2, < 4.0)
|
181
|
-
regexp_parser (>=
|
182
|
-
|
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, <
|
186
|
-
rubocop-ast (1.
|
187
|
-
parser (>= 3.
|
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
|
-
|
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
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
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
|
-
|
200
|
-
|
201
|
-
|
202
|
-
unicode-
|
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
|
-
|
206
|
-
|
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.
|
211
|
-
rdoc (~> 6.
|
212
|
-
rspec (~> 3.
|
213
|
-
rubocop (~> 1.
|
326
|
+
rake (~> 13.2)
|
327
|
+
rdoc (~> 6.12)
|
328
|
+
rspec (~> 3.13)
|
329
|
+
rubocop (~> 1.73)
|
214
330
|
|
215
331
|
BUNDLED WITH
|
216
|
-
2.
|
332
|
+
2.6.5
|
data/Makefile
CHANGED
@@ -1,54 +1,126 @@
|
|
1
|
-
|
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
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
9
|
-
|
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
|
-
|
13
|
-
|
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
|
-
|
86
|
+
$(RAKE) rdoc
|
19
87
|
|
20
88
|
# http://localhost:8080/
|
21
89
|
docs_view: docs
|
22
|
-
|
90
|
+
$(RUBY) -run -e httpd doc
|
23
91
|
|
24
92
|
demo:
|
25
|
-
|
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
|
-
|
99
|
+
$(RAKE) spec
|
30
100
|
|
31
101
|
lint: clean
|
32
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
126
|
+
$(GEM) push --key github --host https://rubygems.pkg.github.com/Skenvy $$(find . | grep pkg/dependabot-linguist-*.gem)
|