svn commit: r439679 - in head/www: . rubygem-erubi
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Apr 28 21:26:05 UTC 2017
Author: sunpoet
Date: Fri Apr 28 21:26:03 2017
New Revision: 439679
URL: https://svnweb.freebsd.org/changeset/ports/439679
Log:
Add rubygem-erubi 1.6.0
Erubi is a ERB template engine for Ruby. It is a simplified fork of Erubis,
using the same basic algorithm, with the following differences:
- Handles postfix conditionals when using escaping (e.g. <%= foo if bar %>)
- Supports frozen_string_literal: true in templates via :freeze option
- Works with Ruby's -enable-frozen-string-literal option
- Automatically freezes strings for template text when Ruby optimizes it (on
Ruby 2.1+)
- Escapes ' (apostrophe) when escaping for better XSS protection
- Has 6x faster escaping on Ruby 2.3+ by using cgi/escape
- Has 86% smaller memory footprint
- Does no monkey patching (Erubis adds a method to Kernel)
- Uses an immutable design (all options passed to the constructor, which returns
a frozen object)
- Has simpler internals (1 file, <150 lines of code)
- Has an open development model (Erubis doesn't have a public source control
repository or bug tracker)
- Is not dead (Erubis hasn't been updated since 2011)
WWW: https://github.com/jeremyevans/erubi
Added:
head/www/rubygem-erubi/
head/www/rubygem-erubi/Makefile (contents, props changed)
head/www/rubygem-erubi/distinfo (contents, props changed)
head/www/rubygem-erubi/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Fri Apr 28 21:24:17 2017 (r439678)
+++ head/www/Makefile Fri Apr 28 21:26:03 2017 (r439679)
@@ -1950,6 +1950,7 @@
SUBDIR += rubygem-em-twitter
SUBDIR += rubygem-em-websocket
SUBDIR += rubygem-emk-sinatra-url-for
+ SUBDIR += rubygem-erubi
SUBDIR += rubygem-erubis
SUBDIR += rubygem-ethon
SUBDIR += rubygem-eventmachine_httpserver
Added: head/www/rubygem-erubi/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-erubi/Makefile Fri Apr 28 21:26:03 2017 (r439679)
@@ -0,0 +1,19 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= erubi
+PORTVERSION= 1.6.0
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= ERB template engine for Ruby
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
Added: head/www/rubygem-erubi/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-erubi/distinfo Fri Apr 28 21:26:03 2017 (r439679)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1493403401
+SHA256 (rubygem/erubi-1.6.0.gem) = 3d5c1d19390f201a209e5d01a3c41bee253c0b0afa508ee872b979ee3c778a0f
+SIZE (rubygem/erubi-1.6.0.gem) = 12288
Added: head/www/rubygem-erubi/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/rubygem-erubi/pkg-descr Fri Apr 28 21:26:03 2017 (r439679)
@@ -0,0 +1,19 @@
+Erubi is a ERB template engine for Ruby. It is a simplified fork of Erubis,
+using the same basic algorithm, with the following differences:
+- Handles postfix conditionals when using escaping (e.g. <%= foo if bar %>)
+- Supports frozen_string_literal: true in templates via :freeze option
+- Works with Ruby's -enable-frozen-string-literal option
+- Automatically freezes strings for template text when Ruby optimizes it (on
+ Ruby 2.1+)
+- Escapes ' (apostrophe) when escaping for better XSS protection
+- Has 6x faster escaping on Ruby 2.3+ by using cgi/escape
+- Has 86% smaller memory footprint
+- Does no monkey patching (Erubis adds a method to Kernel)
+- Uses an immutable design (all options passed to the constructor, which returns
+ a frozen object)
+- Has simpler internals (1 file, <150 lines of code)
+- Has an open development model (Erubis doesn't have a public source control
+ repository or bug tracker)
+- Is not dead (Erubis hasn't been updated since 2011)
+
+WWW: https://github.com/jeremyevans/erubi
More information about the svn-ports-head
mailing list