dependabot-swift 0.236.0 → 0.238.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 392c09319d0983f4eded71b3fc26207aec7153680c34f32c55d46b2f2cd292ab
|
4
|
+
data.tar.gz: be016d2a34db3216d44fe25fbdc65e4bbdfad71cea9f111f7afc8122d6d66f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 077a4f40b61fcf90d7d005c6e87a39643cdad07da4496255ff3bc2f902ce3d9990ec1e3af0afc776773f768571bbb83aae07a186fbf3c4ac0b5e1ef2a80ceeac
|
7
|
+
data.tar.gz: 3d72a53aca160c7f6cbd67203dd4b6f0ccdfd85295ca7f9cfd5b005a79ea4d55b89249f2642299909c86f5a4cf1dae22ddb150c04bc517e802aab669bc6b110b
|
@@ -1,12 +1,16 @@
|
|
1
1
|
# typed: true
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
require "sorbet-runtime"
|
4
5
|
require "dependabot/file_fetchers"
|
5
6
|
require "dependabot/file_fetchers/base"
|
6
7
|
|
7
8
|
module Dependabot
|
8
9
|
module Swift
|
9
10
|
class FileFetcher < Dependabot::FileFetchers::Base
|
11
|
+
extend T::Sig
|
12
|
+
extend T::Helpers
|
13
|
+
|
10
14
|
def self.required_files_in?(filenames)
|
11
15
|
filenames.include?("Package.swift")
|
12
16
|
end
|
@@ -15,8 +19,7 @@ module Dependabot
|
|
15
19
|
"Repo must contain a Package.swift configuration file."
|
16
20
|
end
|
17
21
|
|
18
|
-
|
19
|
-
|
22
|
+
sig { override.returns(T::Array[DependencyFile]) }
|
20
23
|
def fetch_files
|
21
24
|
check_required_files_present
|
22
25
|
|
@@ -26,6 +29,8 @@ module Dependabot
|
|
26
29
|
fetched_files
|
27
30
|
end
|
28
31
|
|
32
|
+
private
|
33
|
+
|
29
34
|
def package_manifest
|
30
35
|
@package_manifest ||= fetch_file_from_host("Package.swift")
|
31
36
|
end
|
@@ -31,7 +31,7 @@ module Dependabot
|
|
31
31
|
credentials: credentials
|
32
32
|
).updated_lockfile_content
|
33
33
|
|
34
|
-
return if updated_lockfile_content == lockfile.content
|
34
|
+
return if lockfile && updated_lockfile_content == lockfile.content
|
35
35
|
|
36
36
|
updated_lockfile = DependencyFile.new(
|
37
37
|
name: "Package.resolved",
|
@@ -46,7 +46,7 @@ module Dependabot
|
|
46
46
|
|
47
47
|
def dependency_parser(manifest, lockfile)
|
48
48
|
FileParser::DependencyParser.new(
|
49
|
-
dependency_files: [manifest, lockfile],
|
49
|
+
dependency_files: [manifest, lockfile].compact,
|
50
50
|
repo_contents_path: repo_contents_path,
|
51
51
|
credentials: credentials
|
52
52
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-swift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.238.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-07 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.238.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.238.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +94,34 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-sorbet
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.9.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.9.2
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rubocop
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
117
|
+
version: 1.57.2
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
124
|
+
version: 1.57.2
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rubocop-performance
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +235,7 @@ licenses:
|
|
221
235
|
- Nonstandard
|
222
236
|
metadata:
|
223
237
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
224
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
238
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.238.0
|
225
239
|
post_install_message:
|
226
240
|
rdoc_options: []
|
227
241
|
require_paths:
|