Skip to content

Commit

Permalink
Fix: Versions + New Release (#87)
Browse files Browse the repository at this point in the history
* fix: version specification

* chore: bump version

* fix: backport lucky_task 0.2

* chore: lucky_task should be higher

* fix: formatting

* fix: remove debug
  • Loading branch information
mdwagner authored Oct 26, 2023
1 parent 961de66 commit b3658e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
12 changes: 6 additions & 6 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: carbon
version: 0.4.1
version: 0.4.2

authors:
- Paul Smith <[email protected]>

crystal: ">= 1.4.0"
crystal: ~> 1.4

license: MIT

Expand All @@ -15,16 +15,16 @@ targets:
dependencies:
habitat:
github: luckyframework/habitat
version: ~> 0.4.8
version: ">= 0.4.7, < 0.5"
lucky_task:
github: luckyframework/lucky_task
version: ~> 0.3.0
version: ">= 0.1.1, < 0.4"
lucky_template:
github: luckyframework/lucky_template
version: ~> 0.2.0
version: ">= 0.2.0, < 0.3"
wordsmith:
github: luckyframework/wordsmith
version: ~> 0.4.0
version: ">= 0.4.0, < 0.5"

development_dependencies:
lucky_env:
Expand Down
23 changes: 15 additions & 8 deletions src/carbon/tasks/gen/email.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,22 @@ end

class Gen::Email < LuckyTask::Task
include LuckyTask::TextHelpers

summary "Generate a new Email"
help_message <<-TEXT
Generate a new email with html and text formats.
The email name must be CamelCase. No other options are available.
Examples:
lucky gen.email WelcomeUser
lucky gen.email SubscriptionRenewed
lucky gen.email ResetPassword
TEXT

{% begin %}
{% lt_0_3_0 = compare_versions(LuckyTask::VERSION, "0.3.0") < 0 %}
{% if lt_0_3_0 %}def help_message{% else %}help_message({% end %}
<<-TEXT
Generate a new email with html and text formats.
The email name must be CamelCase. No other options are available.
Examples:
lucky gen.email WelcomeUser
lucky gen.email SubscriptionRenewed
lucky gen.email ResetPassword
TEXT
{% if lt_0_3_0 %}end{% else %}){% end %}
{% end %}

positional_arg :email_name, "The name of the email", format: /^[A-Z]/

Expand Down

0 comments on commit b3658e3

Please sign in to comment.