basho/riak-erlang-client — pull request #75 by sebastian (2012-10-30 15:41:18+00:00)
Title: Corrections to specs in riakc.hrl

I believe the current specs might be wrong.

The specs for mapred_input's and mapred_funterm's partly deviate from actual usage (in the tests), and the specs described in the online documentation (although the docs refer to the http client: http://docs.basho.com/riak/latest/references/appendices/MapReduce-Implementation/).

@randysecrist confirmed on IRC that the pb client should be able to use javascript map reduce phases.
Unfortunately these were not allowed in the spec, causing dialyzer to fail on applications using javascript queries.

Likewise, the ability to provide inputs as {{bucket, key}, aux_data} was speced as {bucket, key, aux_data}, but used and documented differently.

These two commits change the specs to be inline with the documentation.
I have also amended the inline documentation.

Thanks for your time!