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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45ff838e375f7885ed054e8a8999e8c7e203474bd85b6c655f6c56d2b2b7070f
4
- data.tar.gz: 45c2802dcabf11ccc052317cf2da963bb4107013037429ffd7dc2b2b3f8f906c
3
+ metadata.gz: ec0cd7706778cadb1bb1bb2627e3883b39662f6ff761c317fddad4efc2ef586d
4
+ data.tar.gz: dce6665b9dfba888fe406ab7db73e34f2626b427fad5a1bd05478f174aa45da1
5
5
  SHA512:
6
- metadata.gz: 5b5f0933ace9006d93f56824cd227bf8bbaa746b29532ab1e4f576fcc1794252922232209b0ff40cf3690b96ea83a495f726fa25e3086bed98628805c9d3db96
7
- data.tar.gz: 57edb364c3b12e6d2ea4ba51039716dbe318b6ff559d4c8da3952ad52870ff454c1511a463b5d3b26aac3349822d44270c5c5c1bee7016389ac85bb1e8cc1765
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "hubbado-trailblazer"
3
- s.version = "1.0.2"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubbado-trailblazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hubbado Devs