File rubygem-erubis.spec of Package rubygem-erubis

# spec file for package rubygem-erubis (Version 2.4.0)
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           rubygem-erubis
Version:        2.4.0
Release:        1
Group:          Development/Languages/Ruby
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
BuildRequires:  rubygem-abstract >= 1.0.0
Requires:       rubygems >= 0.8.11
Requires:       rubygem-abstract >= 1.0.0
%define mod_name erubis
Summary:        Erubis is a pure Ruby implementation of eRuby

Erubis is a pure Ruby implementation of eRuby. It has the following

* Very fast, almost three times faster than ERB and even as fast as
   eruby (implemented in C)

* Auto escaping (sanitizing) support

* Auto trimming spaces around '<% %>'

* Embedded pattern changeable (default '<% %>')

* Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)

* Context object available and easy to combine eRuby template with
   YAML datafile

* Easy to expand in subclass, for example:

- Print statement support

- Lines starting with percent character ('%') support

- Another embedded pattern support

- etc...

Erubis supports not only Ruby but also PHP, C, Java, Scheme, Perl, and
Javascript. You can embed these language code into your document and
compile it into target program code.

    makoto kuwata



gem install --build-root=%{buildroot} %{S:0}

%{__rm} -rf %{buildroot}

#doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

* Sun Aug 05 2007 -
- update to version 2.4.0:
  - Preprocessing is supported by Ruby on Rails helper.
  Preprocessing makes Ruby on Rails application about 20-40
  percent faster.
  - Erubis::Eruby#evaluate() (or Erubis::RubyEvaluator#evaluate())
  creates Proc object from @src and eval it.
  - Erubis::Eruby#def_method() is supported. This method defines
  ruby code as instance method or singleton metod.
  - Erubis::XmlHelper.url_escape() and u() which is alias of
  url_escape() are added. This is equivarent to
- additional changes from 2.3.1:
  * A serious bug in 'helpers/rails_helper.rb' is fixed.
  You must be update if you are using Erubis with Ruby on Rails.
* Thu May 24 2007 -
- update to version 2.3.0:
  another bugfix release
* Tue May 22 2007 -
- update to version 2.2.0:
  toooooooooooo long: see CHANGES file
* Fri Sep 29 2006 -
- Update to version 2.1.0:
  * Ruby on Rails support.
  * Another eRuby engine (PIEngine) support. This engine doesn't
  break HTML design because it uses Processing Instructions (PI)
  '<?rb .. ?>' as embedded pattern instead of '<%% .. %%>'.
  * Add new command 'notext' which remove text part from eRuby
  script and leaves only Ruby code.  This is very useful when
  debugging eRuby script.
  * Add new enhance 'NoCode' which removes ruby code from eRuby
  script and leaves only HTML text part.  It is very useful to
  validate HTML of eRuby script.
  * License is changed to LGPL.
  * Command-line property '--escape=name' is renamed to
  * When command-line option '-l perl' is specified, function
  'encode_entities()' is used ad escaping function which is
  available wth HTML::Entities module.
  * There is a certain pattern which makes Engine#convert() too
  slow. Now Engne#convert() is fixed not to be slown.
  * Command name is now displayed when '-h' is specified.
* Wed Jun 21 2006 -
- use rubygems_with_buildroot_patch instead of the versioned
* Mon Jun 19 2006 -
- Initial package version 2.0.1