prepare for sync with master

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-04-22 10:19:16 +02:00
parent bca3e591ec
commit 1048d89648
29 changed files with 42 additions and 39 deletions

8
.gitignore vendored
View File

@ -1,7 +1,7 @@
*~
count
token
/count
/token
*.save
*.log
JSON.sh/*
tmp-bot-bash/
/JSON.sh/*
/tmp-bot-bash/

View File

@ -102,4 +102,4 @@ Bashbot is not more (in)secure as any other Bot written in any other language, w
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -166,5 +166,5 @@ That's it!
If you feel that there's something missing or if you found a bug, feel
free to submit a pull request!
latexmath:[\[VERSION\]] 0.70-dev-18-g7512681
latexmath:[\[VERSION\]] 0.70-dev-26-gbca3e59
++++++++++++++++++++++++++++++++++++++++++++

View File

@ -1,7 +1,7 @@
#!/bin/sh
# description: Start or stop telegram-bash-bot
#
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# shellcheck disable=SC2009
# shellcheck disable=SC2181

View File

@ -10,7 +10,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.70-dev-25-g0422cb0
#### $$VERSION$$ 0.70-dev-26-gbca3e59
#
# Exit Codes:
# - 0 sucess (hopefully)

View File

@ -4,7 +4,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
#
# shellcheck disable=SC2154
# shellcheck disable=SC2034

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# this has to run once atfer git clone
# and every time we create new hooks
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script

View File

@ -1,3 +1,3 @@
# list of additional files to check from shellcheck
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
bashbot.rc

View File

@ -1,6 +1,6 @@
#!/bin/bash
#
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# shellcheck disable=SC2016
#
# Easy Versioning in git:

View File

@ -61,5 +61,5 @@ group. This step is up to you actually.
#### [Next Getting started](2_usage.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -159,5 +159,5 @@ send_action "${CHAT[ID]}" "action"
#### [Prev Create Bot](1_firstbot.md)
#### [Next Advanced Usage](3_advanced.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -156,5 +156,5 @@ answer_inline_query "$iQUERY_ID" "cached_sticker" "identifier for the sticker"
#### [Prev Advanced Usage](3_advanced.md)
#### [Next Expert Use](4_expert.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -104,5 +104,5 @@ An example crontab is provided in ```examples/bashbot.cron```.
#### [Prev Expert Use](4_expert.md)
#### [Next Best Practice](5_practice.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -112,5 +112,5 @@ The second warning is about an unused variable, this is true because in our exam
#### [Prev Best Practice](5_practice.md)
#### [Next Functions Reference](6_reference.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -348,5 +348,5 @@ Send Input from Telegram to waiting Interactive Chat.
#### [Prev Best Practice](5_practice.md)
#### [Next Developer Rules](7_develop.md)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -70,5 +70,5 @@ fi
#### [Prev Function Reference](6_function.md)
#### $$VERSION$$ 0.70-dev-20-g753f1b3
#### $$VERSION$$ 0.70-dev-26-gbca3e59

View File

@ -7,7 +7,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
SHELL=/bin/sh

View File

@ -3,7 +3,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment

View File

@ -2,7 +2,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment

View File

@ -3,7 +3,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment

View File

@ -3,7 +3,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ 0.70-dev-18-g7512681
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# common variables
export TESTME DIRME TESTDIR LOGFILE REFDIR TESTNAME
@ -19,13 +19,13 @@ export TOKENFILE ACLFILE COUNTFILE ADMINFILE
# SUCCESS NOSUCCES
export SUCCESS NOSUCCESS
SUCCESS=" OK"
NOSUCCESS=" FAILED!"
SUCCESS=" OK"
NOSUCCESS=" FAILED!"
# default input, reference and output files
INPUTFILE="${DIRME}/${REFDIR}/${REFDIR}.input"
REFFILE="${DIRME}/${REFDIR}/${REFDIR}.result"
OUTPUTFILE="${TESTDIR}/${REFDIR}.out"
INPUTFILE="${DIRME}/${REFDIR}/${REFDIR}.input"
REFFILE="${DIRME}/${REFDIR}/${REFDIR}.result"
OUTPUTFILE="${TESTDIR}/${REFDIR}.out"
# print arrays in reproducible order
print_array() {

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# this has to run once atfer git clone
# and every time we create new hooks
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
@ -10,7 +10,8 @@ cd "${GIT_DIR}/.." || exit 1
# create test environment
TESTENV="/tmp/bashbot.test$$"
cp -r . "${TESTENV}"
mkdir "${TESTENV}"
cp -r * "${TESTENV}"
cd "test" || exit 1
#set -e
@ -44,8 +45,10 @@ if [ "$fail" -eq 0 ]; then
else
/bin/echo -n 'FAILURE '
exitcode=1
echo "To analyse error see ${TESTENV}"
rm -rf "${TESTENV}/test"
find "${TESTENV}/"* ! -name '[a-z]-*' -delete
fi
echo "${passed} / ${tests}"
[ -d "${TESTENV}" ] && echo "Logfiles from run are in ${TESTENV}"
exit ${exitcode}

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
../dev/hooks/pre-commit.sh

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
../dev/hooks/pre-push.sh

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# include common functions and definitions
# shellcheck source=test/ALL-tests.inc.sh

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ 0.70-dev-23-g48e6f64
#### $$VERSION$$ 0.70-dev-26-gbca3e59
# include common functions and definitions
# shellcheck source=test/ALL-tests.inc.sh