dependabot-linguist 0.212.0 → 0.217.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.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +38 -2
  3. data/Gemfile.lock +100 -108
  4. data/Makefile +4 -2
  5. data/README.md +32 -4
  6. data/SECURITY.md +3 -2
  7. data/dependabot-linguist.gemspec +9 -7
  8. data/exe/dependabot-linguist +1 -1
  9. data/lib/dependabot/linguist/dependabot_file_validator.rb +43 -7
  10. data/lib/dependabot/linguist/dependabot_patch.rb +14 -2
  11. data/lib/dependabot/linguist/file_fetchers/bundler.rb +54 -0
  12. data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +9 -7
  13. data/lib/dependabot/linguist/file_fetchers/go_modules.rb +2 -2
  14. data/lib/dependabot/linguist/language.rb +18 -14
  15. data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +22 -21
  16. data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +172 -21
  17. data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +17 -17
  18. data/lib/dependabot/linguist/linguist_patch.rb +1 -1
  19. data/lib/dependabot/linguist/repository.rb +7 -2
  20. data/lib/dependabot/linguist/version.rb +1 -1
  21. metadata +17 -210
  22. data/lib/dependabot/linguist/file_fetchers/base.rb +0 -48
  23. data/smoke-test/README.md +0 -58
  24. data/smoke-test/bundler/Gemfile +0 -9
  25. data/smoke-test/bundler/Gemfile.lock +0 -47
  26. data/smoke-test/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  27. data/smoke-test/cargo/Cargo.lock +0 -90
  28. data/smoke-test/cargo/Cargo.toml +0 -8
  29. data/smoke-test/composer/composer.json +0 -5
  30. data/smoke-test/composer/composer.lock +0 -72
  31. data/smoke-test/composer/vendor/autoload.php +0 -7
  32. data/smoke-test/composer/vendor/composer/ClassLoader.php +0 -445
  33. data/smoke-test/composer/vendor/composer/LICENSE +0 -21
  34. data/smoke-test/composer/vendor/composer/autoload_classmap.php +0 -13
  35. data/smoke-test/composer/vendor/composer/autoload_namespaces.php +0 -9
  36. data/smoke-test/composer/vendor/composer/autoload_psr4.php +0 -9
  37. data/smoke-test/composer/vendor/composer/autoload_real.php +0 -55
  38. data/smoke-test/composer/vendor/composer/autoload_static.php +0 -23
  39. data/smoke-test/composer/vendor/composer/installed.json +0 -57
  40. data/smoke-test/composer/vendor/phpmailer/phpmailer/.gitignore +0 -3
  41. data/smoke-test/composer/vendor/phpmailer/phpmailer/LICENSE +0 -504
  42. data/smoke-test/composer/vendor/phpmailer/phpmailer/README.md +0 -112
  43. data/smoke-test/composer/vendor/phpmailer/phpmailer/changelog.md +0 -530
  44. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.phpmailer.php +0 -2758
  45. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.pop3.php +0 -417
  46. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.smtp.php +0 -1075
  47. data/smoke-test/composer/vendor/phpmailer/phpmailer/composer.json +0 -32
  48. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Callback_function_notes.txt +0 -17
  49. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/DomainKeys_notes.txt +0 -55
  50. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Note_for_SMTP_debugging.txt +0 -23
  51. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/extending.html +0 -148
  52. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/faq.html +0 -67
  53. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/generatedocs.sh +0 -4
  54. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/pop3_article.txt +0 -39
  55. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/use_gmail.txt +0 -44
  56. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/contents.html +0 -20
  57. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer.gif +0 -0
  58. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.gif +0 -0
  59. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/index.html +0 -50
  60. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_db_smtp_basic.php +0 -58
  61. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_advanced.php +0 -30
  62. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_basic.php +0 -41
  63. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_advanced.php +0 -39
  64. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_basic.php +0 -49
  65. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_advanced.php +0 -33
  66. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_basic.php +0 -43
  67. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced.php +0 -42
  68. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced_no_auth.php +0 -36
  69. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic.php +0 -58
  70. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic_no_auth.php +0 -53
  71. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_advanced.php +0 -42
  72. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_basic.php +0 -59
  73. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/class.html2text.inc +0 -489
  74. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/htmlfilter.php +0 -861
  75. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/ntlm_sasl_client.php +0 -185
  76. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -26
  77. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-br.php +0 -25
  78. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -25
  79. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php +0 -25
  80. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-cz.php +0 -24
  81. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -24
  82. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-dk.php +0 -25
  83. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -25
  84. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -25
  85. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -26
  86. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -26
  87. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -24
  88. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -24
  89. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -26
  90. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -25
  91. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -24
  92. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-no.php +0 -24
  93. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -24
  94. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -26
  95. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -24
  96. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-se.php +0 -25
  97. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -25
  98. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -26
  99. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -25
  100. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -25
  101. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/contents.html +0 -10
  102. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/phpmailerTest.php +0 -1084
  103. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test.png +0 -0
  104. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test_callback.php +0 -84
  105. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/testemail.php +0 -48
  106. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/LGPLv3.txt +0 -165
  107. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/contents.html +0 -14
  108. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/aikido.gif +0 -0
  109. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/bkgrnd.gif +0 -0
  110. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/phpmailer.gif +0 -0
  111. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/index.php +0 -427
  112. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/clipboard.swf +0 -0
  113. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushBash.js +0 -59
  114. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCSharp.js +0 -64
  115. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCpp.js +0 -99
  116. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCss.js +0 -93
  117. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDelphi.js +0 -57
  118. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDiff.js +0 -43
  119. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushGroovy.js +0 -69
  120. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJScript.js +0 -51
  121. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJava.js +0 -55
  122. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPerl.js +0 -74
  123. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPhp.js +0 -91
  124. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPlain.js +0 -35
  125. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPython.js +0 -56
  126. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushRuby.js +0 -57
  127. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushScala.js +0 -53
  128. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushSql.js +0 -68
  129. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushVb.js +0 -58
  130. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushXml.js +0 -71
  131. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shCore.js +0 -30
  132. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shLegacy.js +0 -30
  133. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shCore.js +0 -1949
  134. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shLegacy.js +0 -172
  135. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/help.png +0 -0
  136. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/magnifier.png +0 -0
  137. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_code.png +0 -0
  138. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_copy.png +0 -0
  139. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/printer.png +0 -0
  140. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shCore.css +0 -321
  141. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDefault.css +0 -191
  142. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDjango.css +0 -193
  143. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeEmacs.css +0 -192
  144. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeFadeToGrey.css +0 -193
  145. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeMidnight.css +0 -192
  146. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeRDark.css +0 -192
  147. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/wrapping.png +0 -0
  148. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/test.html +0 -46
  149. data/smoke-test/dependabot-file/no-config/.github/TARGET.yaml +0 -14
  150. data/smoke-test/dependabot-file/no-config/bundler/Gemfile +0 -9
  151. data/smoke-test/dependabot-file/no-config/bundler/Gemfile.lock +0 -47
  152. data/smoke-test/dependabot-file/no-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  153. data/smoke-test/dependabot-file/no-config/cargo/Cargo.lock +0 -90
  154. data/smoke-test/dependabot-file/no-config/cargo/Cargo.toml +0 -8
  155. data/smoke-test/dependabot-file/no-config/composer/composer.json +0 -5
  156. data/smoke-test/dependabot-file/no-config/composer/composer.lock +0 -72
  157. data/smoke-test/dependabot-file/over-config/.github/TARGET.yaml +0 -17
  158. data/smoke-test/dependabot-file/over-config/.github/dependabot.yaml +0 -12
  159. data/smoke-test/dependabot-file/over-config/bundler/Gemfile +0 -9
  160. data/smoke-test/dependabot-file/over-config/bundler/Gemfile.lock +0 -47
  161. data/smoke-test/dependabot-file/over-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  162. data/smoke-test/dependabot-file/over-config/cargo/Cargo.lock +0 -90
  163. data/smoke-test/dependabot-file/over-config/cargo/Cargo.toml +0 -8
  164. data/smoke-test/dependabot-file/over-config/composer/composer.json +0 -5
  165. data/smoke-test/dependabot-file/over-config/composer/composer.lock +0 -72
  166. data/smoke-test/dependabot-file/overer-config/.github/TARGET.yaml +0 -19
  167. data/smoke-test/dependabot-file/overer-config/.github/dependabot.yaml +0 -12
  168. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile +0 -9
  169. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile.lock +0 -47
  170. data/smoke-test/dependabot-file/overer-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  171. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.lock +0 -90
  172. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.toml +0 -8
  173. data/smoke-test/dependabot-file/overer-config/composer/composer.json +0 -5
  174. data/smoke-test/dependabot-file/overer-config/composer/composer.lock +0 -72
  175. data/smoke-test/dependabot-file/partial-config/.github/TARGET.yaml +0 -17
  176. data/smoke-test/dependabot-file/partial-config/.github/dependabot.yaml +0 -7
  177. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile +0 -9
  178. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile.lock +0 -47
  179. data/smoke-test/dependabot-file/partial-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  180. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.lock +0 -90
  181. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.toml +0 -8
  182. data/smoke-test/dependabot-file/partial-config/composer/composer.json +0 -5
  183. data/smoke-test/dependabot-file/partial-config/composer/composer.lock +0 -72
  184. data/smoke-test/docker/Dockerfile +0 -19
  185. data/smoke-test/elm/elm-package.json +0 -15
  186. data/smoke-test/elm/elm.json +0 -31
  187. data/smoke-test/github-actions/both/.github/workflows/this.yaml +0 -11
  188. data/smoke-test/github-actions/both/yaml/action.yml +0 -13
  189. data/smoke-test/github-actions/invalid/invalid_file.yaml +0 -0
  190. data/smoke-test/github-actions/workflow/.github/workflows/this.yaml +0 -11
  191. data/smoke-test/github-actions/yaml/action.yml +0 -13
  192. data/smoke-test/gitsubmodule/.gitmodules +0 -4
  193. data/smoke-test/gomod/go.mod +0 -16
  194. data/smoke-test/gomod/go.sum +0 -18
  195. data/smoke-test/gomod/gomain.go +0 -14
  196. data/smoke-test/gradle/.gitignore +0 -1
  197. data/smoke-test/gradle/build.gradle +0 -65
  198. data/smoke-test/maven/pom.xml +0 -65
  199. data/smoke-test/mix/mix.exs +0 -24
  200. data/smoke-test/mix/mix.lock +0 -5
  201. data/smoke-test/npm/package-lock.json +0 -166
  202. data/smoke-test/npm/package.json +0 -22
  203. data/smoke-test/npm/removed/package-lock.json +0 -44
  204. data/smoke-test/npm/removed/package.json +0 -15
  205. data/smoke-test/nuget/project.csproj +0 -14
  206. data/smoke-test/pip/pip/requirements.txt +0 -5
  207. data/smoke-test/pip/pip-compile/requirements.in +0 -2
  208. data/smoke-test/pip/pip-compile/requirements.txt +0 -16
  209. data/smoke-test/pip/pipenv/Pipfile +0 -13
  210. data/smoke-test/pip/pipenv/Pipfile.lock +0 -86
  211. data/smoke-test/pip/poetry/poetry.lock +0 -33
  212. data/smoke-test/pip/poetry/pyproject.toml +0 -18
  213. data/smoke-test/pub/pubspec.lock +0 -40
  214. data/smoke-test/pub/pubspec.yaml +0 -10
  215. data/smoke-test/terraform/main.tf +0 -143
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d36ddf66e8b3df3386480112b36a1dedf8ea46b8e6515fbf5b2b832e625f978
4
- data.tar.gz: ccda911662b9b8d881f355311184ddee56dd80d054a30cb1020c042efe41aa60
3
+ metadata.gz: 1371e5c85071aefe956fb3ed4cc89d9c361296400858c671086105014c9db81e
4
+ data.tar.gz: 36d85631d93359a139ba432b5fd41c4e004641bc284d49b23dfbf508d61a3ff7
5
5
  SHA512:
