lib/dnote/rake/dnotetask.rb in mvz-dnote-1.9.0 vs lib/dnote/rake/dnotetask.rb in mvz-dnote-1.10.0

- old
+ new

@@ -7,11 +7,11 @@ # class RakeTask < Rake::TaskLib require "rake/clean" # Default note labels to looked for in source code. - DEFAULT_LABELS = %w(TODO FIXME OPTIMIZE DEPRECATE).freeze + DEFAULT_LABELS = %w[TODO FIXME OPTIMIZE DEPRECATE].freeze # File paths to search. attr_accessor :files # Labels to document. Defaults are: TODO, FIXME, OPTIMIZE and DEPRECATE. @@ -38,14 +38,14 @@ end def init require "dnote" require "dnote/format" - @files = "**/*.rb" - @output = "log/dnote" + @files = "**/*.rb" + @output = "log/dnote" @formats = ["index"] - @labels = nil + @labels = nil end def define desc "Collect Developer's Notes" task "dnote" do @@ -77,17 +77,17 @@ private def new_session ::DNote::Session.new do |s| - s.paths = files + s.paths = files s.exclude = exclude - s.ignore = ignore - s.labels = labels - s.title = title - s.output = output - s.dryrun = application.options.dryrun # trial? + s.ignore = ignore + s.labels = labels + s.title = title + s.output = output + s.dryrun = application.options.dryrun # trial? end end def generate_document_for_format(session, format) if format == "index" @@ -95,10 +95,10 @@ session.output = File.join(output, "index.html") else session.format = format end session.run - report "Updated #{output.to_s.sub("#{Dir.pwd}/", '')}" unless trial? + report "Updated #{output.to_s.sub("#{Dir.pwd}/", "")}" unless trial? end def clean_format(format) if format == "index" file = "#{output}index.html".to_s