Commit Graph

6 Commits

Author SHA1 Message Date
Martin Frost c0eb9ec41f Added better documentation. 2015-05-27 19:38:26 +02:00
Martin Frost ba23be86bb v0.1: Flesh out library with all types in isn
Restructuring: Isn.Extension is now called Isn, which means that the postgrex
configuration line becomes a bit shorter now:

```elixir
{:ok, pid} = Postgrex.Connection.start_link(
  database: "isn_test",
  extensions: [{Isn, {}}])
```

instead of the previous version, with `extensions: [{Isn.Extension, {}}]`.

I also implement the entire library in the `lib/isn.ex` file, since it felt
pretty silly to have eight different one-line files under `lib/isn/` looking
like this: `defmodule Isn.ISBN, do: use(Isn.Base, :isbn)`

We now have the following types:

- ISBN
- ISBN13
- ISMN
- ISMN13
- ISSN
- ISSN13
- EAN13
- UPC
2015-05-27 18:22:51 +02:00
Martin Frost 0cfd44c402 added basic tests for ISBN13 2015-05-27 08:15:21 +02:00
Martin Frost 4b2fe9d0b8 use :text as format 2015-05-05 23:32:38 +02:00
Martin Frost 56d8031c25 remove infinite loop in Isn.Base 2015-05-05 23:27:50 +02:00
Martin Frost 41c9c85cd6 WIP 2015-05-05 22:15:40 +02:00