Sha256: 1709310dde50c8a0a7a83b3e23bc391e41fb04a4df5a2ec4606fd860784c2c5a

Contents?: true

Size: 997 Bytes

Versions: 19

Compression:

Stored size: 997 Bytes

Contents

# NOTE: Do NOT require "guard/plugin" - it will either be already required, or
# a stub will be supplied by the test class

module Guard
  class MyPlugin < Plugin
    def start
      Guard::Compat::UI.notify('foo')
      Guard::Compat::UI.color('foo')

      Guard::Compat::UI.info('foo')
      Guard::Compat::UI.warning('foo')
      Guard::Compat::UI.error('foo')
      Guard::Compat::UI.debug('foo')
      Guard::Compat::UI.deprecation('foo')
    end

    def run_all
      Guard::Compat::UI.notify('foo', bar: :baz)
      Guard::Compat::UI.color('foo', :white)

      Guard::Compat::UI.info('foo', bar: :baz)
      Guard::Compat::UI.warning('foo', bar: :baz)
      Guard::Compat::UI.error('foo', bar: :baz)
      Guard::Compat::UI.debug('foo', bar: :baz)
      Guard::Compat::UI.deprecation('foo', bar: :baz)
    end

    def run_on_modifications
      Guard::Compat::UI.color_enabled?
      Guard::Compat.matching_files(self, ['foo'])
      Guard::Compat.watched_directories
    end
  end
end

Version data entries

19 entries across 19 versions & 9 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
geminfo-0.1.0 path/gems/guard-compat-1.2.1/lib/guard/compat/example.rb
guard-compat-1.2.1 lib/guard/compat/example.rb
guard-compat-1.2.0 lib/guard/compat/example.rb
guard-compat-1.1.0 lib/guard/compat/example.rb