From 6964b461b426f07f0e9dd8f016a00b68549927f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Morales=20Durand?= Date: Tue, 14 Jun 2022 07:59:04 +0200 Subject: [PATCH] Release v0.6.2 --- CHANGELOG.md | 10 ++++++++++ VERSION | 2 +- deploy.sh | 7 ++++--- libexec/piGitHub.sh | 15 +++++++-------- libexec/piHelp.sh | 2 +- package.json | 2 +- 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f0cb8e..1d6237e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [0.6.2](https://github.com/hernanmd/pi/compare/0.6.1...0.6.2) + +- Update README.md [`4beccfb`](https://github.com/hernanmd/pi/commit/4beccfb2dfd1666b0f4b259719864cc9166f6a13) +- Add demo session [`b59547c`](https://github.com/hernanmd/pi/commit/b59547c36c54c8b5f63ad17399881ff4aded4430) +- Update README.md [`997d809`](https://github.com/hernanmd/pi/commit/997d8094e553fda959e6eab24d7c854c75eb688a) + #### [0.6.1](https://github.com/hernanmd/pi/compare/0.6.0...0.6.1) +> 14 June 2022 + +- Release v0.6.1 [`4045ad9`](https://github.com/hernanmd/pi/commit/4045ad9463977153d98c6c7d761598f12365b865) + #### [0.6.0](https://github.com/hernanmd/pi/compare/0.5.9...0.6.0) > 23 May 2022 diff --git a/VERSION b/VERSION index 416bfb0..b616048 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.9 +0.6.2 diff --git a/deploy.sh b/deploy.sh index 0e7d792..2b767f4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -3,8 +3,7 @@ # pi - Pharo Install - A MIT-pip-like library for Pharo Smalltalk # -set -eo pipefail - +#set -eo pipefail main () { local version @@ -13,14 +12,16 @@ main () { source ~/.nvm/nvm.sh nvm use else - printf "Couldn't find .nvmrc file" + printf "Couldn't find .nvmrc file.\nYou can generate a .nvmrc file for your node version with nvm ls" fi echo $(date "+%d-%m-%Y") > DATE [[ -f DATE ]] || { printf "Couldn't write DATE file for release\n"; exit 1; } + # It is highly recommended to supply a version number, otherwise we lose tracking the number in VERSION file if [ $# -eq 0 ]; then release-it else + printf "PI: Version supplied: %s\n" "$1" version="$1" echo $version > VERSION release-it "$version" diff --git a/libexec/piGitHub.sh b/libexec/piGitHub.sh index 0347868..f10ef4b 100644 --- a/libexec/piGitHub.sh +++ b/libexec/piGitHub.sh @@ -81,7 +81,7 @@ count_github_packages () { local perPage=1 download_github_pkg_names "$pageIndex" "$perPage" parse_github_pkg_count ${cacheDir}/"$pageIndex.js" - pi_log "Detected Pharo packages in GitHub: %s\n" "$ghPkgCount" + printf "PI: Detected Pharo packages in GitHub: %s\n" "$ghPkgCount" } # Install from GitHub @@ -105,11 +105,11 @@ install_pkg_from_github () { pkgCount=${#matchingPackages[@]} if [ "$pkgCount" -gt 1 ]; then - pi_log "Found %s repositories with the package name \"%s\"\n" "$pkgCount" "$pkgNameToInstall" + printf "Found %s repositories with the package name \"%s\"\n" "$pkgCount" "$pkgNameToInstall" pi_log "Listing follows...\n" cat -n <<< "${matchingPackages[@]}" pi_log "Please provide the full name for the package you want to install /\n" - pi_log "%s\n" "${matchingPackages[@]}" + printf "%s\n" "${matchingPackages[@]}" return 1 else fullPackageName=${matchingPackages[0]} @@ -128,13 +128,12 @@ install_pkg_from_github () { pi_err "PI-compatible Smalltalk install expression not found\n" return $? fi - # Save image after each Metacello package installation - saveImageExp=".Smalltalk snapshot: true andQuit: true." - fullInstallExpr="${installExpr} ${saveImageExp}" + fullInstallExpr="${installExpr}" # Download and install Pharo image if not present install_pharo - pi_log "Install command: ./pharo --headless %s eval \"%s\"" "$imageName" "$fullInstallExpr" - ./pharo --headless "$imageName" eval "$fullInstallExpr" + # Save image after each Metacello package installation + printf "PI: Install command: ./pharo --headless %s eval --save \"%s\"" "$imageName" "$fullInstallExpr" + ./pharo --headless "$imageName" eval --save "$fullInstallExpr" # Remove README.md file [ ! -e "README.md" ] || rm -f "README.md" fi diff --git a/libexec/piHelp.sh b/libexec/piHelp.sh index fc73250..3242fc2 100644 --- a/libexec/piHelp.sh +++ b/libexec/piHelp.sh @@ -36,7 +36,7 @@ The options include: init Initialize and fetch PI Pharo package cache install Install pkgname to the Image found in the current directory.\n\t\tDownload image if not found. list List Pharo packages found in GitHub. - run Run a Pharo Image. + run Run a Pharo Image. search Search for pkgname in GitHub. update Update package directory. version Show program version. diff --git a/package.json b/package.json index dc713ec..1ca8615 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pi", - "version": "0.6.1", + "version": "0.6.2", "description": "", "main": "index.js", "type": "module",