Skip to content

Commit f20e920

Browse files
committed
prepare for 0.6; update tests; add license file; require dune 2
1 parent e11e408 commit f20e920

File tree

8 files changed

+31
-16
lines changed

8 files changed

+31
-16
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
- run: opam pin -n .
2929
- run: opam depext -yt printbox printbox-html printbox-text
3030
- run: opam install -t . --deps-only
31-
- run: opam exec -- dune build
31+
- run: opam exec -- dune build @all
3232
- run: opam exec -- dune runtest
3333
if: ${{ matrix.os == 'ubuntu-latest'}}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changes
22

3+
## 0.6
4+
5+
- move text rendering into a new printbox-text library
6+
- Changing visuals for hlines and vlines connections, and tree structure
7+
using unicode characters for box borders
8+
39
## 0.5
410

511
- reenable mdx for tests

dune

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

2-
(alias
3-
(name runtest)
2+
(rule
3+
(alias runtest)
44
(deps README.md)
5+
(package printbox-text)
56
(action (progn
67
(run ocaml-mdx test %{deps})
78
(diff? %{deps} %{deps}.corrected))))

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(lang dune 1.1)
1+
(lang dune 2.0)
22
(name printbox)

printbox-html.opam

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
opam-version: "2.0"
22
authors: ["Simon Cruanes" "Guillaume Bury"]
33
maintainer: "simon.cruanes.2007@m4x.org"
4-
version: "0.5"
4+
version: "0.6"
55
synopsis: "Printbox unicode handling"
66
description: """
77
Adds html output handling to the printbox package.
@@ -13,9 +13,12 @@ build: [
1313
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
1414
]
1515
depends: [
16+
"dune" { >= "2.0" }
17+
"odoc" {with-doc}
1618
"printbox" {= version}
1719
"tyxml"
1820
]
21+
license: "BSD-2-Clause"
1922
tags: [ "print" "box" "table" "tree" ]
2023
homepage: "https://github.com/c-cube/printbox/"
2124
dev-repo: "git+https://github.com/c-cube/printbox.git"

printbox-text.opam

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
opam-version: "2.0"
22
authors: ["Simon Cruanes" "Guillaume Bury"]
33
maintainer: "simon.cruanes.2007@m4x.org"
4-
version: "0.5"
4+
version: "0.6"
55
synopsis: "Text renderer for printbox, using unicode edges"
66
build: [
77
["dune" "build" "@install" "-p" name "-j" jobs]
88
["dune" "runtest" "-p" name "-j" jobs] {with-test}
99
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
1010
]
1111
depends: [
12-
"dune" { >= "1.1" }
12+
"dune" { >= "2.0" }
1313
"base-bytes"
1414
"odoc" {with-doc}
1515
"ocaml" { >= "4.03" }
1616
"printbox" { = version }
17-
"uutf"
18-
"uucp"
17+
"uutf" { >= "1.0" }
18+
"uucp" { >= "1.0" }
1919
"mdx" {with-test & >= "1.4" }
2020
]
21+
license: "BSD-2-Clause"
2122
tags: [ "print" "box" "table" "tree" ]
2223
homepage: "https://github.com/c-cube/printbox/"
2324
dev-repo: "git+https://github.com/c-cube/printbox.git"

printbox.opam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
opam-version: "2.0"
22
authors: ["Simon Cruanes" "Guillaume Bury"]
33
maintainer: "simon.cruanes.2007@m4x.org"
4-
version: "0.5"
4+
version: "0.6"
55
synopsis: "Allows to print nested boxes, lists, arrays, tables in several formats"
66
build: [
77
["dune" "build" "@install" "-p" name "-j" jobs]
88
["dune" "runtest" "-p" name "-j" jobs] {with-test}
99
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
1010
]
1111
depends: [
12-
"dune" { >= "1.1" }
12+
"dune" { >= "2.0" }
1313
"base-bytes"
1414
"odoc" {with-doc}
1515
"ocaml" { >= "4.03" }
1616
"uutf"
1717
"uucp"
18-
"mdx" {with-test & >= "1.4" }
1918
]
19+
license: "BSD-2-Clause"
2020
tags: [ "print" "box" "table" "tree" ]
2121
homepage: "https://github.com/c-cube/printbox/"
2222
dev-repo: "git+https://github.com/c-cube/printbox.git"

test/dune

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@
55

66
(rule
77
(targets test1.output)
8+
(package printbox-text)
89
(action (with-stdout-to %{targets} (run ./test1.exe))))
910

10-
(alias
11-
(name runtest)
11+
(rule
12+
(alias runtest)
13+
(package printbox-text)
1214
(action (diff test1.expected test1.output)))
1315

1416
(rule
1517
(targets test_ann_0_3.output)
18+
(package printbox-text)
1619
(action (with-stdout-to %{targets} (run ./test_ann_0_3.exe))))
1720

18-
(alias
19-
(name runtest)
21+
(rule
22+
(alias runtest)
23+
(package printbox-text)
2024
(action (diff test_ann_0_3.expected test_ann_0_3.output)))

0 commit comments

Comments
 (0)