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 +4 -4
- data/lib/dependabot/hex/requirement.rb +10 -0
- data/lib/dependabot/hex/update_checker.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ecb333040d22256ded203bb90e2436b0dd6a96178e75a1730d7c5ba1314077f
|
4
|
+
data.tar.gz: a86d274c8f0172fc03b879df27ec63ea8b505255af3e6be2fdf535922c3ec60c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
110
|
+
version: 1.13.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|