From 2e839ec33c623add4fe4738b9d1e4a5318439103 Mon Sep 17 00:00:00 2001 From: Davide Scola Date: Tue, 5 Dec 2017 10:37:27 +0000 Subject: [PATCH 1/2] remove user agent from configuration file --- src/grenache-get.in | 2 +- src/grenache-keygen.in | 1 - src/grenache-put.in | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/grenache-get.in b/src/grenache-get.in index 11f200a..8fe42e4 100644 --- a/src/grenache-get.in +++ b/src/grenache-get.in @@ -124,7 +124,7 @@ do exit 1 } - JSON="$(@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" "http${TLS:+s}://${HOSTNAME}:${PORT}/get" < <( \ + JSON="$(@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" -A '@PACKAGE@/@PACKAGE_VERSION@' "http${TLS:+s}://${HOSTNAME}:${PORT}/get" < <( \ @JQ@ -cnM \ --arg 'data' "${hash}" \ --arg 'rid' "$(@UUIDGEN@)" \ diff --git a/src/grenache-keygen.in b/src/grenache-keygen.in index 8335be6..5dff0d8 100644 --- a/src/grenache-keygen.in +++ b/src/grenache-keygen.in @@ -71,7 +71,6 @@ exec {debug}>>/dev/null # silent compress -user-agent "@PACKAGE@/@PACKAGE_VERSION@" # # Request diff --git a/src/grenache-put.in b/src/grenache-put.in index 68051d0..02be736 100644 --- a/src/grenache-put.in +++ b/src/grenache-put.in @@ -207,7 +207,7 @@ ARGUMENTS=( } HASH="$(@JQ@ -cMr '.' < <( - @CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" "http${TLS:+s}://${HOSTNAME}:${PORT}/put" < <( \ + @CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" -A '@PACKAGE@/@PACKAGE_VERSION@' "http${TLS:+s}://${HOSTNAME}:${PORT}/put" < <( \ @JQ@ -cnM \ "${ARGUMENTS[@]}" \ --arg 'rid' "$(@UUIDGEN@)" \ From 4b6728eca1104e62dad8697357be4921ab31e4d3 Mon Sep 17 00:00:00 2001 From: Davide Scola Date: Tue, 5 Dec 2017 10:39:35 +0000 Subject: [PATCH 2/2] bump version to 0.3.1 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2431d14..9e40d27 100644 --- a/configure.ac +++ b/configure.ac @@ -15,9 +15,9 @@ dnl implied. See the License for the specific language governing permissions dnl and limitations under the License. AC_PREREQ(2.69) -AC_INIT([grenache-cli], [0.3.0], [davide@bitfinex.com]) +AC_INIT([grenache-cli], [0.3.1], [davide@bitfinex.com]) -AC_SUBST([VERSION], [0.3.0]) +AC_SUBST([VERSION], [0.3.1]) AC_SUBST([SB], [`$srcdir/shtool echo -n -e %B`]) AC_SUBST([EB], [`$srcdir/shtool echo -n -e %b`])