Skip to content

Commit a78c489

Browse files
committed
prepare for 0.12
1 parent ad92acb commit a78c489

File tree

8 files changed

+27
-10
lines changed

8 files changed

+27
-10
lines changed

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.12
2+
3+
- add dep on `seq`
4+
- add a `Html` module with combinators to produce html
5+
- add `Tiny_httpd_dir.VFS` to emulate file systems
6+
- add a small program, `tiny-httpd-vfs-pack`, to pack directories and files
7+
(local or behind a URL) into a OCaml module using `VFS`
8+
- show small example of socket activation
19

210
## 0.11
311

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ watch:
1818
@dune build @all -w
1919

2020
.PHONY: benchs tests build watch
21+
22+
VERSION=$(shell awk '/^version:/ {print $$2}' tiny_httpd.opam)
23+
24+
update_next_tag:
25+
@echo "update version to $(VERSION)..."
26+
sed --follow-symlinks -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
27+
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
28+
sed --follow-symlinks -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
29+
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)

src/Tiny_httpd_buf.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
These buffers are used to avoid allocating too many byte arrays when
55
processing streams and parsing requests.
66
7-
@since NEXT_RELEASE
7+
@since 0.12
88
*)
99

1010
type t

src/Tiny_httpd_dir.mli

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ val config :
6868
unit ->
6969
config
7070
(** Build a config from {!default_config}.
71-
@since NEXT_RELEASE *)
71+
@since 0.12 *)
7272

7373
(** [add_dirpath ~config ~dir ~prefix server] adds route handle to the
7474
[server] to serve static files in [dir] when url starts with [prefix],
@@ -83,7 +83,7 @@ val add_dir_path :
8383
8484
This is used to emulate a file system from pure OCaml functions and data,
8585
e.g. for resources bundled inside the web server.
86-
@since NEXT_RELEASE
86+
@since 0.12
8787
*)
8888
module type VFS = sig
8989
val descr : string
@@ -118,7 +118,7 @@ end
118118
val vfs_of_dir : string -> (module VFS)
119119
(** [vfs_of_dir dir] makes a virtual file system that reads from the
120120
disk.
121-
@since NEXT_RELEASE
121+
@since 0.12
122122
*)
123123

124124
val add_vfs :
@@ -127,14 +127,14 @@ val add_vfs :
127127
prefix:string ->
128128
Tiny_httpd_server.t -> unit
129129
(** Similar to {!add_dir_path} but using a virtual file system instead.
130-
@since NEXT_RELEASE
130+
@since 0.12
131131
*)
132132

133133
(** An embedded file system, as a list of files with (relative) paths.
134134
This is useful in combination with the "tiny-httpd-mkfs" tool,
135135
which embeds the files it's given into a OCaml module.
136136
137-
@since NEXT_RELEASE
137+
@since 0.12
138138
*)
139139
module Embedded_fs : sig
140140
type t

src/Tiny_httpd_html.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This module provides combinators to produce html. It doesn't enforce
55
the well-formedness of the html, unlike Tyxml, but it's simple and should
66
be reasonably efficient.
7-
@since NEXT_RELEASE
7+
@since 0.12
88
*)
99

1010
(** @inline *)

src/gen/gentags.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ let prelude = {|
283283
This output type is used to produce a string reasonably efficiently from
284284
a tree of combinators.
285285
286-
@since NEXT_RELEASE
286+
@since 0.12
287287
@open *)
288288
module Out : sig
289289
type t

tiny_httpd.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "0.11"
2+
version: "0.12"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"

tiny_httpd_camlzip.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "0.11"
2+
version: "0.12"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"

0 commit comments

Comments
 (0)