Permalink
Browse files

Update ruby-erubis package to 2.7.0.

- release:   2.7.0
  date: 2011-04-01
  enhancements:

    - |
	New option ':bufvar' supported to specify buffer variable name.

	ex:
	    input = "Hello <%= name %>!"
	    eruby = Erubis::Eruby.new(input)
	    puts eruby.src
	       #=>  _buf = ''; _buf << "Hello "; _buf << ( name ).to_s; _buf << '!';

	    eruby = Erubis::Eruby.new(input, :bufvar=>'@_out')
	    puts eruby.src
	       #=>  @_out = ''; @_out << 'Hello '; @_out << ( name ).to_s; @_out << '!';

    - |
	New enhancer 'PrefixedLineEnhancer' which is a customizable version
	of PercentLineEnhancer.
	The difference between PrefixedLineEnhancer and PercentLineEnhancer is:
	* You can indent Ruby statetment lines starting with '%'
	* You can specify prefix character by :prefixchar option.

	ex:
	    class MyEruby < Erubis::Eruby
	      include Erubis::PrefixedLineEnhancer
	    end
	    input = <<END
	    <ul>
	      % for item in @items
	      <li><%= item %></li>
	      % end
	      %% you can indent '%' lines
	    </ul>
	    END
	    eruby = MyEruby.new(input, :prefixchar=>'%')   # default '%'
	    puts eruby.src

	output:
	    _buf = ''; _buf << '<ul>
	    ';   for item in @items
	     _buf << '  <li>'; _buf << ( item ).to_s; _buf << '</li>
	    ';   end
	      % you can indent '%' lines
	     _buf << '</ul>
	    ';
	    _buf.to_s

    - |
	Add helper CGI script. See 'public_html/README.txt' for details.

    - |
	Rubinius is supported as first-class Ruby implementation.

    - |
	C++ support. Try '-l cpp' command-line option.


  changes:

    - |
	Remove dependency to 'abstract' library.
	You don't need to install 'abstract' gem.

    - |
	Erubis::Eruby#load_file() now sets cache file timestamp to the same
	value as original eRuby file. For example, if you restore eRuby files
	from backup, Erubis::Eruby#load_file() can detect it and generate
	cache file again.

	    ## generates cache file (A.rhtml.cache).
	    eruby = Erubis::Eruby.load_file('A.rhtml')
	    p File.mtime('A.rhtml') == File.mtime('A.rhtml.cache')  #=> true
  • Loading branch information...
1 parent 698808c commit d9cb51fc01b2e85922940fc5ce14b609521eb5b1 taca committed Dec 15, 2011
Showing with 45 additions and 13 deletions.
  1. +15 −1 www/ruby-erubis/DESCR
  2. +4 −7 www/ruby-erubis/Makefile
  3. +22 −1 www/ruby-erubis/PLIST
  4. +4 −4 www/ruby-erubis/distinfo
