hubbado-trailblazer 1.0.2 → 1.1.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/hubbado-trailblazer.gemspec +1 -1
- data/lib/hubbado/trailblazer/macro/prepopulate_contract.rb +3 -3
- 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: ec0cd7706778cadb1bb1bb2627e3883b39662f6ff761c317fddad4efc2ef586d
|
4
|
+
data.tar.gz: dce6665b9dfba888fe406ab7db73e34f2626b427fad5a1bd05478f174aa45da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be2c721e83a16d26f37a2b33e6c14700a5dbf436a7b4550a4ef1f73755aea5228a27541d177e3567621a901e3710eec93a6894b5a53e4b36fa9d3e6c746c556c
|
7
|
+
data.tar.gz: 044d2a714de04d0a85a6cfa7c1ddefc736273dc7dfcf2cb2eb32a22b8fbd927cc79fa5330bd9d85a17a672a2133544031cb548c8f68ad3faed4e94f5634f2783
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.1.0] - 2025-07-08
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- PrepopulateContract key is now optional
|
13
|
+
|
8
14
|
## [1.0.2] - 2025-06-03
|
9
15
|
|
10
16
|
### Changed
|
data/hubbado-trailblazer.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "hubbado-trailblazer"
|
3
|
-
s.version = "1.0
|
3
|
+
s.version = "1.1.0"
|
4
4
|
s.summary = "Enhanced Trailblazer operation utilities for Ruby applications with improved error handling, operation execution patterns, and ActiveRecord integration."
|
5
5
|
|
6
6
|
s.authors = ["Hubbado Devs"]
|
@@ -7,11 +7,11 @@ module Hubbado
|
|
7
7
|
# For example, a contract, for a not yet saved assignment, might have
|
8
8
|
# timesheet approvers that depend on the client company ID in the
|
9
9
|
# contract
|
10
|
-
def self.PrepopulateContract(key:)
|
10
|
+
def self.PrepopulateContract(key: nil)
|
11
11
|
task = ->((ctx, flow_options), _) do
|
12
|
-
ctx[:prepopulated_contract] = key
|
12
|
+
ctx[:prepopulated_contract] = key ? key : true
|
13
13
|
|
14
|
-
params = ctx[:params][key]
|
14
|
+
params = key ? ctx[:params][key] : ctx[:params]
|
15
15
|
|
16
16
|
return ::Trailblazer::Activity::Right, [ctx, flow_options] unless params
|
17
17
|
|