fewald-worklog 0.1.20 → 0.1.21
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 -1
- data/worklog/person.rb +2 -0
- data/worklog/worklog.rb +20 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7b526988aa437d677d22f9e55c93584b84f55089b7bbeb92164761d99e40ea
|
4
|
+
data.tar.gz: c47b08cba0340519c0b87075347d85a94d592d9d8fcb65c849e3ad94196b08a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 208a814fa3b9c3b134c51de73ca9cdecb7b758a652b993cd1dd5fc3c83a7ed2e01ef33b5c371285e5632610c4fbc94cf4a2a9cc74c686b0f6722b5594fc2a39e
|
7
|
+
data.tar.gz: 9c5fd33b185a96da7800428c1b018e5e9919c25d93d28c03125d41a3090918294ee1c4f3a360e799d4dabf962c91b58a9179580fe6b6ef15d1de07d8f8251d13
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.21
|
data/worklog/person.rb
CHANGED
data/worklog/worklog.rb
CHANGED
@@ -91,19 +91,11 @@ class Worklog
|
|
91
91
|
all_logs = @storage.all_days
|
92
92
|
|
93
93
|
if person
|
94
|
-
person = person.strip
|
95
94
|
unless people_map.key?(person)
|
96
95
|
WorkLogger.error Rainbow("No person found with handle #{person}.").red
|
97
96
|
return
|
98
97
|
end
|
99
|
-
|
100
|
-
printer = Printer.new(all_people)
|
101
|
-
puts "All interactions with #{Rainbow(person).gold}:"
|
102
|
-
all_logs.each do |daily_log|
|
103
|
-
daily_log.entries.each do |entry|
|
104
|
-
printer.print_entry(daily_log, entry, true) if entry.people.include?(person)
|
105
|
-
end
|
106
|
-
end
|
98
|
+
person_detail(all_logs, all_people, people_map[person.strip])
|
107
99
|
else
|
108
100
|
puts 'People mentioned in the work log:'
|
109
101
|
|
@@ -124,6 +116,25 @@ class Worklog
|
|
124
116
|
end
|
125
117
|
end
|
126
118
|
|
119
|
+
def person_detail(all_logs, all_people, person)
|
120
|
+
printer = Printer.new(all_people)
|
121
|
+
puts "All interactions with #{Rainbow(person.name).gold}"
|
122
|
+
|
123
|
+
if person.notes
|
124
|
+
puts 'Notes:'
|
125
|
+
person.notes.each do |note|
|
126
|
+
puts "* #{note}"
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
puts 'Interactions:'
|
131
|
+
all_logs.each do |daily_log|
|
132
|
+
daily_log.entries.each do |entry|
|
133
|
+
printer.print_entry(daily_log, entry, true) if entry.people.include?(person.handle)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
127
138
|
def tags(_options = {})
|
128
139
|
all_logs = @storage.all_days
|
129
140
|
|
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Friedrich Ewald
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: httparty
|