View
16 www/ruby-erubis/DESCR
@@ -1 +1,15 @@
-Erubis is a fast, secure, and very extensible implementation of eRuby.
+Erubis is an implementation of eRuby. It has the following features.
+
+* Very fast, almost three times faster than ERB and even 10% faster than eruby
+* Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)
+* Auto escaping support
+* Auto trimming spaces around '<% %>'
+* Embedded pattern changeable (default '<% %>')
+* Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>')
+* Context object available and easy to combine eRuby template with YAML datafile
+* Print statement available
+* Easy to extend and customize in subclass
+* Ruby on Rails support
+
+Erubis is implemented in pure Ruby. It requires Ruby 1.8 or higher.
+Erubis now supports Ruby 1.9.
View
11 www/ruby-erubis/Makefile
@@ -1,16 +1,13 @@
-# $NetBSD: Makefile,v 1.1.1.1 2011/12/15 14:29:47 taca Exp $
+# $NetBSD: Makefile,v 1.2 2011/12/15 14:57:37 taca Exp $
-DISTNAME= erubis-2.6.6
+DISTNAME= erubis-2.7.0
CATEGORIES= www
-# Note: www/ruby-actionpack3 needs erubis<2.7.
-MAINTAINER= minskim@NetBSD.org
+MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.kuwata-lab.com/erubis/
-COMMENT= Fast, secure, and extensible implementation of eRuby
+COMMENT= Fast and extensible eRuby implementation which supports multi-language
LICENSE= mit
-DEPENDS+= ${RUBY_PKGPREFIX}-abstract>=1.0.0:../../devel/ruby-abstract
-
CONFLICTS+= ruby[1-9][0-9]-erubis-[0-9]* erubis-[0-9]*
.include "../../lang/ruby/gem.mk"
View
23 www/ruby-erubis/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2011/12/15 14:29:47 taca Exp $
+@comment $NetBSD: PLIST,v 1.2 2011/12/15 14:57:37 taca Exp $
bin/erubis
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGES.txt
@@ -33,9 +33,11 @@ ${GEM_LIBDIR}/doc-api/classes/Erubis/CGenerator.html
${GEM_LIBDIR}/doc-api/classes/Erubis/CommandOptionError.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Context.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Converter.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/CppGenerator.html
${GEM_LIBDIR}/doc-api/classes/Erubis/DeleteIndentEnhancer.html
${GEM_LIBDIR}/doc-api/classes/Erubis/DeleteIndentEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Ec.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/Ecpp.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Ejava.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Ejavascript.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Engine.html
@@ -47,6 +49,7 @@ ${GEM_LIBDIR}/doc-api/classes/Erubis/ErubisError.html
${GEM_LIBDIR}/doc-api/classes/Erubis/Eruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/EscapeEnhancer.html
${GEM_LIBDIR}/doc-api/classes/Erubis/EscapedEc.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/EscapedEcpp.html
${GEM_LIBDIR}/doc-api/classes/Erubis/EscapedEjava.html
${GEM_LIBDIR}/doc-api/classes/Erubis/EscapedEjavascript.html
${GEM_LIBDIR}/doc-api/classes/Erubis/EscapedEperl.html
@@ -79,6 +82,7 @@ ${GEM_LIBDIR}/doc-api/classes/Erubis/OptimizedXmlEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Converter.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Ec.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Ecpp.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Ejava.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Ejavascript.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PI/Engine.html
@@ -91,6 +95,8 @@ ${GEM_LIBDIR}/doc-api/classes/Erubis/PercentLineEnhancer.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PercentLineEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PerlGenerator.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PhpGenerator.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/PrefixedLineEnhancer.html
+${GEM_LIBDIR}/doc-api/classes/Erubis/PrefixedLineEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PreprocessingEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PreprocessingHelper.html
${GEM_LIBDIR}/doc-api/classes/Erubis/PrintEnabledEnhancer.html
@@ -112,11 +118,13 @@ ${GEM_LIBDIR}/doc-api/classes/Erubis/StringIOEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/TinyEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/XmlEruby.html
${GEM_LIBDIR}/doc-api/classes/Erubis/XmlHelper.html
+${GEM_LIBDIR}/doc-api/classes/Kernel.html
${GEM_LIBDIR}/doc-api/created.rid
${GEM_LIBDIR}/doc-api/files/README_txt.html
${GEM_LIBDIR}/doc-api/files/erubis/context_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/converter_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/engine/ec_rb.html
+${GEM_LIBDIR}/doc-api/files/erubis/engine/ecpp_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/engine/ejava_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/engine/ejavascript_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/engine/enhanced_rb.html
@@ -137,6 +145,7 @@ ${GEM_LIBDIR}/doc-api/files/erubis/local-setting_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/main_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/preprocessing_rb.html
${GEM_LIBDIR}/doc-api/files/erubis/tiny_rb.html
+${GEM_LIBDIR}/doc-api/files/erubis/util_rb.html
${GEM_LIBDIR}/doc-api/files/erubis_rb.html
${GEM_LIBDIR}/doc-api/fr_class_index.html
${GEM_LIBDIR}/doc-api/fr_file_index.html
@@ -147,6 +156,7 @@ ${GEM_LIBDIR}/doc/docstyle.css
${GEM_LIBDIR}/doc/users-guide.html
${GEM_LIBDIR}/examples/basic/Makefile
${GEM_LIBDIR}/examples/basic/example.ec
+${GEM_LIBDIR}/examples/basic/example.ecpp
${GEM_LIBDIR}/examples/basic/example.ejava
${GEM_LIBDIR}/examples/basic/example.ejs
${GEM_LIBDIR}/examples/basic/example.eperl
@@ -166,6 +176,7 @@ ${GEM_LIBDIR}/lib/erubis/context.rb
${GEM_LIBDIR}/lib/erubis/converter.rb
${GEM_LIBDIR}/lib/erubis/engine.rb
${GEM_LIBDIR}/lib/erubis/engine/ec.rb
+${GEM_LIBDIR}/lib/erubis/engine/ecpp.rb
${GEM_LIBDIR}/lib/erubis/engine/ejava.rb
${GEM_LIBDIR}/lib/erubis/engine/ejavascript.rb
${GEM_LIBDIR}/lib/erubis/engine/enhanced.rb
@@ -185,19 +196,23 @@ ${GEM_LIBDIR}/lib/erubis/local-setting.rb
${GEM_LIBDIR}/lib/erubis/main.rb
${GEM_LIBDIR}/lib/erubis/preprocessing.rb
${GEM_LIBDIR}/lib/erubis/tiny.rb
+${GEM_LIBDIR}/lib/erubis/util.rb
${GEM_LIBDIR}/setup.rb
${GEM_LIBDIR}/test/assert-text-equal.rb
${GEM_LIBDIR}/test/data/users-guide/Example.ejava
${GEM_LIBDIR}/test/data/users-guide/array_example.result
${GEM_LIBDIR}/test/data/users-guide/arraybuffer_example.result
${GEM_LIBDIR}/test/data/users-guide/bipattern-example.rhtml
${GEM_LIBDIR}/test/data/users-guide/bipattern_example.result
+${GEM_LIBDIR}/test/data/users-guide/bufvar-example.rb
+${GEM_LIBDIR}/test/data/users-guide/bufvar-example.result
${GEM_LIBDIR}/test/data/users-guide/context.rb
${GEM_LIBDIR}/test/data/users-guide/context.yaml
${GEM_LIBDIR}/test/data/users-guide/def_method.rb
${GEM_LIBDIR}/test/data/users-guide/def_method.result
${GEM_LIBDIR}/test/data/users-guide/escape_example.result
${GEM_LIBDIR}/test/data/users-guide/example.ec
+${GEM_LIBDIR}/test/data/users-guide/example.ecpp
${GEM_LIBDIR}/test/data/users-guide/example.ejs
${GEM_LIBDIR}/test/data/users-guide/example.eperl
${GEM_LIBDIR}/test/data/users-guide/example.ephp
@@ -255,6 +270,8 @@ ${GEM_LIBDIR}/test/data/users-guide/example_perl.result
${GEM_LIBDIR}/test/data/users-guide/example_php.result
${GEM_LIBDIR}/test/data/users-guide/example_scheme.result
${GEM_LIBDIR}/test/data/users-guide/example_scheme_display.result
+${GEM_LIBDIR}/test/data/users-guide/fasteruby-example.rb
+${GEM_LIBDIR}/test/data/users-guide/fasteruby-example.result
${GEM_LIBDIR}/test/data/users-guide/fasteruby.rb
${GEM_LIBDIR}/test/data/users-guide/fasteruby.result
${GEM_LIBDIR}/test/data/users-guide/fasteruby.rhtml
@@ -279,6 +296,9 @@ ${GEM_LIBDIR}/test/data/users-guide/notext-php.result
${GEM_LIBDIR}/test/data/users-guide/notext_example.result
${GEM_LIBDIR}/test/data/users-guide/percentline-example.rhtml
${GEM_LIBDIR}/test/data/users-guide/percentline_example.result
+${GEM_LIBDIR}/test/data/users-guide/prefixedline-example.rb
+${GEM_LIBDIR}/test/data/users-guide/prefixedline-example.rhtml
+${GEM_LIBDIR}/test/data/users-guide/prefixedline_example.result
${GEM_LIBDIR}/test/data/users-guide/printenable_example.result
${GEM_LIBDIR}/test/data/users-guide/printenabled-example.eruby
${GEM_LIBDIR}/test/data/users-guide/printenabled-example.rb
@@ -294,6 +314,7 @@ ${GEM_LIBDIR}/test/data/users-guide/template2.rhtml
${GEM_LIBDIR}/test/test-engines.rb
${GEM_LIBDIR}/test/test-enhancers.rb
${GEM_LIBDIR}/test/test-erubis.rb
+${GEM_LIBDIR}/test/test-index-cgi.rb
${GEM_LIBDIR}/test/test-main.rb
${GEM_LIBDIR}/test/test-users-guide.rb
${GEM_LIBDIR}/test/test.rb
View
8 www/ruby-erubis/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2011/12/15 14:29:47 taca Exp $
+$NetBSD: distinfo,v 1.2 2011/12/15 14:57:37 taca Exp $
-SHA1 (erubis-2.6.6.gem) = f044e9500a272d4fb2e40368c352350bf92f46f5
-RMD160 (erubis-2.6.6.gem) = e3053b862cc6f9b4e28014691708bed80caf1815
-Size (erubis-2.6.6.gem) = 163840 bytes
+SHA1 (erubis-2.7.0.gem) = fb37414e8454f45a5674caa2a61707df46b370e9
+RMD160 (erubis-2.7.0.gem) = d127d4b22006298814c960f6c8f06b799891eca0
+Size (erubis-2.7.0.gem) = 173056 bytes

0 comments on commit d9cb51f

Please sign in to comment.