dependabot-python 0.265.0 → 0.266.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: 428bb1e1c9c44c9ef4b889e90d8f76386e0a178d1f8fe294043118964cb26c48
4
- data.tar.gz: 8f2462ce25b115f32eb8d25290aa55704ec7b945c117e21f51577801688a76ee
3
+ metadata.gz: adeab8e131369b1935361073faa77c24560db901dee3e61552af78e3f26b50c3
4
+ data.tar.gz: 07fa4ab3f8af3e88f6817e2cd6f228175c9984e932a9713f934d4c51e4b5dff9
5
5
  SHA512:
6
- metadata.gz: f0b68334df8cc79d5f4875e73398ac9e593480d1865df9ab63781dc20ddd88eead8bbcb5ef0e74c2a24a7859389f5f19d863b20c090aef2a3aa4f49f20c55309
7
- data.tar.gz: a40dfb15cc8c8fa70aba4cf8a8ba340b12b698ba24e195a2ef359e09992d17918eccf2d7165e606da15a652d351f81b1f2bbb7f6cc5cfdf92963aa346ce90e6e
6
+ metadata.gz: efb8c0ed2ac8829c9f18fdd10f4ff963219f21fe6ee5061d5eb7459514c1acf375801d4a41a95dfb87c6c49d133ce43839100194c490f280004ecb1c2fa6038c
7
+ data.tar.gz: 2410609e0edb519822763ab3851b1cdf43aaf1cb0dc20c7d85fe155952469681f0f11352246e6002b7ff524995a07c57167da083821adc59a2aab78931201bcf
@@ -20,11 +20,6 @@ module Dependabot
20
20
  "===" => ->(v, r) { v.to_s == r.to_s }
21
21
  )
22
22
 
23
- # Override the lower bound logic for bump versions strategy.
24
- BUMP_VERSIONS_OPS = OPS.merge(
25
- ">=" => ->(v, r) { v.to_s == r.to_s }
26
- )
27
-
28
23
  quoted = OPS.keys.sort_by(&:length).reverse
29
24
  .map { |k| Regexp.quote(k) }.join("|")
30
25
  version_pattern = Python::Version::VERSION_PATTERN
@@ -83,10 +78,10 @@ module Dependabot
83
78
  super(requirements)
84
79
  end
85
80
 
86
- def satisfied_by?(version, ops = OPS)
81
+ def satisfied_by?(version)
87
82
  version = Python::Version.new(version.to_s)
88
83
 
89
- requirements.all? { |op, rv| (ops[op] || ops["="]).call(version, rv) }
84
+ requirements.all? { |op, rv| (OPS[op] || OPS["="]).call(version, rv) }
90
85
  end
91
86
 
92
87
  def exact?
@@ -278,14 +278,14 @@ module Dependabot
278
278
  requirement_strings.map { |r| requirement_class.new(r) }
279
279
 
280
280
  updated_requirement_strings = ruby_requirements.flat_map do |r|
281
- next r.to_s if r.satisfied_by?(latest_resolvable_version, Requirement::BUMP_VERSIONS_OPS)
281
+ next r.to_s if r.satisfied_by?(latest_resolvable_version)
282
282
 
283
283
  case op = r.requirements.first.first
284
284
  when "<"
285
- "#{op}#{update_greatest_version(r.requirements.first.last, latest_resolvable_version)}"
286
- when "<=", ">="
287
- "#{op}#{latest_resolvable_version}"
288
- when "!=", ">"
285
+ "<" + update_greatest_version(r.requirements.first.last, latest_resolvable_version)
286
+ when "<="
287
+ "<=" + latest_resolvable_version.to_s
288
+ when "!=", ">", ">="
289
289
  raise UnfixableRequirement
290
290
  else
291
291
  raise "Unexpected op for unsatisfied requirement: #{op}"
@@ -58,7 +58,7 @@ module Dependabot
58
58
  epoch_comparison = epoch_comparison(other)
59
59
  return epoch_comparison unless epoch_comparison.zero?
60
60
 
61
- version_comparison = super(other)
61
+ version_comparison = super
62
62
  return version_comparison unless version_comparison&.zero?
63
63
 
64
64
  post_version_comparison = post_version_comparison(other)
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.265.0
4
+ version: 0.266.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-18 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.265.0
19
+ version: 0.266.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.265.0
26
+ version: 0.266.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.63.2
117
+ version: 1.65.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.63.2
124
+ version: 1.65.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -288,7 +288,7 @@ licenses:
288
288
  - MIT
289
289
  metadata:
290
290
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
291
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.265.0
291
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.266.0
292
292
  post_install_message:
293
293
  rdoc_options: []
294
294
  require_paths: