basho/riak-erlang-client — pull request #76 by sebastian (2012-10-30 16:25:53+00:00)
Title: Updates to spec's in riakc.hrl

I believe the current specs might be partially wrong:

- does not account for javascript map reduce queries
- complex inputs differ from documentation and usage

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!