Merge pull request #2899 from MikeMcQuaid/enable-deprecations
Enable more deprecations.
This commit is contained in:
commit
896f41f7ed
@ -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
|
||||||
|
@ -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
|
||||||
|
7
Library/Homebrew/compat/hbc/dsl.rb
Normal file
7
Library/Homebrew/compat/hbc/dsl.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module Hbc
|
||||||
|
class DSL
|
||||||
|
def license(*)
|
||||||
|
odeprecated "Hbc::DSL#license"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user