├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .jrubyrc ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.md ├── README.md ├── Rakefile ├── benchmark.rb ├── bin ├── console └── setup ├── config ├── devtools.yml ├── flog.yml ├── mutant.yml ├── reek.yml └── yardstick.yml ├── examples ├── base.rb └── base │ ├── invoice.html.erb │ └── invoice.txt.erb ├── hanami-mailer.gemspec ├── lib └── hanami │ ├── mailer.rb │ └── mailer │ ├── configuration.rb │ ├── dsl.rb │ ├── finalizer.rb │ ├── template.rb │ ├── template_name.rb │ ├── templates_finder.rb │ └── version.rb ├── script └── ci └── spec ├── integration └── hanami │ └── mailer │ └── delivery_spec.rb ├── spec_helper.rb ├── support ├── context.rb ├── fixtures.rb ├── fixtures │ └── templates │ │ ├── charset_mailer.txt.erb │ │ ├── dynamic_layout.html.erb │ │ ├── dynamic_layout.txt.erb │ │ ├── invoice.html.erb │ │ ├── lazy_mailer.html.erb │ │ ├── lazy_mailer.txt.erb │ │ ├── missing.txt.erb │ │ ├── proc_mailer.txt.erb │ │ ├── render_mailer.html.erb │ │ ├── static_layout.html.erb │ │ ├── static_layout.txt.erb │ │ ├── template_engine_mailer.html.haml │ │ ├── welcome_mailer │ │ ├── welcome_mailer.erb │ │ ├── welcome_mailer.html │ │ ├── welcome_mailer.html.erb │ │ ├── welcome_mailer.txt.erb │ │ ├── with_dynamic_layout_mailer.html.erb │ │ ├── with_dynamic_layout_mailer.txt.erb │ │ ├── with_static_layout_mailer.html.erb │ │ └── with_static_layout_mailer.txt.erb └── rspec.rb └── unit └── hanami ├── mailer ├── configuration_spec.rb ├── dsl_spec.rb ├── error_spec.rb ├── finalizer_spec.rb ├── missing_delivery_data_error_spec.rb ├── template_name_spec.rb ├── template_spec.rb ├── templates_finder_spec.rb ├── unknown_mailer_error_spec.rb └── version_spec.rb └── mailer_spec.rb /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/.gitignore -------------------------------------------------------------------------------- /.jrubyrc: -------------------------------------------------------------------------------- 1 | debug.fullTrace=true 2 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/Rakefile -------------------------------------------------------------------------------- /benchmark.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/benchmark.rb -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/bin/setup -------------------------------------------------------------------------------- /config/devtools.yml: -------------------------------------------------------------------------------- 1 | --- 2 | unit_test_timeout: 0.2 3 | -------------------------------------------------------------------------------- /config/flog.yml: -------------------------------------------------------------------------------- 1 | --- 2 | threshold: 18.4 3 | -------------------------------------------------------------------------------- /config/mutant.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/config/mutant.yml -------------------------------------------------------------------------------- /config/reek.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/config/reek.yml -------------------------------------------------------------------------------- /config/yardstick.yml: -------------------------------------------------------------------------------- 1 | --- 2 | threshold: 100 3 | -------------------------------------------------------------------------------- /examples/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/examples/base.rb -------------------------------------------------------------------------------- /examples/base/invoice.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/examples/base/invoice.html.erb -------------------------------------------------------------------------------- /examples/base/invoice.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/examples/base/invoice.txt.erb -------------------------------------------------------------------------------- /hanami-mailer.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/hanami-mailer.gemspec -------------------------------------------------------------------------------- /lib/hanami/mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/configuration.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/dsl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/dsl.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/finalizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/finalizer.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/template.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/template_name.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/template_name.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/templates_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/templates_finder.rb -------------------------------------------------------------------------------- /lib/hanami/mailer/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/lib/hanami/mailer/version.rb -------------------------------------------------------------------------------- /script/ci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/script/ci -------------------------------------------------------------------------------- /spec/integration/hanami/mailer/delivery_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/integration/hanami/mailer/delivery_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/context.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/context.rb -------------------------------------------------------------------------------- /spec/support/fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures.rb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/charset_mailer.txt.erb: -------------------------------------------------------------------------------- 1 | 蓮 2 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/dynamic_layout.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/dynamic_layout.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/dynamic_layout.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/dynamic_layout.txt.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/invoice.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/invoice.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/lazy_mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/lazy_mailer.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/lazy_mailer.txt.erb: -------------------------------------------------------------------------------- 1 | This is a txt template 2 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/missing.txt.erb: -------------------------------------------------------------------------------- 1 | Missin' 2 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/proc_mailer.txt.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> 2 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/render_mailer.html.erb: -------------------------------------------------------------------------------- 1 | Hello <%= user.name %>, 2 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/static_layout.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/static_layout.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/static_layout.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/static_layout.txt.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/template_engine_mailer.html.haml: -------------------------------------------------------------------------------- 1 | %h1 2 | = user.name 3 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/welcome_mailer: -------------------------------------------------------------------------------- 1 | Fixture used by 2 | spec/unit/hanami/mailer/templates_finder_spec.rb 3 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/welcome_mailer.erb: -------------------------------------------------------------------------------- 1 | Fixture used by 2 | spec/unit/hanami/mailer/templates_finder_spec.rb 3 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/welcome_mailer.html: -------------------------------------------------------------------------------- 1 | Fixture used by 2 | spec/unit/hanami/mailer/templates_finder_spec.rb 3 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/welcome_mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/welcome_mailer.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/welcome_mailer.txt.erb: -------------------------------------------------------------------------------- 1 | This is a txt template 2 | <%= greeting %> 3 | -------------------------------------------------------------------------------- /spec/support/fixtures/templates/with_dynamic_layout_mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/with_dynamic_layout_mailer.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/with_dynamic_layout_mailer.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/with_dynamic_layout_mailer.txt.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/with_static_layout_mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/with_static_layout_mailer.html.erb -------------------------------------------------------------------------------- /spec/support/fixtures/templates/with_static_layout_mailer.txt.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/fixtures/templates/with_static_layout_mailer.txt.erb -------------------------------------------------------------------------------- /spec/support/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/support/rspec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/configuration_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/dsl_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/dsl_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/finalizer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/finalizer_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/missing_delivery_data_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/missing_delivery_data_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/template_name_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/template_name_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/template_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/template_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/templates_finder_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/templates_finder_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/unknown_mailer_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/unknown_mailer_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer/version_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/mailer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/hanami-mailer/HEAD/spec/unit/hanami/mailer_spec.rb --------------------------------------------------------------------------------