diff options
| author | Markus Reiter | 2018-02-13 17:23:49 +0100 | 
|---|---|---|
| committer | Markus Reiter | 2018-02-13 17:23:49 +0100 | 
| commit | 191b6218152f64da6e165e9a8947322388a7fdfb (patch) | |
| tree | 07420bd26b2bdb525dc6ce12d33ed0bab0612e5b /Library | |
| parent | 8a30be74424538aeec3139f1d06bdbb7b38e75b7 (diff) | |
| download | brew-191b6218152f64da6e165e9a8947322388a7fdfb.tar.bz2 | |
Make sure `.metadata` shows up in Cask backtrace.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cask_loader.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Library/Homebrew/cask/lib/hbc/cask_loader.rb b/Library/Homebrew/cask/lib/hbc/cask_loader.rb index c32b35584..74c39176d 100644 --- a/Library/Homebrew/cask/lib/hbc/cask_loader.rb +++ b/Library/Homebrew/cask/lib/hbc/cask_loader.rb @@ -16,11 +16,11 @@ module Hbc        end        def initialize(content) -        @content = content +        @content = content.force_encoding("UTF-8")        end        def load -        instance_eval(content.force_encoding("UTF-8"), __FILE__, __LINE__) +        instance_eval(content, __FILE__, __LINE__)        end        private @@ -52,7 +52,7 @@ module Hbc          @content = IO.read(path) -        super +        instance_eval(content, path)        end        private | 
