summaryrefslogtreecommitdiff
path: root/lib/erubis/enhancer.rb
Commit message (Collapse)AuthorAgeFilesLines
* [change] rename ':bufname' option to ':bufvar'makoto kuwata2011-03-211-11/+11
|
* [refactor] 'InterporationEnhancer' and 'PrintOutEnhancer'makoto kuwata2011-02-231-5/+5
|
* [bugfix] 'InterporationEnhancer#_add_text_to_str()' raised ↵makoto kuwata2011-02-231-2/+1
| | | | null-pointer-exception in a certain case
* [bugfix] change 'PrefixedLineEnhancer' to be available with command-line ↵makoto kuwata2011-02-231-5/+10
| | | | option '-E'
* [refactor] change 'PercentLineEnhancer' to be subset of 'PrefixedLineEnhancer'makoto kuwata2011-02-221-47/+32
|
* [enhance] add 'PrefixedLineEnhancer' module and 'PrefixedLineEruby' classmakoto kuwata2011-02-221-0/+54
|
* [enhance] add new option ':bufname' to specify buffer variable namemakoto kuwata2011-02-221-11/+11
|
* [bugfix] fix a bug on InterporationEnhancermakoto kuwata2010-06-271-1/+1
|
* [edit] remove '$Rev$' from all filesmakoto kuwata2009-07-141-1/+0
|
* - [enhance] test/testutil.rb: add TestCase::post_definitionmakoto kuwata2008-06-121-5/+14
| | | | | | - [enhance] Ruby 1.9 support - [change] Evaluator#evaluate() changed not to use Erubis::EMPTY_BINDING to support Ruby1.9
* - [enhance] '<%= =%>' and '<%= -%>' removed tail spacesmakoto kuwata2008-04-291-1/+2
|
* - [bugfix] PercentLineEnhancer#add_text() was very slow (now very fast)makoto kuwata2007-09-101-6/+21
|
* - [refactor] remove RailsHelperEruby from helpers/rails.rbmakoto kuwata2007-05-181-1/+1
| | | | | | - [bugfix] change context key 'code' to 'symbol' in benchmark/bench_context.yaml
* - [enhance] new command-line option '-X', '-N', '-C', and '-U' supportmakoto kuwata2007-05-151-2/+2
| | | | | | | | - [change] command 'notext' has been removed - [change] remove test/test-notext.{rb,yaml} - [change] command-line option '-C' has been desupported
* - [change] rename ExpressionInterporationEnhancer to InterpolationEnhancermakoto kuwata2007-05-151-1/+1
| | | | | | - [enhance] add test/test-users-guide.rb
* - [bugfix] ExpressionInterporationEnhancer.description() had errormakoto kuwata2007-05-151-1/+1
| | | | | | - [bugfix] test/test-main.rb fixed around error messages
* - [enhance] add DeleteIndentEnhancer(no author)2007-03-051-0/+19
|
* - [enhance] add ErboutEnhancer(no author)2007-03-051-23/+113
| | | | | | - [enhance] add ExpressionInterpolationEnhancer
* - [enhance] Ruby on Rails support improved(no author)2007-02-061-0/+25
| | | | | | | | | - [enhance] add 'contrib/action_view_base_rb.patch' - [change] license changed to MIT License - [change] '<%- -%>' support - [update] users-guide, README.txt
* - [change] engine/eruby.rb: class Erubis::Eruby changed to include ↵(no author)2007-02-021-1/+1
| | | | StringBufferEnhancer instead of ArrayBufferEnhancer
* - [refactor] add Converter#detect_lspace()makoto kuwata2007-01-091-3/+4
| | | | | | - [refacotr] SimplifyEnhancer#convert()
* - [refactor] split engine.rb into converter.rb, generator.rb, evaluator.rb, ↵makoto kuwata2006-08-021-5/+2
| | | | context.rb, and error.rb
* - [refactor] divide Engine class into Converter, Generator, and Evaluatormakoto kuwata2006-08-021-8/+6
| | | | | | | | | | - [refactor] merge 'pi/enhancer.rb' into 'engine.rb' - [refacotr] remove 'pi/*.rb' - [enhance] add PI::TinyEruby - [change] property ':escape' is renamed to ':escapefunc' - [enhance] new property '--escape={true|false}'
* - [refactor] untabify() function is improved to use String#split() instead ↵makoto kuwata2006-07-271-3/+7
| | | | | | | | of String#scan() - [refactor] Engine#compile() is improved by scanning regexp tuning
* - [change] 'bin/noitem' uses pattern '<? !>' when lang is eperlmakoto kuwata2006-05-271-1/+36
| | | | | | | | - [enhance] new enhancer NoCodeEnhander - [change] Erubis::Eperl#escaped_expr() prints 'encode_entities()' which is avairlable with HTML::Entities module - [bugfix] define_testmethods() (in 'test/testutil.rb') use 'module_eval' instead of 'eval' - [update] doc/users-guide.txt updated
* - [change] '_out' is changed to '_buf'makoto kuwata2006-05-191-22/+22
| | | | | | | | | | - [change] option '-s' is obsolete - [change] option '-E' is obsolete - [change] option '-e' is renamed to '-E' - [change] use command-line option object in Main class - [refact] Helper#escape_xml() is changed to call String#gsub a time - [change] test-bin.rb invoke Main.new.execute(), not 'ruby $script'
* - [change] engine/xxx.rb is renamed to engine/exxx.rbmakoto kuwata2006-05-181-4/+31
| | | | | - [enhance] add 'bin/notext' command
* - [enhance] new module NoTextEnhancer addedmakoto kuwata2006-05-071-5/+34
| | | | | | - [change] Eruby#add_stmt() desn't add ';' when the last character is ?\n - [bugfix] PrintEnableEnhancer#evaluate() added to evaluate with it's context
* - [refactor] Engine#compile() refactoredmakoto kuwata2006-05-021-10/+54
| | | | | | | | | | | | | - [refactor] XxxxXmlEruby classes are removed - [change] PrintStatementEnhancer is renamed to PrintOutEnhancer - [change] add benchmark/erubybench-lib.rb - [change] command-line option '-E' (enhancers) changed to '-e' - [change] README is rewrited in RDoc format - [change] removed FastEnhancer - [change] removed XxxXmlEruby classes - [enhance] new command-line option '-E' (show all enhancers) - [enhance] add XxxEnhancer.desc
* - [enhance] javascript supportmakoto kuwata2006-04-301-21/+49
| | | | | | | | | | | | | - [enhance] new property :preamble and :postamble support - [enhance] new command-line option '-b' (body only) - [change] Engine#init_src()/finis_src() are named to add_preamble()/add_postamble() - [change] Ejava changed to print preamble and postamble. - [enhance] add simplest.rb - [enhance] new method Engine#compile!(), which compile input and set @src - [enhance] new command-line option '-E' (load enhancers) - [enhance] new property :escape, which represents escape function name - [update] update users-guide
* - [change] Eruby adopt ArrayBufferEnhancer as defaultmakoto kuwata2006-04-291-15/+262
| | | | | | | | | | | | | | | | | | | | - [enhance] new module BiPatternEnhancer [experimental] - [enhance] new module SimplifiedEnhancer - [enhance] new module StringBufferEnhancer - [enhance] new module PrintStatementEnhancer - [enhance] new module PercentLineEnhancer - [enhance] new module HeaderFooterEnhancer [experimental] - [enhance] new class OutputSimplifiedEruby - [enhance] Engine.supported_properties() added - [enhance] print show_properties() when '-h' is specified - [enhance] add Eperl class (engine/perl.rb) - [enhance] add examples - [change] class Eruby includes ArrayBufferEnhancer - [change] EscapeEnhancer now overrides add_expr() - [change] module PrintEnhancer is renamed to PrintAvailableEnhancer - [change] Ejava doesn't out 'StringBuffer _buf' nor 'return _buf.toString();' - [change] subclasses of Eruby are moved to new file 'enhanced.rb'
* - [enhance] PHP, C, Java, and Scheme supportmakoto kuwata2006-04-271-114/+33
| | | | | | | | | - [enhance] new class Engine is splitted from Eruby - [enhance] Eruby now escapes '<%== ... %>' - [change] method names are changed in Engine class ('add_src_code'=>'add_stmt', etc) - [enhance] new module ArrayEnhancer and ArrayBufferEnhander - [enhance] add test/test-engines.rb
* - [change] class EscapedEruby is removed and add EscapeEnhancermakoto kuwata2006-04-261-0/+105
| | | | | - [change] XmlEruby includes EscapeEnhancer
* - [enhance] new method Eruby#pattern_regexp() to customize regexp for scanningmakoto kuwata2006-04-251-0/+88
- [change] 'lib/erubis.rb' is divided into eruby.rb, enhancer.rb, and optimized.rb - [change] command 'bin/erubis' is moved to 'lib/erubis/main.rb' - [change] benchmark/erubybench.rb updated - [enhance] new command-line option '-k' (convert map key to Symbol) added