Merge pull request #2899 from MikeMcQuaid/enable-deprecations

Enable more deprecations.
This commit is contained in:
Mike McQuaid 2017-07-30 16:32:34 +01:00 committed by GitHub
commit 896f41f7ed
8 changed files with 15 additions and 14 deletions

View File

@ -203,12 +203,6 @@ module Hbc
@sha256 ||= arg @sha256 ||= arg
end end
def license(*)
# TODO: Uncomment after `license` has been
# removed from all official taps.
# odeprecated "Hbc::DSL#license"
end
# depends_on uses a load method so that multiple stanzas can be merged # depends_on uses a load method so that multiple stanzas can be merged
def depends_on(*args) def depends_on(*args)
@depends_on ||= DSL::DependsOn.new @depends_on ||= DSL::DependsOn.new

View File

@ -3,6 +3,7 @@ require "compat/hbc/cli/update"
require "compat/hbc/cache" require "compat/hbc/cache"
require "compat/hbc/caskroom" require "compat/hbc/caskroom"
require "compat/hbc/cli" require "compat/hbc/cli"
require "compat/hbc/dsl"
module Hbc module Hbc
class << self class << self

View File

@ -0,0 +1,7 @@
module Hbc
class DSL
def license(*)
odeprecated "Hbc::DSL#license"
end
end
end

View File

@ -1,6 +1,6 @@
class BottleSpecification class BottleSpecification
def revision(*args) def revision(*args)
# odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild" odeprecated "BottleSpecification.revision", "BottleSpecification.rebuild"
rebuild(*args) rebuild(*args)
end end
end end

View File

@ -1,8 +1,3 @@
def shell_profile
# odeprecated "shell_profile", "Utils::Shell.profile"
Utils::Shell.profile
end
module Tty module Tty
module_function module_function

View File

@ -2370,7 +2370,7 @@ class Formula
# version '4.8.1' # version '4.8.1'
# end</pre> # end</pre>
def fails_with(compiler, &block) 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) } specs.each { |spec| spec.fails_with(compiler, &block) }
end end

View File

@ -194,7 +194,7 @@ class SoftwareSpec
end end
def fails_with(compiler, &block) 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) compiler_failures << CompilerFailure.create(compiler, &block)
end end

View File

@ -556,3 +556,7 @@ def with_env(hash)
ENV.update(old_values) ENV.update(old_values)
end end
end end
def shell_profile
Utils::Shell.profile
end