Skip to content

Commit

Permalink
Build on Ruby 3 (#99)
Browse files Browse the repository at this point in the history
* cd is deprecated, use Dir.chdir
  • Loading branch information
malmckay authored Sep 25, 2021
1 parent b330ba5 commit 9abd48d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- 2.5
- 2.6
- 2.7
- 3.0
- jruby
gcc:
- 7
Expand Down
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if File.exists?(release_ops_path)

orig_dir = Dir.getwd

cd tmpdir do
Dir.chdir tmpdir do
sh "git co #{tag} && git reset --hard && git clean -fdx"

ENV['JAVA_GEM'] = nil
Expand Down Expand Up @@ -77,7 +77,7 @@ end
VALGRIND_BASIC_OPTS = '--num-callers=50 --error-limit=no --partial-loads-ok=yes --undef-value-errors=no --trace-children=yes'

task 'valgrind' do
cd 'ext' do
Dir.chdir 'ext' do
sh "rake clean build"
end

Expand All @@ -86,15 +86,15 @@ end

namespace :build do
task :clean do
cd 'ext' do
Dir.chdir 'ext' do
sh 'rake clean'
end

Rake::Task['build'].invoke
end

task :clobber do
cd 'ext' do
Dir.chdir 'ext' do
sh 'rake clobber'
end

Expand All @@ -104,7 +104,7 @@ end

desc "Build C component"
task :build do
cd 'ext' do
Dir.chdir 'ext' do
sh "rake"
end
end
Expand Down

0 comments on commit 9abd48d

Please sign in to comment.