dependabot-npm_and_yarn 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: 8a3126f475618eeeb6318ee79ec1be7f81bb3723e656619e6a8bf0aea79189d7
4
- data.tar.gz: 0a40cc600496d775974f288d1565190a12fe94d8f6c5b7189ba5b21580039a9a
3
+ metadata.gz: 7d816558a71e65a586c42d450da095836365a126e7b09d72c09a2fad7ea85bbd
4
+ data.tar.gz: 3af33ca87ef0d6f8d15552b4a2b41b793beda8af15045b2d2f4de17a6b49c67a
5
5
  SHA512:
6
- metadata.gz: 07fdd2f5d7427d75b7d774a05f04ff12a895720bf4a42682739014a1fffdaf9a50ee567d0082b9def91a21269ddbdcfe19a8ea8419ca90c110e871607821a3d8
7
- data.tar.gz: 44c58d03e1c7fc0f453efbe12a014c908db6139bd45b4dc0b773a2d974616b8725532a8464331395e26880fb5aa23a4704c37e5d0000321bc1e464f94a687911
6
+ metadata.gz: c1f39bd7b906fbf6d8231ce6e40becb84a405fd111a4f78dd80dc99d071963adc5e72942e86c207fd0637eda0edf64b6efdeb18aacd92acc67d880ac7c42504b
7
+ data.tar.gz: a4e11524bb70bd2ef629f3ff98ea6db13159b16d5e6a110cf97139afcf07e650d66c4051471d17b8cd883d754cf4ae22cbdfe17f0f25d8f1050cc79f4a77249c
@@ -45,9 +45,9 @@ module Dependabot
45
45
  end
46
46
 
47
47
  def initialize(*requirements)
48
- requirements = requirements.flatten.flat_map do |req_string|
49
- convert_js_constraint_to_ruby_constraint(req_string)
50
- end
48
+ requirements = requirements.flatten.
49
+ flat_map { |req_string| req_string.split(",").map(&:strip) }.
50
+ flat_map { |req_string| convert_js_constraint_to_ruby_constraint(req_string) }
51
51
 
52
52
  super(requirements)
53
53
  end
@@ -106,7 +106,7 @@ module Dependabot
106
106
 
107
107
  def filter_ignored_versions(versions_array)
108
108
  filtered = versions_array.reject do |v, _|
109
- ignore_reqs.any? { |r| r.satisfied_by?(v) }
109
+ ignore_requirements.any? { |r| r.satisfied_by?(v) }
110
110
  end
111
111
 
112
112
  raise AllVersionsIgnored if @raise_on_ignored && filtered.empty? && versions_array.any?
@@ -201,7 +201,7 @@ module Dependabot
201
201
  return false if related_to_current_pre?(ver) ^ ver.prerelease?
202
202
  return false if current_version_greater_than?(ver)
203
203
  return false if current_requirement_greater_than?(ver)
204
- return false if ignore_reqs.any? { |r| r.satisfied_by?(ver) }
204
+ return false if ignore_requirements.any? { |r| r.satisfied_by?(ver) }
205
205
  return false if yanked?(ver)
206
206
 
207
207
  true
@@ -388,8 +388,8 @@ module Dependabot
388
388
  )
389
389
  end
390
390
 
391
- def ignore_reqs
392
- ignored_versions.map { |req| requirement_class.new(req.split(",")) }
391
+ def ignore_requirements
392
+ ignored_versions.flat_map { |req| requirement_class.requirements_array(req) }
393
393
  end
394
394
 
395
395
  def version_class
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-npm_and_yarn
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