dependabot-swift 0.370.0 → 0.372.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32df9870be54fca689738c03e3261de18f73e27299e0e477c05665d12b04fedb
4
- data.tar.gz: 8fd452e2992188f6799581f8e2c135ce95709fd691313b334af005f6a554610e
3
+ metadata.gz: 77a38fbb08f59b12d4016d8b01602ae449f3fd349e2a6a452f00a2e12e4fc6ac
4
+ data.tar.gz: f4144efe3e9a917632859d096abed5478306c462770d5f7418bd98706d22322f
5
5
  SHA512:
6
- metadata.gz: 3806cc4d3793ea8b64359e750d5470b5d2cc313881025a61e4783a9a9db32b9e71aba119d056815fcdb1a170bf79b9013b7b96316c2a5ffa94c3ff3fce7bacb6
7
- data.tar.gz: abc985d1e2aab61fb9f16c80af281f1f1aaa3ef5ea3d75de464fc212ee508e44611419f4c0ea27a411f95f28050c09d07f6a92eaeef58648a1115ac6ed957941
6
+ metadata.gz: e57ec8f0f6b11936662d0b6f10448af947c0a8b3ccc387371afaefa3c303e26365e36929f9b056772dec97448ccc8402b75ec43df2883c7aad3463076abb40ca
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(/(from.*|\.upToNextMajor.*|\.upToNextMinor.*|".*"\s*\.\.[\.<]\s*".*"|exact.*|\.exact.*)/, Regexp)
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+)"\s*\z/, '\1')
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+)"\s*\)\z/, '\1')
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+)"\s*\)\z/, '\1')
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+)"\s*\z/, '\1')
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+)"\s*\)\z/, '\1')
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.370.0
4
+ version: 0.372.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.370.0
18
+ version: 0.372.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.370.0
25
+ version: 0.372.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.370.0
277
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.372.0
278
278
  rdoc_options: []
279
279
  require_paths:
280
280
  - lib