erubis 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/{CHANGES → CHANGES.txt} +59 -3
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +5 -5
  4. data/benchmark/bench.rb +2 -2
  5. data/bin/erubis +2 -2
  6. data/contrib/erubis +46 -46
  7. data/contrib/inline-require +2 -2
  8. data/doc-api/classes/Erubis.html +5 -1
  9. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  10. data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
  11. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  12. data/doc-api/classes/Erubis/Context.html +42 -42
  13. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
  14. data/doc-api/classes/Erubis/Engine.html +30 -30
  15. data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
  16. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  17. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Helpers.html +6 -1
  19. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
  20. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
  21. data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
  22. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  23. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  24. data/doc-api/classes/Erubis/Main.html +19 -19
  25. data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
  26. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  27. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  28. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  29. data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  31. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  32. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  33. data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
  34. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  35. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  36. data/doc-api/classes/Erubis/XmlHelper.html +30 -30
  37. data/doc-api/created.rid +1 -1
  38. data/doc-api/files/README_txt.html +6 -7
  39. data/doc-api/files/erubis/context_rb.html +1 -1
  40. data/doc-api/files/erubis/converter_rb.html +1 -1
  41. data/doc-api/files/erubis/engine/ec_rb.html +1 -1
  42. data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
  43. data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
  44. data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
  45. data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
  46. data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
  47. data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
  48. data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
  49. data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
  50. data/doc-api/files/erubis/engine_rb.html +1 -1
  51. data/doc-api/files/erubis/enhancer_rb.html +1 -1
  52. data/doc-api/files/erubis/error_rb.html +1 -1
  53. data/doc-api/files/erubis/evaluator_rb.html +1 -1
  54. data/doc-api/files/erubis/generator_rb.html +1 -1
  55. data/doc-api/files/erubis/helper_rb.html +1 -1
  56. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  57. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  58. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  59. data/doc-api/files/erubis/main_rb.html +1 -1
  60. data/doc-api/files/erubis/tiny_rb.html +1 -1
  61. data/doc-api/files/erubis_rb.html +2 -2
  62. data/doc-api/fr_class_index.html +1 -0
  63. data/doc-api/fr_file_index.html +1 -0
  64. data/doc-api/fr_method_index.html +162 -138
  65. data/doc/users-guide.html +157 -62
  66. data/lib/erubis.rb +4 -4
  67. data/lib/erubis/context.rb +2 -2
  68. data/lib/erubis/converter.rb +2 -2
  69. data/lib/erubis/engine.rb +2 -2
  70. data/lib/erubis/engine/ec.rb +2 -2
  71. data/lib/erubis/engine/ejava.rb +2 -2
  72. data/lib/erubis/engine/ejavascript.rb +2 -2
  73. data/lib/erubis/engine/enhanced.rb +2 -2
  74. data/lib/erubis/engine/eperl.rb +2 -2
  75. data/lib/erubis/engine/ephp.rb +2 -2
  76. data/lib/erubis/engine/eruby.rb +2 -2
  77. data/lib/erubis/engine/escheme.rb +2 -2
  78. data/lib/erubis/engine/optimized.rb +2 -2
  79. data/lib/erubis/enhancer.rb +2 -2
  80. data/lib/erubis/error.rb +2 -2
  81. data/lib/erubis/evaluator.rb +2 -2
  82. data/lib/erubis/generator.rb +2 -2
  83. data/lib/erubis/helper.rb +2 -2
  84. data/lib/erubis/helpers/rails_form_helper.rb +190 -0
  85. data/lib/erubis/helpers/rails_helper.rb +63 -28
  86. data/lib/erubis/local-setting.rb +2 -2
  87. data/lib/erubis/main.rb +2 -2
  88. data/lib/erubis/tiny.rb +2 -2
  89. data/test/assert-text-equal.rb +2 -2
  90. data/test/test-engines.rb +2 -2
  91. data/test/test-enhancers.rb +2 -2
  92. data/test/test-erubis.rb +2 -2
  93. data/test/test-main.rb +2 -2
  94. data/test/test-users-guide.rb +2 -2
  95. data/test/test.rb +2 -2
  96. data/test/testutil.rb +2 -2
  97. metadata +53 -44
  98. data/test/data/users-guide/stderr.log +0 -3
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## $Rev: 95 $
3
- ## $Release: 2.4.1 $
4
- ## copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ## $Release: 2.5.0 $
4
+ ## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ##
6
6
 
7
7
  require "#{File.dirname(__FILE__)}/test.rb"
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## $Rev: 93 $
3
- ## $Release: 2.4.1 $
4
- ## copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ## $Release: 2.5.0 $
4
+ ## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ##
6
6
 
7
7
  require "#{File.dirname(__FILE__)}/test.rb"
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## $Rev: 94 $
3
- ## $Release: 2.4.1 $
4
- ## copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ## $Release: 2.5.0 $
4
+ ## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ##
6
6
 
7
7
  require "#{File.dirname(__FILE__)}/test.rb"
@@ -1,6 +1,6 @@
1
1
  ##
2
2
  ## $Rev: 87 $
3
- ## $Release: 2.4.1 $
3
+ ## $Release: 2.5.0 $
4
4
  ## $Date: 2007-07-12 05:01:24 +0900 (Thu, 12 Jul 2007) $
5
5
  ##
6
6
 
@@ -178,7 +178,7 @@ END
178
178
 
179
179
  def test_version # -v
180
180
  @options = '-v'
181
- @expected = (("$Release: 2.4.1 $" =~ /[.\d]+/) && $&) + "\n"
181
+ @expected = (("$Release: 2.5.0 $" =~ /[.\d]+/) && $&) + "\n"
182
182
  @filename = false
