Sha256: 9f8ac90df95fb46f76945c2772192e1e0add4d608ec65227ff0f13fe12140ee5
Contents?: true
Size: 463 Bytes
Versions: 8
Compression:
Stored size: 463 Bytes
Contents
require "sdl4r" class SdlParser attr_reader :contents, :type def initialize(type, contents) @contents = contents @type = type || "runtime" end def dependencies parse.children("dependency").inject([]) do |deps, dep| deps.push(Bibliothecary::Dependency.new( name: dep.value, requirement: dep.attribute("version") || ">= 0", type: type, )) end.uniq end def parse SDL4R::read(contents) end end
Version data entries
8 entries across 8 versions & 1 rubygems