Merge pull request #3801 from reitermarkus/ignore-metadata-deprecations

Make sure `.metadata` shows up in Cask backtrace.
This commit is contained in:
Markus Reiter 2018-02-15 09:07:44 +01:00 committed by GitHub
commit 988e805448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,11 @@ module Hbc
end end
def initialize(content) def initialize(content)
@content = content @content = content.force_encoding("UTF-8")
end end
def load def load
instance_eval(content.force_encoding("UTF-8"), __FILE__, __LINE__) instance_eval(content, __FILE__, __LINE__)
end end
private private
@ -52,7 +52,7 @@ module Hbc
@content = IO.read(path) @content = IO.read(path)
super instance_eval(content, path)
end end
private private