dependabot-common 0.260.0 → 0.261.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: 99fb5e1e3613b87a9c12f4a1a376fe31fc235c27bf5a50bda0cc5cb0a9f917ef
4
- data.tar.gz: ce999a9c1ae394d547c7accce3a70b706c279623f3163394982765556ba9e0f1
3
+ metadata.gz: 140a2513bccfbb746fb4664fa540b55404d1d2be1b7c65c7abb76a9858ef50f7
4
+ data.tar.gz: '093cefbf71cdf371cc696b0150f96c02125e2f23dafa7da70736e1f168b2eec2'
5
5
  SHA512:
6
- metadata.gz: eb9f8ee8bcbb705b7b370e6649cdd2987190ed5ed2b24f7b08c3268b21fc7bfa8efc46cd319d338162c052de1ba341c386638d7834198356bc240e4f7ec36680
7
- data.tar.gz: b4014afc5f0ff5cf879e8e4b986bf8b30481c96ca1621815d9bbfd864be6257727b01d70876cf171e7c46c8b04c89afec204f6fd6290dd50b982bdfb63e0d57c
6
+ metadata.gz: b6713a5ddcd39b1b0cf9f6a3105fa1035e16960313099489fea682e4bda696c13ba86e77ad559f9655546ec9e16fee102af6729b14f0d31a2744b856f6a7ea38
7
+ data.tar.gz: 18cb16bfe6842eaed5175c65d04a7b8d880550018e6e0f78b7365eb182676a93dd2fb799656ad6ceb6f7c838f866d54657923b9c61e9728d024ea474d13b8ffa
@@ -79,6 +79,9 @@ module Dependabot
79
79
  sig { returns(T.nilable(T::Array[T::Hash[Symbol, T.untyped]])) }
80
80
  attr_reader :previous_requirements
81
81
 
82
+ sig { returns(T.nilable(String)) }
83
+ attr_accessor :directory
84
+
82
85
  sig { returns(T.nilable(T::Array[T::Hash[Symbol, T.untyped]])) }
83
86
  attr_reader :subdependency_metadata
84
87
 
@@ -96,13 +99,14 @@ module Dependabot
96
99
  version: T.nilable(T.any(String, Dependabot::Version)),
97
100
  previous_version: T.nilable(String),
98
101
  previous_requirements: T.nilable(T::Array[T::Hash[T.any(Symbol, String), T.untyped]]),
102
+ directory: T.nilable(String),
99
103
  subdependency_metadata: T.nilable(T::Array[T::Hash[T.any(Symbol, String), String]]),
100
104
  removed: T::Boolean,
101
105
  metadata: T.nilable(T::Hash[T.any(Symbol, String), String])
102
106
  ).void
103
107
  end
104
108
  def initialize(name:, requirements:, package_manager:, version: nil,
105
- previous_version: nil, previous_requirements: nil,
109
+ previous_version: nil, previous_requirements: nil, directory: nil,
106
110
  subdependency_metadata: [], removed: false, metadata: {})
107
111
  @name = name
108
112
  @version = T.let(
@@ -121,6 +125,7 @@ module Dependabot
121
125
  T.nilable(T::Array[T::Hash[Symbol, T.untyped]])
122
126
  )
123
127
  @package_manager = package_manager
128
+ @directory = directory
124
129
  unless top_level? || subdependency_metadata == []
125
130
  @subdependency_metadata = T.let(
126
131
  subdependency_metadata&.map { |h| symbolize_keys(h) },
@@ -160,6 +165,7 @@ module Dependabot
160
165
  "requirements" => requirements,
161
166
  "previous_version" => previous_version,
162
167
  "previous_requirements" => previous_requirements,
168
+ "directory" => directory,
163
169
  "package_manager" => package_manager,
164
170
  "subdependency_metadata" => subdependency_metadata,
165
171
  "removed" => removed? ? true : nil
@@ -356,6 +362,11 @@ module Dependabot
356
362
  end
357
363
  end
358
364
 
365
+ sig { returns(T::Boolean) }
366
+ def requirements_changed?
367
+ (requirements - T.must(previous_requirements)).any?
368
+ end
369
+
359
370
  private
360
371
 
361
372
  sig { void }
@@ -442,6 +442,9 @@ module Dependabot
442
442
  rescue Octokit::NotFound
443
443
  # This can happen if a passed assignee login is now an org account
444
444
  nil
445
+ rescue Octokit::UnprocessableEntity => e
446
+ # This can happen if an invalid assignee was passed
447
+ raise unless e.message.include?("Could not add assignees")
445
448
  end
446
449
 
447
450
  sig { params(pull_request: T.untyped).void }
data/lib/dependabot.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Dependabot
5
- VERSION = "0.260.0"
5
+ VERSION = "0.261.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.260.0
4
+ version: 0.261.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-06 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-codecommit
@@ -597,7 +597,7 @@ licenses:
597
597
  - MIT
598
598
  metadata:
599
599
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
600
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.260.0
600
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.261.0
601
601
  post_install_message:
602
602
  rdoc_options: []
603
603
  require_paths: