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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b44d5c3d524733c7b28ecdeaa99462fe41ac4212fe6bfa988c7425030b3663dc
4
- data.tar.gz: eda9eccaa02bdd5ed9ee851b6a641d7656d1fa8d16c8373649c939b17f296e7a
3
+ metadata.gz: 183154e04944b2c490358bb272fae7d08805c87d2499f98b2b8fae7b5227ccd9
4
+ data.tar.gz: f5ac8e0c8281b5476a1e6baca04781e60f0c55b5828f810cc5bfe9afcdd8e454
5
5
  SHA512:
6
- metadata.gz: 4dcaf18bc2a3e96f96fc0577669baa9a2fb941478c2a02e1615c4ac84724febe0211676657bc14eb7da15c99c33b42046f057ba502f0e76cd59dabb4a15bcf44
7
- data.tar.gz: e7b4b43771d7dbf180faed96d1ae723b9756f49ca01a96fadae1bd7b5ddfdb28eda058d1e5c32c93bfa8c447846e9d858e3cf2ba3f1c3d40523f163328d73f2a
6
+ metadata.gz: e3284fe92b02da30b7144976662182003851f3921112d8d945cfbd81d72199ba025bdf40e0d0d1d1d2165ccffbc97be6ef35727986515469c18ec30ed967281a
7
+ data.tar.gz: a48279758cfa1d58ae7adf7ca6cde91dc38bd243f91c714b9da4933c21c2d6664217c24bffc4b2d87cc38a6a9f006d72d744e1108b2f8c4d7763058e40262a32
data/helpers/build CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  set -e
4
4
 
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 < Gem::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 '(?<repo>[a-z_]+)(?::(?<org>[a-z_]+))?/))
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.238.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: 2023-12-07 00:00:00.000000000 Z
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.238.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.238.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.57.2
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.57.2
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.238.0
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: