Skip to content

Commit

Permalink
Release v0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Jun 14, 2022
1 parent b59547c commit 6964b46
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.9
0.6.2
7 changes: 4 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# pi - Pharo Install - A MIT-pip-like library for Pharo Smalltalk
#

set -eo pipefail

#set -eo pipefail

main () {
local version
Expand All @@ -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"
Expand Down
15 changes: 7 additions & 8 deletions libexec/piGitHub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <repository>/<package name>\n"
pi_log "%s\n" "${matchingPackages[@]}"
printf "%s\n" "${matchingPackages[@]}"
return 1
else
fullPackageName=${matchingPackages[0]}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libexec/piHelp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The options include:
init Initialize and fetch PI Pharo package cache
install <pkgname> 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 <pkgname> Search for pkgname in GitHub.
update Update package directory.
version Show program version.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pi",
"version": "0.6.1",
"version": "0.6.2",
"description": "",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 6964b46

Please sign in to comment.