From 80060675e83212ed5fa0f97930e881ac982842ba Mon Sep 17 00:00:00 2001 From: Jade <85654561+jp524@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:37:04 -0500 Subject: [PATCH] Modify bundler task to fix deprecation warnings --- spec/support/outputs/bundle_install.txt | 5 ++++- tasks/mina/bundler.rb | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/spec/support/outputs/bundle_install.txt b/spec/support/outputs/bundle_install.txt index 8d17fe06..951bf643 100644 --- a/spec/support/outputs/bundle_install.txt +++ b/spec/support/outputs/bundle_install.txt @@ -1,2 +1,5 @@ echo "-----> Installing gem dependencies using Bundler" -bundle install --without development test --path "vendor/bundle" --deployment \ No newline at end of file +bundle config set --local without 'development test' +bundle config set --local path 'vendor/bundle' +bundle config set --local deployment 'true' +bundle install \ No newline at end of file diff --git a/tasks/mina/bundler.rb b/tasks/mina/bundler.rb index 8b062e8f..bae258a5 100644 --- a/tasks/mina/bundler.rb +++ b/tasks/mina/bundler.rb @@ -12,7 +12,10 @@ desc 'Install gem dependencies using Bundler.' task :install do comment %(Installing gem dependencies using Bundler) - command %(#{fetch(:bundle_bin)} install #{fetch(:bundle_options)}) + command %(#{fetch(:bundle_bin)} config set --local without '#{fetch(:bundle_withouts)}') + command %(#{fetch(:bundle_bin)} config set --local path '#{fetch(:bundle_path)}') + command %(#{fetch(:bundle_bin)} config set --local deployment 'true') + command %(#{fetch(:bundle_bin)} install) end desc 'Cleans up unused gems in your bundler directory'