8000 Set version to 6.3.0-beta · java64/ArduinoJson@2ec9569 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ec9569

Browse files
committed
Set version to 6.3.0-beta
1 parent 58303d0 commit 2ec9569

File tree

6 files changed

+51
-34
lines changed

6 files changed

+51
-34
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ArduinoJson: change log
22
=======================
33

4-
HEAD
5-
----
4+
v6.3.0-beta (2018-08-31)
5+
-----------
66

77
* Implemented reference semantics for `JsonVariant`
88
* Replace `JsonPair`'s `key` and `value` with `key()` and `value()`

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/bblanchon/ArduinoJson.git"
99
},
10-
"version": "6.2.3-beta",
10+
"version": "6.3.0-beta",
1111
"authors": {
1212
"name": "Benoit Blanchon",
1313
"url": "https://blog.benoitblanchon.fr"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoJson
2-
version=6.2.3-beta
2+
version=6.3.0-beta
33
author=Benoit Blanchon <blog.benoitblanchon.fr>
44
maintainer=Benoit Blanchon <blog.benoitblanchon.fr>
55
sentence=An efficient and elegant JSON library for Arduino.

scripts/publish.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
3+
set -eux
4+
5+
cd "$(dirname "$0")/.."
6+
7+
VERSION="$1"
8+
DATE=$(date +%F)
9+
TAG="v$VERSION"
10+
11+
update_version_in_source () {
12+
IFS=".-" read MAJOR MINOR REVISION EXTRA < <(echo "$VERSION")
13+
UNDERLINE=$(printf -- '-%.0s' $(seq 1 ${#TAG}))
14+
15+
sed -i~ -bE "4s/HEAD/$TAG ($DATE)/; 5s/-+/$UNDERLINE/" CHANGELOG.md
16+
rm CHANGELOG.md*~
17+
sed -i~ -bE "s/\"version\":.*$/\"version\": \"$VERSION\",/" library.json
18+
rm library.json*~
19+
20+
sed -i~ -bE "s/version=.*$/version=$VERSION/" library.properties
21+
rm library.properties*~
22+
23+
sed -i~ -bE \
24+
-e "s/ARDUINOJSON_VERSION .*$/ARDUINOJSON_VERSION \"$VERSION\"/" \
25+
-e "s/ARDUINOJSON_VERSION_MAJOR .*$/ARDUINOJSON_VERSION_MAJOR $MAJOR/" \
26+
-e "s/ARDUINOJSON_VERSION_MINOR .*$/ARDUINOJSON_VERSION_MINOR $MINOR/" \
27+
-e "s/ARDUINOJSON_VERSION_REVISION .*$/ARDUINOJSON_VERSION_REVISION $REVISION/" \
28+
src/ArduinoJson/version.hpp
29+
rm src/ArduinoJson/version.hpp*~
30+
}
31+
32+
commit_new_version () {
33+
git add src/ArduinoJson/version.hpp CHANGELOG.md library.json library.properties
34+
git commit -m "Set version to $VERSION"
35+
}
36+
37+
add_tag () {
38+
CHANGES=$(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' CHANGELOG.md)
39+
git tag -m "ArduinoJson $VERSION\n$CHANGES" $TAG
40+
}
41+
42+
update_version_in_source
43+
commit_new_version
44+
add_tag

scripts/set-version.sh

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

src/ArduinoJson/version.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#pragma once
66

7-
#define ARDUINOJSON_VERSION "6.2.3-beta"
7+
#define ARDUINOJSON_VERSION "6.3.0-beta"
88
#define ARDUINOJSON_VERSION_MAJOR 6
9-
#define ARDUINOJSON_VERSION_MINOR 2
10-
#define ARDUINOJSON_VERSION_REVISION 3
9+
#define ARDUINOJSON_VERSION_MINOR 3
10+
#define ARDUINOJSON_VERSION_REVISION 0

0 commit comments

Comments
 (0)
0