Sha256: db3d418ad061f64c48d6525648f83546b93728df61a21685e11ca2f7c239ceb8
Contents?: true
Size: 1.05 KB
Versions: 19
Compression:
Stored size: 1.05 KB
Contents
module Bones::Plugins::Notes include ::Bones::Helpers extend self def initialize_notes ::Bones.config { notes { exclude [] extensions %w(.txt .rb .erb .rdoc) << '' tags %w(FIXME OPTIMIZE TODO) } } have?(:notes) { true } end def define_tasks config = ::Bones.config desc "Enumerate all annotations" task :notes do |t| id = if t.application.top_level_tasks.length > 1 t.application.top_level_tasks.slice!(1..-1).join(' ') end Bones::AnnotationExtractor.enumerate( config, config.notes.tags.join('|'), id, :tag => true) end namespace :notes do config.notes.tags.each do |tag| desc "Enumerate all #{tag} annotations" task tag.downcase.to_sym do |t| id = if t.application.top_level_tasks.length > 1 t.application.top_level_tasks.slice!(1..-1).join(' ') end Bones::AnnotationExtractor.enumerate(config, tag, id) end end end end end # module Bones::Plugins::Notes # EOF
Version data entries
19 entries across 19 versions & 1 rubygems