aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter2018-02-15 09:07:44 +0100
committerGitHub2018-02-15 09:07:44 +0100
commit988e8054482c3458c387c5e589292144f2b26e50 (patch)
tree7ec589cedcc50ac280b9ba6e3327b9861a932a5b
parent5e4accbeb4f46cd364ba78fb74d871ab7485ea39 (diff)
parent191b6218152f64da6e165e9a8947322388a7fdfb (diff)
downloadbrew-988e8054482c3458c387c5e589292144f2b26e50.tar.bz2
Merge pull request #3801 from reitermarkus/ignore-metadata-deprecations
Make sure `.metadata` shows up in Cask backtrace.
-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