Sha256: a6f0a0e6ebac5965cbccf878c18fa35297ebadaa412090c430d01de9b5ca0ec9
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
require 'minigit' module Vendorificator module TestSupport module MiniGit module MiniGitExt def refs(kind) show_ref(kind => true).lines. map { |ln| ln =~ /[0-9a-f]{40} refs\/#{kind}\// and $'.strip }. compact rescue ::MiniGit::GitError [] end def heads refs(:heads) end def tags refs(:tags) end end def git @git ||= ::MiniGit::Capturing.new(current_dir) end end end end class MiniGit include Vendorificator::TestSupport::MiniGit::MiniGitExt end MiniGit.debug = true if ENV['DEBUG'] World(Vendorificator::TestSupport::MiniGit)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vendorificator-0.2.0 | features/support/minigit.rb |