Skip to content

Tags: dch/sofa

Tags

0.0.6

Toggle 0.0.6's commit message
doc: handle elixir type info in from_map/1 & to_map/1

If a top-level key named "type": "Foo" is present, check to see if a
corresponding atom named :"Elixir.Foo" is present in the existing
atom table.

This permits user functions to dispatch based on atom type in the
returned doc struct, to an Ecto schema function directly, or similar
custom user function as required.

- upgrade from_map/1 and to_map/1
- add coerce_to_elixir_type/1
- add coerce_to_json_string/1
- remove struct related names from type fields
- sprinkle a few tests

0.0.4

Toggle 0.0.4's commit message
sofa: implement request timeout

0.0.3

Toggle 0.0.3's commit message
sofa: log full error message when in debug mode

0.0.2

Toggle 0.0.2's commit message
user: add more tests

- check that couchdb hashes plaintext passwords and strips out the
  password field before returning
- ensure that `type: :user` field is present
- check that PUTting new users handles multiple roles correctly

0.0.1

Toggle 0.0.1's commit message
add version paperwork