(ns io.perun.gravatar
  (:require [io.perun.core :as perun]
            [gravatar      :as gr]))

(defn add-gravatar [file source-prop target-prop]
  (if-let [email (get file source-prop)]
    (assoc file target-prop (gr/avatar-url email))
    file))

(defn find-gravatar [files source-prop target-prop]
  (let [updated-files (map #(add-gravatar % source-prop target-prop) files)]
    (perun/report-info "gravatar" "added gravatar to %s files" (count updated-files))
    updated-files))

(ns io.perun.gravatar
  (:require [io.perun.core :as perun]
            [gravatar.core :as gr]))

(defn add-gravatar [file source-prop target-prop]
  (if-let [email (get file source-prop)]
    (assoc file target-prop (gr/avatar-url email))
    file))

(defn find-gravatar [files source-prop target-prop]
  (let [updated-files (map #(add-gravatar % source-prop target-prop) files)]
    (perun/report-info "gravatar" "added gravatar to %s files" (count updated-files))
    updated-files))

Use correct namespace... confused about this one
Use correct namespace... confused about this one

hashobject/perun