Skip to content

Commit

Permalink
prepare for 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Nov 11, 2019
1 parent 7fb12d2 commit b90ae03
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 24 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

7 changes: 4 additions & 3 deletions calculon-redis-lib.opam
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions calculon-redis.opam
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" ]
Expand Down
6 changes: 3 additions & 3 deletions calculon-web.opam
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down
5 changes: 2 additions & 3 deletions calculon.opam
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -10,7 +10,7 @@ build: [
[ "dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"dune" {build}
"dune" { >= "1.1" }
"base-bytes"
"base-unix"
"result"
Expand All @@ -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"
Expand Down
7 changes: 0 additions & 7 deletions dune
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
6 changes: 3 additions & 3 deletions src/core/Core.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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!) *)
Expand Down

0 comments on commit b90ae03

Please sign in to comment.