omp-worklog 0.14.0 → 0.14.2

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: 7b05c82fe1bf8833eb39cc940fa6b90e81bc3a22d5b0c915568b27f77a31bf98
4
+ data.tar.gz: 7770f8184dac93c9fc9db2a2370cd18a89a194415445d72d53e4649bd7886887
5
5
  SHA512:
6
- metadata.gz: 0eca9563cc7050108826e0b55996efa6b9300274e89358b0e62c59959c54b4d35630fbdbfda8910c9ca4f66db008901dda487c776821932bea1826b8bd1c5c80
7
- data.tar.gz: 07ec72a2c85b3cfb91d5f536177a94a7307613ecda350c8bf5c15058e7dcf9f2db0a66127104d930f7a71191e8b37132f98438231e7953bb383e2737d79e149b
6
+ metadata.gz: ac20ce28e1bd2df4e27c102a864fd3a21abb32f4945508029a28c596b577536f388edc2828e1f1a56ff90f5f89b2ab8c2663e59ab2838cc39ab57f7c26ca70b9
7
+ data.tar.gz: c89d0c6025f1dca4830c60e1aac47f8b4ca603c924ee1bbb30b33eda1480160cf638c1684b3a51321dd099cc0e151391386b8fd39e905cb2a36dffe04abb3378
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.2"
5
5
  end
data/lib/omp_worklog.rb CHANGED
@@ -38,6 +38,9 @@ module OmpWorklog
38
38
  when "-h", "--help"
39
39
  output.puts usage
40
40
  0
41
+ when "--version"
42
+ output.puts VERSION
43
+ 0
41
44
  else
42
45
  error.puts "Error: choose time-off or work-entry"
43
46
  error.puts usage
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlen Brunner