Skip to content

Commit 927a577

Browse files
committed
Clean up for re-booting
1 parent b757a9f commit 927a577

File tree

10 files changed

+348
-892
lines changed

10 files changed

+348
-892
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ pom.xml.asc
1111
.lein-failures
1212
.lein-plugins
1313
.lein-repl-history
14+
.clj-kondo
15+
.lsp
16+
.nrepl-port

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright 2022 Jinseop Kim<[email protected]>
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,44 @@
11
# clj-toml
22

3-
clj-toml is [TOML](https://github.com/mojombo/toml) for Clojure. TOML is Tom's Obvious, Minimal Language.
3+
clj-toml is [TOML](https://github.com/vmfhrmfoaj/clj-toml) for Clojure. TOML is Tom's Obvious, Minimal Language.
44

55
> TOML is like INI, only better (Tom Preston-Werner)
66
7-
clj-toml uses [Instaparse](https://github.com/Engelberg/instaparse) for parsing. Instaparse does all the heavy lifting, we're just sitting pretty.
8-
9-
clj-toml comes with a decent [collection of tests](https://github.com/lantiga/clj-toml/blob/master/test/clj_toml/core_test.clj). It successfully parses the TOML [hard example](https://github.com/mojombo/toml/blob/master/tests/hard_example.toml). Easy peasy.
10-
11-
Supported TOML version: [v0.4.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md)
7+
clj-toml uses [Instaparse](https://github.com/Engelberg/instaparse) for parsing.
8+
Instaparse does all the heavy lifting, we're just sitting pretty.
9+
Currently clj-toml support TOML [v1.0.0](https://toml.io/en/v1.0.0).
1210

1311
## Usage
1412

15-
Work is underway towards a TOML 0.4.0-compliant release. Use the 0.3.1 release (TOML 0.1.0-compliant) in the meantime:
16-
17-
Leiningen:
13+
Work is underway towards a TOML 0.4.0-compliant release. Use the 0.3.1 release (TOML 0.1.0-compliant) in the meantime:
1814

15+
Leiningen:
1916
```clojure
20-
[clj-toml "0.3.1"]
17+
[clj-toml "1.0.0"]
2118
```
2219

23-
Test:
24-
20+
Test:
2521
```clojure
2622
lein test
2723
```
2824

29-
Use:
30-
25+
Use:
3126
```clojure
3227
(use 'clj-toml.core)
3328

34-
(parse-string "
29+
(parse-toml "
3530
title = \"TOML\"
3631
[Foo]
3732
bar=[1,2,3]")
3833
;; {"title" "TOML" "foo" {"bar" [1 2 3]}}
39-
```
40-
41-
## TODO
4234

43-
The parser is pretty solid (thanks to Instaparse) and complete.
44-
45-
In a way it implements a superset of TOML, since it successfully parses
46-
47-
* non-homogeneous arrays
48-
* TOML with duplicate keys
49-
50-
As the TOML specification stabilizes, we'll raise errors according to specification.
35+
(meta (parse-toml "
36+
title = \"TOML\"
37+
[Foo]
38+
bar=[1,2,3]"))
39+
;; {...}
40+
```
5141

5242
## License
5343

54-
Copyright © 2013-2015 Luca Antiga.
55-
56-
Distributed under the Eclipse Public License, the same as Clojure.
44+
Copyright © 2022 Jinseop Kim.

doc/intro.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

project.clj

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1-
(defproject clj-toml "0.4.0"
1+
(defproject clj-toml "1.0.0"
22
:description "TOML for Clojure"
3-
:url "https://github.com/lantiga/toml"
4-
:author "Luca Antiga"
5-
:license {:name "Eclipse Public License"
6-
:url "http://www.eclipse.org/legal/epl-v10.html"}
7-
:dependencies [[org.clojure/clojure "1.8.0"]
8-
[instaparse "1.4.8"]
9-
[clojure.java-time "0.3.1"]])
3+
:url "https://github.com/vmfhrmfoaj/clj-toml"
4+
:author "Jinseop Kim"
5+
:license {:name "The MIT License"
6+
:url "https://opensource.org/licenses/MIT"}
7+
8+
:source-paths ["src"]
9+
10+
:dependencies [[org.clojure/clojure "1.10.3"]
11+
[instaparse "1.4.10"]]
12+
13+
:profiles
14+
{:uberjar {:aot :all
15+
:native-image {:opts ["-Dclojure.compiler.direct-linking=true"]}}
16+
:dev {:source-paths ["test" "tool"]
17+
:dependencies [[org.clojure/data.xml "0.0.8"]
18+
[org.clojure/tools.deps.alpha "0.12.1109"]]
19+
;; You can manually install a package that can handle the following options:
20+
;; - https://gitlab.com/vmfhrmfoaj/my-lein-utils
21+
:auto-refresh ^:replace {:on-reload "dev.tool/on-reload"
22+
:notify-command ["notify-send" "--hint" "int:transient:1" "Reload"]
23+
:verbose false}
24+
:test-refresh ^:replace {:changes-only true
25+
:timeout-in-sec 5
26+
:notify-command ["notify-send" "--hint" "int:transient:1" "Test"]}}})

0 commit comments

Comments
 (0)