module Jekyll::Algolia::Utils
def self.diff_keys(alpha, beta)
value. If not, it remember what was the value of beta and return it in
It only checks that all keys of alpha are also in beta, with the same
Public: Get a hash representing the difference between two hashes
def self.diff_keys(alpha, beta) diff = {} alpha.each do |key, value| diff[key] = beta[key] if beta[key] != value end return nil if diff.empty? diff end