harvest-worklog 0.13.5 → 0.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/verify-plugin-release +16 -6
- data/lib/harvest_worklog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1f58e8ae6262a385a190c169ccf016f3e93cce1313ae52588b9968a9e428091
|
|
4
|
+
data.tar.gz: 825a88ccaa3f2d3c02e10d21610edfc15510b3de12b675fb72ecf64453179faa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ee15383508be53679f2c6768494811cde7c85e43be11f3ce0faa1e228f069bebdc08d4e60f62460cfd241d9e9242aada21a79a600086f3487cdeb630259b510
|
|
7
|
+
data.tar.gz: 0303dbf8575b1e96256ccaff32a3f5439f72f25f293ab256aeaabfd3f672e3ef4f99a1f5d095de12e9c8584ea94b5ff7cf4fe7b02dc7181e288c89cd21db8db9
|
data/README.md
CHANGED
|
@@ -145,4 +145,4 @@ npm run verify:release
|
|
|
145
145
|
harvest-worklog --help
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
`npm run release` owns the uninstall/force-install mutation. `npm run verify:release` never changes the installation: it checks the
|
|
148
|
+
`npm run release` owns the uninstall/force-install mutation. `npm run verify:release` never changes the installation: it checks the installed package version, resolved Git revision, and plugin path before running a deterministic slash-command smoke test against the installed plugin. It exits after verification. Existing OMP sessions retain startup-loaded extension code; restart them before optional manual autocomplete and slash-command QA.
|
data/bin/verify-plugin-release
CHANGED
|
@@ -4,12 +4,22 @@ set -euo pipefail
|
|
|
4
4
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
5
5
|
cd "$root"
|
|
6
6
|
version="$(node -p 'require("./package.json").version')"
|
|
7
|
-
|
|
7
|
+
expected_revision="$(git rev-parse HEAD)"
|
|
8
|
+
plugin_root="$HOME/.omp/plugins"
|
|
9
|
+
installed_path="$plugin_root/node_modules/harvest-worklog/package.json"
|
|
8
10
|
installed_version="$(node -p 'require(process.env.HOME + "/.omp/plugins/node_modules/harvest-worklog/package.json").version')"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
resolved_revision="$(node -e '
|
|
12
|
+
const lock = require("node:fs").readFileSync(process.argv[1], "utf8")
|
|
13
|
+
const match = /"harvest-worklog"\s*:\s*\[\s*"harvest-worklog@github:klondikemarlen\/harvest-worklog#([0-9a-f]+)/.exec(lock)
|
|
14
|
+
if (!match) process.exit(1)
|
|
15
|
+
process.stdout.write(match[1])
|
|
16
|
+
' "$plugin_root/bun.lock")" || {
|
|
17
|
+
printf 'Could not resolve the installed harvest-worklog Git revision from %s.\n' "$plugin_root/bun.lock" >&2
|
|
18
|
+
exit 1
|
|
19
|
+
}
|
|
20
|
+
if [[ "$installed_version" != "$version" || "${expected_revision:0:${#resolved_revision}}" != "$resolved_revision" ]]; then
|
|
21
|
+
printf 'Expected installed harvest-worklog@%s from Git revision %s; found harvest-worklog@%s at %s resolved from Git revision %s.\n' "$version" "$expected_revision" "$installed_version" "$installed_path" "$resolved_revision" >&2
|
|
11
22
|
exit 1
|
|
12
23
|
fi
|
|
13
|
-
node --test "$
|
|
14
|
-
printf 'Verified harvest-worklog@%s.\n' "$version"
|
|
15
|
-
printf 'Existing OMP sessions must be restarted before manual QA.\n'
|
|
24
|
+
node --test "$plugin_root/node_modules/harvest-worklog/test/"*.test.js
|
|
25
|
+
printf 'Verified harvest-worklog@%s from Git revision %s at %s.\n' "$version" "$resolved_revision" "$installed_path"
|