From aab98c4fb9a80e6e070a647dc65a5aae094af83a Mon Sep 17 00:00:00 2001 From: Mike Cobbett <77053+techcobweb@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:21:55 +0100 Subject: [PATCH 1/2] add-version script now updates the readme version examples correctly. Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com> --- README.md | 6 +++--- add-version.sh | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bb06361..a3800b7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ `brew install galasa-dev/tap/` -Or `brew tap galasa-dev/tap` and then `brew install `. +Or `brew tap galasa-dev/tap` and then `brew install --no-quarantine `. ## Casks Currently different version of casks for the Galasa Command-Line interface (galasactl). To install the latest version use the following command @@ -20,7 +20,7 @@ brew install --no-quarantine galasactl@x.xx.x ``` for example ``` -brew install --no-quarantine galasactl@0.36.0 +brew install --no-quarantine galasactl@0.37.0 ``` At the moment the --no-quarantine is required because otherwise its not possible to run the galasactl. See documentation about this at @@ -31,7 +31,7 @@ Use the helper script `add-version.sh` For example: ```bash -./add-version.sh --version 0.36.0 +./add-version.sh --version 0.37.0 ``` The file Cask/g/galasactl.rb will be updated with that version, so people can get that as the latest version. diff --git a/add-version.sh b/add-version.sh index 4d2fd81..c3ead01 100755 --- a/add-version.sh +++ b/add-version.sh @@ -156,9 +156,8 @@ EOF function update_readme_example() { h2 "Updating the example in the readme." - cat $BASEDIR/README.md | sed "s/brew install --no-quarantine galasactl@[0-9.]+/brew install --no-quarantine galasactl@${version_to_add}/1" > ${BASEDIR}/temp/README1.md - cat ${BASEDIR}/temp/README1.md | sed "s/add-version.sh --version .* /add-version.sh --version ${version_to_add}/1" > ${BASEDIR}/temp/README2.md - mv ${BASEDIR}/temp/README2.md ${BASEDIR}/README.md + cat $BASEDIR/README.md | sed -E "s/[0-9]+[0-9\.]*/${version_to_add}/g" > ${BASEDIR}/temp/README1.md + mv ${BASEDIR}/temp/README1.md ${BASEDIR}/README.md success "Readme updated OK." } From 8c7dbb6170945fa9e8f3df367b96516522d4613b Mon Sep 17 00:00:00 2001 From: Mike Cobbett <77053+techcobweb@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:46:08 +0100 Subject: [PATCH 2/2] shorter descriptions as limit is 93 characters Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com> --- Casks/g/galasactl.rb | 2 +- Casks/g/galasactl@0.36.0.rb | 2 +- Casks/g/galasactl@0.37.0.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/g/galasactl.rb b/Casks/g/galasactl.rb index e68fee8..9ec627d 100644 --- a/Casks/g/galasactl.rb +++ b/Casks/g/galasactl.rb @@ -9,7 +9,7 @@ url "https://github.com/galasa-dev/cli/releases/download/v#{version}/galasactl-darwin-#{arch}", verified: "github.com/galasa-dev/cli/releases/" name "Galasa Client" - desc "Client to interact with the Galasa ecosystem or local development environment. Latest version" + desc "Command-line client for Galasa. Latest version" homepage "https://galasa.dev/" livecheck do diff --git a/Casks/g/galasactl@0.36.0.rb b/Casks/g/galasactl@0.36.0.rb index f987fcb..66220c8 100644 --- a/Casks/g/galasactl@0.36.0.rb +++ b/Casks/g/galasactl@0.36.0.rb @@ -9,7 +9,7 @@ url "https://github.com/galasa-dev/cli/releases/download/v#{version}/galasactl-darwin-#{arch}", verified: "github.com/galasa-dev/cli/releases/" name "Galasa Client" - desc "Client to interact with the Galasa ecosystem or local development environment. Version 0.36.0" + desc "Command-line client for Galasa. Version 0.36.0" homepage "https://galasa.dev/" livecheck do diff --git a/Casks/g/galasactl@0.37.0.rb b/Casks/g/galasactl@0.37.0.rb index 8ad8a11..2845316 100644 --- a/Casks/g/galasactl@0.37.0.rb +++ b/Casks/g/galasactl@0.37.0.rb @@ -9,7 +9,7 @@ url "https://github.com/galasa-dev/cli/releases/download/v#{version}/galasactl-darwin-#{arch}", verified: "github.com/galasa-dev/cli/releases/" name "Galasa Client" - desc "Client to interact with the Galasa ecosystem or local development environment. Version 0.37.0" + desc "Command-line client for Galasa. Version 0.37.0" homepage "https://galasa.dev/" livecheck do