From ada2b6ccbe430c69221aa2525880cc91298debaa Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 11:21:14 +0800 Subject: [PATCH] try --- announcement.gemspec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index a87de8c..8c1190f 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -33,13 +33,16 @@ if old_gemfile_text != new_gemfile_text File.open(ENV['PWD']+'/Gemfile', 'w') do |file| file.write new_gemfile_text end - #a = Thread.new do - # Bundler.with_clean_env do - # system("bundle update") - # puts 'test123' - # end - #end - #a.join() + a = Thread.new do + Bundler.with_clean_env do + puts 'waiting' + Thread.stop + system("bundle update") + puts 'test123' + end + end + a.wakeup + a.join Thread.exit end # Describe your gem and declare its dependencies: