Skip to content

Commit

Permalink
Use Dir.exist? instead of Dir.exists?
Browse files Browse the repository at this point in the history
Dir.exists? has been deprecated since Ruby 2.2 and is being removed in
Ruby 3.2
  • Loading branch information
jhawthorn committed Jan 6, 2022
1 parent cb60dfa commit 40be15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rugged/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def self.run_cmake(timeout, args)
end

Dir.chdir(LIBGIT2_DIR) do
Dir.mkdir("build") if !Dir.exists?("build")
Dir.mkdir("build") if !Dir.exist?("build")

Dir.chdir("build") do
# On Windows, Ruby-DevKit is MSYS-based, so ensure to use MSYS Makefiles.
Expand Down

0 comments on commit 40be15d

Please sign in to comment.