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.
- checksums.yaml +4 -4
- data/.nvmrc +1 -0
- data/.rubocop.yml +137 -8
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +2 -0
- data/Gemfile.lock +266 -158
- data/Makefile +93 -19
- data/README.md +34 -5
- data/SECURITY.md +4 -2
- data/dependabot-linguist.gemspec +21 -11
- data/exe/dependabot-linguist +1 -1
- data/lib/dependabot/linguist/dependabot_file_validator.rb +3 -1
- data/lib/dependabot/linguist/dependabot_patch.rb +14 -2
- data/lib/dependabot/linguist/file_fetchers/bundler.rb +54 -0
- data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +9 -7
- data/lib/dependabot/linguist/file_fetchers/go_modules.rb +2 -2
- data/lib/dependabot/linguist/language.rb +18 -14
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +25 -21
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts_applied.rb +1 -1
- data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +841 -60
- 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 +12 -3
- data/lib/dependabot/linguist/version.rb +1 -1
- metadata +67 -25
- data/lib/dependabot/linguist/file_fetchers/base.rb +0 -48
data/Gemfile.lock
CHANGED
@@ -1,224 +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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
aws-
|
22
|
-
aws-
|
23
|
-
|
24
|
-
aws-
|
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
|
-
|
31
|
-
|
32
|
-
aws-
|
33
|
-
|
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
|
-
|
36
|
-
|
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.
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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.
|
51
|
-
excon (~> 0.
|
52
|
-
faraday (= 2.
|
53
|
-
|
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, <
|
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
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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.
|
68
|
-
dependabot-common (= 0.
|
69
|
-
dependabot-go_modules (0.
|
70
|
-
dependabot-common (= 0.
|
71
|
-
dependabot-gradle (0.
|
72
|
-
dependabot-common (= 0.
|
73
|
-
dependabot-maven (= 0.
|
74
|
-
dependabot-
|
75
|
-
dependabot-common (= 0.
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
dependabot-
|
85
|
-
|
86
|
-
|
87
|
-
dependabot-
|
88
|
-
dependabot-
|
89
|
-
dependabot-
|
90
|
-
dependabot-
|
91
|
-
dependabot-
|
92
|
-
dependabot-
|
93
|
-
dependabot-
|
94
|
-
dependabot-
|
95
|
-
dependabot-
|
96
|
-
dependabot-
|
97
|
-
dependabot-
|
98
|
-
dependabot-
|
99
|
-
dependabot-
|
100
|
-
|
101
|
-
dependabot-
|
102
|
-
|
103
|
-
dependabot-
|
104
|
-
|
105
|
-
dependabot-
|
106
|
-
|
107
|
-
|
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.
|
110
|
-
|
111
|
-
|
112
|
-
|
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
|
-
|
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 (
|
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.
|
201
|
+
http-cookie (1.0.8)
|
126
202
|
domain_name (~> 0.5)
|
127
|
-
httparty (0.
|
128
|
-
|
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.
|
134
|
-
|
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.
|
137
|
-
mini_mime (1.1.
|
138
|
-
|
139
|
-
|
140
|
-
|
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.
|
143
|
-
|
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.
|
235
|
+
nokogiri (1.18.6-x86_64-linux-musl)
|
146
236
|
racc (~> 1.4)
|
147
|
-
octokit (
|
237
|
+
octokit (7.2.0)
|
148
238
|
faraday (>= 1, < 3)
|
149
239
|
sawyer (~> 0.9)
|
150
|
-
|
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.
|
245
|
+
parser (3.3.7.3)
|
153
246
|
ast (~> 2.4.1)
|
154
|
-
|
247
|
+
racc
|
248
|
+
prism (1.4.0)
|
249
|
+
psych (5.2.3)
|
250
|
+
date
|
155
251
|
stringio
|
156
|
-
public_suffix (
|
157
|
-
racc (1.
|
252
|
+
public_suffix (6.0.1)
|
253
|
+
racc (1.8.1)
|
158
254
|
rainbow (3.1.1)
|
159
|
-
rake (13.
|
160
|
-
rdoc (6.
|
255
|
+
rake (13.2.1)
|
256
|
+
rdoc (6.13.1)
|
161
257
|
psych (>= 4.0.0)
|
162
|
-
regexp_parser (2.
|
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
|
-
|
169
|
-
|
170
|
-
rspec-
|
171
|
-
rspec-
|
172
|
-
|
173
|
-
|
174
|
-
|
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.
|
178
|
-
rspec-mocks (3.
|
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.
|
181
|
-
rspec-support (3.
|
182
|
-
rubocop (1.
|
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.
|
282
|
+
parser (>= 3.3.0.2)
|
186
283
|
rainbow (>= 2.2.2, < 4.0)
|
187
|
-
regexp_parser (>=
|
188
|
-
|
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 (>=
|
192
|
-
rubocop-ast (1.
|
193
|
-
parser (>= 3.
|
194
|
-
|
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
|
-
|
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
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
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
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
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
|
-
|
214
|
-
|
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.
|
219
|
-
rdoc (~> 6.
|
220
|
-
rspec (~> 3.
|
221
|
-
rubocop (~> 1.
|
326
|
+
rake (~> 13.2)
|
327
|
+
rdoc (~> 6.12)
|
328
|
+
rspec (~> 3.13)
|
329
|
+
rubocop (~> 1.73)
|
222
330
|
|
223
331
|
BUNDLED WITH
|
224
|
-
2.
|
332
|
+
2.6.5
|
data/Makefile
CHANGED
@@ -1,52 +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
|
-
|
30
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
126
|
+
$(GEM) push --key github --host https://rubygems.pkg.github.com/Skenvy $$(find . | grep pkg/dependabot-linguist-*.gem)
|