dependabot-silent 0.280.0 → 0.282.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/silent/file_parser.rb +15 -0
- data/lib/dependabot/silent/package_manager.rb +45 -0
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393211ec2a562142d4a4c815e2808303546dc697fc9d73f6c9de498d0717f7f1
|
4
|
+
data.tar.gz: 38a99811b71334b1b3c3702eef0b9a28507ce4731183e45bb13538db516bafb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d052ae4db53919500de817013c0a77c1dc2854bf75cf03be5f35db00cdf38c9f7a91f4f371d1bbb2f44cc733f7b6afce41863f82977871fe2bfeaac4d5ec8523
|
7
|
+
data.tar.gz: b896c5558bb1d851fae8d94e4e67175d54679918e201a6fdb24ff69defc265fcb2b15426c08f02d8871e97d8e1f21e17c06d07bdcf6983bb4840edd260ac992e
|
@@ -4,6 +4,8 @@
|
|
4
4
|
require "dependabot/dependency"
|
5
5
|
require "dependabot/file_parsers"
|
6
6
|
require "dependabot/file_parsers/base"
|
7
|
+
require "dependabot/package_manager"
|
8
|
+
require "dependabot/silent/package_manager"
|
7
9
|
require "sorbet-runtime"
|
8
10
|
|
9
11
|
module SilentPackageManager
|
@@ -26,6 +28,19 @@ module SilentPackageManager
|
|
26
28
|
raise Dependabot::DependencyFileNotParseable, T.must(dependency_files.first).path
|
27
29
|
end
|
28
30
|
|
31
|
+
sig { returns(Dependabot::PackageManagerBase) }
|
32
|
+
def package_manager
|
33
|
+
meta_data = JSON.parse(manifest_content)["silent"]
|
34
|
+
silent_version = if meta_data.nil?
|
35
|
+
"2"
|
36
|
+
else
|
37
|
+
meta_data["version"]
|
38
|
+
end
|
39
|
+
Dependabot::Silent::PackageManager.new(silent_version)
|
40
|
+
rescue JSON::ParserError
|
41
|
+
raise Dependabot::DependencyFileNotParseable, T.must(dependency_files.first).path
|
42
|
+
end
|
43
|
+
|
29
44
|
private
|
30
45
|
|
31
46
|
sig { params(name: String, info: String).returns(Dependabot::Dependency) }
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "sorbet-runtime"
|
5
|
+
require "dependabot/silent/version"
|
6
|
+
require "dependabot/package_manager"
|
7
|
+
|
8
|
+
module Dependabot
|
9
|
+
module Silent
|
10
|
+
PACKAGE_MANAGER = "silent"
|
11
|
+
|
12
|
+
SUPPORTED_SILENT_VERSIONS = T.let([Version.new("2")].freeze, T::Array[Dependabot::Version])
|
13
|
+
DEPRECATED_SILENT_VERSIONS = T.let([Version.new("1")].freeze, T::Array[Dependabot::Version])
|
14
|
+
|
15
|
+
class PackageManager < PackageManagerBase
|
16
|
+
extend T::Sig
|
17
|
+
|
18
|
+
sig { params(version: T.any(String, Dependabot::Version)).void }
|
19
|
+
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 }
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
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.
|
4
|
+
version: 0.282.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-24 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.
|
19
|
+
version: 0.282.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.
|
26
|
+
version: 0.282.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,28 +114,28 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.67.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.67.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
131
|
+
version: 1.22.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
138
|
+
version: 1.22.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop-rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -245,6 +245,7 @@ files:
|
|
245
245
|
- lib/dependabot/silent/file_parser.rb
|
246
246
|
- lib/dependabot/silent/file_updater.rb
|
247
247
|
- lib/dependabot/silent/metadata_finder.rb
|
248
|
+
- lib/dependabot/silent/package_manager.rb
|
248
249
|
- lib/dependabot/silent/requirement.rb
|
249
250
|
- lib/dependabot/silent/update_checker.rb
|
250
251
|
- lib/dependabot/silent/version.rb
|
@@ -253,8 +254,8 @@ licenses:
|
|
253
254
|
- MIT
|
254
255
|
metadata:
|
255
256
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
256
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
257
|
-
post_install_message:
|
257
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.282.0
|
258
|
+
post_install_message:
|
258
259
|
rdoc_options: []
|
259
260
|
require_paths:
|
260
261
|
- lib
|
@@ -270,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
271
|
version: 3.1.0
|
271
272
|
requirements: []
|
272
273
|
rubygems_version: 3.5.9
|
273
|
-
signing_key:
|
274
|
+
signing_key:
|
274
275
|
specification_version: 4
|
275
276
|
summary: Silent ecosystem
|
276
277
|
test_files: []
|