dependabot-hex 0.238.0 → 0.240.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 +9 -3
- data/lib/dependabot/hex/update_checker/version_resolver.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 183154e04944b2c490358bb272fae7d08805c87d2499f98b2b8fae7b5227ccd9
|
4
|
+
data.tar.gz: f5ac8e0c8281b5476a1e6baca04781e60f0c55b5828f810cc5bfe9afcdd8e454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3284fe92b02da30b7144976662182003851f3921112d8d945cfbd81d72199ba025bdf40e0d0d1d1d2165ccffbc97be6ef35727986515469c18ec30ed967281a
|
7
|
+
data.tar.gz: a48279758cfa1d58ae7adf7ca6cde91dc38bd243f91c714b9da4933c21c2d6664217c24bffc4b2d87cc38a6a9f006d72d744e1108b2f8c4d7763058e40262a32
|
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
|
@@ -48,7 +54,7 @@ module Dependabot
|
|
48
54
|
|
49
55
|
return DefaultRequirement if matches[1] == ">=" && matches[2] == "0"
|
50
56
|
|
51
|
-
[matches[1] || "=", Hex::Version.new(matches[2])]
|
57
|
+
[matches[1] || "=", Hex::Version.new(T.must(matches[2]))]
|
52
58
|
end
|
53
59
|
|
54
60
|
def satisfied_by?(version)
|
@@ -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.240.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 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.240.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.240.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
|
@@ -206,6 +206,20 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '3.18'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: webrick
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '1.7'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '1.7'
|
209
223
|
description: Dependabot-Hex provides support for bumping Elixir (hex) packages via
|
210
224
|
Dependabot. If you want support for multiple package managers, you probably want
|
211
225
|
the meta-gem dependabot-omnibus.
|
@@ -244,7 +258,7 @@ licenses:
|
|
244
258
|
- Nonstandard
|
245
259
|
metadata:
|
246
260
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
247
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
261
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.240.0
|
248
262
|
post_install_message:
|
249
263
|
rdoc_options: []
|
250
264
|
require_paths:
|