Sha256: 5d2a28051a61db024d14da116265cdef0dcc75fe4a858320ffc90eb9ca79430c
Contents?: true
Size: 928 Bytes
Versions: 4
Compression:
Stored size: 928 Bytes
Contents
# Polisher Vendor Operations # # Licensed under the MIT license # Copyright (C) 2013-2014 Red Hat, Inc. module Polisher class Vendor end module HasVendoredDeps # Return list of file paths marked as vendored # # Scope which this module is being mixed into # must defined 'file_paths' def vendored_file_paths self.file_paths.select { |f| f.include?('vendor/') } end # Return list of vendered gems in file list def vendored vendored_file_paths.inject({}) do |v,fp| vendored_file = fp.split('/') vendor_index = vendored_file.index('vendor') # only process vendor'd dirs: next v if vendor_index + 2 == vendored_file.size vname = vendored_file[vendor_index + 1] vversion = nil # TODO set vversion from version.rb: #vf.last.downcase == 'version.rb' v[vname] = vversion v end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
polisher-0.10.2 | lib/polisher/vendor.rb |
polisher-0.10.1 | lib/polisher/vendor.rb |
polisher-0.9.1 | lib/polisher/vendor.rb |
polisher-0.8.1 | lib/polisher/vendor.rb |