Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Pull request to install gems using clean Bundler environment #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion lib/mg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def define_tasks

desc "Build and install as local gem"
task "gem:install" => package(".gem") do
sh "gem install #{package(".gem")}"
Bundler.with_clean_env do
sh "gem install #{package(".gem")}" do |_,result|
raise unless result.to_i.zero?
end
end
end

desc "Build gem into dist/"
Expand Down