fewald-worklog 0.1.14 → 0.1.16
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/storage.rb +1 -2
- 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: 449ddcafbaeafccc7346d7b66e035d4f294ceb6dcf60e5e68f8c594a9d5d5793
|
4
|
+
data.tar.gz: d10ce797aa57ea729b70e0b81c69cf5a27ad19c983bb1010c031d2c261181199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d235860d3701378a5d05ef2598b0e8641f22168fd380cec313cd3afa5d3ab7193ffd17a4e527d65cf8602c143e19b9dbf6e6cf162040253e26e02f47954483f
|
7
|
+
data.tar.gz: 392f9365d2f51994e0465c604c2f3b9d376408b5ec32eff6d559a6a5ab0bc568417a2feac2854e6f516426ece89d6bfaffa42e5d0927858abf267907fe445171
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.16
|
data/worklog/storage.rb
CHANGED
@@ -11,7 +11,6 @@ class Storage
|
|
11
11
|
class LogNotFoundError < StandardError; end
|
12
12
|
|
13
13
|
FILE_SUFFIX = '.yaml'
|
14
|
-
DATA_DIR = File.join(Dir.home, '.worklog')
|
15
14
|
|
16
15
|
def initialize(config)
|
17
16
|
@config = config
|
@@ -116,7 +115,7 @@ class Storage
|
|
116
115
|
# Load all people from the people file
|
117
116
|
# @return [Array<Person>] List of people
|
118
117
|
def load_people!
|
119
|
-
people_file = File.join(
|
118
|
+
people_file = File.join(@config.storage_path, 'people.yaml')
|
120
119
|
return [] unless File.exist?(people_file)
|
121
120
|
|
122
121
|
YAML.load_file(people_file, permitted_classes: [Person])
|
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.16
|
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-18 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: httparty
|