dependabot-silent 0.283.0 → 0.284.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: 6b3de3f925535227085f28d074741eda567c5b0fd0fcbe11cb230553dcc0acff
4
- data.tar.gz: 1391d315a18a4455e8476958bdf5bd2148eb529d7b0db68b1d2db8c9726b0d10
3
+ metadata.gz: 4cd1765d678ecd679b1feebe182d8f200768a24c2d21d5946f99fcd8455a24c1
4
+ data.tar.gz: b60ddb7284dde6bece4e9b5113d9f0b319770a976b50a9ad3ad4155c610eb114
5
5
  SHA512:
6
- metadata.gz: d945184bf54f5dc860767b71916e229fd89ceacfc7ec6a3dbe9a3bcf8bf4acfb5d62566c45b561cfc9d0dd1887ed9af292a57ae977b3485cc10432bbe235cea8
7
- data.tar.gz: 680bb99068b86a579ac4efd624dde5b354d8b5a946f9ea7f36ca6bec50f636aac15b0700d67f8c09277676be2bf2b2dc7511ab2eb8f1417076a46b7604f5a15e
6
+ metadata.gz: adef13b2e7f8d0a546af542c82b15cf8be9f4a1970dde2f4cbf488489c6d0ee7d16ee95f214ba14f587a96be7a6f816e04b2ade7e0b10a7b3c504fdf7b13fb0d
7
+ data.tar.gz: e61d4238e0c64ba44918b52dfeec0f5eecbb49ef270b1fc61e01f9aaa2ffc8b8570b1e5ac0d078fbba8547511610c9bb8b7689d5058b21c29d05b4dcdbc0a45c
@@ -4,7 +4,7 @@
4
4
  require "dependabot/dependency"
5
5
  require "dependabot/file_parsers"
6
6
  require "dependabot/file_parsers/base"
7
- require "dependabot/package_manager"
7
+ require "dependabot/ecosystem"
8
8
  require "dependabot/silent/package_manager"
9
9
  require "sorbet-runtime"
10
10
 
@@ -28,15 +28,21 @@ module SilentPackageManager
28
28
  raise Dependabot::DependencyFileNotParseable, T.must(dependency_files.first).path
29
29
  end
30
30
 
31
- sig { returns(Dependabot::PackageManagerBase) }
32
- def package_manager
31
+ sig { returns(Dependabot::Ecosystem) }
32
+ def ecosystem
33
33
  meta_data = JSON.parse(manifest_content)["silent"]
34
34
  silent_version = if meta_data.nil?
35
35
  "2"
36
36
  else
37
37
  meta_data["version"]
38
38
  end
39
- Dependabot::Silent::PackageManager.new(silent_version)
39
+ @ecosystem ||= T.let(
40
+ Dependabot::Ecosystem.new(
41
+ name: Dependabot::Silent::ECOSYSYEM,
42
+ package_manager: Dependabot::Silent::PackageManager.new(silent_version)
43
+ ),
44
+ T.nilable(Dependabot::Ecosystem)
45
+ )
40
46
  rescue JSON::ParserError
41
47
  raise Dependabot::DependencyFileNotParseable, T.must(dependency_files.first).path
42
48
  end
@@ -3,42 +3,27 @@
3
3
 
4
4
  require "sorbet-runtime"
5
5
  require "dependabot/silent/version"
6
- require "dependabot/package_manager"
6
+ require "dependabot/ecosystem"
7
7
 
8
8
  module Dependabot
9
9
  module Silent
10
+ ECOSYSYEM = "silent"
10
11
  PACKAGE_MANAGER = "silent"
11
12
 
12
13
  SUPPORTED_SILENT_VERSIONS = T.let([Version.new("2")].freeze, T::Array[Dependabot::Version])
13
14
  DEPRECATED_SILENT_VERSIONS = T.let([Version.new("1")].freeze, T::Array[Dependabot::Version])
14
15
 
15
- class PackageManager < PackageManagerBase
16
+ class PackageManager < Ecosystem::VersionManager
16
17
  extend T::Sig
17
18
 
18
19
  sig { params(version: T.any(String, Dependabot::Version)).void }
19
20
  def initialize(version)
20
- @version = T.let(Version.new(version), Dependabot::Version)
21
- @name = T.let(PACKAGE_MANAGER, String)
22
- @deprecated_versions = T.let(DEPRECATED_SILENT_VERSIONS, T::Array[Dependabot::Version])
23
- @supported_versions = T.let(SUPPORTED_SILENT_VERSIONS, T::Array[Dependabot::Version])
24
- end
25
-
26
- sig { override.returns(String) }
27
- attr_reader :name
28
-
29
- sig { override.returns(Dependabot::Version) }
30
- attr_reader :version
31
-
32
- sig { override.returns(T::Array[Dependabot::Version]) }
33
- attr_reader :deprecated_versions
34
-
35
- sig { override.returns(T::Array[Dependabot::Version]) }
36
- attr_reader :supported_versions
37
-
38
- sig { override.returns(T::Boolean) }
39
- def unsupported?
40
- # Check if the version is not supported
41
- supported_versions.all? { |supported| supported > version }
21
+ super(
22
+ PACKAGE_MANAGER,
23
+ Version.new(version),
24
+ DEPRECATED_SILENT_VERSIONS,
25
+ SUPPORTED_SILENT_VERSIONS,
26
+ )
42
27
  end
43
28
  end
44
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-silent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.283.0
4
+ version: 0.284.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-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-05 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.283.0
19
+ version: 0.284.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.283.0
26
+ version: 0.284.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -254,7 +254,7 @@ licenses:
254
254
  - MIT
255
255
  metadata:
256
256
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
257
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.283.0
257
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.284.0
258
258
  post_install_message:
259
259
  rdoc_options: []
260
260
  require_paths: