dependabot-common 0.260.0 → 0.261.1

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: 415959ea14773d81bb155264358ab19c52c5dcb8aa8f0c88693a21d7b6088b6a
4
+ data.tar.gz: 4ca304de008ac1431d05adf3ef3157fb15a82677361c077d588401ec664029fa
5
5
  SHA512:
6
- metadata.gz: eb9f8ee8bcbb705b7b370e6649cdd2987190ed5ed2b24f7b08c3268b21fc7bfa8efc46cd319d338162c052de1ba341c386638d7834198356bc240e4f7ec36680
7
- data.tar.gz: b4014afc5f0ff5cf879e8e4b986bf8b30481c96ca1621815d9bbfd864be6257727b01d70876cf171e7c46c8b04c89afec204f6fd6290dd50b982bdfb63e0d57c
6
+ metadata.gz: e22ca6fd2de98b9c278aa3705722369d50534a8d1cd3d17a3fb745f623ed4b2ec1056b23f77fd87b2dbd026810027b8e384af6d2c21e001c11daac298e387a89
7
+ data.tar.gz: 965983f2f7a1598fbdd010c5f9a56f6d82fa4f13a929a9e9e209092b09b94dbcd4de99d5da29723b46454bd6112643861c26a9fce679f731bd6c0e1e75bd337e
@@ -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.1"
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.1
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-17 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.1
601
601
  post_install_message:
602
602
  rdoc_options: []
603
603
  require_paths: