operto 0.4.0 → 0.4.1
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/CHANGELOG.md +4 -0
- data/lib/operto/tasks/shared.rb +4 -1
- data/lib/operto/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8844f341cedc86baff27141908730c8dcca2980e4c544855f3542d461335edf2
|
|
4
|
+
data.tar.gz: 2e2854e802788fd252f323f7e41b760fc522a613ef93289c9b88708100e583df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9aae9925c322879e23a2a8d6b1f5f1408e368e3c4842b522622f0e611ab5fa38dd6c9c939f58f016d6d72b463675e359edcd631ee9f2636d9baa4984bb3758c
|
|
7
|
+
data.tar.gz: f51faf4e94d597ed1d7032e10b1ea5d19c9ec0eb3e74659e96137b215026335913ede8be5525a87d1e469071ff7d854bee8731fe20f2bf0e003aa7c9d18fb617
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1 - 2026-10-14
|
|
4
|
+
|
|
5
|
+
- `Tasks::Index`, `Tasks::Show`, `Tasks::Create` and `Tasks::Update` read an out-of-range start or due time (such as `100:100`) as the date with no time instead of failing with `ArgumentError`.
|
|
6
|
+
|
|
3
7
|
## 0.4.0 - 2026-10-12
|
|
4
8
|
|
|
5
9
|
- When Operto rejects the access token (a `401` or an `auth_token_expired` response), the client clears the token store, renews the token and replays the request once.
|
data/lib/operto/tasks/shared.rb
CHANGED
|
@@ -73,8 +73,11 @@ module Operto
|
|
|
73
73
|
def task_time(date, time)
|
|
74
74
|
return if date.blank?
|
|
75
75
|
|
|
76
|
+
day = Time.zone.parse(date.to_s)
|
|
76
77
|
hour, minute = time.to_s.split(':')
|
|
77
|
-
|
|
78
|
+
day.change(hour: hour.to_i, min: minute.to_i)
|
|
79
|
+
rescue ::ArgumentError
|
|
80
|
+
day
|
|
78
81
|
end
|
|
79
82
|
|
|
80
83
|
def extract_staff(staff)
|
data/lib/operto/version.rb
CHANGED