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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b51d6d0a5441984dbfefb62ad1d2968448d05f8ff2bfaa876431d2ed86c1115
4
- data.tar.gz: 3156fc8a3aedaa63322871ce93d6e7bd5ab1ed447c0ae6068ddc0047b6769faa
3
+ metadata.gz: b1f58e8ae6262a385a190c169ccf016f3e93cce1313ae52588b9968a9e428091
4
+ data.tar.gz: 825a88ccaa3f2d3c02e10d21610edfc15510b3de12b675fb72ecf64453179faa
5
5
  SHA512:
6
- metadata.gz: 9296b71f3ae2a6eb97a723e5096670c31a0bada76e70b3842802a0581ffaa06a65b49b9c610e2c80fc4d2826bc788186a7f4997d8432fbfad1c575961bec2e9f
7
- data.tar.gz: c5cb75fb5318bfe07304ec8771b5f4154cd55bb252d757daa7cf6d1e5652dcbc4bf02df3f817761dbc3c4334cc8d0e2b645042caa5cd791cf918f5fadb83b015
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 exact installed version and runs 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.
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.
@@ -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
- if [[ "$installed_version" != "$version" ]]; then
10
- printf 'Expected installed harvest-worklog@%s, found %s.\n' "$version" "$installed_version" >&2
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 "$HOME/.omp/plugins/node_modules/harvest-worklog/test/"*.test.js
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HarvestWorklog
4
- VERSION = "0.13.5"
4
+ VERSION = "0.13.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvest-worklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlen Brunner