Date: Thu, 16 May 2024 06:29:37 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 667b692c1347 - main - rubygem-premailer-rails-rails71: Add rubygem-premailer-rails-rails71 1.12.0 Message-ID: <202405160629.44G6Tbmx032508@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=667b692c1347bf3325327bfb5c6c442319c47b66 commit 667b692c1347bf3325327bfb5c6c442319c47b66 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-16 06:13:45 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-16 06:21:51 +0000 rubygem-premailer-rails-rails71: Add rubygem-premailer-rails-rails71 1.12.0 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. --- mail/Makefile | 1 + mail/rubygem-premailer-rails-rails71/Makefile | 22 ++++++++++++++++++++++ mail/rubygem-premailer-rails-rails71/distinfo | 3 +++ mail/rubygem-premailer-rails-rails71/pkg-descr | 18 ++++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 1b6b5b8d4e6e..2f3dfa51c2f5 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -619,6 +619,7 @@ SUBDIR += rubygem-premailer-rails-rails60 SUBDIR += rubygem-premailer-rails-rails61 SUBDIR += rubygem-premailer-rails-rails70 + SUBDIR += rubygem-premailer-rails-rails71 SUBDIR += rubygem-premailer-rails110-rails70 SUBDIR += rubygem-rmail SUBDIR += rubygem-roadie diff --git a/mail/rubygem-premailer-rails-rails71/Makefile b/mail/rubygem-premailer-rails-rails71/Makefile new file mode 100644 index 000000000000..d1be61ee1626 --- /dev/null +++ b/mail/rubygem-premailer-rails-rails71/Makefile @@ -0,0 +1,22 @@ +PORTNAME= premailer-rails +PORTVERSION= 1.12.0 +CATEGORIES= mail rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails71 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= CSS styled emails without the hassle +WWW= https://github.com/fphilipe/premailer-rails + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rubygem-actionmailer71>=3:mail/rubygem-actionmailer71 \ + rubygem-net-smtp>=0:mail/rubygem-net-smtp \ + rubygem-premailer>=1.7.9<2:mail/rubygem-premailer + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/mail/rubygem-premailer-rails-rails71/distinfo b/mail/rubygem-premailer-rails-rails71/distinfo new file mode 100644 index 000000000000..87942c22dfcd --- /dev/null +++ b/mail/rubygem-premailer-rails-rails71/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227794 +SHA256 (rubygem/premailer-rails-1.12.0.gem) = c13815d161b9bc7f7d3d81396b0bb0a61a90fa9bd89931548bf4e537c7710400 +SIZE (rubygem/premailer-rails-1.12.0.gem) = 25088 diff --git a/mail/rubygem-premailer-rails-rails71/pkg-descr b/mail/rubygem-premailer-rails-rails71/pkg-descr new file mode 100644 index 000000000000..4d35cd4d87da --- /dev/null +++ b/mail/rubygem-premailer-rails-rails71/pkg-descr @@ -0,0 +1,18 @@ +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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405160629.44G6Tbmx032508>