Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by www.NetBSD.org (Postfix) with ESMTP id 0AAAC63D8D9 for ; Thu, 15 Dec 2011 14:57:40 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 2654314A1A2; Thu, 15 Dec 2011 14:57:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E2D7814A19A for ; Thu, 15 Dec 2011 14:57:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id I42okb8Hz8qp for ; Thu, 15 Dec 2011 14:57:37 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 3F49514A158 for ; Thu, 15 Dec 2011 14:57:37 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 94B8A175DD; Thu, 15 Dec 2011 14:57:37 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Thu, 15 Dec 2011 14:57:37 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/www/ruby-erubis To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20111215145737.94B8A175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: taca Date: Thu Dec 15 14:57:37 UTC 2011 Modified Files: pkgsrc/www/ruby-erubis: DESCR Makefile PLIST distinfo Log Message: 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 = < % for item in @items
  • <%= item %>
  • % end %% you can indent '%' lines END eruby = MyEruby.new(input, :prefixchar=>'%') # default '%' puts eruby.src output: _buf = ''; _buf << '
      '; for item in @items _buf << '
    • '; _buf << ( item ).to_s; _buf << '
    • '; end % you can indent '%' lines _buf << '
    '; _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 To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/www/ruby-erubis/DESCR \ pkgsrc/www/ruby-erubis/Makefile pkgsrc/www/ruby-erubis/PLIST \ pkgsrc/www/ruby-erubis/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.