textproc/ruby-erubi - The NetBSD Packages Collection

Small ERB Implementation

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)

It is not designed with Erubis API compatibility in mind, though most Erubis
ERB syntax works, with the following exceptions:

* No support for <%=== for debug output

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/ruby32-base

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64ruby31-erubi-1.13.0.tgz
NetBSD 10.0aarch64ruby32-erubi-1.13.0.tgz
NetBSD 10.0aarch64ruby33-erubi-1.13.0.tgz
NetBSD 10.0aarch64ruby31-erubi-1.13.0.tgz
NetBSD 10.0aarch64ruby32-erubi-1.13.0.tgz
NetBSD 10.0aarch64ruby33-erubi-1.13.0.tgz
NetBSD 10.0aarch64ebruby31-erubi-1.13.0.tgz
NetBSD 10.0aarch64ebruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv4ruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv4ruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby32-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby33-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby31-erubi-1.12.0.tgz
NetBSD 10.0earmv6hfruby32-erubi-1.12.0.tgz
NetBSD 10.0earmv6hfruby33-erubi-1.12.0.tgz
NetBSD 10.0earmv6hfruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby32-erubi-1.13.0.tgz
NetBSD 10.0earmv6hfruby33-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby32-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby33-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby31-erubi-1.12.0.tgz
NetBSD 10.0earmv7hfruby32-erubi-1.12.0.tgz
NetBSD 10.0earmv7hfruby33-erubi-1.12.0.tgz
NetBSD 10.0earmv7hfruby31-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby32-erubi-1.13.0.tgz
NetBSD 10.0earmv7hfruby33-erubi-1.13.0.tgz
NetBSD 10.0i386ruby31-erubi-1.13.0.tgz
NetBSD 10.0i386ruby32-erubi-1.13.0.tgz
NetBSD 10.0i386ruby33-erubi-1.13.0.tgz
NetBSD 10.0i386ruby31-erubi-1.13.0.tgz
NetBSD 10.0i386ruby32-erubi-1.13.0.tgz
NetBSD 10.0i386ruby33-erubi-1.13.0.tgz
NetBSD 10.0m68kruby31-erubi-1.12.0.tgz
NetBSD 10.0m68kruby32-erubi-1.12.0.tgz
NetBSD 10.0m68kruby31-erubi-1.12.0.tgz
NetBSD 10.0m68kruby31-erubi-1.13.0.tgz
NetBSD 10.0m68kruby31-erubi-1.13.0.tgz
NetBSD 10.0mips64ebruby31-erubi-1.12.0.tgz
NetBSD 10.0mips64ebruby32-erubi-1.12.0.tgz
NetBSD 10.0mips64ebruby33-erubi-1.12.0.tgz
NetBSD 10.0mips64ebruby31-erubi-1.13.0.tgz
NetBSD 10.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 10.0powerpcruby33-erubi-1.12.0.tgz
NetBSD 10.0sparc64ruby31-erubi-1.13.0.tgz
NetBSD 10.0sparc64ruby32-erubi-1.13.0.tgz
NetBSD 10.0sparc64ruby33-erubi-1.13.0.tgz
NetBSD 10.0sparc64ruby31-erubi-1.13.0.tgz
NetBSD 10.0sparc64ruby32-erubi-1.13.0.tgz
NetBSD 10.0sparc64ruby33-erubi-1.13.0.tgz
NetBSD 10.0sparcruby32-erubi-1.13.0.tgz
NetBSD 10.0sparcruby32-erubi-1.13.0.tgz
NetBSD 10.0vaxruby31-erubi-1.12.0.tgz
NetBSD 10.0vaxruby31-erubi-1.13.0.tgz
NetBSD 10.0vaxruby31-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby31-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby32-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby33-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby31-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby32-erubi-1.13.0.tgz
NetBSD 10.0x86_64ruby33-erubi-1.13.0.tgz
NetBSD 9.0aarch64ruby31-erubi-1.13.0.tgz
NetBSD 9.0aarch64ruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv4ruby31-erubi-1.12.0.tgz
NetBSD 9.0earmv4ruby32-erubi-1.12.0.tgz
NetBSD 9.0earmv4ruby31-erubi-1.12.0.tgz
NetBSD 9.0earmv4ruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv4ruby32-erubi-1.13.0.tgz
NetBSD 9.0earmv4ruby33-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby32-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby33-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby31-erubi-1.12.0.tgz
NetBSD 9.0earmv6hfruby32-erubi-1.12.0.tgz
NetBSD 9.0earmv6hfruby33-erubi-1.12.0.tgz
NetBSD 9.0earmv6hfruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby32-erubi-1.13.0.tgz
NetBSD 9.0earmv6hfruby33-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby32-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby33-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby31-erubi-1.12.0.tgz
NetBSD 9.0earmv7hfruby32-erubi-1.12.0.tgz
NetBSD 9.0earmv7hfruby33-erubi-1.12.0.tgz
NetBSD 9.0earmv7hfruby31-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby32-erubi-1.13.0.tgz
NetBSD 9.0earmv7hfruby33-erubi-1.13.0.tgz
NetBSD 9.0i386ruby31-erubi-1.13.0.tgz
NetBSD 9.0i386ruby32-erubi-1.13.0.tgz
NetBSD 9.0i386ruby33-erubi-1.13.0.tgz
NetBSD 9.0i386ruby31-erubi-1.13.0.tgz
NetBSD 9.0i386ruby32-erubi-1.13.0.tgz
NetBSD 9.0i386ruby33-erubi-1.13.0.tgz
NetBSD 9.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby30-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby30-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby27-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby30-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby31-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby32-erubi-1.12.0.tgz
NetBSD 9.0powerpcruby33-erubi-1.12.0.tgz
NetBSD 9.0sparc64ruby31-erubi-1.12.0.tgz
NetBSD 9.0sparc64ruby31-erubi-1.13.0.tgz
NetBSD 9.0sparc64ruby32-erubi-1.13.0.tgz
NetBSD 9.0sparc64ruby33-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby31-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby32-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby33-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby31-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby32-erubi-1.13.0.tgz
NetBSD 9.0x86_64ruby33-erubi-1.13.0.tgz
NetBSD 9.3x86_64ruby31-erubi-1.13.0.tgz
NetBSD 9.3x86_64ruby32-erubi-1.13.0.tgz
NetBSD 9.3x86_64ruby33-erubi-1.13.0.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.