Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@jwoertink jwoertink released this 22 Sep 17:35
8405c04

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 your help_message should now call task_summary
  • If you upgraded to v0.2.0 and replaced name with task_name, you can revert that back to name

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.