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_message
instance method to a macro - References to
summary
used in yourhelp_message
should now calltask_summary
- If you upgraded to v0.2.0 and replaced
name
withtask_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
end
After
class Task < LuckyTask::Task
summary "Does thing"
help_message "#{task_summary} and more"
def call
# do stuff
end
end
If you didn't override help_message
or name
, then you have nothing to change.