From 29b81693d6c5b1f5ee0db02a8d2bfb94b53da312 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Mon, 20 Jan 2020 18:17:12 +0900 Subject: [PATCH] Use Bundler.with_unbundled_env --- Rakefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index aeb1c920b3..dc1d6aba18 100644 --- a/Rakefile +++ b/Rakefile @@ -1,9 +1,11 @@ task :build do cd 'rails' do - sh %(sed -i '' -e 's/sdoc.*$/sdoc", github: "toshimaru\\/sdoc", branch: "railsdoc"/g' ./Gemfile) - sh 'bundle install && bundle update sdoc' - rm_rf 'doc' - sh 'bundle exec rake rdoc' + Bundler.with_unbundled_env do + sh %(sed -i '' -e 's/sdoc.*$/sdoc", github: "toshimaru\\/sdoc", branch: "railsdoc"/g' ./Gemfile) + sh 'bundle install && bundle update sdoc' + rm_rf 'doc' + sh 'bundle exec rake rdoc' + end end cp_r Dir.glob('rails/doc/rdoc/*'), 'src/'