6
- metadata.gz: c996ab6a966d9aba1bc4e82135682c2977dfcc13a29f48c13cde1d1d13d58f6067eb6399705380a7f0564a9fd35d1a87a31e447ec068e377b32cbd03a3f78f47
7
- data.tar.gz: 72285cb9735d6ca150d267f0537c2c901eb277a4464343a1f832990cc0de34eba84a6caab685e32bff978fe9e59b881d15303566ae0d31438c2bf76f44d6725c
6
+ metadata.gz: 56cc248e1f1ef0ea02e58b6606d91112714ae1e2b733367500aa29d644abecafff48dddf255548426dca0099a3ca0b551dbc2e38db726c73ca9b04bc9578c235
7
+ data.tar.gz: 832b54da74610965a93fdced801412e8cc768d469a02a2140d7b5f50ea9af18de2ff5c9bae06ef2da145dd99ae7b67a45ba32ef196d128e28042d98f2d157fb1
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7.0
2
+ TargetRubyVersion: 3.1.0
3
3
  UseCache: false
4
4
  SuggestExtensions: false
5
5
  # NewCops: enable # would silence the recommendation
@@ -11,6 +11,8 @@ AllCops:
11
11
 
12
12
  Gemspec/DeprecatedAttributeAssignment:
13
13
  Enabled: true
