Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Accept Pathname object as rule's prerequisite #528

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gemmaro
Copy link
Contributor

@gemmaro gemmaro commented Dec 15, 2023

Hello,

This change allows the rule to accept a Pathname object as a prerequisite.

foo = Pathname("foo")

# before
rule ".o" => [".c", foo.to_s] do |t|
  # ...
end

# after
rule ".o" => ["c", foo] do |t|
  # ...
end

Thank you,

@gemmaro gemmaro changed the title Accept Pathname-like object as rule's prerequisite Accept Pathname object as rule's prerequisite Dec 16, 2023
@gemmaro gemmaro force-pushed the feat/rule-pathname branch 2 times, most recently from a1df689 to 73ee66c Compare December 20, 2023 10:43
@hsbt hsbt force-pushed the feat/rule-pathname branch from 73ee66c to b9477ce Compare March 15, 2024 00:39
@gemmaro
Copy link
Contributor Author

gemmaro commented Dec 29, 2024

I rebased to the latest master branch. Feel free to let me know if there is anything that needs to be done to merge.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant