dependabot-hex 0.142.1 → 0.143.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: 814b55841d2137271b5679dec222bdf5adcf3718504e1878338378674b8cc05b
4
- data.tar.gz: fb08151164cd6bffaee8e83702985b99f3ff029e8126e9bf77543d99b22f8dba
3
+ metadata.gz: 4ecb333040d22256ded203bb90e2436b0dd6a96178e75a1730d7c5ba1314077f
4
+ data.tar.gz: a86d274c8f0172fc03b879df27ec63ea8b505255af3e6be2fdf535922c3ec60c
5
5
  SHA512:
6
- metadata.gz: 86b3f8016adbcbbcd8081730bac925f0c8f7c1c59cece2eab153abec3210d8f807a746be7dd6a309df5216bd1cd78b210961f52c847aaaf477bbe842560366ad
7
- data.tar.gz: b5691973a270a35afc94f8f3e614ceec77808cba7f706d57f2f1cde99eda02b781f97ac6ba4cd432653fe77fd5318c7cf363a8b6d600c849b444ceb45ed9f9b5
6
+ metadata.gz: c2dfe8e2f5684fbe25d62b5c665c1140670c5dd40b8a7f89224f1d9f1fbb8eae971bbda1dbd24dc308ef75250dab0955b2d9a262f7dc99a1f81f6938315a83ef
7
+ data.tar.gz: 04a3c603308e199303fe63868a59950bb96dacbf0b327a3f083b5304bbc9a5b8f5b598224ce2c36e9a4c6d4c2451efe15e3dbba61980d364e2d99247a5269ee1
@@ -26,6 +26,16 @@ module Dependabot
26
26
  end
27
27
  end
28
28
 
29
+ # Patches Gem::Requirement to make it accept requirement strings like
30
+ # "~> 4.2.5, >= 4.2.5.1" without first needing to split them.
31
+ def initialize(*requirements)
32
+ requirements = requirements.flatten.flat_map do |req_string|
33
+ req_string.split(",").map(&:strip)
34
+ end
35
+
36
+ super(requirements)
37
+ end
38
+
29
39
  # Override the parser to create Hex::Versions
30
40
  def self.parse(obj)
31
41
  return ["=", Hex::Version.new(obj.to_s)] if obj.is_a?(Gem::Version)
@@ -218,7 +218,7 @@ module Dependabot
218
218
  versions.reject!(&:prerelease?) unless wants_prerelease?
219
219
 
220
220
  filtered = versions.reject do |v|
221
- ignore_reqs.any? { |r| r.satisfied_by?(v) }
221
+ ignore_requirements.any? { |r| r.satisfied_by?(v) }
222
222
  end
223
223
 
224
224
  raise AllVersionsIgnored if @raise_on_ignored && filtered.empty? && versions.any?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-hex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.142.1
4
+ version: 0.143.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-04-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.142.1
19
+ version: 0.143.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.142.1
26
+ version: 0.143.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.12.0
103
+ version: 1.13.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.12.0
110
+ version: 1.13.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement