dependabot-swift 0.370.0 → 0.371.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/swift/native_requirement.rb +10 -7
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd49023c8b65d6ac267b5cd247fd86f4b14200babee47ef62ef7f25a98496812
|
|
4
|
+
data.tar.gz: f4144efe3e9a917632859d096abed5478306c462770d5f7418bd98706d22322f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 135daea8ece27cb1cb26cf0802b65774fbfd8bfb8c7718d1f5e3afb3b0ed69f607c1769825418c78b96f592e84344d4ebe81aba3ec081d56eb3bcb096f8ec926
|
|
7
|
+
data.tar.gz: fda6a71d93cb0fba5fd601231e749a72b6dc3123e5583f88d24e11b78841b3dacb490133051c42e6cf5236ea804140c32101871e2824eeab620b32ad0bc4ea9f
|
|
@@ -11,7 +11,10 @@ module Dependabot
|
|
|
11
11
|
extend T::Sig
|
|
12
12
|
|
|
13
13
|
# TODO: Support pinning to specific revisions
|
|
14
|
-
REGEXP = T.let(
|
|
14
|
+
REGEXP = T.let(
|
|
15
|
+
/(from.*|\.upToNextMajor.*|\.upToNextMinor.*|".*"\s*\.\.[\.<]\s*".*"\s*,?|exact.*|\.exact.*)/,
|
|
16
|
+
Regexp
|
|
17
|
+
)
|
|
15
18
|
|
|
16
19
|
sig { returns(String) }
|
|
17
20
|
attr_reader :declaration
|
|
@@ -85,23 +88,23 @@ module Dependabot
|
|
|
85
88
|
sig { params(declaration: String).returns([String, String]) }
|
|
86
89
|
def parse_declaration(declaration)
|
|
87
90
|
if up_to_next_major?
|
|
88
|
-
min = declaration.gsub(/\Afrom\s*:\s*"(\S
|
|
91
|
+
min = declaration.gsub(/\Afrom\s*:\s*"(\S+?)"\s*(?:,\s*)?\z/, '\1')
|
|
89
92
|
max = bump_major(min)
|
|
90
93
|
elsif up_to_next_major_deprecated?
|
|
91
|
-
min = declaration.gsub(/\A\.upToNextMajor\s*\(\s*from\s*:\s*"(\S
|
|
94
|
+
min = declaration.gsub(/\A\.upToNextMajor\s*\(\s*from\s*:\s*"(\S+?)"\s*(?:,\s*)?\)\s*(?:,\s*)?\z/, '\1')
|
|
92
95
|
max = bump_major(min)
|
|
93
96
|
elsif up_to_next_minor_deprecated?
|
|
94
|
-
min = declaration.gsub(/\A\.upToNextMinor\s*\(\s*from\s*:\s*"(\S
|
|
97
|
+
min = declaration.gsub(/\A\.upToNextMinor\s*\(\s*from\s*:\s*"(\S+?)"\s*(?:,\s*)?\)\s*(?:,\s*)?\z/, '\1')
|
|
95
98
|
max = bump_minor(min)
|
|
96
99
|
elsif closed_range?
|
|
97
100
|
min, max = parse_range("...")
|
|
98
101
|
elsif range?
|
|
99
102
|
min, max = parse_range("..<")
|
|
100
103
|
elsif exact_version?
|
|
101
|
-
min = declaration.gsub(/\Aexact\s*:\s*"(\S
|
|
104
|
+
min = declaration.gsub(/\Aexact\s*:\s*"(\S+?)"\s*(?:,\s*)?\z/, '\1')
|
|
102
105
|
max = min
|
|
103
106
|
elsif exact_version_deprecated?
|
|
104
|
-
min = declaration.gsub(/\A\.exact\s*\(\s*"(\S
|
|
107
|
+
min = declaration.gsub(/\A\.exact\s*\(\s*"(\S+?)"\s*(?:,\s*)?\)\s*(?:,\s*)?\z/, '\1')
|
|
105
108
|
max = min
|
|
106
109
|
else
|
|
107
110
|
raise "Unsupported constraint: #{declaration}"
|
|
@@ -112,7 +115,7 @@ module Dependabot
|
|
|
112
115
|
|
|
113
116
|
sig { params(separator: String).returns(T::Array[String]) }
|
|
114
117
|
def parse_range(separator)
|
|
115
|
-
declaration.split(separator).map { |str| unquote(str.strip) }
|
|
118
|
+
declaration.delete_suffix(",").split(separator).map { |str| unquote(str.strip) }
|
|
116
119
|
end
|
|
117
120
|
|
|
118
121
|
sig { returns(T::Boolean) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-swift
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.371.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.371.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.371.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -274,7 +274,7 @@ licenses:
|
|
|
274
274
|
- MIT
|
|
275
275
|
metadata:
|
|
276
276
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
277
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
277
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.371.0
|
|
278
278
|
rdoc_options: []
|
|
279
279
|
require_paths:
|
|
280
280
|
- lib
|