mail/rubygem-premailer-rails-rails-gitlab 1.12.0 MidnightBSD
CSS styled emails without the hassle
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
3cf31b1d1c- License
- mit
- Categories
- mail, rubygems
Description
premailer-rails is a drop in solution for styling HTML emails with CSS without having to do the hard work yourself.
Styling emails is not just a matter of linking to a stylesheet. Most clients, especially web clients, ignore linked stylesheets or <style> tags in the HTML. The workaround is to write all the CSS rules in the style attribute of each tag inside your email. This is a rather tedious and hard to maintain approach.
Premailer to the rescue! The great premailer gem applies all CSS rules to each matching HTML element by adding them to the style attribute. This allows you to keep HTML and CSS in separate files, just as you're used to from web development, thus keeping your sanity.
This gem is an adapter for premailer to work with actionmailer out of the box. Actionmailer is the email framework used in Rails, which also works outside of Rails. Although premailer-rails has certain Rails specific features, it also works in the absence of Rails making it compatible with other frameworks such as sinatra.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | mail/rubygem-premailer-rails-rails-gitlab | 1.12.0 |
| FreeBSD | mail/rubygem-premailer-rails-rails-gitlab | 1.12.0 |
| DragonFly | mail/rubygem-premailer-rails-rails-gitlab | 1.12.0 |
| HardenedBSD | mail/rubygem-premailer-rails-rails-gitlab | 1.12.0 |
| GhostBSD | mail/rubygem-premailer-rails-rails-gitlab | 1.12.0 |
Install
Binary package:
mport install premailer-rails-rails-gitlab
From mports:
cd /usr/mports/mail/rubygem-premailer-rails-rails-gitlab && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= premailer-rails-rails-gitlab>0:mail/rubygem-premailer-rails-rails-gitlab
Dependencies
As this port's Makefile names them.
Build 3
rubygem-actionmailer-gitlab>=3: mail/rubygem-actionmailer-gitlabrubygem-net-smtp>=0: mail/rubygem-net-smtprubygem-premailer>=1.7.9<2: mail/rubygem-premailer
Runtime 3
rubygem-actionmailer-gitlab>=3: mail/rubygem-actionmailer-gitlabrubygem-net-smtp>=0: mail/rubygem-net-smtprubygem-premailer>=1.7.9<2: mail/rubygem-premailer
Build dependencies 3
Run dependencies 3
No port depends on this one.
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/premailer-rails-1.12.0.gem | 25088 | c13815d161b9bc7f7d3d81396b0bb0a61a90fa9bd89931548bf4e537c7710400 |
Master sites 1
- RG
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
3cf31b1d1c |
Lucas Holt | Add Premailer Rails GitLab build dependencies (#1590) Fix Magus run 648 port ID 2267416. Make Action Mailer and Premailer
available during fake-stage gemspec QA.
Validation:
- bmake check-license
- clean bmake package NO_DEPENDS=yes with an isolated dependency gem
path
- portlint -C (no fatal errors)
- git diff --check
## Summary by Sourcery
Make Premailer Rails dependencies available during build and fake-stage
gemspec validation.
Bug Fixes:
- Ensure Premailer Rails exposes Action Mailer and Premailer
dependencies during gemspec QA and build-time validation.
Build:
- Add the package's runtime dependencies to its build dependencies.
Signed-off-by: Lucas Holt <[email protected]> |