Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/dependabot-common.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", "~> 13"
spec.add_development_dependency "rspec", "~> 3.8"
spec.add_development_dependency "rspec-its", "~> 1.2"
spec.add_development_dependency "rubocop", "~> 1.36.0"
spec.add_development_dependency "rubocop", "~> 1.37.1"
spec.add_development_dependency "rubocop-performance", "~> 1.15.0"
spec.add_development_dependency "simplecov", "~> 0.21.0"
spec.add_development_dependency "simplecov-console", "~> 0.9.1"
Expand Down
2 changes: 1 addition & 1 deletion common/lib/dependabot/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def sanitize_message(message)
return message unless message.is_a?(String)

path_regex =
Regexp.escape(Utils::BUMP_TMP_DIR_PATH) + "\/" +
Regexp.escape(Utils::BUMP_TMP_DIR_PATH) + "\\/" +
Regexp.escape(Utils::BUMP_TMP_FILE_PREFIX) + "[a-zA-Z0-9-]*"

message = message.gsub(/#{path_regex}/, "dependabot_tmp_dir").strip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def build_details_tag(summary:, body:)
msg += body
msg + "</details>\n"
else
"\n\##{summary}\n\n#{body}"
"\n##{summary}\n\n#{body}"
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
it do
is_expected.to eq(
"<p>{Issue 111}[https://github-redirect.com/dependabot/" \
"dependabot-core/issues/111\]</p>\n"
"dependabot-core/issues/111]</p>\n"
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion elm/lib/dependabot/elm/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
module Dependabot
module Elm
class Version < Gem::Version
VERSION_PATTERN = "[0-9]+\.[0-9]+\.[0-9]+"
VERSION_PATTERN = "[0-9]+\\.[0-9]+\\.[0-9]+"
VERSION_PATTERN_REGEX = /\A#{VERSION_PATTERN}\Z/

def self.correct?(version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
it "updates the pin" do
expect(prepared_mixfile.content).to include(
'{:phoenix, ">= 0", github: "dependabot-fixtures/phoenix", ' \
"ref: \'v1.2.1\'}"
"ref: 'v1.2.1'}"
)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def write_updated_dependency_files
end

def install_required_python
return if run_command("pyenv versions").include?("\ #{python_version}")
# The leading space is important
return if run_command("pyenv versions").include?(" #{python_version}")

run_command("pyenv install -s #{python_version}")
run_command("pyenv exec pip install --upgrade pip")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def write_original_manifest_files
end

def install_required_python
return if run_command("pyenv versions").include?("\ #{python_version}")
# The leading space is important
return if run_command("pyenv versions").include?(" #{python_version}")

run_command("pyenv install -s #{python_version}")
run_command("pyenv exec pip install --upgrade pip")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def install_required_python
nil
end

return if run_command("pyenv versions").include?("\ #{python_version}")
# The leading space is important
return if run_command("pyenv versions").include?(" #{python_version}")

requirements_path = NativeHelpers.python_requirements_path
run_command("pyenv install -s #{python_version}")
Expand Down