Sha256: 55ebae79c55ec2d6c873800ac7c2602038b0f540637b4d8c651719259c019ac2
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
module CodeInventory class Inventory attr_accessor :sources def initialize(*sources) @sources = [sources].flatten end def projects @sources.collect { |src| src.projects do |project| yield project, src if block_given? project end }.flatten end def generate(agency, version) { "agency": agency, "version": version, "measurementType" => { "method" => "modules" }, "releases": projects } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codeinventory-0.3.1 | lib/codeinventory/inventory.rb |
codeinventory-0.3.0 | lib/codeinventory/inventory.rb |