mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Add PlatformIO badge to README
This commit is contained in:
		| @@ -7,10 +7,10 @@ | ||||
| [](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson) | ||||
| [](https://lgtm.com/projects/g/bblanchon/ArduinoJson/) | ||||
| [](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)   | ||||
| [](https://discord.gg/DzN6hHHD4h) | ||||
| [](https://www.ardu-badge.com/ArduinoJson/6.18.5) | ||||
| [](https://registry.platformio.org/packages/libraries/bblanchon/ArduinoJson?version=6.18.5)  | ||||
| [](https://github.com/bblanchon/ArduinoJson/stargazers) | ||||
| [](https://github.com/sponsors/bblanchon) | ||||
| [](https://www.ardu-badge.com/ArduinoJson/6.18.5) | ||||
|  | ||||
| ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things). | ||||
|  | ||||
|   | ||||
| @@ -7,13 +7,13 @@ cd "$(dirname "$0")/../.." | ||||
| VERSION="$1" | ||||
| DATE=$(date +%F) | ||||
| TAG="v$VERSION" | ||||
| VERSION_REGEX="[0-9a-z\\.\\-]+" | ||||
| VERSION_REGEX='[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?' | ||||
|  | ||||
| update_version_in_source () { | ||||
| 	IFS=".-" read MAJOR MINOR REVISION EXTRA < <(echo "$VERSION") | ||||
| 	UNDERLINE=$(printf -- '-%.0s' $(seq 1 ${#TAG})) | ||||
|  | ||||
| 	sed -i~ -bE "s/version=$VERSION_REGEX/version=$VERSION/; s|ardu-badge.com/ArduinoJson/$VERSION_REGEX|ardu-badge.com/ArduinoJson/$VERSION|; " README.md | ||||
| 	sed -i~ -bE "1,20{s/$VERSION_REGEX/$VERSION/g}" README.md | ||||
| 	rm README.md~ | ||||
|  | ||||
| 	sed -i~ -bE "4s/HEAD/$TAG ($DATE)/; 5s/-+/$UNDERLINE/" CHANGELOG.md | ||||
|   | ||||
		Reference in New Issue
	
	Block a user