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: 5c1efe57c6c7d0788fbf858e95e12fd8641c196771b99f29a7b960d9763d4b92
4
- data.tar.gz: 512d12564bd4a76620d18ef4f9f418bffd26632fbe25bd62a249d622a8f7a1a4
3
+ metadata.gz: 392c09319d0983f4eded71b3fc26207aec7153680c34f32c55d46b2f2cd292ab
4
+ data.tar.gz: be016d2a34db3216d44fe25fbdc65e4bbdfad71cea9f111f7afc8122d6d66f91
5
5
  SHA512:
6
- metadata.gz: f9f44a0878428817c3cdc3b30824ac068152794e672ebf3caca933669368b40c65cca7c35c64a117c9287a5b6ae9872eef7707d3345969dd69f951f6d4b3f333
7
- data.tar.gz: 382911f0ce1193e19eb8e61f9dfb4442d9a3103767b7697deb58c164a9ac9845e4272129aac48f48361890be6c0074f5907e3afd1582852f3ade639c133c351d
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
- 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
  )
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.236.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-10-26 00:00:00.000000000 Z
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.236.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.236.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.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.236.0
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: