├── .editorconfig ├── .github └── workflows │ ├── ci.yml │ └── docs.yml ├── .gitignore ├── LICENSE ├── README.md ├── bin └── lucky.gen.email.cr ├── script └── test ├── shard.yml ├── spec ├── address_spec.cr ├── callbacks_spec.cr ├── deliver_later_strategy_spec.cr ├── dev_adapter_spec.cr ├── email_spec.cr ├── emailable_spec.cr ├── expectations_spec.cr ├── spec_helper.cr ├── support │ ├── cleanup_helper.cr │ └── fake_email.cr ├── tasks │ └── email_spec.cr └── templates │ ├── custom_layout │ └── layout.ecr │ ├── email_with_layout │ └── html.ecr │ ├── email_with_templates │ ├── html.ecr │ └── text.ecr │ └── namespaced_email_with_templates │ ├── html.ecr │ └── text.ecr ├── src ├── carbon.cr └── carbon │ ├── adapter.cr │ ├── adapters │ └── dev_adapter.cr │ ├── address.cr │ ├── attachment.cr │ ├── callbacks.cr │ ├── deliver_later_strategy.cr │ ├── email.cr │ ├── emailable.cr │ ├── expectations.cr │ ├── expectations │ ├── be_delivered_expectation.cr │ └── have_delivered_emails_expectation.cr │ ├── spawn_strategy.cr │ ├── string_extensions.cr │ ├── tasks │ └── gen │ │ ├── email.cr │ │ └── templates │ │ ├── email.cr.ecr │ │ ├── html.ecr.ecr │ │ └── text.ecr.ecr │ └── version.cr └── tasks.cr /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/README.md -------------------------------------------------------------------------------- /bin/lucky.gen.email.cr: -------------------------------------------------------------------------------- 1 | require "carbon" 2 | 3 | Gen::Email.new.print_help_or_call(ARGV) 4 | -------------------------------------------------------------------------------- /script/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/script/test -------------------------------------------------------------------------------- /shard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/shard.yml -------------------------------------------------------------------------------- /spec/address_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/address_spec.cr -------------------------------------------------------------------------------- /spec/callbacks_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/callbacks_spec.cr -------------------------------------------------------------------------------- /spec/deliver_later_strategy_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/deliver_later_strategy_spec.cr -------------------------------------------------------------------------------- /spec/dev_adapter_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/dev_adapter_spec.cr -------------------------------------------------------------------------------- /spec/email_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/email_spec.cr -------------------------------------------------------------------------------- /spec/emailable_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/emailable_spec.cr -------------------------------------------------------------------------------- /spec/expectations_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/expectations_spec.cr -------------------------------------------------------------------------------- /spec/spec_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/spec_helper.cr -------------------------------------------------------------------------------- /spec/support/cleanup_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/support/cleanup_helper.cr -------------------------------------------------------------------------------- /spec/support/fake_email.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/support/fake_email.cr -------------------------------------------------------------------------------- /spec/tasks/email_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/spec/tasks/email_spec.cr -------------------------------------------------------------------------------- /spec/templates/custom_layout/layout.ecr: -------------------------------------------------------------------------------- 1 |
Email body
-------------------------------------------------------------------------------- /spec/templates/email_with_templates/html.ecr: -------------------------------------------------------------------------------- 1 | html template 2 | -------------------------------------------------------------------------------- /spec/templates/email_with_templates/text.ecr: -------------------------------------------------------------------------------- 1 | text template 2 | -------------------------------------------------------------------------------- /spec/templates/namespaced_email_with_templates/html.ecr: -------------------------------------------------------------------------------- 1 | namespaced html template 2 | -------------------------------------------------------------------------------- /spec/templates/namespaced_email_with_templates/text.ecr: -------------------------------------------------------------------------------- 1 | namespaced text template 2 | -------------------------------------------------------------------------------- /src/carbon.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon.cr -------------------------------------------------------------------------------- /src/carbon/adapter.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/adapter.cr -------------------------------------------------------------------------------- /src/carbon/adapters/dev_adapter.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/adapters/dev_adapter.cr -------------------------------------------------------------------------------- /src/carbon/address.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/address.cr -------------------------------------------------------------------------------- /src/carbon/attachment.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/attachment.cr -------------------------------------------------------------------------------- /src/carbon/callbacks.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/callbacks.cr -------------------------------------------------------------------------------- /src/carbon/deliver_later_strategy.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/deliver_later_strategy.cr -------------------------------------------------------------------------------- /src/carbon/email.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/email.cr -------------------------------------------------------------------------------- /src/carbon/emailable.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/emailable.cr -------------------------------------------------------------------------------- /src/carbon/expectations.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/expectations.cr -------------------------------------------------------------------------------- /src/carbon/expectations/be_delivered_expectation.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/expectations/be_delivered_expectation.cr -------------------------------------------------------------------------------- /src/carbon/expectations/have_delivered_emails_expectation.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/expectations/have_delivered_emails_expectation.cr -------------------------------------------------------------------------------- /src/carbon/spawn_strategy.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/spawn_strategy.cr -------------------------------------------------------------------------------- /src/carbon/string_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/string_extensions.cr -------------------------------------------------------------------------------- /src/carbon/tasks/gen/email.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/tasks/gen/email.cr -------------------------------------------------------------------------------- /src/carbon/tasks/gen/templates/email.cr.ecr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/tasks/gen/templates/email.cr.ecr -------------------------------------------------------------------------------- /src/carbon/tasks/gen/templates/html.ecr.ecr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/tasks/gen/templates/html.ecr.ecr -------------------------------------------------------------------------------- /src/carbon/tasks/gen/templates/text.ecr.ecr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/src/carbon/tasks/gen/templates/text.ecr.ecr -------------------------------------------------------------------------------- /src/carbon/version.cr: -------------------------------------------------------------------------------- 1 | module Carbon 2 | VERSION = "0.6.1" 3 | end 4 | -------------------------------------------------------------------------------- /tasks.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/carbon/HEAD/tasks.cr --------------------------------------------------------------------------------