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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf6ac941983de1a4979405b2f53c066a5117f7cbd54f92895a872193c9c65bf1
4
- data.tar.gz: 02146ad7e449a1312b6603b6f4690409721a68b02c9a52a844f9040c6d1c7283
3
+ metadata.gz: 0a2e8a3d0c288437e804c2ef2c8d71e7298b68383379b64cd87133dba074e7ad
4
+ data.tar.gz: 469b6a1edc81414374587733e016c2d1ea126f995a8c62d750d7e53afdf4103f
5
5
  SHA512:
6
- metadata.gz: 99af58dc13aa70fdfe3307e6b2b788d5980ee3c6de03c46078dc8cbec3ea322491223505f6e4a21abe0fba0a711f1b11202203eef549ebeec552ad4672d28985
7
- data.tar.gz: 61ae59a581d3e86c9f127532ee8568792da97cd71985ce7c96ded1c6668cf6239751daf61109f928026db6a5005d1ced9c7f72945a559bd77a759b82a92ff682
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["=="] = ->(v, r) { v == r }
12
- OPS["==="] = ->(v, r) { v.to_s == r.to_s }
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
- super
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.11
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-25 00:00:00.000000000 Z
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.11
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.11
26
+ version: 0.86.12
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement