adding license file to test against vagrant install
added a check to determine the format of the repo index.yml
fix for incorrect variable spelling
Changed the has_key check to include?
added an additional check to ensure uri and license are available before setting the variables
rubocop tidy up on repository_index
rspec test to ensure both license and non license repo index.yml files are tested
Fix to repository_index_spec test
tidy up to prepare for pull request
Merge pull request #6 from Samuel1989/master

Change to support both known structures of repo index.yml