From 358747d0f14de787527d8e827b40560313f23a5f Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Thu, 15 Mar 2018 15:33:41 -0500 Subject: Disable Hashie method override warns Signed-off-by: Adam Shannon --- lib/chef_zero/chef_data/cookbook_data.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/chef_zero/chef_data/cookbook_data.rb b/lib/chef_zero/chef_data/cookbook_data.rb index d41948b..d646676 100644 --- a/lib/chef_zero/chef_data/cookbook_data.rb +++ b/lib/chef_zero/chef_data/cookbook_data.rb @@ -2,6 +2,10 @@ require "digest/md5" require "hashie" module ChefZero + class Mash < ::Hashie::Mash + disable_warnings + end + module ChefData module CookbookData class << self @@ -175,7 +179,7 @@ module ChefZero name(cookbook.name) recipes(cookbook.fully_qualified_recipe_names) %w{attributes grouping dependencies supports recommendations suggestions conflicting providing replacing recipes}.each do |hash_arg| - self[hash_arg.to_sym] = Hashie::Mash.new + self[hash_arg.to_sym] = Mash.new end end -- cgit v1.2.1