aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2018-02-13 17:23:49 +0100
committerMarkus Reiter2018-02-13 17:23:49 +0100
commit191b6218152f64da6e165e9a8947322388a7fdfb (patch)
tree07420bd26b2bdb525dc6ce12d33ed0bab0612e5b /Library
parent8a30be74424538aeec3139f1d06bdbb7b38e75b7 (diff)
downloadbrew-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.rb6
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