Closed chrismytton closed 8 years ago
@tmtmtmtm 👀
@tmtmtmtm Feedback addressed. I think there's still some more that could be done to encapsulate the storage class, but this seems like a good starting point that we can build on in future PRs.
So I think this is ready for another :eyes:
Oops, I've broken the tests, fixing…
This introduces a new
GitStorage
class which is an extraction of the git parts of theScrapedPageArchive
class. This should make it easier to test the git parts of this gem in isolation. It also means there is looser coupling betweenScrapedPageArchive
andgit
.This change was spurred on by https://github.com/everypolitician/scraped_page_archive/pull/40#discussion_r80220902.