Sha256: f4142e1443cd08172c1ef7da12c60c73775d7968aa0bc8d3eae80e7539b86c6b
Contents?: true
Size: 863 Bytes
Versions: 4
Compression:
Stored size: 863 Bytes
Contents
def vendor_path_for(mod, path) File.join('vendor', mod['Path'] || mod['Name'], path) end Then /^(?:the )?following has( not)? been conjured:$/ do |not_p, table| exists_p = not_p ? "does not exist" : "exists" step "I'm on \"master\" branch" table.transpose.hashes.each do |mod| step "branch \"vendor/#{mod['Name']}\" #{exists_p}" if mod['Version'] step "tag \"vendor/#{mod['Name']}/#{mod['Version']}\" #{exists_p}" else step "tag matching /^vendor\\/#{Regexp.quote(mod['Name']).gsub('/', '\\/')}\\// #{exists_p}" end if mod['With file'] check_file_presence(mod['With file'].lines. map { |ln| vendor_path_for(mod, ln.strip) }, !not_p) end if mod['Without file'] check_file_presence(mod['Without file'].lines. map { |ln| vendor_path_for(mod, ln.strip) }, !!not_p) end end end
Version data entries
4 entries across 4 versions & 1 rubygems