require 'json' require 'json-schema' require 'time' module HAR class Error < StandardError; end class ValidationError < StandardError; end end require 'har/version' require 'har/serializable' require 'har/schema_type' require 'har/page' require 'har/archive' require 'har/viewer' module Enumerable def group_by assoc = {} each do |element| key = yield(element) if assoc.has_key?(key) assoc[key] << element else assoc[key] = [element] end end assoc end unless [].respond_to?(:group_by) end