diff options
| author | Markus Reiter | 2016-10-03 04:03:26 +0200 |
|---|---|---|
| committer | GitHub | 2016-10-03 04:03:26 +0200 |
| commit | 35ee2831086e923e7fcaf75fb440b01312e3f9c5 (patch) | |
| tree | 6f3efd1eb351125333fbe10390bd3a9e5b7b87e0 /Library/Homebrew/cask/lib/hbc/cask.rb | |
| parent | 7d31a70373edae4d8e78d91a4cbc05324bebc3ba (diff) | |
| parent | e2b3753fd91c47beeb3227a1c0df4c0dfa6026fc (diff) | |
| download | brew-1.0.6.tar.bz2 | |
Merge pull request #906 from reitermarkus/os-language1.0.6
Make `MacOS.language` less opinionated and add `language` stanza.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cask.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cask.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 756b05b83..1e2056efc 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -11,7 +11,10 @@ module Hbc @token = token @sourcefile_path = sourcefile_path @dsl = dsl || DSL.new(@token) - @dsl.instance_eval(&block) if block_given? + if block_given? + @dsl.instance_eval(&block) + @dsl.language_eval + end end DSL::DSL_METHODS.each do |method_name| |
