dependabot-go_modules 0.390.0 → 0.391.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be00c815d5e8ba609a0a78726a79bd4ff120dca86d6b5526adc51f9450d41a71
4
- data.tar.gz: 9c52c5a9a09f65a1e5cc2fa2d2fefa44118da9abf5788b1975e1aa782e2a6280
3
+ metadata.gz: 778dc862ce2923f1b5a498169447525739aaf4cea696d2536fe69c192eec2d15
4
+ data.tar.gz: 5c5f7e16b9230cbdd8256d3a950119ad43aca2127c7aac8d8a930ef4be9896e2
5
5
  SHA512:
6
- metadata.gz: 807ec4f2898dd60bfe2fcb5715e691e2bf9a21fc43dde75c1f84e196641bb7c5333bc9c53f6ff7911763dfd2867f3d132e1898cbb8d456e9a604961731b9eddb
7
- data.tar.gz: fde65b650b35d29e0abb0f436a92b8bd640a95c7d41994de45d1757bd5e9ac9d854d0be17136fff1d558bcbd4aaa1587eb3ddc0bfe3ed2023081fa5b9caa9344
6
+ metadata.gz: 29e7d974377f9e7a91634eca8b68b2b3f024e87f3df29db525efc5a8171f2e98f9f657db759bf1403ce2b71858afc9e786a03a723c80341eb01efd25dbee99fa
7
+ data.tar.gz: 18884e9f63eaa511f8eb183921235d47a375f1a0b284e95c896000c6e95f83ae390cb9955c4661ef20babc1e5dd207f05f0ebc4bcabfd1c3963ee5dc6875531b
@@ -18,7 +18,7 @@ module Dependabot
18
18
  # rsc.io/sampler@v1.3.0 golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c
19
19
  # <---parent---> <----child------>
20
20
  #
21
- GO_MOD_GRAPH_LINE_REGEX = T.let(/^(?<parent>[^@\s]+)@?[^\s]*\s(?<child>[^@\s]+)/, Regexp)
21
+ GO_MOD_GRAPH_LINE_REGEX = /^(?<parent>[^@\s]+)@?[^\s]*\s(?<child>[^@\s]+)/
22
22
 
23
23
  sig { override.returns(Dependabot::DependencyFile) }
24
24
  def relevant_dependency_file
@@ -180,7 +180,7 @@ module Dependabot
180
180
  content = go_env&.content
181
181
  return false unless content
182
182
 
183
- keys.any? { |key| content.include?(key) }
183
+ keys.any? { |key| content.index(key) }
184
184
  end
185
185
 
186
186
  sig { void }
@@ -18,7 +18,7 @@ module Dependabot
18
18
 
19
19
  sig { params(repo_contents_path: String).void }
20
20
  def initialize(repo_contents_path)
21
- @repo_contents_path = T.let(repo_contents_path, String)
21
+ @repo_contents_path = repo_contents_path
22
22
  end
23
23
 
24
24
  sig do
@@ -8,16 +8,10 @@ module Dependabot
8
8
  module ResolvabilityErrors
9
9
  extend T::Sig
10
10
 
11
- GITHUB_REPO_REGEX = T.let(%r{github.com/[^:@ '\n]*}, Regexp)
12
- INSECURE_PROTOCOL_REPOSITORY_REGEX = T.let(
13
- /go(?: get)?: .*: no secure protocol found for repository/m,
14
- Regexp
15
- )
16
- GO_MODULE_WITH_VERSION_REGEX = T.let(/go(?: get)?:\s*(?<module>[^\s@]+)@/, Regexp)
17
- GO_PREFIXED_HOSTED_REPO_REGEX = T.let(
18
- %r{(?:^|\n)\s*go(?: get)?:\s*(?<repo>[a-z0-9.-]+\.[a-z]{2,}/[^:@\s]+)(?:[:\s]|$)}i,
19
- Regexp
20
- )
11
+ GITHUB_REPO_REGEX = %r{github.com/[^:@ '\n]*}
12
+ INSECURE_PROTOCOL_REPOSITORY_REGEX = /go(?: get)?: .*: no secure protocol found for repository/m
13
+ GO_MODULE_WITH_VERSION_REGEX = /go(?: get)?:\s*(?<module>[^\s@]+)@/
14
+ GO_PREFIXED_HOSTED_REPO_REGEX = %r{(?:^|\n)\s*go(?: get)?:\s*(?<repo>[a-z0-9.-]+\.[a-z]{2,}/[^:@\s]+)(?:[:\s]|$)}i
21
15
  REACHABILITY_CHECK_HINTS = T.let(
22
16
  [
23
17
  /If this is a private repository/i,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-go_modules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.390.0
4
+ version: 0.391.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.390.0
18
+ version: 0.391.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.390.0
25
+ version: 0.391.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: debug
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -275,7 +275,7 @@ licenses:
275
275
  - MIT
276
276
  metadata:
277
277
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
278
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.390.0
278
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.391.0
279
279
  rdoc_options: []
280
280
  require_paths:
281
281
  - lib