aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-04 15:24:58 +0200
committerMarkus Reiter2016-10-04 15:43:58 +0200
commitddf5583208e473ef00447834a3a712411e61e190 (patch)
treeffe336ab8f53de98d4e06685a2c21452976b2605 /Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
parentcafe1497808ef1ddb002061665ad606aa2340d10 (diff)
downloadbrew-ddf5583208e473ef00447834a3a712411e61e190.tar.bz2
Refactor Cask’s extensions.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/artifact/pkg.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact/pkg.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb b/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
index e590a9082..372740631 100644
--- a/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
+++ b/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
@@ -1,5 +1,7 @@
require "hbc/artifact/base"
+require "hbc/utils/hash_validator"
+
module Hbc
module Artifact
class Pkg < Base
@@ -14,7 +16,7 @@ module Hbc
@pkg_install_opts = pkg_description.shift
begin
if @pkg_install_opts.respond_to?(:keys)
- @pkg_install_opts.assert_valid_keys(:allow_untrusted)
+ @pkg_install_opts.extend(HashValidator).assert_valid_keys(:allow_untrusted)
elsif @pkg_install_opts
raise
end