From 9578e2995af79e93583c60e667a3db439a14b697 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 15 Jul 2017 14:46:11 +0200 Subject: [PATCH] Move `Hbc::DSL#license` to `compat`. --- Library/Homebrew/cask/lib/hbc/dsl.rb | 4 ---- Library/Homebrew/compat/hbc.rb | 1 + Library/Homebrew/compat/hbc/dsl.rb | 7 +++++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 Library/Homebrew/compat/hbc/dsl.rb diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index 1105ac1a22..4045c6dcff 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -203,10 +203,6 @@ module Hbc @sha256 ||= arg end - def license(*) - odeprecated "Hbc::DSL#license" - end - # depends_on uses a load method so that multiple stanzas can be merged def depends_on(*args) @depends_on ||= DSL::DependsOn.new diff --git a/Library/Homebrew/compat/hbc.rb b/Library/Homebrew/compat/hbc.rb index 3ff8fccb7c..608d46e376 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 0000000000..b550501ed5 --- /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