omp-worklog 0.14.0 → 0.14.1

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: 5d3b75162007b035e355c30a7709bef9b63523da3f81c469d89fc9749738fc22
4
- data.tar.gz: 4c2b9cfff9e693c218e367a567222a0621a02a5537c7bee52e9b1af743e96716
3
+ metadata.gz: 999ef361b453bd544ea3f074c05b8dc2011ead6c3bf4640a8374696f8401b51f
4
+ data.tar.gz: efce8883c9eaff9701e7596949070031481e3b8ed324a12875a7b8499df7d0cf
5
5
  SHA512:
6
- metadata.gz: 0eca9563cc7050108826e0b55996efa6b9300274e89358b0e62c59959c54b4d35630fbdbfda8910c9ca4f66db008901dda487c776821932bea1826b8bd1c5c80
7
- data.tar.gz: 07ec72a2c85b3cfb91d5f536177a94a7307613ecda350c8bf5c15058e7dcf9f2db0a66127104d930f7a71191e8b37132f98438231e7953bb383e2737d79e149b
6
+ metadata.gz: 00f339da8961a9266c7fefa35e00064b618c95a2e349b647f8ea07a78a674fc252f196153da6e64599993d31adbec738335a690c7c31b41e05d8cea6184492ed
7
+ data.tar.gz: 7e55ad02b31f66eaabd7d93de2a220eb555d478fe5322883676233db6225a1726266de0c53b249f8da92930acd559ed1b3ecefc5db72a664621fa0cbd498deac
data/bin/release-plugin CHANGED
@@ -1,5 +1,19 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- omp plugin uninstall omp-worklog
4
+ installed_plugin() {
5
+ omp plugin list --json | node -e '
6
+ const plugins = JSON.parse(require("fs").readFileSync(0, "utf8")).npm ?? []
7
+ process.exit(plugins.some(plugin => plugin.name === process.argv[1]) ? 0 : 1)
8
+ ' "$1"
9
+ }
10
+
11
+ if installed_plugin omp-worklog; then
12
+ omp plugin uninstall omp-worklog
13
+ fi
14
+
15
+ if installed_plugin harvest-worklog; then
16
+ omp plugin uninstall harvest-worklog
17
+ fi
18
+
5
19
  omp plugin install --force github:klondikemarlen/omp-worklog
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmpWorklog
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omp-worklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlen Brunner