cmdx 1.6.0 → 1.6.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: ef05af7473358890c311d872369f870fbaa7ff7bf2fd6d6d14cddd9c9dc80aec
4
- data.tar.gz: 8e1c20c5991d453f947ed5aea44099c9c05861ad11637b27eb02bb5baea4e4f2
3
+ metadata.gz: c054b422d416bb8f3605c0c75961c2dc65fc3ba7aba3125fcd66f1107276dc8a
4
+ data.tar.gz: 05b168249fcf03d62cee5a68a98b30fb038f5da90bea4044809a6e52ee1f2ca2
5
5
  SHA512:
6
- metadata.gz: c59da9cc99292e6241bf9d7fabb91cc00887a6b8a4cd18950c22a495a1adfdc32a769194818944726da0e732e8fb23c842c7086d67ea451f2556a31c4f3a5ef2
7
- data.tar.gz: 89d64b25f51d583605960e19d9b08b366dc4269b5c2ca07cddf562714aaf2cc4c0d9f1a06bbae42ed0ba9ed536715030c4d79dbf8c486305bd4891c331a5107d
6
+ metadata.gz: fe3426a7c2d2a8839583695c9682fb3499bc6e2707349a5e872b293a7100442a7f328212783e083c68f3995379fd8db0cf44b56156506b71e14abf59f3c0d3ec
7
+ data.tar.gz: d29594887e332518500b3af872f987540fc41ff8293a13252bf665b0a2669da38944875b91caab1916d004de6e7b616ef17016de55b667ad80fcff301a153dc7
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ## [TODO]
8
8
 
9
+ ## [1.6.1] - 2025-08-23
10
+
11
+ ### Changes
12
+ - Log task results before freezing
13
+ - Rename `execute_tasks_sequentially` to `execute_tasks_in_sequence`
14
+
9
15
  ## [1.6.0] - 2025-08-22
10
16
 
11
17
  ### Changes
data/LLM.md CHANGED
@@ -2993,6 +2993,9 @@ class OnboardingWorkflow < CMDx::Task
2993
2993
  end
2994
2994
  ```
2995
2995
 
2996
+ > [!TIP]
2997
+ > Execute tasks in parallel via the [cmdx-parallel](https://github.com/drexed/cmdx-parallel) gem.
2998
+
2996
2999
  ### Group
2997
3000
 
2998
3001
  Group related tasks for better organization and shared configuration:
data/README.md CHANGED
@@ -123,11 +123,11 @@ end
123
123
  ## Ecosystem
124
124
 
125
125
  - [cmdx-i18n](https://github.com/drexed/cmdx-i18n) - 85+ translations
126
+ - [cmdx-parallel](https://github.com/drexed/cmdx-parallel) - Parallel workflow tasks
126
127
 
127
128
  The following gems are currently under development:
128
129
 
129
130
  - `cmdx-testing` - RSpec and Minitest matchers
130
- - `cmdx-parallel` - Parallel workflow task execution
131
131
 
132
132
  ## Development
133
133
 
data/docs/workflows.md CHANGED
@@ -33,6 +33,9 @@ class OnboardingWorkflow < CMDx::Task
33
33
  end
34
34
  ```
35
35
 
36
+ > [!TIP]
37
+ > Execute tasks in parallel via the [cmdx-parallel](https://github.com/drexed/cmdx-parallel) gem.
38
+
36
39
  ### Group
37
40
 
38
41
  Group related tasks for better organization and shared configuration:
data/lib/cmdx/executor.rb CHANGED
@@ -165,13 +165,13 @@ module CMDx
165
165
 
166
166
  # Finalizes execution by freezing the task and logging results.
167
167
  def finalize_execution!
168
- Freezer.immute(task)
169
-
170
168
  task.logger.tap do |logger|
171
169
  logger.with_level(:info) do
172
170
  logger.info { task.result.to_h }
173
171
  end
174
172
  end
173
+
174
+ Freezer.immute(task)
175
175
  end
176
176
 
177
177
  end
data/lib/cmdx/pipeline.rb CHANGED
@@ -71,7 +71,7 @@ module CMDx
71
71
  # end
72
72
  def execute_group_tasks(group, breakpoints)
73
73
  # NOTE: Override this method to introduce alternative execution strategies
74
- execute_tasks_sequentially(group, breakpoints)
74
+ execute_tasks_in_sequence(group, breakpoints)
75
75
  end
76
76
 
77
77
  # Executes tasks sequentially within a group, checking breakpoints after each task.
@@ -85,8 +85,8 @@ module CMDx
85
85
  # @raise [HaltError] When a task result status matches a breakpoint
86
86
  #
87
87
  # @example
88
- # execute_tasks_sequentially(group, ["failed", "skipped"])
89
- def execute_tasks_sequentially(group, breakpoints)
88
+ # execute_tasks_in_sequence(group, ["failed", "skipped"])
89
+ def execute_tasks_in_sequence(group, breakpoints)
90
90
  group.tasks.each do |task|
91
91
  task_result = task.execute(workflow.context)
92
92
  next unless breakpoints.include?(task_result.status)
data/lib/cmdx/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CMDx
4
4
 
5
- VERSION = "1.6.0"
5
+ VERSION = "1.6.1"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez