From 507c2976fbe003e0fce7455c9587079a5d5b1fe9 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 12:20:03 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 353719b..74332f5 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -34,18 +34,11 @@ 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 - Thread.stop - puts 'waiting' + Bundler.with_clean_env do puts ENV['PWD'] puts %x[cd '#{ENV['PWD']}' && bundle update && cd '#{app_path}'] puts 'test123' end - end - sleep 0.5 - a.wakeup - a.join #Thread.exit end # Describe your gem and declare its dependencies: