Skip to content

Commit

Permalink
Avoid Bundler.clean_system deprecation
Browse files Browse the repository at this point in the history
Use unbundled_system instead
  • Loading branch information
jcoyne committed Dec 31, 2023
1 parent b850ff0 commit 424555d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ task :generate_test_gem => ['engine_cart:setup'] do

system "echo '\ngem \"rspec-rails\"\n' >> Gemfile"

Bundler.clean_system "bundle update --quiet"
Bundler.unbundled_system "bundle update --quiet"

system "echo 'require \"engine_cart/rake_task\"\n' >> Rakefile"

system("bundle exec rake engine_cart:prepare")
Bundler.clean_system "bundle install --quiet"
Bundler.unbundled_system "bundle install --quiet"
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/engine_cart/tasks/engine_cart.rake
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace :engine_cart do

# Copy our test app generators into the app and prepare it
if File.exist? "#{EngineCart.templates_path}/lib/generators"
Bundler.clean_system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib"
Bundler.unbundled_system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib"
end

within_test_app do
Expand All @@ -120,7 +120,7 @@ namespace :engine_cart do
end
end

Bundler.clean_system "bundle install --quiet"
Bundler.unbundled_system "bundle install --quiet"

EngineCart.write_fingerprint

Expand Down

0 comments on commit 424555d

Please sign in to comment.