erubis 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → CHANGES.txt} +59 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +5 -5
- data/benchmark/bench.rb +2 -2
- data/bin/erubis +2 -2
- data/contrib/erubis +46 -46
- data/contrib/inline-require +2 -2
- data/doc-api/classes/Erubis.html +5 -1
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Context.html +42 -42
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Engine.html +30 -30
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers.html +6 -1
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
- data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/Main.html +19 -19
- data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
- data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
- data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/XmlHelper.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +6 -7
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +1 -1
- data/doc-api/files/erubis/engine/ec_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
- data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
- data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
- data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
- data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
- data/doc-api/files/erubis/engine_rb.html +1 -1
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/error_rb.html +1 -1
- data/doc-api/files/erubis/evaluator_rb.html +1 -1
- data/doc-api/files/erubis/generator_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +1 -1
- data/doc-api/files/erubis/main_rb.html +1 -1
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +2 -2
- data/doc-api/fr_class_index.html +1 -0
- data/doc-api/fr_file_index.html +1 -0
- data/doc-api/fr_method_index.html +162 -138
- data/doc/users-guide.html +157 -62
- data/lib/erubis.rb +4 -4
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +2 -2
- data/lib/erubis/engine/ec.rb +2 -2
- data/lib/erubis/engine/ejava.rb +2 -2
- data/lib/erubis/engine/ejavascript.rb +2 -2
- data/lib/erubis/engine/enhanced.rb +2 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +2 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +2 -2
- data/lib/erubis/error.rb +2 -2
- data/lib/erubis/evaluator.rb +2 -2
- data/lib/erubis/generator.rb +2 -2
- data/lib/erubis/helper.rb +2 -2
- data/lib/erubis/helpers/rails_form_helper.rb +190 -0
- data/lib/erubis/helpers/rails_helper.rb +63 -28
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +2 -2
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +2 -2
- data/test/test-erubis.rb +2 -2
- data/test/test-main.rb +2 -2
- data/test/test-users-guide.rb +2 -2
- data/test/test.rb +2 -2
- data/test/testutil.rb +2 -2
- metadata +53 -44
- data/test/data/users-guide/stderr.log +0 -3
data/test/test-engines.rb
CHANGED
data/test/test-enhancers.rb
CHANGED
data/test/test-erubis.rb
CHANGED
data/test/test-main.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
##
|
2
2
|
## $Rev: 87 $
|
3
|
-
## $Release: 2.
|
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.
|
181
|
+
@expected = (("$Release: 2.5.0 $" =~ /[.\d]+/) && $&) + "\n"
|
182
182
|
@filename = false
|
183
183
|
_test()
|
184
184
|
end
|
data/test/test-users-guide.rb
CHANGED
data/test/test.rb
CHANGED
data/test/testutil.rb
CHANGED
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.
|
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
|
-
|
338
|
-
-
|
340
|
+
has_rdoc: false
|
341
|
+
homepage: http://www.kuwata-lab.com/erubis/
|
342
|
+
post_install_message:
|
339
343
|
rdoc_options: []
|
340
344
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
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
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
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
|