14
+ Gemspec/DevelopmentDependencies: # new in 1.44
15
+ Enabled: true
14
16
  Gemspec/OrderedDependencies:
15
17
  Enabled: false
16
18
  Gemspec/RequireMFA:
@@ -53,6 +55,8 @@ Metrics/BlockNesting:
53
55
  Enabled: false
54
56
  Metrics/ClassLength:
55
57
  Enabled: false
58
+ Metrics/CollectionLiteralLength: # new in 1.47
59
+ Enabled: true
56
60
  Metrics/CyclomaticComplexity:
57
61
  Enabled: false
58
62
  Metrics/MethodLength:
@@ -76,6 +80,8 @@ Lint/DuplicateBranch:
76
80
  Enabled: true
77
81
  Lint/DuplicateMagicComment: # new in 1.37
78
82
  Enabled: true
83
+ Lint/DuplicateMatchPattern: # new in 1.50
84
+ Enabled: true
79
85
  Lint/DuplicateRegexpCharacterClassElement:
80
86
  Enabled: true
81
87
  Lint/EmptyBlock:
@@ -116,10 +122,11 @@ Lint/UnexpectedBlockArity:
116
122
  Enabled: true
117
123
  Lint/UnmodifiedReduceAccumulator:
118
124
  Enabled: true
