dependabot-common 0.397.0 → 0.399.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: 79970e220dac70e4c9e5fb36bcf11fb95e997cd86659be7c62fb6fcf98e51afa
4
- data.tar.gz: d1148a8d752b03cc3f15492deca23abeced299e6fd194c8e00ba5cfdac2f072c
3
+ metadata.gz: 25a94c1e5dc3f55727a0f4ccadd5b4ee8d420f280adb0035bc273d31370843fe
4
+ data.tar.gz: 5f54adb05f2d66b098cb2ab8443b30dba9bfeb684c3fad1b01fa4e10a895e97d
5
5
  SHA512:
6
- metadata.gz: 8e35951dcbb53d13ae20be52132a956c28a89f1e8314b040f0cc3cf3b476e95bf1d7d1b0b98ad4fa1b87daa32e97626d184a71c63a418824942e8a0a1273b4f6
7
- data.tar.gz: 45564180f9212a7e7c695d573be1ae536836dd75358b20e6b917a66172f5f5547aa6dccb5de4dcd79a47b0bc5c997a9d88eb33fc23a3f52cf5bd6fca2688c399
6
+ metadata.gz: 6be302598830a25eb71907c3d080aa0d603c054b70dc95a12d17ffe233725e761c5c0ee4304b1086d2ba50099bfa0d7c4fb9c8d68fe8f6e4009eb2c2a5dfa0e1
7
+ data.tar.gz: 3a2df82a0f866e8a2ae116d767f43c916d820ebda987f348b5a65964742403dba8882a2761e4e7ebcfe4e5ffb0db08f644f0131c27f602d206dc1b20f2c9fdc2
@@ -118,6 +118,11 @@ module Dependabot
118
118
  "error-type": "dependency_not_found",
119
119
  "error-detail": { source: error.source }
120
120
  }
121
+ when Dependabot::MisconfiguredTooling
122
+ {
123
+ "error-type": "misconfigured_tooling",
124
+ "error-detail": { "tool-name": error.tool_name, message: error.tool_message }
125
+ }
121
126
  when Octokit::Unauthorized
122
127
  { "error-type": "octokit_unauthorized" }
123
128
  when Octokit::ServerError
@@ -210,6 +215,11 @@ module Dependabot
210
215
  "error-type": "git_dependencies_not_reachable",
211
216
  "error-detail": { "dependency-urls": error.dependency_urls }
212
217
  }
218
+ when Dependabot::MisconfiguredTooling
219
+ {
220
+ "error-type": "misconfigured_tooling",
221
+ "error-detail": { "tool-name": error.tool_name, message: error.tool_message }
222
+ }
213
223
  when Dependabot::NotImplemented
214
224
  {
215
225
  "error-type": "not_implemented",
@@ -378,8 +378,9 @@ module Dependabot
378
378
  def new_version
379
379
  # New version looks like a git SHA and there's a new ref, guarding
380
380
  # against changes to a nil new_ref (not certain this can actually
381
- # happen atm)
382
- if T.must(dependency.version).match?(/^[0-9a-f]{40}$/) && ref_changed? &&
381
+ # happen atm). A requirement-only update, such as a Julia stdlib's
382
+ # compat entry, has no version at all.
383
+ if dependency.version&.match?(/^[0-9a-f]{40}$/) && ref_changed? &&
383
384
  new_ref
384
385
  return new_ref
385
386
  end
@@ -59,6 +59,9 @@ module Dependabot
59
59
  sig { returns(T.nilable(Time)) }
60
60
  attr_reader :released_at
61
61
 
62
+ sig { params(released_at: T.nilable(Time)).returns(T.nilable(Time)) }
63
+ attr_writer :released_at
64
+
62
65
  sig { returns(T::Boolean) }
63
66
  attr_reader :latest
64
67
 
@@ -341,7 +341,9 @@ module Dependabot
341
341
  subject = pr_name.gsub("⬆️", ":arrow_up:").gsub("🔒", ":lock:")
342
342
  return subject unless subject.length > 72
343
343
 
344
- subject = subject.gsub(/ from [^\s]*? to [^\s]*/, "")
344
+ # Requirements can contain spaces ("^0.20, ^0.21"), so match up to the
345
+ # suffixes solo_pr_name adds rather than to the next space
346
+ subject = subject.sub(%r{ from .+? to .+?(?= \(via audit fix\)| in /|\z)}, "")
345
347
  return subject unless subject.length > 72
346
348
 
347
349
  T.must(subject.split(" in ").first)
data/lib/dependabot.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Dependabot
5
- VERSION = "0.397.0"
5
+ VERSION = "0.399.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.397.0
4
+ version: 0.399.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -635,7 +635,7 @@ licenses:
635
635
  - MIT
636
636
  metadata:
637
637
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
638
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.397.0
638
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.399.0
639
639
  rdoc_options: []
640
640
  require_paths:
641
641
  - lib