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