Closed axilleas closed 10 years ago
Checked commit https://github.com/axilleas/polisher/commit/b4ce08abf8bf6ed9fa15126bb3afe47cbca43967 with rubocop 0.21.0 1 file checked, 0 offenses detected Everything looks good. :star:
@axilleas @jrafanie gave this a quick run over and it works well. Agree w/ style / refactoring suggestions.
Since this isn't currently a big use case for cloudforms will merge in so as not to hold Axilleas up, but lets revisit some of these refactoring tasks in a future style / cleanup PR.
For starters, the previous
PACKAGE_LIST
was not working since pkgdb2 is using new uris, hence the method was broken. Then I thought since there is an API, why not use it?So,
gems_owned_by(user)
now fetches a user's packages, both owned and co-maintained. If you wish to fetch only the ones a packager owns, I can simply remove the second query.As for the tests, this method had no tests to begin with, but I'm not so familiar with rspec to test api queries. If anyone can point me how to test this, I'll happily implement it.