Skip to content
New issue

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

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

Already on GitHub? Sign in 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant