aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):gotoyuzo2007-12-314-105/+434
| | | | | | | | | | call do_XXX which corespond with request method. (WEBrick::HTTPProxyServer#do_CONNECT,do_GET,do_POST,do_HEAD): added. * test/webrick/test_httpproxy.rb: add test for WEBrick::HTTPProxyServer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (native_sleep): timespec tv_sec may overflow onmatz2007-12-312-1/+7
| | | | | | | some platform. a patch from zunda <zunda616e AT yahoo.co.jp> in [ruby-dev:32904]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-12-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (IS_7BIT): removed.akr2007-12-312-19/+50
| | | | | | | | | | | | | | | | | (single_byte_optimizable): new function to test optimizationability using single byte string. (str_strlen): use single_byte_optimizable instead of is_ascii_string. (str_nth): rename argument: asc -> singlebyte. (str_offset): ditto. (rb_str_substr): use single_byte_optimizable instead of IS_7BIT. (rb_str_index): ditto. (rb_str_rindex): ditto. (rb_str_splice): ditto. (rb_str_justify): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo.akr2007-12-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-12-317-12/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2007-12-313-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb: find words with underscore.nobu2007-12-311-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * main.c, goruby.c (RUBY_MAIN_INIT): removed.nobu2007-12-303-4/+29
| | | | | | | | * goruby.c (goruby_run_node): run after ruby_init_loadpath() so that require works, and protect the call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * trunk/common.mk: not use -I$(srcdir)/lib with $(MINIRUBY) for crossnobu2007-12-305-9/+17
| | | | | | | | | | compiling. * configure.in, {win,bcc}32/Makefile.sub (MINIRUBY): -I$(srcdir)/lib moved. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_enc_sprintf, rb_enc_vsprintf): prototyped.nobu2007-12-303-8/+38
| | | | | | | | * sprintf.c (rb_enc_sprintf, rb_enc_vsprintf): new functions to format arguments with encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/imap/test_imap.rb: check OpenSSL definition before testing imaps.usa2007-12-302-27/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add more tests for sub, gsub, sub!, gsub!.akr2007-12-301-0/+102
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix \xc2\xa0 as \xc2\xa1.akr2007-12-301-43/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb (String#/): define / as split, as association ofusa2007-12-302-0/+9
| | | | | | | | Array#*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb (@@golf_hash): for performance improvement.eban2007-12-302-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (_valid_time?): I'm not sure to recommend such antadf2007-12-302-4/+9
| | | | | | | expression. but anyway it is acceptable now. [ruby-core:14580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (program, yycompile0): too early to drop lex_lastline innobu2007-12-302-2/+7
| | | | | | | rules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* timeout larger area.akr2007-12-301-10/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: support DOSISH.usa2007-12-302-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update force_encoding document.akr2007-12-301-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (Init_Encoding): registered rb_encoding differs fromnobu2007-12-302-1/+6
| | | | | | | ONIG_ENCODINGs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (program): clear input strings after all process.nobu2007-12-302-6/+16
| | | | | | | | * parse.y (parser_nextc, parser_yylex): should not drop lex_lastline while lex_p is valid. [ruby-dev:32896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/depend: replace spaces by tabnaruse2007-12-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: rm largefile.h.naruse2007-12-305-11/+21
| | | | | | | | | | | * common.mk: clean golf, conf*, preludes, and so on. * enc/depend: silent and ignore error for rm. * enc/Makefile.in: should define prefix and exec_prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (Init_encoding): register Windows-31J and its alias.usa2007-12-293-1/+12
| | | | | | | | | | [ruby-dev:32843] * ruby.c (proc_options): -Ks options means Windows-31J, not Shift_JIS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (depend_rules): need to convert `/' to `\' for windowsusa2007-12-292-0/+9
| | | | | | | | native commands. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use EWOULDBLOCK as an example in document.akr2007-12-291-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2007-12-30usa2007-12-291-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use timeout for thread join to avoid hang.akr2007-12-291-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/Makefile.in (DLDFLAGS): like as extensions. [ruby-core:14567]nobu2007-12-292-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* comment modified.akr2007-12-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fflush): don't retry when wbuf modified by other threads.akr2007-12-292-8/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_regsub): returns the given string itself if nothingnobu2007-12-293-6/+23
| | | | | | | | | | | changed. * string.c (rb_str_sub_bang): keeps code-range as possible. * string.c (str_gsub): adjusts code-range. [ruby-core:14566] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (clean, distclean, realclean): should include clean-encnobu2007-12-292-3/+8
| | | | | | | and others. [ruby-dev:32887] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* changelog for previous change.akr2007-12-291-0/+9
| | | | | | | | | | | | | * bootstraptest/test_knownbug.rb: add a test reported by Kazuhiro NISHIYAMA. [ruby-dev:32819]. add a test reported by Frederick Cheung. [ruby-core:14556]. * test/ruby/test_m17n.rb (test_gsub): add a test reported by Sam Ruby. [ruby-core:14566] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2007-12-292-0/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Fix variable name.gotoyuzo2007-12-281-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_throws):gotoyuzo2007-12-283-11/+36
| | | | | | | | | | | throw won't raise NameError nor ThreadError but ArgumentError on 1.9. (Test::Unit::Assertions#assert_not_throws): ditto. * test/testunit/test_assertions.rb: add assertions for throwing some objects other than Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_unread): fix typo.usa2007-12-282-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_unread): adhoc workaround for non-binary mode of some DOSishusa2007-12-283-3/+20
| | | | | | | | platforms. this is not perfect and safety, but works with most cases. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* unused variable removed.akr2007-12-281-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2007-12-281-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (str_new): new function for allocate an stringakr2007-12-284-9/+31
| | | | | | | | | | | | with encoding propagation. (extract_range): use str_new. (extract_beg_len): ditto. (strscan_peek): ditto. (strscan_rest): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * golf_prelude.rb (Object.say): derived from Perl 5.10.eban2007-12-282-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_locale_encoding): should check return value fromusa2007-12-284-35/+20
| | | | | | | | | | | | | | | | rb_locale_charmap(). * ruby.c (locale_encoding): removed. * ruby.c (process_options): use rb_locale_encoding() instead of locale_encoding(). * ext/readline/readline.c (readline_readline): use locale encoding instead of input IO's encoding. [ruby-dev:32872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_readline, readline_s_set_input):usa2007-12-282-3/+8
| | | | | | | | use mReadline directly because self is not always same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_locale_encoding): defined.akr2007-12-283-0/+19
| | | | | | | | * include/ruby/encoding.h (rb_locale_encoding): declared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_readline): set encoding to result.usa2007-12-282-1/+25
| | | | | | | | | * ext/readline/readline.c (readline_s_set_input, Init_readline): save input IO to hidden instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fri Dec 28 01:55:04 2007 Martin Duerst <duerst@it.aoyama.ac.jp>duerst2007-12-285-53/+154
| | | | | | | | | | | | | | | | | | | | | * transcode.c (transcode_dispatch): reverted some of the changes in r14746. * transcode.c, enc/trans/single_byte.c: Added conversions to/from US-ASCII and ASCII-8BIT (using data tables). * enc/trans/single_byte.c: Some spacing/ordering changes due to automatic data file generation. * transcode_data.h, transcode.c: Preliminary code for using micro-conversion functions. * test/ruby/test_transcode.rb: Added some tests for US-ASCII and ASCII-8BIT conversions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e