Refactor class to allow use of generators
Refactor class to allow use of generators

I know using the `iterator_to_array()` method defeats the whole purpose
of using Generators, but  refactoring this class to use Generators to
their full potential is beyond the scope of this PR.

ins0/github-changelog-generator