dependabot-hex 0.238.0 → 0.239.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/build +1 -1
- data/helpers/lib/run.exs +1 -1
- data/lib/dependabot/hex/requirement.rb +8 -2
- data/lib/dependabot/hex/update_checker/version_resolver.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63ff5323f74e8ab59e4fa5d7b17d220d5490a3c787e03d10db57167cec01073
|
4
|
+
data.tar.gz: ebb38208e8019c59e5313c8709dea032e8a1677b203e7b60ac088cc6704ee4f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c00a3393b2e4a11de1db395de68258ca408e6ec4a6cc3a9948f43fe6c747528d410b9072a1549e2b15c69c4ca30d54ecb6c7aeb517a20c78b002afea758429c5
|
7
|
+
data.tar.gz: fa334fc715f2d5f6ff1702279d8775e2e88e00d78a69f821fea90562699381440105d52bd518e0908997833f352b3318dce3b6d765b5f2a61190713199dc2976
|
data/helpers/build
CHANGED
data/helpers/lib/run.exs
CHANGED
@@ -118,7 +118,7 @@ defmodule DependencyHelper do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
defp fetch_public_key(repo, repo_url, auth_key, fingerprint) do
|
121
|
-
case Hex.Repo.get_public_key(repo_url, auth_key) do
|
121
|
+
case Hex.Repo.get_public_key(%{trusted: true, url: repo_url, auth_key: auth_key}) do
|
122
122
|
{:ok, {200, key, _}} ->
|
123
123
|
if public_key_matches?(key, fingerprint) do
|
124
124
|
{:ok, key}
|
@@ -1,12 +1,17 @@
|
|
1
1
|
# typed: true
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
require "sorbet-runtime"
|
5
|
+
|
6
|
+
require "dependabot/requirement"
|
4
7
|
require "dependabot/utils"
|
5
8
|
require "dependabot/hex/version"
|
6
9
|
|
7
10
|
module Dependabot
|
8
11
|
module Hex
|
9
|
-
class Requirement <
|
12
|
+
class Requirement < Dependabot::Requirement
|
13
|
+
extend T::Sig
|
14
|
+
|
10
15
|
AND_SEPARATOR = /\s+and\s+/
|
11
16
|
OR_SEPARATOR = /\s+or\s+/
|
12
17
|
|
@@ -20,8 +25,9 @@ module Dependabot
|
|
20
25
|
|
21
26
|
# Returns an array of requirements. At least one requirement from the
|
22
27
|
# returned array must be satisfied for a version to be valid.
|
28
|
+
sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Requirement]) }
|
23
29
|
def self.requirements_array(requirement_string)
|
24
|
-
requirement_string.strip.split(OR_SEPARATOR).map do |req_string|
|
30
|
+
T.must(requirement_string).strip.split(OR_SEPARATOR).map do |req_string|
|
25
31
|
requirements = req_string.strip.split(AND_SEPARATOR)
|
26
32
|
new(requirements)
|
27
33
|
end
|
@@ -76,7 +76,7 @@ module Dependabot
|
|
76
76
|
raise Dependabot::PrivateSourceAuthenticationFailure, match[:repo]
|
77
77
|
end
|
78
78
|
|
79
|
-
if (match = error.message.match(/Failed to fetch record for
|
79
|
+
if (match = error.message.match(/Failed to fetch record for (?<repo>[a-z_]+)(?::(?<org>[a-z_]+))?/))
|
80
80
|
name = match[:org] || match[:repo]
|
81
81
|
raise Dependabot::PrivateSourceAuthenticationFailure, name
|
82
82
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-hex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.239.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.239.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.239.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.58.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.58.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,7 +244,7 @@ licenses:
|
|
244
244
|
- Nonstandard
|
245
245
|
metadata:
|
246
246
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
247
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
247
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.239.0
|
248
248
|
post_install_message:
|
249
249
|
rdoc_options: []
|
250
250
|
require_paths:
|