diff options
| author | Mike McQuaid | 2017-07-14 17:03:33 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-07-21 10:50:07 +0100 |
| commit | 2d18ba586b3250062cd58c8f5af81fc30a35bb5f (patch) | |
| tree | 68c6130df8f85bb7c2e5dddb0cf4c12413f52bc9 /Library | |
| parent | e0560ff363d5efa177cf567281e78f73848557b4 (diff) | |
| download | brew-2d18ba586b3250062cd58c8f5af81fc30a35bb5f.tar.bz2 | |
Enable more deprecations.
It's been long enough that these have been commented out so let's
enable them globally.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/dsl.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/compat/software_spec.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/compat/utils.rb | 5 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
6 files changed, 8 insertions, 11 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index 112ceb943..1105ac1a2 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -204,9 +204,7 @@ module Hbc end def license(*) - # TODO: Uncomment after `license` has been - # removed from all official taps. - # odeprecated "Hbc::DSL#license" + odeprecated "Hbc::DSL#license" end # depends_on uses a load method so that multiple stanzas can be merged diff --git a/Library/Homebrew/compat/software_spec.rb b/Library/Homebrew/compat/software_spec.rb index 5efd2aeb4..8b0408d02 100644 --- a/Library/Homebrew/compat/software_spec.rb +++ b/Library/Homebrew/compat/software_spec.rb @@ -1,6 +1,6 @@ class BottleSpecification def revision(*args) - # odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" + odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" rebuild(*args) end end diff --git a/Library/Homebrew/compat/utils.rb b/Library/Homebrew/compat/utils.rb index f2cca4726..8904f0f2b 100644 --- a/Library/Homebrew/compat/utils.rb +++ b/Library/Homebrew/compat/utils.rb @@ -1,8 +1,3 @@ -def shell_profile - # odeprecated "shell_profile", "Utils::Shell.profile" - Utils::Shell.profile -end - module Tty module_function diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b2e4ff988..e681ea0bf 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2368,7 +2368,7 @@ class Formula # version '4.8.1' # end</pre> def fails_with(compiler, &block) - # odeprecated "fails_with :llvm" if compiler == :llvm + odeprecated "fails_with :llvm" if compiler == :llvm specs.each { |spec| spec.fails_with(compiler, &block) } end diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 0d2b48acc..c6e704350 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -194,7 +194,7 @@ class SoftwareSpec end def fails_with(compiler, &block) - # odeprecated "fails_with :llvm" if compiler == :llvm + odeprecated "fails_with :llvm" if compiler == :llvm compiler_failures << CompilerFailure.create(compiler, &block) end diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 5a6295394..e3137ac49 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -556,3 +556,7 @@ def with_env(hash) ENV.update(old_values) end end + +def shell_profile + Utils::Shell.profile +end |
