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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 281fe13df87f06f4e9ffc0cd8cbd3df85e23f29400460dfbc0cca59182f8b641
4
- data.tar.gz: 2512474000205216fb1ecabe4da817766a85ce4b5a6a088f7ec0c41be5dc51c7
3
+ metadata.gz: 1631545c9a5c2ccf1baccf699c3ae7ed0b4ad6bbc2d10b32f3b978f529817252
4
+ data.tar.gz: a93eafe0be2d87101573738d351ead61cfd78b08fab9e2333a97120a369d327f
5
5
  SHA512:
6
- metadata.gz: 7c0a91b9787d899a64ceb1186935c5e196d3c75a14b0a71a027209b225174088fea6fc1aa8f60a4ad2a4ec975a96994969e4495232d523d5b5aee899aff5456f
7
- data.tar.gz: d7b776f47216657ec923475ab54cb0d4f34fa1c2ba35f06bf1b207b11f495490a713601a6912e02bd6c8ac4ab218cd84acea59c32e4a998a47f914714e3f71cd
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HarvestTimeOff
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
@@ -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.active_task_assignments.select do |assignment|
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.3.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.1'
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.1'
25
+ version: '0.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: business_time
28
28
  requirement: !ruby/object:Gem::Requirement