Skip to content

Commit 3db5c1c

Browse files
committed
chore: license project with MIT License
1 parent e71fc30 commit 3db5c1c

File tree

7 files changed

+43
-1
lines changed

7 files changed

+43
-1
lines changed

LICENSE

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

Makefile

+13-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ clean:
2525
> rm -rf .out
2626
.PHONY: clean
2727

28-
lint:
28+
lint: ensure-licensed
2929
> deno lint
3030
.PHONY: lint
3131

@@ -41,3 +41,15 @@ test:
4141
> deno test
4242
.PHONY: test
4343

44+
ensure-licensed:
45+
> UNLICENSED="$$(\
46+
find . -name '*.ts' -exec \
47+
grep -FL '// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.' {} + \
48+
|| test $$? -eq 1 \
49+
)"
50+
> if [[ $$UNLICENSED != "" ]]; then
51+
> echo -e "Error: Not all modules contain the copyright header:\n$$UNLICENSED" 2>&1
52+
> exit 1
53+
> fi
54+
.PHONY: ensure-licensed
55+
.SILENT: ensure-licensed

_test_utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.
2+
13
import { assert, assertEquals } from "./dev_deps.ts";
24
import { JSON_SEQ_END, JSON_SEQ_START } from "./mod.ts";
35

_test_utils_test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.
2+
13
import { assertEquals } from "./dev_deps.ts";
24
import { chunkify, enlargen } from "./_test_utils.ts";
35

dev_deps.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.
12
export {
23
assert,
34
assertEquals,

mod.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.
2+
13
/* This module implements the text format, described in [RFC 7464], to
24
* represent streams of individual JSON objects (application/json-seq). See
35
* [format_notes.md](format_notes.md)

mod_test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2021 Hal Blackburn. All rights reserved. MIT license.
2+
13
import { assert, assertEquals } from "./dev_deps.ts";
24
import {
35
_jsonSeqDelimiterTransformer,

0 commit comments

Comments
 (0)