lib/puppetfile-resolver/spec_searchers/git/github.rb in puppetfile-resolver-0.6.2 vs lib/puppetfile-resolver/spec_searchers/git/github.rb in puppetfile-resolver-0.6.3

- old
+ new

@@ -17,14 +17,14 @@ repo_url = puppetfile_module.remote.slice(19..-1) repo_url = repo_url.slice(0..-5) if repo_url.end_with?('.git') end return nil if repo_url.nil? - metadata_url = 'https://raw.githubusercontent.com/' + repo_url + '/' + metadata_url = "https://raw.githubusercontent.com/#{repo_url}/" if puppetfile_module.ref - metadata_url += puppetfile_module.ref + '/' + metadata_url += "#{puppetfile_module.ref}/" elsif puppetfile_module.tag - metadata_url += puppetfile_module.tag + '/' + metadata_url += "#{puppetfile_module.tag}/" else # Default to master. Should it raise? metadata_url += 'master/' end metadata_url += 'metadata.json'