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 authored and cbeer committed Jan 4, 2024
1 parent b5179a0 commit f7ec927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ task :generate_test_gem => ['engine_cart:setup'] do
system "echo '\ngem \"sqlite3\", \"< 1.7.0\"\n' >> Gemfile"
end

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 @@ -117,7 +117,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 @@ -129,7 +129,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 f7ec927

Please sign in to comment.