125
+ Lint/UselessRescue: # new in 1.43
126
+ Enabled: true
119
127
  Lint/UselessRuby2Keywords:
120
128
  Enabled: true
121
129
 
122
-
123
130
  Style/StringLiterals:
124
131
  Enabled: true
125
132
  EnforcedStyle: double_quotes
@@ -131,10 +138,20 @@ Style/AccessModifierDeclarations:
131
138
  AllowModifiersOnSymbols: false
132
139
  Style/ArgumentsForwarding:
133
140
  Enabled: true
141
+ Style/ArrayIntersect: # new in 1.40
142
+ Enabled: true
134
143
  Style/CollectionCompact:
135
144
  Enabled: true
145
+ Style/ComparableClamp: # new in 1.44
146
+ Enabled: true
147
+ Style/ConcatArrayLiterals: # new in 1.41
148
+ Enabled: true
136
149
  Style/ConditionalAssignment:
137
150
  Enabled: false
151
+ Style/DataInheritance: # new in 1.49
152
+ Enabled: true
153
+ Style/DirEmpty: # new in 1.48
154
+ Enabled: true
138
155
  Style/DocumentDynamicEvalDefinition:
139
156
  Enabled: true
140
157
  Style/EmptyHeredoc:
@@ -145,6 +162,8 @@ Style/EnvHome:
145
162
  Enabled: true
146
163
  Style/FetchEnvVar:
147
164
  Enabled: true
165
+ Style/FileEmpty: # new in 1.48
166
+ Enabled: true
148
167
  Style/FileRead:
149
168
  Enabled: true
150
169
  Style/FileWrite:
@@ -155,6 +174,9 @@ Style/HashConversion:
155
174
  Enabled: true
156
175
  Style/HashExcept:
157
176
  Enabled: true
177
+ Style/HashSyntax:
178
+ Enabled: true
179
+ EnforcedShorthandSyntax: 'never'
158
180
  Style/IfWithBooleanLiteralBranches:
159
181
  Enabled: true
160
182
  Style/IfUnlessModifier:
@@ -169,8 +191,14 @@ Style/MapCompactWithConditionalBlock:
169
191
  Enabled: true
170
192
  Style/MapToHash:
171
193
  Enabled: true
194
+ Style/MapToSet: # new in 1.42
195
+ Enabled: true
196
+ Style/MinMaxComparison: # new in 1.42
197
+ Enabled: true
172
198
  Style/MultilineInPatternThen:
173
199
  Enabled: true
200
+ Style/MutableConstant:
201
+ Enabled: true
174
202
  Style/NegatedIfElseCondition:
175
203
  Enabled: true
176
204
  Style/NestedFileDirname:
@@ -195,10 +223,18 @@ Style/QuotedSymbols:
195
223
  Enabled: true
196
224
  Style/RedundantArgument:
197
225
  Enabled: true
226
+ Style/RedundantConstantBase: # new in 1.40
227
+ Enabled: false
228
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
229
+ Enabled: true
198
230
  Style/RedundantEach: # new in 1.38
199
231
  Enabled: true
232
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
233
+ Enabled: true
200
234
  Style/RedundantInitialize:
201
235
  Enabled: true
236
+ Style/RedundantLineContinuation: # new in 1.49
237
+ Enabled: true
202
238
  Style/RedundantSelf:
203
239
  Enabled: false
204
240
  Style/RedundantSelfAssignmentBranch:
data/Gemfile.lock CHANGED
@@ -1,119 +1,116 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dependabot-linguist (0.212.0)
5
- dependabot-omnibus (= 0.212.0)
6
- github-linguist (= 7.23.0)
7
- rugged (~> 1.5.0)
4
+ dependabot-linguist (0.217.0)
5
+ dependabot-omnibus (= 0.217.0)
6
+ github-linguist (= 7.25.0)
7
+ rugged (= 1.6.3)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  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)
12
+ addressable (2.8.4)
18
13
  public_suffix (>= 2.0.2, < 6.0)
19
14
  ast (2.4.2)
20
15
  aws-eventstream (1.2.0)
21
- aws-partitions (1.665.0)
22
- aws-sdk-codecommit (1.52.0)
16
+ aws-partitions (1.763.0)
17
+ aws-sdk-codecommit (1.53.0)
23
18
  aws-sdk-core (~> 3, >= 3.165.0)
