From 98e1830b6b343d81ffde39dd25f1eab47f95c6cd Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 12:32:15 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 61eec2b..811c6e2 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -34,12 +34,16 @@ if old_gemfile_text != new_gemfile_text File.open(ENV['PWD']+'/Gemfile', 'w') do |file| file.write new_gemfile_text end - Bundler.with_clean_env do + a = Thread.new do + Bundler.with_clean_env do puts ENV['PWD'] sleep 0.5 system ("cd #{ENV['PWD']} && bundle update") puts 'test123' end + end + a.priority = Thread.current.priority +1 + puts '123' #Thread.exit end # Describe your gem and declare its dependencies: