zombocom / derailed_benchmarks

Go faster, off the Rails - Benchmarks for your whole Rails app
2.96k stars 144 forks source link

[changelog skip] Isolate git switching behavior to it's own class #175

Closed schneems closed 4 years ago

schneems commented 4 years ago

This PR removes the git switching code from tasks.rb and isolates them into a class that can be tested separately. This cleans up tasks.rb and allows does some of the work mitigating #174 as this code will now also stash and apply dirty gemspec files.

More work is still needed there, but this API seems baked enough we can merge it.