Sha256: 272a87c317abfd6dbade05418a0632533b9445b0550c4a4030cdd2575dd90640

Contents?: true

Size: 1.8 KB

Versions: 27

Compression:

Stored size: 1.8 KB

Contents

module Guard

  module DeprecatedMethods

    # @deprecated Use `Guard.plugins(filter)` instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    #   upgrade for Guard 2.0
    #
    def guards(filter = nil)
      ::Guard::UI.deprecation(::Guard::Deprecator::GUARDS_DEPRECATION)
      plugins(filter)
    end

    # @deprecated Use `Guard.add_plugin(name, options = {})` instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    #   upgrade for Guard 2.0
    #
    def add_guard(*args)
      ::Guard::UI.deprecation(::Guard::Deprecator::ADD_GUARD_DEPRECATION)
      add_plugin(*args)
    end

    # @deprecated Use
    #   `Guard::PluginUtil.new(name).plugin_class(fail_gracefully:
    #   fail_gracefully)` instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    #   upgrade for Guard 2.0
    #
    def get_guard_class(name, fail_gracefully = false)
      ::Guard::UI.deprecation(::Guard::Deprecator::GET_GUARD_CLASS_DEPRECATION)
      ::Guard::PluginUtil.new(name).plugin_class(fail_gracefully: fail_gracefully)
    end

    # @deprecated Use `Guard::PluginUtil.new(name).plugin_location` instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    #   upgrade for Guard 2.0
    #
    def locate_guard(name)
      ::Guard::UI.deprecation(::Guard::Deprecator::LOCATE_GUARD_DEPRECATION)
      ::Guard::PluginUtil.new(name).plugin_location
    end

    # @deprecated Use `Guard::PluginUtil.plugin_names` instead.
    #
    # @see https://github.com/guard/guard/wiki/Upgrading-to-Guard-2.0 How to
    #   upgrade for Guard 2.0
    #
    def guard_gem_names
      ::Guard::UI.deprecation(::Guard::Deprecator::GUARD_GEM_NAMES_DEPRECATION)
      ::Guard::PluginUtil.plugin_names
    end

  end

end

Version data entries

27 entries across 25 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/guard-2.6.1/lib/guard/deprecated_methods.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/guard-2.6.1/lib/guard/deprecated_methods.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/guard-2.6.1/lib/guard/deprecated_methods.rb
guard-2.6.1 lib/guard/deprecated_methods.rb
guard-2.6.0 lib/guard/deprecated_methods.rb
guard-2.5.1 lib/guard/deprecated_methods.rb
guard-2.5.0 lib/guard/deprecated_methods.rb
guard-2.4.0 lib/guard/deprecated_methods.rb
guard-2.3.0 lib/guard/deprecated_methods.rb
guard-2.2.5 lib/guard/deprecated_methods.rb
guard-2.2.4 lib/guard/deprecated_methods.rb
guard-2.2.3 lib/guard/deprecated_methods.rb
guard-2.2.2 lib/guard/deprecated_methods.rb
guard-2.2.1 lib/guard/deprecated_methods.rb
guard-2.2.0 lib/guard/deprecated_methods.rb
guard-2.1.1 lib/guard/deprecated_methods.rb
guard-2.1.0 lib/guard/deprecated_methods.rb
guard-2.0.5 lib/guard/deprecated_methods.rb
guard-2.0.4 lib/guard/deprecated_methods.rb
guard-2.0.3 lib/guard/deprecated_methods.rb