183
183
  _test()
184
184
  end
@@ -1,7 +1,7 @@
1
1
  ###
2
2
  ### $Rev: 77 $
3
- ### $Release: 2.4.1 $
4
- ### copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ### $Release: 2.5.0 $
4
+ ### copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ###
6
6
 
7
7
  require "#{File.dirname(__FILE__)}/test.rb"
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## $Rev: 77 $
3
- ## $Release: 2.4.1 $
4
- ## copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ## $Release: 2.5.0 $
4
+ ## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ##
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  ###
2
2
  ### $Rev: 77 $
3
- ### $Release: 2.4.1 $
4
- ### copyright(c) 2006-2007 kuwata-lab.com all rights reserved.
3
+ ### $Release: 2.5.0 $
4
+ ### copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
5
5
  ###
6
6
 
7
7
  require 'yaml'
metadata CHANGED
@@ -1,33 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: erubis
5
3
  version: !ruby/object:Gem::Version
6
- version: 2.4.1
7
- date: 2007-09-25 00:00:00 +09:00
8
- summary: a fast and extensible eRuby implementation which supports multi-language
9
- require_paths:
10
- - lib
11
- email:
12
- homepage: http://www.kuwata-lab.com/erubis/
13
- rubyforge_project:
14
- description: "Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and about 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"
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 2.5.0
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - makoto kuwata
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-30 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: abstract
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.0
23
+ version:
24
+ description: "Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and about 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"
25
+ email: kwa(at)kuwata-lab.com
26
+ executables:
27
+ - erubis
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
31
32
  files:
32
33
  - lib/erubis
33
34
  - lib/erubis/context.rb
@@ -49,6 +50,7 @@ files:
49
50
  - lib/erubis/generator.rb
50
51
  - lib/erubis/helper.rb
51
52
  - lib/erubis/helpers
53
+ - lib/erubis/helpers/rails_form_helper.rb
52
54
  - lib/erubis/helpers/rails_helper.rb
53
55
  - lib/erubis/local-setting.rb
54
56
  - lib/erubis/main.rb
@@ -173,7 +175,6 @@ files:
173
175
  - test/data/users-guide/printenabled-example.rb
174
176
  - test/data/users-guide/printstatement_example.result
175
177
  - test/data/users-guide/simplify_example.result
176
- - test/data/users-guide/stderr.log
177
178
  - test/data/users-guide/stdout_exmple.result
178
179
  - test/data/users-guide/stringbuffer_example.result
179
180
  - test/data/users-guide/template1.rhtml
@@ -188,7 +189,7 @@ files:
188
189
  - doc/docstyle.css
189
190
  - doc/users-guide.html
190
191
  - README.txt
191
- - CHANGES
192
+ - CHANGES.txt
192
193
  - MIT-LICENSE
193
194
  - setup.rb
194
195
  - contrib/action_view_base_rb.patch
@@ -248,6 +249,7 @@ files:
248
249
  - doc-api/classes/Erubis/HeaderFooterEnhancer.html
249
250
  - doc-api/classes/Erubis/HeaderFooterEruby.html
250
251
  - doc-api/classes/Erubis/Helpers
252
+ - doc-api/classes/Erubis/Helpers/RailsFormHelper.html
251
253
  - doc-api/classes/Erubis/Helpers/RailsHelper
252
254
  - doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html
253
255
  - doc-api/classes/Erubis/Helpers/RailsHelper.html
@@ -323,6 +325,7 @@ files:
323
325
  - doc-api/files/erubis/generator_rb.html
324
326
  - doc-api/files/erubis/helper_rb.html
325
327
  - doc-api/files/erubis/helpers
328
+ - doc-api/files/erubis/helpers/rails_form_helper_rb.html
326
329
  - doc-api/files/erubis/helpers/rails_helper_rb.html
327
330
  - doc-api/files/erubis/local-setting_rb.html
328
331
  - doc-api/files/erubis/main_rb.html
@@ -334,25 +337,31 @@ files:
334
337
  - doc-api/fr_method_index.html
335
338
  - doc-api/index.html
336
339
  - doc-api/rdoc-style.css
337
- test_files:
338
- - test/test.rb
340
+ has_rdoc: false
341
+ homepage: http://www.kuwata-lab.com/erubis/
342
+ post_install_message:
339
343
  rdoc_options: []
340
344
 
341
- extra_rdoc_files: []
342
-
343
- executables:
344
- - erubis
345
- extensions: []
346
-
345
+ require_paths:
346
+ - lib
347
+ required_ruby_version: !ruby/object:Gem::Requirement
348
+ requirements:
349
+ - - ">="
350
+ - !ruby/object:Gem::Version
351
+ version: "0"
352
+ version:
353
+ required_rubygems_version: !ruby/object:Gem::Requirement
354
+ requirements:
355
+ - - ">="
356
+ - !ruby/object:Gem::Version
357
+ version: "0"
358
+ version:
347
359
  requirements: []
348
360
 
349
- dependencies:
350
- - !ruby/object:Gem::Dependency
351
- name: abstract
352
- version_requirement:
353
- version_requirements: !ruby/object:Gem::Version::Requirement
354
- requirements:
355
- - - ">="
356
- - !ruby/object:Gem::Version
357
- version: 1.0.0
358
- version:
361
+ rubyforge_project: erubis
362
+ rubygems_version: 1.0.1
363
+ signing_key:
364
+ specification_version: 2
365
+ summary: a fast and extensible eRuby implementation which supports multi-language
366
+ test_files:
367
+ - test/test.rb
@@ -1,3 +0,0 @@
1
- *** debug: item="<aaa>"
2
- *** debug: item="b&b"
3
- *** debug: item="\"ccc\""