Skip to content

Commit

Permalink
Merge branch 'master' into feature/msys2-makefile-exe
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Oct 25, 2024
2 parents e7903da + a25bb3f commit b668c31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/integration/subcommand_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe "subcommand" do
end
end

private def with_path(path)
private def with_path(path, &)
old_path = ENV["PATH"]
ENV["PATH"] = "#{File.expand_path(path)}#{Process::PATH_DELIMITER}#{ENV["PATH"]}"
yield
Expand Down
2 changes: 1 addition & 1 deletion src/molinillo_solver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module Shards
count += 1
active.add(1)
while active.get > Shards.jobs
sleep 0.1
sleep 0.1.seconds
end
spawn do
begin
Expand Down
2 changes: 1 addition & 1 deletion src/package.cr
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module Shards
end
end

private def each_executable_path(name)
private def each_executable_path(name, &)
exe = Shards::Helpers.exe(name)
yield Path["bin", exe]
yield Path["bin", name] unless name == exe
Expand Down

0 comments on commit b668c31

Please sign in to comment.