24
19
  aws-sigv4 (~> 1.1)
25
- aws-sdk-core (3.168.1)
20
+ aws-sdk-core (3.172.0)
26
21
  aws-eventstream (~> 1, >= 1.0.2)
27
22
  aws-partitions (~> 1, >= 1.651.0)
28
23
  aws-sigv4 (~> 1.5)
29
24
  jmespath (~> 1, >= 1.6.1)
30
- aws-sdk-ecr (1.57.0)
25
+ aws-sdk-ecr (1.58.0)
31
26
  aws-sdk-core (~> 3, >= 3.165.0)
32
27
  aws-sigv4 (~> 1.1)
33
28
  aws-sigv4 (1.5.2)
34
29
  aws-eventstream (~> 1, >= 1.0.2)
35
- cgi (0.3.5)
30
+ cgi (0.3.6)
36
31
  charlock_holmes (0.7.7)
37
32
  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)
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
39
  aws-sdk-codecommit (~> 1.28)
47
40
  aws-sdk-ecr (~> 1.5)
48
41
  bundler (>= 1.16, < 3.0.0)
49
42
  commonmarker (>= 0.20.1, < 0.24.0)
50
- docker_registry2 (~> 1.11, >= 1.11.0)
51
- excon (~> 0.75)
52
- faraday (= 2.5.2)
43
+ docker_registry2 (~> 1.14)
44
+ excon (~> 0.96, < 0.100)
45
+ faraday (= 2.7.4)
46
+ faraday-retry (= 2.1.0)
53
47
  gitlab (= 4.19.0)
54
48
  nokogiri (~> 1.8)
55
- octokit (>= 4.6, < 6.0)
49
+ octokit (>= 4.6, < 7.0)
56
50
  parser (>= 2.5, < 4.0)
51
+ psych (~> 5.0)
57
52
  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)
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)
66
61
  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)
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)
106
101
  diff-lcs (1.5.0)
107
- docker_registry2 (1.12.0)
102
+ docker_registry2 (1.15.0)
108
103
  rest-client (>= 1.8.0)
109
104
  domain_name (0.5.20190701)
110
105
  unf (>= 0.0.5, < 1.0.0)
111
- excon (0.94.0)
112
- faraday (2.5.2)
106
+ excon (0.99.0)
107
+ faraday (2.7.4)
113
108
  faraday-net_http (>= 2.0, < 3.1)
114
109
  ruby2_keywords (>= 0.0.4)
115
110
  faraday-net_http (3.0.2)
116
- github-linguist (7.23.0)
111
+ faraday-retry (2.1.0)
112
+ faraday (~> 2.0)
113
+ github-linguist (7.25.0)
117
114
  cgi
118
115
  charlock_holmes (~> 0.7.7)
119
116
  mini_mime (~> 1.0)
@@ -124,42 +121,39 @@ GEM
124
121
  http-accept (1.7.0)
125
122
  http-cookie (1.0.5)
126
123
  domain_name (~> 0.5)
127
- httparty (0.20.0)
128
- mime-types (~> 3.0)
124
+ httparty (0.21.0)
125
+ mini_mime (>= 1.0.0)
129
126
  multi_xml (>= 0.5.2)
130
- i18n (1.12.0)
131
- concurrent-ruby (~> 1.0)
132
- jmespath (1.6.1)
133
- json (2.6.2)
127
+ jmespath (1.6.2)
128
+ json (2.6.3)
134
129
  mime-types (3.4.1)
135
130
  mime-types-data (~> 3.2015)
136
- mime-types-data (3.2022.0105)
131
+ mime-types-data (3.2023.0218.1)
137
132
  mini_mime (1.1.2)
138
- mini_portile2 (2.8.0)
139
- minitest (5.16.3)
133
+ mini_portile2 (2.8.2)
140
134
  multi_xml (0.6.0)
141
135
  netrc (0.11.0)
142
- nokogiri (1.13.9)
136
+ nokogiri (1.14.4)
143
137
  mini_portile2 (~> 2.8.0)
144
138
  racc (~> 1.4)
145
- nokogiri (1.13.9-x86_64-linux)
139
+ nokogiri (1.14.4-x86_64-linux)
146
140
  racc (~> 1.4)
147
- octokit (5.6.1)
141
+ octokit (6.1.1)
148
142
  faraday (>= 1, < 3)
149
143
  sawyer (~> 0.9)
150
144
  parallel (1.22.1)
151
145
  parseconfig (1.0.8)
152
- parser (3.1.2.1)
146
+ parser (3.2.2.1)
153
147
  ast (~> 2.4.1)
154
- psych (4.0.6)
148
+ psych (5.1.0)
155
149
  stringio
156
- public_suffix (5.0.0)
157
- racc (1.6.0)
150
+ public_suffix (5.0.1)
151
+ racc (1.6.2)
158
152
  rainbow (3.1.1)
