dependabot-swift 0.235.0 → 0.237.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: 5f91c1f7361620f7db8455eab85745cc5ef585f6f2017a40df18836f13a614db
4
- data.tar.gz: f7adac8a32369d6d6ac5440907e2ef976047f9d0b6db5222b590a9cb149c0e70
3
+ metadata.gz: 24c80479ca86d9046bd517864613f805f243522654971e1d0b5ddbf84cdcec60
4
+ data.tar.gz: b6f16d4c05840cb6eaa76a5639b788ebedb7ede340bcb14d88b55ecd8180e933
5
5
  SHA512:
6
- metadata.gz: d1959fdeef1f32a423bb91357cf323151096299564daf84c8ba683bdb937d7c2b9a98469d0d9959ff952cb6a08f2b900805b3049e838a7756b3c7ba5ae4381cf
7
- data.tar.gz: 5889afd153ec544d56ed81dfdbab365a831f86727795221afb1b8bd6e0190a93286b17b169463a358994984215bdaef95125fcd8550989b9629045de6ea9dac5
6
+ metadata.gz: 33a8c0caf78c8a58924068c4d9291b614ae559eeaa5649ba444fe311e6ce71b10379da5f6243a7768d6831d556e2f331b37b1a458989660cd8d5948d53a0a7e1
7
+ data.tar.gz: 98468eadd3cc0966969355a91e343588222b956e809336dd4dd8a7b87698b59d38ce31ce986952febafbbc4b9b800b389d9b20f5624deb2f3ffc3e97fb72c81a
@@ -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
- private
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
  )
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: strong
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # These all need to be required so the various classes can be registered in a
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.235.0
4
+ version: 0.237.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-10-19 00:00:00.000000000 Z
11
+ date: 2023-11-21 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.235.0
19
+ version: 0.237.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.235.0
26
+ version: 0.237.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.56.0
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.56.0
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.235.0
238
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
225
239
  post_install_message:
226
240
  rdoc_options: []
227
241
  require_paths: