fewald-worklog 0.1.9 → 0.1.11
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/.version +1 -0
- data/worklog/cli.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7119faa8d6fc12fd4ed7c98c9b3ab686b7e18426e96c60482d07421f8bb30a
|
4
|
+
data.tar.gz: '03863c72e41d80e0333d6479fda9290a29f68cc93da989d0e4426b9b09a3d21d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98df77412956964c7da349fcd484932e1e85e99f1fa1990aac72115c4b2c1780523ea27d67470b2d0578146b2414cbd2f46e2237f55e644013787d903c64e9f4
|
7
|
+
data.tar.gz: 3ebe81dbf6fc09bdb0c112d32bc83d880dd444bef59016b4786b560b84917969116c798a6217446528fd44011be205c1ad012680afccff2a21177e77d145ac54
|
data/.version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.11
|
data/worklog/cli.rb
CHANGED
@@ -17,6 +17,7 @@ require 'webserver'
|
|
17
17
|
require_relative 'summary'
|
18
18
|
require_relative 'editor'
|
19
19
|
require_relative 'string_helper'
|
20
|
+
require_relative 'version'
|
20
21
|
|
21
22
|
# CLI for the work log application
|
22
23
|
class WorklogCLI < Thor
|
@@ -185,6 +186,8 @@ class WorklogCLI < Thor
|
|
185
186
|
|
186
187
|
desc 'stats', 'Show statistics for the work log'
|
187
188
|
def stats
|
189
|
+
set_log_level
|
190
|
+
|
188
191
|
stats = Statistics.calculate
|
189
192
|
puts "#{format_left('Total days')}: #{stats.total_days}"
|
190
193
|
puts "#{format_left('Total entries')}: #{stats.total_entries}"
|
@@ -219,6 +222,13 @@ class WorklogCLI < Thor
|
|
219
222
|
puts Summary.generate_summary(entries)
|
220
223
|
end
|
221
224
|
|
225
|
+
desc 'version', 'Show the version of the Worklog'
|
226
|
+
def version
|
227
|
+
set_log_level
|
228
|
+
|
229
|
+
puts "Worklog #{current_version} running on Ruby #{RUBY_VERSION}"
|
230
|
+
end
|
231
|
+
|
222
232
|
# Define shortcuts and aliases
|
223
233
|
map 'a' => :add
|
224
234
|
map 'statistics' => :stats
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fewald-worklog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Friedrich Ewald
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03
|
10
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: httparty
|
@@ -106,6 +106,7 @@ executables:
|
|
106
106
|
extensions: []
|
107
107
|
extra_rdoc_files: []
|
108
108
|
files:
|
109
|
+
- ".version"
|
109
110
|
- bin/wl
|
110
111
|
- worklog/cli.rb
|
111
112
|
- worklog/daily_log.rb
|