require 'guard'
require 'guard/guard'
require 'ronn'

module Guard
  class Ronn < Guard
    require 'guard/ronn/runner'
    require 'guard/ronn/inspector'
    require 'guard/ronn/notifier'

    attr_reader :runner

    def initialize(watchers = [], options = {})
      super
      @runner = Runner.new(@options)
    end

    # Call once when guard starts
    def start
      UI.info "Guard::Ronn is running, with Ronn #{::Ronn.version}!"
    end

    def run_all
      @runner.run(Inspector.ronn_files, :message => 'Building all manuals')
    end

    def run_on_changes(paths)
      @runner.run(Inspector.clean(paths))
    end

  end
end

require 'guard'
require 'guard/guard'
require 'ronn'

module Guard
  class Ronn < Plugin
    require 'guard/ronn/runner'
    require 'guard/ronn/inspector'
    require 'guard/ronn/notifier'

    attr_reader :runner

    def initialize(options = {})
      super
      @runner = Runner.new(@options)
    end

    # Call once when guard starts
    def start
      UI.info "Guard::Ronn is running, with Ronn #{::Ronn.version}!"
    end

    def run_all
      @runner.run(Inspector.ronn_files, :message => 'Building all manuals')
    end

    def run_on_changes(paths)
      @runner.run(Inspector.clean(paths))
    end

  end
end

Update plugin to match Guard 2.0.0 changes
Update plugin to match Guard 2.0.0 changes
