# File lib/chef/cookbook/cookbook_version_loader.rb, line 151
      def apply_ruby_metadata(file)
        begin
          @metadata.from_file(file)
        rescue JSON::ParserError
          Chef::Log.error("Error evaluating metadata.rb for #@cookbook_name in " + file)
          raise
        end
      end