From 619133a98431470d3f94d50aea10851b0bf78b5e Mon Sep 17 00:00:00 2001 From: Bertrand Bonnefoy-Claudet Date: Fri, 24 Feb 2023 11:31:09 +0100 Subject: [PATCH 1/2] Fix license name in Opam file --- mock-ounit.opam | 2 +- mock.opam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mock-ounit.opam b/mock-ounit.opam index 9f869b6..7ad7436 100644 --- a/mock-ounit.opam +++ b/mock-ounit.opam @@ -3,7 +3,7 @@ maintainer: ["Cryptosense "] authors: ["Cryptosense "] homepage: "https://github.com/cryptosense/ocaml-mock" bug-reports: "https://github.com/cryptosense/ocaml-mock/issues" -license: "BSD-2" +license: "BSD-2-Clause" dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git" doc: "https://cryptosense.github.io/ocaml-mock/doc" build: [ diff --git a/mock.opam b/mock.opam index 2759cec..e3e46af 100644 --- a/mock.opam +++ b/mock.opam @@ -3,7 +3,7 @@ maintainer: ["Cryptosense "] authors: ["Cryptosense "] homepage: "https://github.com/cryptosense/ocaml-mock" bug-reports: "https://github.com/cryptosense/ocaml-mock/issues" -license: "BSD-2" +license: "BSD-2-Clause" dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git" doc: "https://cryptosense.github.io/ocaml-mock/doc" build: [ From d058e0fa907fa7eac252d3f4fdcff205f1bb9853 Mon Sep 17 00:00:00 2001 From: Bertrand Bonnefoy-Claudet Date: Fri, 24 Feb 2023 11:37:42 +0100 Subject: [PATCH 2/2] Prepare release 1.0.0 --- CHANGES.md | 22 ++++++++++++++++------ README.md | 10 ++++++++-- mock-ounit.opam | 2 +- tests/dune | 2 +- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f4b9a1e..0d09178 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,11 +1,21 @@ -# Change Log +# Changelog -## 0.1.1 +All notable changes to this project will be documented in this file. -* Use Dune instead of jbuilder. -* Upgrade to Opam 2.0. -* Run tests in CI. +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this +project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 0.1.0 +## 1.0.0 - 2023-02-24 + +- Fix dependency on OUnit: `oUnit` -> `ounit2`. +- Require OCaml >= 4.07. + +## 0.1.1 - 2020-02-07 + +- Use Dune instead of jbuilder. +- Upgrade to Opam 2.0. +- Run tests in CI. + +## 0.1.0 - 2018-03-16 Initial release. diff --git a/README.md b/README.md index a113e43..030d5fd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Mock - configurable functions to test impure code -[![Build Status](https://travis-ci.org/cryptosense/ocaml-mock.svg?branch=master)](https://travis-ci.org/cryptosense/ocaml-mock) [![docs](https://img.shields.io/badge/doc-online-blue.svg)](https://cryptosense.github.io/ocaml-mock/doc/) + +[![Build Status][build_status_badge]][build_status_link] +[![Documentation][doc_badge]][doc_link] This package provides "mocks", fake functions that can be configured to return values or raise exceptions. It is possible to inspect their arguments after @@ -10,6 +12,10 @@ it makes it possible to have pleasant output like this in your tests: > expected f to be called once, but it was called 3 times -A wrapper for `OUnit2` is available as `mock-ounit`. +A wrapper for OUnit is available as `mock-ounit`. +[build_status_badge]: https://github.com/cryptosense/ocaml-mock/actions/workflows/main.yml/badge.svg +[build_status_link]: https://github.com/cryptosense/ocaml-mock/actions/workflows/main.yml +[doc_badge]: https://img.shields.io/badge/doc-online-blue.svg +[doc_link]: https://cryptosense.github.io/ocaml-mock/doc/ [unittest.mock]: https://docs.python.org/3/library/unittest.mock.html diff --git a/mock-ounit.opam b/mock-ounit.opam index 7ad7436..394f1b0 100644 --- a/mock-ounit.opam +++ b/mock-ounit.opam @@ -16,7 +16,7 @@ depends: [ "dune" "mock" "ocaml" {>= "4.07.0"} - "ounit" + "ounit2" "ppx_deriving" {with-test} ] synopsis: "OUnit wrapper for OCaml mock" diff --git a/tests/dune b/tests/dune index c5bd941..dc9f27b 100644 --- a/tests/dune +++ b/tests/dune @@ -1,7 +1,7 @@ (test (name test_suite) (libraries - oUnit + ounit2 mock mock-ounit )