lib/yard/cli/yardoc.rb in yard-0.8.1 vs lib/yard/cli/yardoc.rb in yard-0.8.2

- old
+ new

@@ -239,10 +239,11 @@ # # @param [Array<String>] args the list of arguments. If the list only # contains a single nil value, skip calling of {#parse_arguments} # @return [void] def run(*args) + log.show_progress = true if args.size == 0 || !args.first.nil? # fail early if arguments are not valid return unless parse_arguments(*args) end @@ -267,10 +268,12 @@ Stats.new(false).run(*args) end end true + ensure + log.show_progress = false end # Parses commandline arguments # @param [Array<String>] args the list of arguments # @return [Boolean] whether or not arguments are valid @@ -345,10 +348,10 @@ objects = run_verifier(all_objects).reject do |object| serialized = !options.serializer || options.serializer.exists?(object) if checksums && serialized && !object.files.any? {|f, line| changed_files.include?(f) } true else - log.info "Re-generating object #{object.path}..." + log.debug "Re-generating object #{object.path}..." false end end Templates::Engine.generate(objects, options) end