159
153
  rake (13.0.6)
160
- rdoc (6.4.0)
154
+ rdoc (6.5.0)
161
155
  psych (>= 4.0.0)
162
- regexp_parser (2.6.0)
156
+ regexp_parser (2.8.0)
163
157
  rest-client (2.1.0)
164
158
  http-accept (>= 1.7.0, < 2.0)
165
159
  http-cookie (>= 1.0.2, < 2.0)
@@ -179,35 +173,33 @@ GEM
179
173
  diff-lcs (>= 1.2.0, < 2.0)
180
174
  rspec-support (~> 3.12.0)
181
175
  rspec-support (3.12.0)
182
- rubocop (1.38.0)
176
+ rubocop (1.50.2)
183
177
  json (~> 2.3)
184
178
  parallel (~> 1.10)
185
- parser (>= 3.1.2.1)
179
+ parser (>= 3.2.0.0)
186
180
  rainbow (>= 2.2.2, < 4.0)
187
181
  regexp_parser (>= 1.8, < 3.0)
188
182
  rexml (>= 3.2.5, < 4.0)
189
- rubocop-ast (>= 1.23.0, < 2.0)
183
+ rubocop-ast (>= 1.28.0, < 2.0)
190
184
  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)
185
+ unicode-display_width (>= 2.4.0, < 3.0)
186
+ rubocop-ast (1.28.0)
187
+ parser (>= 3.2.1.0)
188
+ ruby-progressbar (1.13.0)
195
189
  ruby2_keywords (0.0.5)
196
- rugged (1.5.0.1)
190
+ rugged (1.6.3)
197
191
  sawyer (0.9.2)
198
192
  addressable (>= 2.3.5)
199
193
  faraday (>= 0.17.3, < 3)
200
- stringio (3.0.2)
194
+ stringio (3.0.5)
201
195
  terminal-table (3.0.2)
202
196
  unicode-display_width (>= 1.1.1, < 3)
203
197
  toml-rb (2.2.0)
204
198
  citrus (~> 3.0, > 3.0)
205
- tzinfo (2.0.5)
206
- concurrent-ruby (~> 1.0)
207
199
  unf (0.1.4)
208
200
  unf_ext
209
201
  unf_ext (0.0.8.2)
210
- unicode-display_width (2.3.0)
202
+ unicode-display_width (2.4.2)
211
203
 
212
204
  PLATFORMS
213
205
  ruby
data/Makefile CHANGED
@@ -1,4 +1,4 @@
1
- .PHONY: setup setup_github clean docs docs_view demo test build install push_rubygems push_github
1
+ .PHONY: setup setup_github clean docs docs_view demo test lint build install push_rubygems push_github
2
2
  SHELL:=/bin/bash
3
3
 
4
4
  # Assumes `gem install bundler`
@@ -27,12 +27,14 @@ demo:
27
27
  # default (just `rake`) is spec + rubocop, but be pedantic in case this changes.
28
28
  test: clean
29
29
  bundle exec rake spec
30
+
31
+ lint: clean
30
32
  bundle exec rake rubocop
31
33
 
32
34
  # We can choose from `gem build dependabot-linguist.gemspec` or `bundle exec rake build`.
33
35
  # The gem build command creates a ./dependabot-linguist-$VER.gem file, and the rake build
34
36
  # (within bundle context) creates a ./pkg/dependabot-linguist-$VER.gem file.
35
- build: test
37
+ build: test lint
36
38
  bundle exec rake build
37
39
 
