Skip to content

Commit

Permalink
Merge pull request #177 from Leonidas-from-XIV/five
Browse files Browse the repository at this point in the history
Rename Yojson-json5 to Yojson-five to not repeat JSON all the time
  • Loading branch information
Leonidas-from-XIV authored May 31, 2024
2 parents 768ee8f + 6f5d3b3 commit 876abc7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
21 changes: 10 additions & 11 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ yojson package.")
(alcotest (and :with-test (>= 0.8.5)))
(seq (>= 0.2.2))))

(package
(name yojson-five)
(synopsis "Yojson-five is a parsing and printing library for the JSON5 format")
(description "Yojson-five is a parsing and printing library for the JSON5 format.
It supports parsing JSON5 to Yojson.Basic.t and Yojson.Safe.t types.")
(depends
(ocaml (>= 4.08))
(sedlex (>= 2.5))
(alcotest (and :with-test (>= 0.8.5)))))

(package
(name yojson-bench)
(synopsis "Run Yojson benchmarks")
Expand All @@ -34,14 +44,3 @@ meant for developers that are worried about performance changes in Yojson.")
(core (>= v0.14.0))
(core_unix (>= v0.14.0))
(sexplib (>= v0.9.0))))

(package
(name yojson-json5)
(synopsis "Yojson_json5 is a parsing and printing library for the JSON5 format")
(description "Yojson_json5 is a parsing and printing library for the JSON5 format.
It supports parsing JSON5 to Yojson.Basic.t and Yojson.Safe.t types.")
(depends
(ocaml (>= 4.08))
(sedlex (>= 2.5))
(alcotest (and :with-test (>= 0.8.5)))))

4 changes: 2 additions & 2 deletions lib/json5/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name yojson_json5)
(public_name yojson-json5)
(name yojson_five)
(public_name yojson-five)
(libraries yojson sedlex)
(preprocess
(pps sedlex.ppx)))
4 changes: 2 additions & 2 deletions test_json5/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(test
(name test)
(package yojson-json5)
(libraries alcotest yojson_json5))
(package yojson-five)
(libraries alcotest yojson_five))
2 changes: 1 addition & 1 deletion test_json5/test.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module M = Yojson_json5.Safe
module M = Yojson_five.Safe

let yojson = Alcotest.testable M.pp M.equal

Expand Down
4 changes: 2 additions & 2 deletions yojson-json5.opam → yojson-five.opam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Yojson_json5 is a parsing and printing library for the JSON5 format"
"Yojson-five is a parsing and printing library for the JSON5 format"
description: """
Yojson_json5 is a parsing and printing library for the JSON5 format.
Yojson-five is a parsing and printing library for the JSON5 format.
It supports parsing JSON5 to Yojson.Basic.t and Yojson.Safe.t types."""
maintainer: [
"paul-elliot@tarides.com" "nathan@tarides.com" "marek@tarides.com"
Expand Down

0 comments on commit 876abc7

Please sign in to comment.