This release is a major refactor that changes a bit of the internal API. It now has better control to avoid naming conflict when one of your arg methods might match up with the API itself.
Upgrading
- move
help_messageinstance method to a macro - References to
summaryused in yourhelp_messageshould now calltask_summary - If you upgraded to v0.2.0 and replaced
namewithtask_name, you can revert that back toname
Before:
class Task < LuckyTask::Task
summary "Does thing"
def help_message
"#{summary} and more"
end
def call
# do stuff
end
endAfter
class Task < LuckyTask::Task
summary "Does thing"
help_message "#{task_summary} and more"
def call
# do stuff
end
endIf you didn't override help_message or name, then you have nothing to change.