harvest-time-off 0.3.0 → 0.4.0
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/README.md +1 -1
- data/lib/harvest_time_off/version.rb +1 -1
- data/lib/harvest_time_off.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1631545c9a5c2ccf1baccf699c3ae7ed0b4ad6bbc2d10b32f3b978f529817252
|
|
4
|
+
data.tar.gz: a93eafe0be2d87101573738d351ead61cfd78b08fab9e2333a97120a369d327f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57a4bd4971c05b9a3364f6fe19be32d4f3be3a3011108b1250d3619d331815ad98d600e08e79de8560a8d617750f1401dd65b084705e63d00aeeb987231874ae
|
|
7
|
+
data.tar.gz: 6cd29f602c78ae6f3abc52708421d37859c4badc16a3b2ef33043280df4fe5322ac30826dd0deddfd95750cf4d58fd1333c851875996afd63527f0cc53fe7837
|
data/README.md
CHANGED
|
@@ -31,7 +31,7 @@ harvest-time-off 2026-08-17 2026-08-28 \
|
|
|
31
31
|
|
|
32
32
|
The default holiday region is `ca_yt`. Add `--holiday-region REGION` or set `HARVEST_HOLIDAY_REGIONS` to include other [Holidays](https://github.com/holidays/holidays) regions. `business_time` calculates business days and `holidays` supplies observed statutory holidays.
|
|
33
33
|
|
|
34
|
-
A time-off block never creates weekend entries. The underlying [`marlens-harvest-api-v2`](https://github.com/klondikemarlen/harvest-api-v2) client accepts any ISO date, including weekends, for ordinary work entries.
|
|
34
|
+
A time-off block never creates weekend entries. When names are supplied, it resolves them from your active personal Harvest assignments, so a Project Manager role is not required. The underlying [`marlens-harvest-api-v2`](https://github.com/klondikemarlen/harvest-api-v2) client accepts any ISO date, including weekends, for ordinary work entries.
|
|
35
35
|
|
|
36
36
|
## OMP settings
|
|
37
37
|
|
data/lib/harvest_time_off.rb
CHANGED
|
@@ -109,7 +109,7 @@ module HarvestTimeOff
|
|
|
109
109
|
|
|
110
110
|
def self.resolve_assignment(client, project_name, task_name)
|
|
111
111
|
# ponytail: one 2,000-item page covers personal assignments; follow cursor pagination if that ceiling is exceeded.
|
|
112
|
-
matches = client.
|
|
112
|
+
matches = client.active_personal_task_assignments.select do |assignment|
|
|
113
113
|
assignment.dig("project", "name")&.casecmp?(project_name) &&
|
|
114
114
|
assignment.dig("task", "name")&.casecmp?(task_name)
|
|
115
115
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: harvest-time-off
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marlen Brunner
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '0.
|
|
18
|
+
version: '0.2'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '0.
|
|
25
|
+
version: '0.2'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: business_time
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|