Skip to content

Commit 016efa2

Browse files
committed
1.1.4 release. see CHANGELOG.md
1 parent ac890c5 commit 016efa2

File tree

7 files changed

+30
-44
lines changed

7 files changed

+30
-44
lines changed

.editorconfig

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

.travis.yml

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

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
## 1.1.4 - *4/30/2022*
5+
6+
- Documentation cleanup.
7+
- Bump copyrights to 2022.
8+
- Removed miscellaneous unnecessary files.
9+
- Cleanup of Makefile.
10+
411
## 1.1.3 - *1/26/2021*
512

613
- Documentation cleanup.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021 Justin Keller
189+
Copyright 2022 Justin Keller
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ ifeq ($(shell shellcheck > /dev/null 2>&1 ; echo $$?),127)
33
ifeq ($(shell uname),Darwin)
44
brew install shellcheck
55
else
6-
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
76
sudo apt-get update -qq && sudo apt-get install -qq -y shellcheck
87
endif
98
endif
@@ -20,13 +19,13 @@ endif
2019

2120
ci-dependencies: shellcheck bats
2221

22+
setup:
23+
$(MAKE) ci-dependencies
24+
2325
lint:
2426
@$(QUIET) find ./ -maxdepth 1 -not -path '*/\.*' | xargs file | egrep "shell|bash" | awk '{ print $$1 }' | sed 's/://g' | xargs shellcheck
2527

2628
stresstest:
2729
bash tests/set_get_delete_500.bash
2830

29-
setup:
30-
$(MAKE) ci-dependencies
31-
3231
test: setup lint stresstest

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ JSONlite sandboxes the current working directory similar to SQLite. The JSONlite
1515

1616
## Installation
1717

18-
````
18+
````shell
1919
git clone https://github.com/nodesocket/jsonlite.git
2020
ln -s "$PWD"/jsonlite/jsonlite.bash /usr/local/bin/jsonlite
2121
````
@@ -24,7 +24,7 @@ ln -s "$PWD"/jsonlite/jsonlite.bash /usr/local/bin/jsonlite
2424

2525
You may optionally set the path to the data directory. It defaults to `$PWD/jsonlite.data` but can manually be set with the `JSONLITE_DATA_DIR` environment variable.
2626

27-
````
27+
````shell
2828
# default
2929
export JSONLITE_DATA_DIR="$PWD"/jsonlite.data
3030

@@ -38,27 +38,27 @@ export JSONLITE_DATA_DIR=/tmp/jsonlite.data
3838

3939
> set \<json\> - Writes a json document and returns the document id
4040
41-
````
41+
````shell
4242
➜ jsonlite set '{"name":"John Doe","active":true,"permissions":{"read":true,"write":false}}'
4343
666B81D6-3F8A-4D57-BA3F-11FA8FC47246
4444
````
4545

4646
`set` also supports piping into it:
4747

48-
````
48+
````shell
4949
echo '{"key":"value"}' | jsonlite set
5050
4472B861-4C10-4C0A-A63B-E5D45AA679C0
5151
````
52-
````
53-
cat file.json | jsonlite set
52+
````shell
53+
jsonlite set < file.json
5454
9DF4DC1F-121E-46DC-B580-E1663B645AED
5555
````
5656

5757
### get
5858

5959
> get \<document-id\> - Retrieves a json document by document id
6060
61-
````
61+
````shell
6262
➜ jsonlite get 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
6363
{
6464
"active": true,
@@ -74,7 +74,7 @@ cat file.json | jsonlite set
7474

7575
> count - Total number of json documents in the database
7676
77-
````
77+
````shell
7878
➜ jsonlite count
7979
293
8080
````
@@ -83,28 +83,28 @@ cat file.json | jsonlite set
8383

8484
> delete \<document-id\> - Deletes a json document by document id
8585
86-
````
86+
````shell
8787
➜ jsonlite delete 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
8888
````
8989

9090
### drop
9191

9292
> drop (--force) - Drops the database
9393
94-
````
94+
````shell
9595
➜ jsonlite drop
9696
Drop database '/tmp/jsonlite.data'? [Y/n] Y
9797
````
9898

99-
````
99+
````shell
100100
➜ jsonlite drop --force
101101
````
102102

103103
### help
104104

105105
> help - Displays help
106106
107-
````
107+
````shell
108108
➜ jsonlite help
109109
Usage: jsonlite command <command-specific-options>
110110

@@ -122,18 +122,18 @@ Usage: jsonlite command <command-specific-options>
122122

123123
> version - Displays the current version
124124
125-
````
125+
````shell
126126
➜ jsonlite version
127-
1.1.3
127+
1.1.4
128128
````
129129

130130
### default
131131

132132
> default - Displays the current version, configuration, and help
133133
134-
```
134+
```shell
135135
➜ jsonlite
136-
JSONlite 1.1.3
136+
JSONlite 1.1.4
137137
json formatter: json_reformat (fastest)
138138
data directory: /tmp/jsonlite.data
139139

@@ -175,7 +175,7 @@ For more information on semantic versioning, visit http://semver.org/.
175175

176176
## License & Legal
177177

178-
Copyright 2021 Justin Keller
178+
Copyright 2022 Justin Keller
179179

180180
Licensed under the Apache License, Version 2.0 (the "License");
181181
you may not use this file except in compliance with the License.

jsonlite.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
###############################################################################
4-
# Copyright 2021 Justin Keller
4+
# Copyright 2022 Justin Keller
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
set -eo pipefail; [[ $TRACE ]] && set -x
2020

21-
readonly VERSION="1.1.3"
21+
readonly VERSION="1.1.4"
2222
export JSONLITE_DATA_DIR=${JSONLITE_DATA_DIR:="$PWD/jsonlite.data"}
2323

2424
jsonlite_version() {

0 commit comments

Comments
 (0)