diff options
| author | Markus Reiter | 2016-10-08 12:04:38 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-08 13:26:10 +0200 |
| commit | b306f14b97de12b171af139f658959a8d5928440 (patch) | |
| tree | 84f8f95acd9c72168df2053b8bd104c8611fc3a4 /Library/Homebrew | |
| parent | 0c3bb42a8a4ac46cc2622cb6660565e186d9df2b (diff) | |
| download | brew-b306f14b97de12b171af139f658959a8d5928440.tar.bz2 | |
Rename FormulaMethodDeprecatedError to MethodDeprecatedError.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/formula_versions.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_utils.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 1b2b24691..7aecbe494 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -56,7 +56,7 @@ end class FormulaSpecificationError < StandardError; end -class FormulaMethodDeprecatedError < StandardError; end +class MethodDeprecatedError < StandardError; end class FormulaUnavailableError < RuntimeError attr_reader :name diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 81e15d314..d9a082399 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -4,7 +4,7 @@ class FormulaVersions IGNORED_EXCEPTIONS = [ ArgumentError, NameError, SyntaxError, TypeError, FormulaSpecificationError, FormulaValidationError, - ErrorDuringExecution, LoadError, FormulaMethodDeprecatedError + ErrorDuringExecution, LoadError, MethodDeprecatedError ].freeze attr_reader :name, :path, :repository, :entry_name diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index cd5a379ab..3eeb7ce9d 100644 --- a/Library/Homebrew/test/test_utils.rb +++ b/Library/Homebrew/test/test_utils.rb @@ -249,7 +249,7 @@ class UtilTests < Homebrew::TestCase def test_odeprecated ARGV.stubs(:homebrew_developer?).returns false - e = assert_raises(FormulaMethodDeprecatedError) do + e = assert_raises(MethodDeprecatedError) do odeprecated("method", "replacement", caller: ["#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-core/"], die: true) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index fbe603b91..79e5287e8 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -83,7 +83,7 @@ def odeprecated(method, replacement = nil, options = {}) if ARGV.homebrew_developer? || options[:die] || Homebrew.raise_deprecation_exceptions? - raise FormulaMethodDeprecatedError, message + raise MethodDeprecatedError, message else opoo "#{message}\n" end |
