Skip to content

Commit

Permalink
v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 13, 2024
1 parent 9007b34 commit 79fa534
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Changelog

## New in main
## New in 0.5.2

* Auto mode works for watched directories

## New in 0.5.1

* Add support for tasks depending on directories
* New `fast_dirs` mode in TaskManager for cheaper directory checks
* New `fast_dirs` mode in TaskManager for cheaper directory checks
* Add progress callback
* Add support for passing blocks to Tasks:

Expand Down
6 changes: 3 additions & 3 deletions src/croupier.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require "log"
require "yaml"

module Croupier
VERSION = "0.5.1"
VERSION = "0.5.2"

alias TaskProc = -> String? | Array(String)
alias CallbackProc = Proc(String, Nil)
Expand Down Expand Up @@ -108,7 +108,7 @@ module Croupier
# Refuse to merge if this task or any of the colliding ones
# are not mergeable
raise "Can't merge task #{self} with #{to_merge[..-2].map(&.to_s)}" \
if to_merge.size > 1 && to_merge.any? { |t| !t.mergeable? }
if to_merge.size > 1 && to_merge.any? { |t| !t.mergeable? }
reduced = to_merge.reduce { |t1, t2| t1.merge t2 }
reduced.keys.each { |k| TaskManager.tasks[k] = reduced }
end
Expand Down Expand Up @@ -536,7 +536,7 @@ module Croupier
!File.exists?(input)
}
raise "Can't run: Unknown inputs #{bad_inputs.join(", ")}" \
unless bad_inputs.empty?
unless bad_inputs.empty?
end

# Run all stale tasks in dependency order
Expand Down

0 comments on commit 79fa534

Please sign in to comment.