aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add additional information to RDoc template valuesdrbrain2008-01-071-36/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (STR_ENC_GET): defined. same as rb_enc_get withoutakr2008-01-072-102/+93
| | | | | | | | | | | | | | | | enc_capable. (coderange_scan): ASCII-8BIT test refined. (rb_enc_cr_str_buf_cat): new internal function to accumulate strings with encoding. (rb_enc_str_buf_cat): use rb_enc_cr_str_buf_cat. (rb_str_buf_append): ditto (str_gsub): use rb_str_buf_append. (rb_str_hash): use ENCODING_GET. (rb_str_comparable): ditto. (rb_str_cmp): compare encoding index, not rb_encoding address. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-01-072-0/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/cgihandler.rb: external encoding ofgotoyuzo2008-01-072-0/+7
| | | | | | | tempfiles is set to "ASCII-8BIT". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use ERB instead of custom template language for RDoc.drbrain2008-01-0711-1573/+688
| | | | | | | | Remove old_html template. Convert all templates to ERB. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (Init_String): sym_match arity spec was wrong. a patchmatz2008-01-073-2/+7
| | | | | | from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_knownbug [ruby-core:14813]matz2008-01-071-0/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): move rb_enc_get(str) to out of loop.akr2008-01-072-4/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/oniguruma.h (OnigEncodingType): new memberakr2008-01-074-16/+15
| | | | | | | | | | | | | ruby_encoding_index to avoid linear search in rb_enc_to_index. * include/ruby/encoding.h (rb_enc_to_index): macro defined to use ruby_encoding_index. * encoding.c (rb_enc_to_index): removed. (enc_register_at): initialize ruby_encoding_index member. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Namespace TokenStream under RDoc.drbrain2008-01-072-9/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_knowbug [ruby-core:14813]matz2008-01-071-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Namespace RDoc::DOT. Clean up formatting of RDoc::Diagrams.drbrain2008-01-073-74/+83
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Convert RDoc to OptionParser, clean up -h output, namespace Options under RDoc.drbrain2008-01-0713-594/+635
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, Makefile.in, */Makefile.sub (distclean-local): moveusa2008-01-076-1/+10
| | | | | | | | | removing rule of ext/ripper/y.output from common.mk to Makefiles that depend on platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/generators.rb: set properties.nobu2008-01-070-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_preprocess): fix fixed_enc condition.akr2008-01-072-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge documentation from the same class on ri generation.drbrain2008-01-073-10/+27
| | | | | | | | Fixes bug where documentation could disappear. Fix typo in lib/rdoc/options.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_internal_get_index): extracted fromakr2008-01-078-24/+88
| | | | | | | | | | | | | | | | | | | | | rb_enc_get_index. (rb_enc_internal_set_index): extracted from rb_enc_associate_index * include/ruby/encoding.h (ENCODING_SET): work over ENCODING_INLINE_MAX. (ENCODING_GET): ditto. (ENCODING_IS_ASCII8BIT): defined. (ENCODING_CODERANGE_SET): defined. * re.c (rb_reg_fixed_encoding_p): use ENCODING_IS_ASCII8BIT. * string.c (rb_enc_str_buf_cat): use ENCODING_IS_ASCII8BIT. * parse.y (reg_fragment_setenc_gen): use ENCODING_IS_ASCII8BIT. * marshal.c (has_ivars): use ENCODING_IS_ASCII8BIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test_knonbugmatz2008-01-071-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Collapse namespaces and refactor requires in RDocdrbrain2008-01-076-366/+352
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Clean up comments and whitespace in RDoc generatorsdrbrain2008-01-074-262/+248
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-01-07usa2008-01-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2008-01-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (coderange_scan): avoid rb_enc_to_index.akr2008-01-062-6/+13
| | | | | | | | | (rb_enc_str_buf_cat): ditto. (str_cat_char): use rb_enc_str_buf_cat. (rb_str_inspect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (coderange_scan): optimize ASCII-8BIT string.akr2008-01-062-5/+31
| | | | | | | (rb_enc_str_buf_cat): don't call coderange_scan if possible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB::Revision): cut off locale dependent string in Dateakr2008-01-062-1/+6
| | | | | | | keyword. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't use Date keyword itself.akr2008-01-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-06174-173/+5
| | | | | | | string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_str): forbid raw non ASCII characterakr2008-01-063-2/+17
| | | | | | | for ASCII-8BIT regexp in non ASCII-8BIT script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_enc_str_buf_cat): declared.akr2008-01-065-100/+189
| | | | | | | | | | | | | | | | * string.c (coderange_scan): extracted from rb_enc_str_coderange. (rb_enc_str_coderange): use coderange_scan. (rb_str_shared_replace): copy encoding and coderange. (rb_enc_str_buf_cat): new function for linear complexity string accumulation with encoding. (rb_str_sub_bang): don't conflict substituted part and replacement. (str_gsub): use rb_enc_str_buf_cat. (rb_str_clear): clear coderange. * re.c (rb_reg_regsub): use rb_enc_str_buf_cat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: Add Win32 support.technorama2008-01-062-2/+51
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-01-061-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-01-06usa2008-01-061-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: introduced some constantstadf2008-01-064-62/+94
| | | | | | | | | (for internal use) and aliases (minute and second). * sample/cal.rb: trivial adjustments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* unused variable removed.akr2008-01-051-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* split combinational tests.akr2008-01-052-1281/+1434
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-01-051-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_str): /\x80/n is not an error even if scriptakr2008-01-053-2/+15
| | | | | | | encoding is EUC-JP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Reolv::DNS#each_address): get A record and then AAAAnaruse2008-01-052-10/+7
| | | | | | | record. [ruby-dev:32925] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a comment.akr2008-01-051-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_callee_setup_arg): it is not inlinable becauseakr2008-01-052-1/+6
| | | | | | | alloca is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb(test_s_codepage_changed) : modify testsuke2008-01-051-11/+22
| | | | | | | for m17n. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb(test_s_locale_change) :add assertion whichsuke2008-01-051-0/+3
| | | | | | | should raise WIN32OLERuntimeError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_resize): copy if old data is not emptynobu2008-01-052-3/+3
| | | | | | | [ruby-core:14785] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_resize): copy at old length but not new length.nobu2008-01-052-1/+6
| | | | | | | [ruby-core:14785] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): no need for intermediate object.nobu2008-01-052-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2008-01-054-33/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (Init_Encoding): alias csWindows31J to Windows-31J.akr2008-01-052-0/+6
| | | | | | | IE6 accepts csWindows31J but Windows-31J. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (rb_intern): memorize interned ID for constantakr2008-01-043-0/+20
| | | | | | | string, using gcc's __builtin_constant_p and statement expression. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (trnext): should enable backslash escape.matz2008-01-042-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e