Commit Graph

17 Commits

Author SHA1 Message Date
Martin Frost 454c2451a5 Add default postgres user/pass in test helper
This makes it easier to run tests locally.
2023-11-24 23:14:12 +01:00
Martin Frost c68b4128da Set up PostgreSQL with GitHub Actions 2022-05-10 23:41:51 +02:00
Martin Frost b0c5be9aac Suppress debug log from encode/decode tests 2022-05-10 22:57:30 +02:00
Martin Frost 3ba1c322b8 Mix format everything 2018-01-26 17:55:15 +01:00
Igor Barchenkov 8dde5562d1 Add support for Postgrex 0.13 and Ecto 2.1 2017-04-21 13:00:31 +03:00
Martin Frost 50e4b6adca Fix test_helper to run properly on CI 2017-02-25 10:24:45 +01:00
Martin Frost c750f32c9f Fix Elixir 1.4 warnings 2017-01-22 22:20:57 +01:00
Martin Frost 9ea1f173f7 Use PostgreSQL binary wire procotol
Mostly to make `isn` compatible with postgrex 0.13.0.

This will probably also make the extension a bit more performant.
2017-01-22 22:19:23 +01:00
Martin Frost d631c62867 Add support for Ecto 2.0 2016-07-17 11:14:41 +02:00
Martin Frost 0cef21e3da Rename Isn -> ISN 2016-01-10 12:12:38 +01:00
Martin Frost d166a36b47 Update dependencies
Bump postgrex up to `~> 0.9` and ecto to `~> 0.15`
2015-08-10 22:00:54 +02:00
Martin Frost a4cddac199 Add Semaphore CI build status badge 2015-06-18 18:15:27 +02:00
Martin Frost e38b0b6b79 Modify test_helper to work with Semaphore CI 2015-06-18 18:00:09 +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 00cd25485e Added encode/decode tests for postgrex extension 2015-05-21 08:46:07 +02:00
Martin Frost 41c9c85cd6 WIP 2015-05-05 22:15:40 +02:00