Sha256: 3316f84b7a119bff4cfdfbefa0222b803d04e8d803055c955595c1f1de72a4d5
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
require "rdf-vocab" namespace :vocab do RDF::Vocab.config.keys.sort.each do |vocab| params = RDF::Vocab.config[vocab] name = [params.fetch("module_name", "RDF::Vocab"), params["class_name"]].join("::") desc "Generate #{name} vocabulary from source" task vocab do if outfile = ENV["output"] File.open(outfile, "wb") do |output| RDF::Vocab.generate(vocab, output) end else RDF::Vocab.generate(vocab) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rdf-vocab-0.5.0 | lib/rdf-vocab/tasks/vocab.rake |
rdf-vocab-0.4.0 | lib/rdf-vocab/tasks/vocab.rake |
rdf-vocab-0.3.0 | lib/rdf-vocab/tasks/vocab.rake |