Skip to content

Releases: luckyframework/lucky_task

v0.3.0

22 Sep 17:35
8405c04
Compare
Choose a tag to compare

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.

v0.2.0

27 Aug 22:09
c657bc5
Compare
Choose a tag to compare
  • name is now deprecated. Use task_name to rename your tasks.
  • Lots of code cleanup.

v0.1.1

07 Apr 02:24
da2bfd5
Compare
Choose a tag to compare
bump versions for next release (#7)