Skip to content

Commit aa4dd8e

Browse files
committed
1.1.1
1 parent 2b7762f commit aa4dd8e

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

CHANGELOG.md

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

4+
## 1.1.1 - *9/23/2017*
5+
6+
- Changed text from `set is using` to `json formatter` in `jsonlite_info()`.
7+
- Changed text from `data directory path` to `data directory` in `jsonlite_info()`.
8+
- Show a notice when calling `jsonlite_info()` if using the slowest json formatter `python -m json.tool`.
9+
410
## 1.1.0 - *2/12/2017*
511

612
- Fixed a bug where providing invalid json to `set` would write an empty file with a uuid filename to the data directory. Now providing invalid json to `set` errors with no file written to the data directory.
@@ -67,7 +73,7 @@ cat foobar.json | jsonlite set
6773

6874
## 0.6.0 - *9/26/2015* (thanks [josegonzalez](https://github.com/josegonzalez))
6975

70-
- You can now define where the data directory path is using the `JSONLITE_PATH` environment variable. It defaults to the existing path, `$PWD/jsonlite.data`.
76+
- You can now define where the data directory is using the `JSONLITE_PATH` environment variable. It defaults to the existing path, `$PWD/jsonlite.data`.
7177

7278
- JSONlite has been transformed such that it can be used as a library. To do so, simply source in all the methods at the top of your script.
7379

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You may optionally set the path to the data directory. It defaults to `$PWD/json
2828
# default
2929
export JSONLITE_DATA_DIR="$PWD"/jsonlite.data
3030
31-
# manually set the data directory path
31+
# manually set the data directory
3232
export JSONLITE_DATA_DIR=/tmp/jsonlite.data
3333
````
3434

@@ -124,7 +124,7 @@ Usage: jsonlite command <command-specific-options>
124124
125125
````
126126
➜ jsonlite version
127-
1.1.0
127+
1.1.1
128128
````
129129

130130
### default
@@ -133,9 +133,9 @@ Usage: jsonlite command <command-specific-options>
133133
134134
```
135135
➜ jsonlite
136-
JSONlite 1.1.0
137-
set is using: json_reformat (fastest)
138-
data directory path: /tmp/jsonlite.data
136+
JSONlite 1.1.1
137+
json formatter: json_reformat (fastest)
138+
data directory: /tmp/jsonlite.data
139139
140140
Usage: jsonlite command <command-specific-options>
141141

jsonlite.bash

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

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

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

2424
jsonlite_version() {
@@ -29,14 +29,16 @@ jsonlite_info() {
2929
jsonlite_version
3030

3131
if command -v json_reformat > /dev/null 2>&1; then
32-
echo " set is using: json_reformat (fastest)"
32+
echo " json formatter: json_reformat (fastest)"
3333
elif command -v jq > /dev/null 2>&1; then
34-
echo " set is using: jq (fast)"
34+
echo " json formatter: jq (fast)"
3535
else
36-
echo " set is using: python -m json.tool (slowest)"
36+
echo " [notice] install jq or json_reformat for improved write performance"
37+
echo
38+
echo " json formatter: python -m json.tool (slowest)"
3739
fi
3840

39-
echo " data directory path: $JSONLITE_DATA_DIR"
41+
echo " data directory: $JSONLITE_DATA_DIR"
4042
echo
4143
}
4244

0 commit comments

Comments
 (0)