Skip to content

Commit

Permalink
Support Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed May 24, 2022
1 parent 9f4408d commit a7345b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrbgem.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MRuby::Gem::Specification.new('mruby-yaml') do |spec|

# We build libyaml in the gem's build directory, which means
# copying the sources from the repo.
unless File.exists?(yaml_dir)
unless File.exist?(yaml_dir)
# But first, we generate the configure script. This requires GNU
# autoconf to be installed.
Dir.chdir(yaml_base_dir) do
Expand All @@ -37,7 +37,7 @@ MRuby::Gem::Specification.new('mruby-yaml') do |spec|
FileUtils.cp_r(yaml_base_dir, build_dir)
end

unless File.exists?("#{yaml_dir}/build/lib/libyaml.a")
unless File.exist?("#{yaml_dir}/build/lib/libyaml.a")
Dir.chdir(yaml_dir) do
e = {
'CC' => "#{spec.build.cc.command} #{spec.build.cc.flags.join(' ')}",
Expand Down

0 comments on commit a7345b3

Please sign in to comment.