hcp 1.2.2 → 1.2.3

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: 25cf9f8af71ea2f0a6edadea42ad983a7d1e4de5522278b8633ca1cf3e87de29
4
- data.tar.gz: 785cfeb603055ae3c416d860044f40dbf97dc2023c368b5289a6f648bb61d2ca
3
+ metadata.gz: 9d1ffc074c8306b8bf82153790c5e205a5c3ee758606baac77e16fa79097a4f8
4
+ data.tar.gz: 8414015f07d86c48e63fbeca9afc743462377618519314bff6f342528f9e42dd
5
5
  SHA512:
6
- metadata.gz: cc664f0236c6331b36272c765921f122db8095742fcb9bf334aa7c0c933fae942af61d65762660569ae74ffda6f88b0f4ca2fd811d3c79ab9a65df9f27d320a4
7
- data.tar.gz: 7c553694bb560093cf5214e6eb03b2f3fc012b34fcbb42709b03a3ea328e6f7722f0b72a1f2635b4d840222d156aa1da77e3d050f86ed7c14e44f3198a79ae54
6
+ metadata.gz: f4b405e43222fc579c7fb54d33bd791270ed9eb283641fe26b59dd1ccfa2b269b3d3adac3f3e51ebb81cef1f0e36da3dd7492c9a06d152e7ee5568eaed64029b
7
+ data.tar.gz: d6e498e41fe664170557f5a802a94b64fd84391609f6f06c6694663347bc1d5a5e6bfd65f0da9c4ef8b9582a1dace4a92e3983787741589381aaaf757c937fef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.2.3] - 2026-06-15
2
+
3
+ - [New] Parse estimate_id for :estimate_sent event
4
+
1
5
  ## [1.2.2] - 2026-06-15
2
6
 
3
7
  - [Fix] Replace Net::HTTPOK with broader Net::HTTPSuccess
data/lib/hcp/event.rb CHANGED
@@ -23,8 +23,8 @@ module Hcp
23
23
  # @return [String] unique identifier of the job in a :job_created/scheduled/completed event.
24
24
  def job_id = @params.dig :job, :id
25
25
 
26
- # @return [String] unique identifier of the estimate in a :job_created event.
27
- def estimate_id = @params.dig :job, :original_estimate_id
26
+ # @return [String] unique estimate identifier in a :job_created of :estimate_sent event.
27
+ def estimate_id = @params.dig(:job, :original_estimate_id) || @params.dig(:estimate, :id)
28
28
 
29
29
  # @return [Symbol] the latest conversion type, can be :estimate or :job.
30
30
  def conversion_type = conversion['type'].downcase.to_sym
data/lib/hcp/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Ruby client for the Housecall Pro API.
4
4
  module Hcp
5
5
  # Current version of the gem.
6
- VERSION = '1.2.2'
6
+ VERSION = '1.2.3'
7
7
  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: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo