From 6feaf66391ed08bfdc53f1ed24ae39b6db8026dc Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 11:12:10 +0800 Subject: [PATCH] try --- announcement.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index c9d41ef..2f6b469 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -33,11 +33,13 @@ if old_gemfile_text != new_gemfile_text File.open(ENV['PWD']+'/Gemfile', 'w') do |file| file.write new_gemfile_text end - Thread.current = Thread.new do + a = Thread.new do Bundler.with_clean_env do system("bundle update") end end + a.join() + Thread.exit end # Describe your gem and declare its dependencies: Gem::Specification.new do |s|