38
40
  # --user-install means no need for sudo or expectation of
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  Use [linguist](https://github.com/github/linguist) to check the contents of a **local** repository, and then scan for [dependabot-core](https://github.com/dependabot/dependabot-core) ecosystems relevant to those languages! With the list of [ecosystems](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem) present in a repository, add a [dependabot.y[a]ml](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates) ([configuration file](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file)).
3
3
  ## Getting Started
4
4
  ### [Linguist dependencies](https://github.com/github/linguist#dependencies);
5
- Before installing this gem, which will install the [github-linguist gem](https://rubygems.org/gems/github-linguist), linguists dependencies should be installed. A number of these are enabling [rugged](https://rubygems.org/gems/rugged), so they can't be "ignored" like [dependabot's setup](https://github.com/dependabot/dependabot-core#setup), which _can_ be ignored for the purpose of **this** gem, which only intends to use the [file fetchers](https://github.com/dependabot/dependabot-core/blob/v0.212.0/common/lib/dependabot/file_fetchers/README.md).
5
+ Before installing this gem, which will install the [github-linguist gem](https://rubygems.org/gems/github-linguist), linguists dependencies should be installed. A number of these are enabling [rugged](https://rubygems.org/gems/rugged), so they can't be "ignored" like [dependabot's setup](https://github.com/dependabot/dependabot-core#setup), which _can_ be ignored for the purpose of **this** gem, which only intends to use the [file fetchers](https://github.com/dependabot/dependabot-core/blob/v0.217.0/common/lib/dependabot/file_fetchers/README.md).
6
6
  ```bash
7
7
  sudo apt-get install build-essential cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev
8
8
  ```
@@ -22,16 +22,22 @@ bundle add dependabot-linguist
22
22
  ```
23
23
  Or add the following line to your `Gemfile` manually
24
24
  ```ruby
25
- gem "dependabot-linguist", ">= 0.212.0
25
+ gem "dependabot-linguist", ">= 0.217.0
26
26
  ```
27
27
  [Add the GitHub hosted gem](https://github.com/Skenvy/dependabot-linguist/packages/1704407);
28
28
  ```ruby
29
29
  source "https://rubygems.pkg.github.com/skenvy" do
30
- gem "dependabot-linguist", ">= 0.212.0"
30
+ gem "dependabot-linguist", ">= 0.217.0"
31
31
  end
32
32
  ```
33
+ ### Setup external CLIs
34
+ If you intend to use `::Dependabot::Linguist::DependabotFileValidator.commit_new_config`, you'll need to also setup the [`gh`](https://cli.github.com/manual/) CLI. You can follow instructions on [cli/cli](https://github.com/cli/cli) to install it, which for the intended use case should be [this guide](https://github.com/cli/cli/blob/trunk/docs/install_linux.md). Once you've installed it, [you'll need to log in](https://cli.github.com/manual/gh_auth_login) prior to running this script, as the credentials are expected to already be in place.
35
+
36
+ It also expects `git` to be installed and credentialed, for pushing the branch.
33
37
  ## Usage
34
38
  The two main classes this provides, `::Dependabot::Linguist::Repository` and `::Dependabot::Linguist::DependabotFileValidator`, can be utilised independently, although the intention is that they be utilised together; to discover the contents of a repository that should be watched with a dependabot file by `Repository`, and subsequently using `DependabotFileValidator` to edit an existing, or add a new, dependabot file to watch the directories that were validated earlier. There is also a CLI tool, `dependabot-linguist`, that wraps these classes and surfaces all the available options to them, although adding automated tests for the executable is still a `#TODO`.
39
+
40
+ The intended end goal is to use this to automatically raise a PR on GitHub with the recommended changes to the `~/.github/dependabot.y[a]ml` file. This is performed by `::Dependabot::Linguist::DependabotFileValidator.commit_new_config`, which utilises Ruby's `Kernel` to run commands in an external shell that perform actions using the `gh` cli, and `git`. If you intend to use these you'll want to follow [Setup external CLIs](https://github.com/Skenvy/dependabot-linguist#setup-external-clis).
35
41
  ### Use the classes in a ruby script, with defaults
36
42
  ```ruby
37
43
  require "dependabot/linguist"
@@ -51,6 +57,7 @@ require "dependabot/linguist"
51
57
  @validator.commit_new_config
52
58
  ```
53
59
  ### Use the CLI
60
+ If you installed this with **bundler**, you'll need to preface these with `bundle exec`.
54
61
  ```bash
55
62
  # With no flags, it'll run "here", and print out the recommended new config.
56
63
  dependabot-linguist
@@ -60,6 +67,26 @@ dependabot-linguist ../../some/other/repo -w
60
67
  # You can also specify a name, which will be required if there isn't a "origin" remote.
61
68
  dependabot-linguist ../../some/other/repo Username/Reponame -x
62
69
  ```
70
+ ### Configure
71
+ A yaml config file can be placed at `~/.github/.dependabot-linguist`. See this [example](https://github.com/Skenvy/dependabot-linguist/blob/main/.github/.dependabot-linguist). Although it's a dotfile, it'll be read by rugged, so for it to be utilised it should be checked in. The options available to this configuration file currently are;
72
+ #### `ignore`
73
+ The below options, `directory` and `ecosystem` are not mutually exclusive, and can be mixed, according to what top level catagorisation requires less verbose configuration, if you want to ignore many directories for one or two ecosystems, or many ecosystems for one or two directories!
74
+ ##### `directory`
75
+ To ignore some ecosystems per directory, you can add
76
+ ```yaml
77
+ ignore:
78
+ directory:
79
+ /path/to/somewhere:
80
+ - some_ecosystem
81
+ ```
82
+ ##### `ecosystem`
83
+ To ignore some directories per ecosystem, you can add
84
+ ```yaml
85
+ ignore:
86
+ ecosystem:
87
+ some_other_ecosystem:
88
+ - /path/to/somewhere_else
89
+ ```
63
90
  ## [RDoc generated docs](https://skenvy.github.io/dependabot-linguist/)
64
91
  ## Developing
65
92
  ### The first time setup
@@ -69,4 +96,5 @@ git clone https://github.com/Skenvy/dependabot-linguist.git && cd dependabot-lin
69
96
  ### Iterative development
70
97
  The majority of `make` recipes for this are just wrapping a `bundle` invocation of `rake`.
71
98
  * `make docs` will recreate the RDoc docs
72
- * `make test` will run both the RSpec tests and the RuboCop linter.
99
+ * `make test` will run the RSpec tests.
100
+ * `make lint` will run the RuboCop linter.
data/SECURITY.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Security Policy
2
2
  ## Supported Versions
3
3
  The `<major>.<minor>.*` versions of this are pinned to the **supported** `<major>.<minor>.*` versions of the gems that are published by the [dependabot-core](https://github.com/dependabot/dependabot-core) repository, centric to the [dependabot-common](https://rubygems.org/gems/dependabot-common) gem, with any required patches applied to each supported minor version.
4
- * Initially this will support version `0.212.0`, centric to [dependabot-common@0.212.0](https://rubygems.org/gems/dependabot-common/versions/0.212.0)
4
+ * Support version `0.212.0`, centric to [dependabot-common@0.212.0](https://rubygems.org/gems/dependabot-common/versions/0.212.0)
5
5
  * This is because this is the last version to support a Ruby version of `2.7.0`.
6
+ * Support version `0.217.0`, centric to [dependabot-common@0.217.0](https://rubygems.org/gems/dependabot-common/versions/0.217.0)
6
7
 
7
- Bugs present in any supported pinned version may be patched and contribute to successive patch versions. If a bug exists in an older version and no longer exists in a newer version, it is suggested to update to the newer version.
8
+ Bugs present in only the most recent pinned minor version may be patched and contribute to successive patch versions. If a bug exists in an older version and no longer exists in a newer version, it is suggested to update to the newer version. As the underlying package this wraps, dependabot[-omnibus], is a live service, it makes sense for this to only roll forward.
8
9
  ## Reporting a Vulnerability
9
10
  Raise a [Security Vulnerability](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=security&template=security-vulnerability.yaml) issue.
@@ -12,26 +12,28 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Use linguist to check the contents of a repository,
13
13
  and then scan for dependabot-core ecosystems relevant to those languages!"
14
14
  spec.homepage = "https://skenvy.github.io/dependabot-linguist"
15
- spec.required_ruby_version = ">= 2.7.0"
15
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/common/dependabot-common.gemspec#L23-L24
16
+ spec.required_ruby_version = ">= 3.1.0"
17
+ spec.required_rubygems_version = ">= 3.3.7"
16
18
  spec.metadata["homepage_uri"] = spec.homepage
17
19
  spec.metadata["source_code_uri"] = "https://github.com/Skenvy/dependabot-linguist/tree/main/"
18
20
 
19
21
  spec.require_paths = ["lib"]
20
22
  spec.files = Dir.chdir(__dir__) do
21
23
  `git ls-files -z`.split("\x0").reject do |f|
22
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
24
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|smoke-test)/|\.(?:git|travis|circleci)|appveyor)})
23
25
  end
24
26
  end
25
27
  spec.bindir = "exe"
26
28
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
29
 
28
- spec.add_dependency "rugged", "~> 1.5.0"
29
- spec.add_dependency "github-linguist", "7.23.0"
30
+ spec.add_dependency "rugged", "1.6.3"
31
+ spec.add_dependency "github-linguist", "7.25.0"
30
32
  # All ecosystem gems from https://rubygems.org/profiles/dependabot can be
31
- # required via https://rubygems.org/gems/dependabot-omnibus/versions/0.212.0
33
+ # required via https://rubygems.org/gems/dependabot-omnibus/versions/0.217.0
32
34
  # which will include all dependencies of omnibus (16 ecosystems and common).
33
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/omnibus/dependabot-omnibus.gemspec#L24-L40
34
- spec.add_dependency "dependabot-omnibus", "0.212.0"
35
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/omnibus/dependabot-omnibus.gemspec#L29-L45
36
+ spec.add_dependency "dependabot-omnibus", "0.217.0"
35
37
 
36
38
  # spec.add_development_dependency "aruba", "~> 2.1" # TODO
37
39
  spec.add_development_dependency "rake", "~> 13.0"
@@ -12,7 +12,7 @@ require "yaml"
12
12
  $VERBOSE = previous_verbose
13
13
 
14
14
  VERSION = ::Dependabot::Linguist::VERSION
15
- BANNER = <<~BANNER
15
+ BANNER = <<~BANNER.freeze
16
16
  Dependabot Linguist v#{VERSION}
17
17
  Detect dependabot ecosystems present for a given git repository, based off using
18
18
  linguist to determine the files present, that could be relevant to an ecosystem,