dependabot-common 0.247.0 → 0.249.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: c92ad460f0349deb2012116104501e807bd6d061fe4f5a96a0cfbd8128d3b78b
4
- data.tar.gz: f0668f3d3a2106c3245416727393e8a0a2e284fa1f44d05b40d531c4b31b2f38
3
+ metadata.gz: 217c5c870b824a19e49395f0ae3ecb4a01326f04c48acea4014aaca26ba7735d
4
+ data.tar.gz: 9a587a5c8c08853903d2e3ed5aec1ebdd943da45d82bbe1f7c2a83187a241d3e
5
5
  SHA512:
6
- metadata.gz: 8a12d9ebf2c2ab8075e431704cdd3733c854b91b4c0abe761e33d8a9b64a18d9ecb303d063d11f5e0f10200a4b0199409e28ff0e36593eb0288163074cb2e74a
7
- data.tar.gz: cb05c3efac2f10c2d6eea5758d0d50eed8cd77d7681c3d0a505b94f43a3cccb2fd436efdbd08bab73cd2940f8dfbba91e61dbbea6a929054d7318dd71d3d7ae3
6
+ metadata.gz: 87a101be9e06ab4602930b296950db93b8b27ae81319a3ba1523f42866f7e2ea4dde7320ccfc69f604bd87c2aa720023716ca92f1e42bea8f4aeab0ecdde7045
7
+ data.tar.gz: efdcc0bc5bc3a49cd0f4746a490582cf07884c3a4a4618a784d40aa7f09edf8dcc28b3af05949e39fded10a0450ce30a6bc87ac9d489eeb1baa7e2a38f225c5e
@@ -1,6 +1,8 @@
1
1
  # typed: strict
2
2
  # frozen_string_literal: true
3
3
 
4
+ require "sorbet-runtime"
5
+
4
6
  require_relative "bitbucket"
5
7
 
6
8
  module Dependabot
@@ -82,7 +82,10 @@ module Dependabot
82
82
  repo: String, commit: T.nilable(String),
83
83
  path: T.nilable(String)
84
84
  )
85
- .returns(Aws::CodeCommit::Types::GetFolderOutput)
85
+ # See PR 9344: should .returns(Seahorse::Client::Response)
86
+ # but it not extend Delegator, unblocking until shim or
87
+ # another fix is implemented
88
+ .returns(T.untyped)
86
89
  end
87
90
  def fetch_repo_contents(repo, commit = nil, path = nil)
88
91
  actual_path = path
@@ -242,7 +242,7 @@ module Dependabot
242
242
  updates = dependencies.map(&:name).uniq.count
243
243
 
244
244
  if source.directories
245
- "bump the #{T.must(dependency_group).name} across #{T.must(directories_with_updates).count} " \
245
+ "bump the #{T.must(dependency_group).name} group across #{T.must(directories_with_updates).count} " \
246
246
  "#{T.must(directories_with_updates).count > 1 ? 'directories' : 'directory'} " \
247
247
  "with #{updates} update#{'s' if updates > 1}"
248
248
  else
@@ -466,7 +466,7 @@ module Dependabot
466
466
 
467
467
  update_count = dependencies_in_directory.map(&:name).uniq.count
468
468
 
469
- msg += "Bumps the #{T.must(dependency_group).name} " \
469
+ msg += "Bumps the #{T.must(dependency_group).name} group " \
470
470
  "with #{update_count} update#{update_count > 1 ? 's' : ''} in the #{directory} directory:"
471
471
 
472
472
  msg += if update_count >= 5
@@ -0,0 +1,28 @@
1
+ # typed: strong
2
+ # frozen_string_literal: true
3
+
4
+ require "sorbet-runtime"
5
+
6
+ module Dependabot
7
+ module RequirementsUpdater
8
+ module Base
9
+ extend T::Sig
10
+ extend T::Helpers
11
+ extend T::Generic
12
+
13
+ Version = type_member { { upper: Gem::Version } }
14
+ Requirement = type_member { { upper: Gem::Requirement } }
15
+
16
+ interface!
17
+
18
+ sig { abstract.returns(T::Array[T::Hash[Symbol, T.untyped]]) }
19
+ def updated_requirements; end
20
+
21
+ sig { abstract.returns(T::Class[Version]) }
22
+ def version_class; end
23
+
24
+ sig { abstract.returns(T::Class[Requirement]) }
25
+ def requirement_class; end
26
+ end
27
+ end
28
+ end
@@ -141,7 +141,7 @@ module Dependabot
141
141
  raise NotImplementedError, "#{self.class} must implement #lowest_security_fix_version"
142
142
  end
143
143
 
144
- sig { overridable.returns(String) }
144
+ sig { overridable.returns(T.nilable(Dependabot::Version)) }
145
145
  def lowest_resolvable_security_fix_version
146
146
  raise NotImplementedError, "#{self.class} must implement #lowest_resolvable_security_fix_version"
147
147
  end
data/lib/dependabot.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Dependabot
5
- VERSION = "0.247.0"
5
+ VERSION = "0.249.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.247.0
4
+ version: 0.249.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-03-14 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-codecommit
@@ -562,6 +562,7 @@ files:
562
562
  - lib/dependabot/registry_client.rb
563
563
  - lib/dependabot/requirement.rb
564
564
  - lib/dependabot/requirements_update_strategy.rb
565
+ - lib/dependabot/requirements_updater/base.rb
565
566
  - lib/dependabot/security_advisory.rb
566
567
  - lib/dependabot/shared_helpers.rb
567
568
  - lib/dependabot/simple_instrumentor.rb
@@ -582,7 +583,7 @@ licenses:
582
583
  - Nonstandard
583
584
  metadata:
584
585
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
585
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.247.0
586
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.249.0
586
587
  post_install_message:
587
588
  rdoc_options: []
588
589
  require_paths: