some ruby code up in here
port notes over from riak_kv_wm_crdt.erl