修订版 | 188a79c5f8bae1a1ce5fc48760f515f052b2aa47 (tree) |
---|---|
时间 | 2023-04-02 03:26:02 |
作者 | dyknon <dyknon@user...> |
Commiter | dyknon |
add README and copyright related text.
@@ -0,0 +1,21 @@ | ||
1 | += Text::Hjson | |
2 | + | |
3 | +== About | |
4 | + | |
5 | +It is Hjson <https://hjson.github.io/> parser written in perl. | |
6 | + | |
7 | +== Usage | |
8 | + | |
9 | +my $result = Text::Hjson->decode($hjson); | |
10 | + | |
11 | +$hjson here should be a decoded utf8 string. | |
12 | + | |
13 | +== Copyright | |
14 | + | |
15 | +Test cases in t/hjson_official.t is distributed under MIT lisence. | |
16 | +Copyright notices and licenses can be found in the file itself. | |
17 | + | |
18 | +Other portions of this packages are written by dyknon in 2023. | |
19 | +they are associated to CC0 1.0 | |
20 | +<https://creativecommons.org/publicdomain/zero/1.0/>. | |
21 | +Copyright is waived. |
@@ -7,6 +7,30 @@ use Test2::V0; | ||
7 | 7 | use Text::Hjson; |
8 | 8 | use JSON; |
9 | 9 | |
10 | +# copyright of test cases in @tests: | |
11 | +# | |
12 | +# The MIT License (MIT) | |
13 | +# | |
14 | +# Copyright (c) 2014, 2015 Christian Zangl | |
15 | +# | |
16 | +# Permission is hereby granted, free of charge, to any person obtaining a copy | |
17 | +# of this software and associated documentation files (the "Software"), to deal | |
18 | +# in the Software without restriction, including without limitation the rights | |
19 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
20 | +# copies of the Software, and to permit persons to whom the Software is | |
21 | +# furnished to do so, subject to the following conditions: | |
22 | +# | |
23 | +# The above copyright notice and this permission notice shall be included in all | |
24 | +# copies or substantial portions of the Software. | |
25 | +# | |
26 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
27 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
28 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
29 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
30 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
31 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
32 | +# SOFTWARE. | |
33 | + | |
10 | 34 | my @tests = ( |
11 | 35 | { |
12 | 36 | name => "charset2", |