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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 796d536211d1039f154af0ea0340de4e814d9cf86c9009e60af68670dbc16cda
4
- data.tar.gz: cd18b17cc8e162a750c998f5d554835d6982d75a7b417c4d60dc26dcfda9106a
3
+ metadata.gz: 4d401d8b087f9b1c05637aaad2f69c6f343ff3d8d50809c02d1b12f6d3fa2889
4
+ data.tar.gz: e58432a01d9530029c912b92451c9e94101dd8de0982ca072fb540572d14cbfb
5
5
  SHA512:
6
- metadata.gz: 1a6302bcfa3722c31caae3cc45d2bfb7d30c60895869c6a03fcc8d7851db99be8ad7f1b460d704f51a268e11fe2a78fef2e351186f9617f312d0ae759d0043e2
7
- data.tar.gz: 65d2d60980d7386121a6f411f591398741fda04298a42d39102666b530ebd5239c4cfbe4297ea98d9d99721c2719505674440360551269352a52e0f2d69fceb3
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
- # the estimate's own.
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
@@ -1,5 +1,5 @@
1
1
  # The Housecall Pro API, answered in the vocabulary of the company gem.
2
2
  module Hcp
3
3
  # The version of this gem, as RubyGems knows it.
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo