dependabot-python 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/lib/dependabot/python/requirement.rb +7 -3
- data/lib/dependabot/python/version.rb +3 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a2e8a3d0c288437e804c2ef2c8d71e7298b68383379b64cd87133dba074e7ad
|
4
|
+
data.tar.gz: 469b6a1edc81414374587733e016c2d1ea126f995a8c62d750d7e53afdf4103f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5db5627ff414773f67b12c3f751edb96771e30ba654fcd79226da799afc8ccf9e0fbd2e798304bcb6ce5988b4a5d8109a4ec8a25dfb874d2d6debe637ca845c1
|
7
|
+
data.tar.gz: 46396bdb1e5abee7071f650971792285efc9399774dfafbb9598fc2b6b0987e6e20825a40ab8490c9cb38d69b3525b02172b139ec0f2c58526e52877cbf1391b
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "dependabot/utils"
|
3
4
|
require "dependabot/python/version"
|
4
5
|
|
5
6
|
module Dependabot
|
@@ -8,8 +9,10 @@ module Dependabot
|
|
8
9
|
OR_SEPARATOR = /(?<=[a-zA-Z0-9*])\s*\|+/.freeze
|
9
10
|
|
10
11
|
# Add equality and arbitrary-equality matchers
|
11
|
-
OPS
|
12
|
-
|
12
|
+
OPS = OPS.merge(
|
13
|
+
"==" => ->(v, r) { v == r },
|
14
|
+
"===" => ->(v, r) { v.to_s == r.to_s }
|
15
|
+
)
|
13
16
|
|
14
17
|
quoted = OPS.keys.sort_by(&:length).reverse.
|
15
18
|
map { |k| Regexp.quote(k) }.join("|")
|
@@ -57,7 +60,8 @@ module Dependabot
|
|
57
60
|
|
58
61
|
def satisfied_by?(version)
|
59
62
|
version = Python::Version.new(version.to_s)
|
60
|
-
|
63
|
+
|
64
|
+
requirements.all? { |op, rv| (OPS[op] || OPS["="]).call(version, rv) }
|
61
65
|
end
|
62
66
|
|
63
67
|
def exact?
|
@@ -1,5 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "dependabot/utils"
|
4
|
+
require "rubygems_version_patch"
|
5
|
+
|
3
6
|
# Python versions can include a local version identifier, which Ruby can't
|
4
7
|
# parser. This class augments Gem::Version with local version identifier info.
|
5
8
|
# See https://www.python.org/dev/peps/pep-0440 for details.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-python
|
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: dependabot-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.86.
|
19
|
+
version: 0.86.12
|
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.86.
|
26
|
+
version: 0.86.12
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|