lib/puppetfile-resolver/spec_searchers/git/gitlab.rb in puppetfile-resolver-0.6.2 vs lib/puppetfile-resolver/spec_searchers/git/gitlab.rb in puppetfile-resolver-0.6.3
- old
+ new
@@ -19,14 +19,14 @@
end
return nil if repo_url.nil?
# Example URL
# https://gitlab.com/simp/pupmod-simp-crypto_policy/-/raw/0.1.4/metadata.json
- metadata_url = 'https://gitlab.com/' + repo_url + '/-/raw/'
+ metadata_url = "https://gitlab.com/#{repo_url}/-/raw/"
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'