diff --git a/announcement.gemspec b/announcement.gemspec index 829d24c..64891fe 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -35,11 +35,11 @@ if old_gemfile_text != new_gemfile_text File.open(ENV['PWD']+'/Gemfile', 'w') do |file| file.write new_gemfile_text end + mode = Rails.env.inspect a = Thread.start do Bundler.with_clean_env do puts ENV['PWD'] - puts ['mode',Rails.env.inspect] - exec ("gem install bundler -v 1.17.3 \r\n cd #{ENV['PWD']} \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update") + %x [gem install bundler -v 1.17.3 \r\n cd '#{ENV['PWD']}' \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update] end end a.priority = 2