1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/bin
yugui af91b42354 * lib/erb.rb (ERB): m17n of ERB. adds rdoc.
fixes #712. c.f. [ruby-dev:37516].

* lib/erb.rb (ERB::Compiler#compile): recognizes magic comments.
  returns a pair of compiled script and its script encoding.

* lib/erb.rb (ERB#set_eoutvar): make generated scripts return a
  string in correct encoding.

* lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness
  of the evaluated string.

* bin/erb.rb (ERB::Main.run): adds -E and -U options.
  String is no longer Enumerable.

* man/erb.1: new manapage.

* test/erb/test_erb_m17n.rb: new test case for m17n features.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:26:34 +00:00
..
erb * lib/erb.rb (ERB): m17n of ERB. adds rdoc. 2008-12-29 09:26:34 +00:00
gem Import RubyGems 1.1.0 2008-03-31 22:40:06 +00:00
irb * $Date$ keyword removed to avoid inclusion of locale dependent 2008-01-06 15:49:38 +00:00
rake Added Rake 0.8.0 2007-12-21 03:22:43 +00:00
rdoc Renamespace lib/rdoc/markup from SM::SimpleMarkup to RDoc::Markup. 2008-01-14 03:34:05 +00:00
ri Import RDoc 2.2.1 r185 2008-09-25 02:43:03 +00:00
testrb * bin/testrb: set $0. 2008-12-16 13:56:13 +00:00