Skip to content

Commit 198bd00

Browse files
committed
0.4.2. See CHANGELOG.md
1 parent 5e15f64 commit 198bd00

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

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

4+
## 0.4.2 - *9/22/2015*
5+
6+
- Changed the regular expression in function `is_valid_uuid` to `^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$`.
7+
8+
- Changed test from 1,000 to 500 iterations.
9+
410
## 0.4.1 - *9/22/2015*
511

612
- Support distros where `uuidgen` is lowercase by forcing uppercase. `awk '{print toupper($0)}'` Thanks [cbgbt](https://github.com/cbgbt).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Are you sure you want to drop '/jsonlite.data' (y/n)? y
7272
7373
````
7474
➜ jsonlite version
75-
0.4.1
75+
0.4.2
7676
````
7777

7878
## Changelog

jsonlite.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
set -e
44

5-
VERSION="0.4.1"
5+
VERSION="0.4.2"
66
COMMAND=$1
77
CWD=$(pwd);
88

99
function is_valid_uuid {
10-
if [[ $1 =~ [A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$ ]]; then
10+
if [[ $1 =~ ^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$ ]]; then
1111
echo true
1212
fi
1313

tests/set_get_delete_1k.sh renamed to tests/set_get_delete_500.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/bash
22

33
set -e
4+
45
THIS=$(which jsonlite);
6+
ITERATIONS=500
57

6-
for i in $(seq 1 1000); do
8+
for i in $(seq 1 $ITERATIONS); do
79
ID=$($THIS set '{"name":"John Doe","active":true,"permissions":{"read":true,"write":false}}')
810
$THIS get "$ID"
911
$THIS delete "$ID"

0 commit comments

Comments
 (0)