hcp 3.0.0 → 3.0.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 +6 -0
- data/lib/hcp/resources/estimate.rb +3 -3
- data/lib/hcp/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: 4d401d8b087f9b1c05637aaad2f69c6f343ff3d8d50809c02d1b12f6d3fa2889
|
|
4
|
+
data.tar.gz: e58432a01d9530029c912b92451c9e94101dd8de0982ca072fb540572d14cbfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9254b6d9c951494705a671b09484a8bef8586ca085e5a75b3101e66811179cdadd1239e6dd3598d80b9aa097bc0b6a9e7deb982351abc74c48de6f224a7320d8
|
|
7
|
+
data.tar.gz: 0afdf26a35fa1a7c36e8862d272e39590b02f1d7462393bc972379c6a51a32d7f210c02ff9a0788ef0b973bb02259063d489503abc2bbab43ddfe487b1fe5fc1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [3.0.1] - 2026-09-15
|
|
4
|
+
|
|
5
|
+
- [Fix] `visit.anytime?` answers false on an estimate's slot rather than nil. Housecall Pro
|
|
6
|
+
books an estimate for an hour and has no anytime to answer with, so the slot named none --
|
|
7
|
+
and a caller storing what a visit reads had a nil where it expected a yes or a no.
|
|
8
|
+
|
|
3
9
|
## [3.0.0] - 2026-09-15
|
|
4
10
|
|
|
5
11
|
- [Breaking change] The vocabulary is `company` 2.1: a `Company::Selection` takes its rule as a
|
|
@@ -20,8 +20,8 @@ module Hcp
|
|
|
20
20
|
# @return [nil] nothing, so a stop of one goes undescribed.
|
|
21
21
|
def description = nil
|
|
22
22
|
|
|
23
|
-
# Housecall Pro files no ID on the slot, there being only ever the one, so it answers to
|
|
24
|
-
#
|
|
23
|
+
# Housecall Pro files no ID on the slot, there being only ever the one, so it answers to the
|
|
24
|
+
# estimate's own, and books it for an hour rather than for any time in a day.
|
|
25
25
|
# @return [Array<Visit>] the one slot the estimate is booked for, empty where it has none.
|
|
26
26
|
def visits
|
|
27
27
|
booked = @node.dig :schedule, :scheduled_start
|
|
@@ -36,7 +36,7 @@ module Hcp
|
|
|
36
36
|
private
|
|
37
37
|
|
|
38
38
|
def slot
|
|
39
|
-
{ id: id, start_time: @node.dig(:schedule, :scheduled_start),
|
|
39
|
+
{ id: id, anytime: false, start_time: @node.dig(:schedule, :scheduled_start),
|
|
40
40
|
end_time: @node.dig(:schedule, :scheduled_end) }
|
|
41
41
|
end
|
|
42
42
|
end
|
data/lib/hcp/version.rb
CHANGED