--- - branch: MAIN date: Thu Dec 15 14:57:37 UTC 2011 files: - new: '1.2' old: 1.1.1.1 path: pkgsrc/www/ruby-erubis/DESCR pathrev: pkgsrc/www/ruby-erubis/DESCR@1.2 type: modified - new: '1.2' old: 1.1.1.1 path: pkgsrc/www/ruby-erubis/Makefile pathrev: pkgsrc/www/ruby-erubis/Makefile@1.2 type: modified - new: '1.2' old: 1.1.1.1 path: pkgsrc/www/ruby-erubis/PLIST pathrev: pkgsrc/www/ruby-erubis/PLIST@1.2 type: modified - new: '1.2' old: 1.1.1.1 path: pkgsrc/www/ruby-erubis/distinfo pathrev: pkgsrc/www/ruby-erubis/distinfo@1.2 type: modified id: 20111215T145737Z.5a7647045d0d0a3af0da50005b54b0fd635a62d2 log: "Update ruby-erubis package to 2.7.0.\n\n- release: 2.7.0\n date: 2011-04-01\n \ enhancements:\n\n - |\n\tNew option ':bufvar' supported to specify buffer variable name.\n\n\tex:\n\t input = \"Hello <%= name %>!\"\n\t eruby = Erubis::Eruby.new(input)\n\t \ puts eruby.src\n\t #=> _buf = ''; _buf << \"Hello \"; _buf << ( name ).to_s; _buf << '!';\n\n\t eruby = Erubis::Eruby.new(input, :bufvar=>'@_out')\n\t \ puts eruby.src\n\t #=> @_out = ''; @_out << 'Hello '; @_out << ( name ).to_s; @_out << '!';\n\n - |\n\tNew enhancer 'PrefixedLineEnhancer' which is a customizable version\n\tof PercentLineEnhancer.\n\tThe difference between PrefixedLineEnhancer and PercentLineEnhancer is:\n\t* You can indent Ruby statetment lines starting with '%'\n\t* You can specify prefix character by :prefixchar option.\n\n\tex:\n\t \ class MyEruby < Erubis::Eruby\n\t include Erubis::PrefixedLineEnhancer\n\t \ end\n\t input = <\n\t % for item in @items\n\t
  • <%= item %>
  • \n\t % end\n\t %% you can indent '%' lines\n\t \n\t \ END\n\t eruby = MyEruby.new(input, :prefixchar=>'%') # default '%'\n\t \ puts eruby.src\n\n\toutput:\n\t _buf = ''; _buf << '\n\t ';\n\t \ _buf.to_s\n\n - |\n\tAdd helper CGI script. See 'public_html/README.txt' for details.\n\n - |\n\tRubinius is supported as first-class Ruby implementation.\n\n \ - |\n\tC++ support. Try '-l cpp' command-line option.\n\n changes:\n\n - |\n\tRemove dependency to 'abstract' library.\n\tYou don't need to install 'abstract' gem.\n\n - |\n\tErubis::Eruby#load_file() now sets cache file timestamp to the same\n\tvalue as original eRuby file. For example, if you restore eRuby files\n\tfrom backup, Erubis::Eruby#load_file() can detect it and generate\n\tcache file again.\n\n\t \ ## generates cache file (A.rhtml.cache).\n\t eruby = Erubis::Eruby.load_file('A.rhtml')\n\t \ p File.mtime('A.rhtml') == File.mtime('A.rhtml.cache') #=> true\n" module: pkgsrc subject: 'CVS commit: pkgsrc/www/ruby-erubis' unixtime: '1323961057' user: taca