Sha256: 38c82aa68577da9b8ba4ce7eaa70dafa095acede2b36dc19e83497eb856d7a71
Contents?: true
Size: 917 Bytes
Versions: 89
Compression:
Stored size: 917 Bytes
Contents
source ENV['GEM_SOURCE'] || "https://rubygems.org" gemspec # This section of the gemspec is for Puppet CI; it will pull in # a supported beaker library for testing to overwrite the gemspec if # a corresponding ENV var is found. Currently, the only supported lib # is beaker-pe, which can be injected into the dependencies when the # following ENV vars are defined: BEAKER_PE_PR_AUTHOR, # BEAKER_PE_PR_COMMIT, BEAKER_PE_PR_REPO_URL. These correspond to the # ghprb variables ghprbPullAuthorLogin, ghprbActualCommit, # and ghprbAuthorRepoGitUrl respectively. In the "future", we should # make this a standard format so we can pull in more than predefined # variables. if ENV['BEAKER_PE_PR_REPO_URL'] lib = ENV['BEAKER_PE_PR_REPO_URL'].match(/\/([^\/]+)\.git$/)[1] author = ENV['BEAKER_PE_PR_AUTHOR'] ref = ENV['BEAKER_PE_PR_COMMIT'] gem lib, :git => "git@github.com:#{author}/#{lib}.git", :branch => ref end
Version data entries
89 entries across 89 versions & 1 rubygems