From 6497f8c1479480e45de52458166eb005040a667b Mon Sep 17 00:00:00 2001 From: Aleksandar Ivanov Date: Tue, 21 Nov 2023 09:52:57 +0200 Subject: [PATCH] Fix bin/check_gem_version and make it executable --- bin/check_gem_version | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 bin/check_gem_version diff --git a/bin/check_gem_version b/bin/check_gem_version old mode 100644 new mode 100755 index 74efbd3..2ba2ec8 --- a/bin/check_gem_version +++ b/bin/check_gem_version @@ -1,6 +1,6 @@ echo -n "Checking existing available versions of gem... "; current_version="$(ruby -e 'require "./lib/vault/rails/version.rb";puts Vault::Rails::VERSION')"; -version_info_json=$(curl -s -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local/api/v1/versions/active-codas.json); +version_info_json=$(curl -s -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local/api/v1/versions/fc-vault-rails.json); if echo "$version_info_json" | jq -e '[.[] | select(.number|test("'$current_version'"))]|length==0' > /dev/null; then echo -e '\e[32mOK\e[0m'; @@ -9,6 +9,6 @@ else echo 'Existing published versions:'; echo "$version_info_json" | jq 'map(.number)'; echo -e 'Your version: \e[31m'$current_version'\e[0m.'; - echo 'Please bump the version in `lib/active_codas/version.rb`.' + echo 'Please bump the version in `lib/vault/rails/version.rb`.' exit 1; -fi \ No newline at end of file +fi