dependabot-core 0.86.11 → 0.86.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dependabot/dependency.rb +2 -0
- data/lib/dependabot/utils/elixir/requirement.rb +3 -2
- data/lib/dependabot/utils/elixir/version.rb +2 -0
- data/lib/dependabot/utils/go/version.rb +2 -0
- data/lib/dependabot/utils/java_script/version.rb +2 -0
- data/lib/dependabot/utils/php/version.rb +2 -0
- data/lib/dependabot/version.rb +1 -1
- data/lib/rubygems_version_patch.rb +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2819732750e0dd0c1bd1b8d7eac30c029b058b3d408a9938a880ac3fec165df7
|
4
|
+
data.tar.gz: cbea227565c62312c2c91d661335c11b8bc8aa75580d6323a5c1fc7eb2f448fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 966924c3e22cf820ece70c901f0d71f53cd647a006bdb41b992884a3cee0f03dcf2c1ce37401aa19b40c3d722eb899fec6af0b3f25dc82ec4bc1390b58ed6890
|
7
|
+
data.tar.gz: 96e9ec715a08cd8766bb68c6bcc8a01961b345b393d19cd000c371e8cfd932b19a48fa3354a2ff9a26d553db3d89d297811058696477a8c9fa4de4cc9aeaf81a
|
data/CHANGELOG.md
CHANGED
@@ -10,7 +10,7 @@ module Dependabot
|
|
10
10
|
OR_SEPARATOR = /\s+or\s+/.freeze
|
11
11
|
|
12
12
|
# Add the double-equality matcher to the list of allowed operations
|
13
|
-
OPS
|
13
|
+
OPS = OPS.merge("==" => ->(v, r) { v == r })
|
14
14
|
|
15
15
|
# Override the version pattern to allow local versions
|
16
16
|
quoted = OPS.keys.map { |k| Regexp.quote k }.join "|"
|
@@ -45,7 +45,8 @@ module Dependabot
|
|
45
45
|
|
46
46
|
def satisfied_by?(version)
|
47
47
|
version = Utils::Elixir::Version.new(version.to_s)
|
48
|
-
|
48
|
+
|
49
|
+
requirements.all? { |op, rv| (OPS[op] || OPS["="]).call(version, rv) }
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|
data/lib/dependabot/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rubygems/version"
|
4
|
+
|
5
|
+
# Opt in to Rubygems 4 behaviour
|
6
|
+
module Gem
|
7
|
+
class Version
|
8
|
+
def self.correct?(version)
|
9
|
+
return false if version.nil?
|
10
|
+
|
11
|
+
version.to_s.match?(ANCHORED_VERSION_PATTERN)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.86.
|
4
|
+
version: 0.86.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ecr
|
@@ -498,6 +498,7 @@ files:
|
|
498
498
|
- lib/dependabot/utils/php/version.rb
|
499
499
|
- lib/dependabot/utils/ruby/requirement.rb
|
500
500
|
- lib/dependabot/version.rb
|
501
|
+
- lib/rubygems_version_patch.rb
|
501
502
|
homepage: https://github.com/dependabot/dependabot-core
|
502
503
|
licenses:
|
503
504
|
- Nonstandard
|