From b90ae0384e7a1d4f8d72db86bfe21381176c893f Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sat, 9 Nov 2019 10:18:02 -0600 Subject: [PATCH] prepare for 0.5 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ calculon-redis-lib.opam | 7 ++++--- calculon-redis.opam | 10 +++++----- calculon-web.opam | 6 +++--- calculon.opam | 5 ++--- dune | 7 ------- src/core/Core.mli | 6 +++--- 7 files changed, 42 insertions(+), 24 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7bc5aaa --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,25 @@ + +## 0.5 + +- refactor: use curly for the web plugin +- refactor: use irc-client-lwt-ssl instead of tls +- chore: make examples/tools native only +- fix `prefix1-full` +- feat: redis interface +- make calculon-extra non-optional + +## 0.4 + +- refactor: pass prefix during matching, not at command creation +- test: use mdx, update readme to compile again +- chore: bump minimal OCaml version to 4.03 +- refactor and fix `help` command +- chore: move to dune, including for demo bot +- update documentation +- add travis-ci +- migrate opam file to opam 2.0 +- update doc of cmd_help, of_cmd, of_cmds +- add custom prefix for commands +- add command prefix in the description +- TLS client cert support + diff --git a/calculon-redis-lib.opam b/calculon-redis-lib.opam index 0562e58..2fb7317 100644 --- a/calculon-redis-lib.opam +++ b/calculon-redis-lib.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "calculon-redis-client" -version: "0.4" +version: "0.5" synopsis: "A library to interact with Calculon via Redis" authors: ["c-cube"] maintainer: "c-cube" @@ -10,8 +10,9 @@ build: [ ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ - "dune" {build} - "redis" + "dune" { >= "1.1" } + "redis" { >= "0.3" } + "calculon" { = version } "redis-lwt" "atdgen" "yojson" diff --git a/calculon-redis.opam b/calculon-redis.opam index b65b34b..fe6ee93 100644 --- a/calculon-redis.opam +++ b/calculon-redis.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "calculon-redis" -version: "0.4" +version: "0.5" synopsis: "A redis plugin for Calculon" authors: ["c-cube"] maintainer: "c-cube" @@ -10,10 +10,10 @@ build: [ ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ - "dune" {build} - "calculon" { >= "0.4" } - "calculon-redis-lib" - "redis" + "dune" { >= "1.1" } + "calculon" { = version } + "calculon-redis-lib" { = version } + "redis" { >= "0.3" } "redis-lwt" ] tags: [ "irc" "bot" "redis" ] diff --git a/calculon-web.opam b/calculon-web.opam index 23a9b65..8733dde 100644 --- a/calculon-web.opam +++ b/calculon-web.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "calculon-web" -version: "0.4" +version: "0.5" synopsis: "A collection of web plugins for Calculon" authors: ["Armael" "Enjolras" "c-cube"] maintainer: "c-cube" @@ -10,8 +10,8 @@ build: [ [ "dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ - "dune" {build} - "calculon" { >= "0.4" } + "dune" { >= "1.1" } + "calculon" { = version } "re" { >= "1.7.2" } "uri" "curly" diff --git a/calculon.opam b/calculon.opam index 8bd667d..7a725fc 100644 --- a/calculon.opam +++ b/calculon.opam @@ -1,6 +1,6 @@ opam-version: "2.0" name: "calculon" -version: "0.4" +version: "0.5" synopsis: "Library for writing IRC bots in OCaml and a collection of plugins" authors: ["Armael" "Enjolras" "c-cube"] maintainer: "c-cube" @@ -10,7 +10,7 @@ build: [ [ "dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ - "dune" {build} + "dune" { >= "1.1" } "base-bytes" "base-unix" "result" @@ -26,7 +26,6 @@ depends: [ "iter" "odoc" {with-doc} "ocaml" { >= "4.03.0" } - "mdx" {with-test} ] tags: [ "irc" "bot" "factoids" ] homepage: "https://github.com/c-cube/calculon" diff --git a/dune b/dune index 3d828e6..a3446ba 100644 --- a/dune +++ b/dune @@ -2,10 +2,3 @@ (env (dev (flags (:standard -warn-error -a)))) - -(alias - (name runtest) - (deps README.md) - (action (progn - (run ocaml-mdx test %{deps}) - (diff? %{deps} %{deps}.corrected)))) diff --git a/src/core/Core.mli b/src/core/Core.mli index aab70c4..e72f335 100644 --- a/src/core/Core.mli +++ b/src/core/Core.mli @@ -45,16 +45,16 @@ module type S = sig val log : string -> unit Lwt.t (** Log a message (see field [irc_log] of {!Config.config}), typically for debugging purpose. - @since NEXT_RELEASE *) + @since 0.5 *) val logf : ('a, Format.formatter, unit, unit Lwt.t) format4 -> 'a (** Pretty logger (calling {!log} to print the formatted message). Example: [logf "answer to %s is %d" "life" 42] - @since NEXT_RELEASE *) + @since 0.5 *) val set_log : (string -> unit Lwt.t) -> unit (** Set logger (default is the empty logger) that will be used by {!log} - @since NEXT_RELEASE *) + @since 0.5 *) val send_exit : unit -> unit (** trigger the {!exit} signal (only at the end!) *)