dependabot-core 0.86.21 → 0.86.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/dependabot/dependency.rb +0 -1
- data/lib/dependabot/file_updaters/ruby/bundler/lockfile_updater.rb +0 -1
- data/lib/dependabot/update_checkers/ruby/bundler/force_updater.rb +0 -1
- data/lib/dependabot/update_checkers/ruby/bundler/latest_version_finder.rb +0 -1
- data/lib/dependabot/update_checkers/ruby/bundler/shared_bundler_helpers.rb +0 -1
- data/lib/dependabot/update_checkers/ruby/bundler/version_resolver.rb +0 -1
- data/lib/dependabot/utils/elixir/requirement.rb +0 -1
- data/lib/dependabot/utils/go/requirement.rb +0 -1
- data/lib/dependabot/utils/java_script/requirement.rb +0 -4
- data/lib/dependabot/utils/php/requirement.rb +0 -1
- data/lib/dependabot/utils/ruby/requirement.rb +0 -2
- data/lib/dependabot/version.rb +1 -1
- metadata +1 -2
- data/lib/rubygems_requirement_patch.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477c4014b776353a5acb9cd26fdc07fffed5ad931aa36721fe3242f53a44dace
|
4
|
+
data.tar.gz: 5bb086377a13d7aaba509ff6b07904042be71d51efe939e441426b2eab3ff55f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07381d14579aad8fab2e7937655f4cf4e2c1c2b55af3c393a1445bc6aa360bc5ff39c5e4c8778910d0a966fc1a12fd10382fe4659cf204bfdd59a2dd612d8d3e'
|
7
|
+
data.tar.gz: 22f0cd5c202a90ec911a34049d31f4895417b8166fdeda6f604ebe903579ac7fbd40416de2d7a196cab29dfbc38e42ba5a97b8fa2d9a219456f178918dc81305
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require "bundler_definition_ruby_version_patch"
|
4
4
|
require "bundler_definition_bundler_version_patch"
|
5
5
|
require "bundler_git_source_patch"
|
6
|
-
require "rubygems_requirement_patch"
|
7
6
|
|
8
7
|
require "dependabot/update_checkers/ruby/bundler"
|
9
8
|
require "dependabot/update_checkers/ruby/bundler/requirements_updater"
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "dependabot/utils/java_script/version"
|
4
|
-
require "rubygems_requirement_patch"
|
5
4
|
|
6
5
|
module Dependabot
|
7
6
|
module Utils
|
@@ -58,14 +57,12 @@ module Dependabot
|
|
58
57
|
private
|
59
58
|
|
60
59
|
# rubocop:disable Metrics/PerceivedComplexity
|
61
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
62
60
|
def convert_js_constraint_to_ruby_constraint(req_string)
|
63
61
|
return req_string if req_string.match?(/^([A-Za-uw-z]|v[^\d])/)
|
64
62
|
|
65
63
|
req_string = req_string.gsub(/(?:\.|^)[xX*]/, "")
|
66
64
|
|
67
65
|
if req_string.empty? then ">= 0"
|
68
|
-
elsif req_string.start_with?("~>") then req_string
|
69
66
|
elsif req_string.start_with?("~") then convert_tilde_req(req_string)
|
70
67
|
elsif req_string.start_with?("^") then convert_caret_req(req_string)
|
71
68
|
elsif req_string.include?(" - ") then convert_hyphen_req(req_string)
|
@@ -74,7 +71,6 @@ module Dependabot
|
|
74
71
|
end
|
75
72
|
end
|
76
73
|
# rubocop:enable Metrics/PerceivedComplexity
|
77
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
78
74
|
|
79
75
|
def convert_tilde_req(req_string)
|
80
76
|
version = req_string.gsub(/^~\>?/, "")
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
@@ -498,7 +498,6 @@ 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_requirement_patch.rb
|
502
501
|
- lib/rubygems_version_patch.rb
|
503
502
|
homepage: https://github.com/dependabot/dependabot-core
|
504
503
|
licenses:
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rubygems/requirement"
|
4
|
-
|
5
|
-
# See https://github.com/rubygems/rubygems/pull/2554
|
6
|
-
module Gem
|
7
|
-
class Requirement
|
8
|
-
# rubocop:disable Style/CaseEquality
|
9
|
-
def ==(other)
|
10
|
-
return unless Gem::Requirement === other
|
11
|
-
|
12
|
-
# An == check is always necessary
|
13
|
-
return false unless requirements == other.requirements
|
14
|
-
|
15
|
-
# An == check is sufficient unless any requirements use ~>
|
16
|
-
return true unless _tilde_requirements.any?
|
17
|
-
|
18
|
-
# If any requirements use ~> we check that the strings are equal so that
|
19
|
-
# version precision is considered
|
20
|
-
_tilde_requirements.map(&:to_s) == other._tilde_requirements.map(&:to_s)
|
21
|
-
end
|
22
|
-
# rubocop:enable Style/CaseEquality
|
23
|
-
|
24
|
-
protected
|
25
|
-
|
26
|
-
def _tilde_requirements
|
27
|
-
requirements.select { |r| r.first == "~>" }
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|