aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMike McQuaid2017-07-30 16:32:34 +0100
committerGitHub2017-07-30 16:32:34 +0100
commit896f41f7edb2f55f79fd3b8e6ffc8f3f1497727b (patch)
tree47ff7b9834e7a9b81914d345ed8aeffff7b5c4df /Library/Homebrew/compat
parent05956781a27f754905084215ef8270d3f3d26fab (diff)
parent9578e2995af79e93583c60e667a3db439a14b697 (diff)
downloadbrew-896f41f7edb2f55f79fd3b8e6ffc8f3f1497727b.tar.bz2
Merge pull request #2899 from MikeMcQuaid/enable-deprecations
Enable more deprecations.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/hbc.rb1
-rw-r--r--Library/Homebrew/compat/hbc/dsl.rb7
-rw-r--r--Library/Homebrew/compat/software_spec.rb2
-rw-r--r--Library/Homebrew/compat/utils.rb5
4 files changed, 9 insertions, 6 deletions
diff --git a/Library/Homebrew/compat/hbc.rb b/Library/Homebrew/compat/hbc.rb
index 3ff8fccb7..608d46e37 100644
--- a/Library/Homebrew/compat/hbc.rb
+++ b/Library/Homebrew/compat/hbc.rb
@@ -3,6 +3,7 @@ require "compat/hbc/cli/update"
require "compat/hbc/cache"
require "compat/hbc/caskroom"
require "compat/hbc/cli"
+require "compat/hbc/dsl"
module Hbc
class << self
diff --git a/Library/Homebrew/compat/hbc/dsl.rb b/Library/Homebrew/compat/hbc/dsl.rb
new file mode 100644
index 000000000..b550501ed
--- /dev/null
+++ b/Library/Homebrew/compat/hbc/dsl.rb
@@ -0,0 +1,7 @@
+module Hbc
+ class DSL
+ def license(*)
+ odeprecated "Hbc::DSL#license"
+ end
+ end
+end
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