diff --git a/CloudFlare/__init__.py b/CloudFlare/__init__.py index 5da6339..d4253f5 100644 --- a/CloudFlare/__init__.py +++ b/CloudFlare/__init__.py @@ -5,4 +5,4 @@ except: pass -__version__ = '1.3.0' +__version__ = '1.3.1' diff --git a/unused/build-matrix.sh b/unused/build-matrix.sh deleted file mode 100755 index 9a62070..0000000 --- a/unused/build-matrix.sh +++ /dev/null @@ -1,68 +0,0 @@ -: - -# -# A Hack - not worth publishing -# - -tmp="/tmp/c$$" -tmp="/tmp/c0" - -trap "rm -f ${tmp}_*; exit" 0 1 2 15 - -if true -then - curl -s -S https://api.cloudflare.com/ > ${tmp}_api.html - ls -l ${tmp}_api.html 1>&2 - cp ${tmp}_api.html /tmp/api.html -else - cp /tmp/api.html ${tmp}_api.html -fi - -cat ${tmp}_api.html | sed -e ' -s/<\/br>/&\ -/g -s/<\/h[0-9]>/&\ -/g' | egrep language-http |\ -sed -e ' -s/\/organization\//\/organizations\// -/GET \/object\/:object_id/d -s/<[^>]*>//g -s/^[ ]*// -s/\/:[a-z_]*\//\/:identifier\//g -s/\/:[a-z_]*$/\// -s/\/$//' |\ -awk ' -BEGIN { - methods[1] = "GET" - methods[2] = "PUT" - methods[3] = "POST" - methods[4] = "PATCH" - methods[5] = "DELETE" - } -/ / { - if (match(a[$2],$1)==0) { - a[$2] = a[$2] " " $1 - } - } -END { - for (m=1;m<=5;m++) { - printf "|%-8s", "`" methods[m] "`" - } - printf "|%-8s|\n", "API Call" - for (m=1;m<=5;m++) { - printf "|%-8s", "---" - } - printf "|%-8s|\n", ":---" - for (k in a) { - for (m=1;m<=5;m++) { - if (match(a[k], methods[m])) { - printf "|%-8s", "`" methods[m] "`" - } else { - printf "|%-8s", "" - } - } - printf "|%s|\n", k - } - } -' | sort -t/ -k2,3 - diff --git a/unused/compare-api_v4.sh b/unused/compare-api_v4.sh deleted file mode 100755 index 8de2423..0000000 --- a/unused/compare-api_v4.sh +++ /dev/null @@ -1,20 +0,0 @@ -: - -tmp="/tmp/c$$" -tmp="/tmp/c0" - -# trap "rm -f ${tmp}_*; exit" 0 1 2 15 - -(sed -e 's/#.*//' | egrep setattr) < ../CloudFlare/api_v4.py | egrep -v self._unused | cut -d, -f4,5,6 | sed -e 's/^ "/\//' -e 's/", "/\/:identifier\//g' -e 's/"))$//' | sort -u > ${tmp}_1 -if false -then - curl -s -S https://api.cloudflare.com/ > ${tmp}_api.html -else - cp /tmp/api.html ${tmp}_api.html -fi -egrep 'language-http' < ${tmp}_api.html | sed -e 's/\/organization\//\/organizations\//' -e '/GET \/object\/:object_id/d' -e 's/<[^>]*>//g' -e 's/^[ ]*//' -e 's/\/:[a-z_]*\//\/:identifier\//g' -e 's/\/:[a-z_]*$/\//' -e 's/\/$//' | tee ${tmp}_3 | awk '{print $2}' | sort -u > ${tmp}_2 - -echo "< GitHUb vs > Documentation" - -diff ${tmp}_1 ${tmp}_2 - diff --git a/unused/create-readme-rst.py b/unused/create-readme-rst.py deleted file mode 100755 index e1d330a..0000000 --- a/unused/create-readme-rst.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python - -# -# A Hack - not worth publishing -# - -import os -import pypandoc - -long_description = pypandoc.convert('README.md', 'rst') -long_description = long_description.replace("\r","") -with open('README.rst','w') as f: - f.write(long_description) -