aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* rdoc update.akr2008-12-181-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as commandyugui2008-12-1812-108/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line options. [ruby-dev:37161]. Fixes #711. improved long optinos. * lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse * lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards scripts that user types as encoded in the external_encoding. * lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto. * lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects magic comment. * lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment in the resource file. * lib/irb/lc/help-message: adds -U and -E. * lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8. * lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific character encoding name table for backward compatibility. * lib/irb/lc/ja/error.rb: re-eoncoded from ISO-2022-JP into UTF-8. magic comment. * lib/irb/locale.rb: integrated with Ruby 1.9's M17N support. * lib/irb/magic-file.rb: new file. utility to handle files with magic comment and opens in the correct encoding. * lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers character encoding for a statement after it lexed so that irb can eval the statement in correct encoding. * lib/irb/src_encoding.rb: new file. utility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: fix bug for ignore session_id option.xibbar2008-12-184-3/+90
| | | | | | | | | | | report from [ruby-core:18635], [Bug #572] * lib/cgi/core.rb: use Encoding#find when encoding set. * test/cgi/test_cgi_session.rb: test for session_id specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_aset): string key copying only happen if key ismatz2008-12-182-1/+8
| | | | | | | | an exact instance of String, not a subclass. based on a patch from Mike Gold <mike.gold.4433 at gmail.com> in [ruby-talk:322667]. [incompatible] [ruby-talk:322417] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse/version.rb: remove variable shadowing to stopmatz2008-12-1814-319/+308
| | | | | | | | | | | | | | | | | | | | warning. [ruby-core:20612] * lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb, lib/rinda/ring.rb, lib/racc/parser.rb, lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto. * lib/racc/parser.rb: remove space before parentheses. * lib/shell/command-processor.rb, lib/shell/process-controller.rb: use parentheses around arguments. * lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb, lib/yaml/baseemitter.rb: indentation fix. * lib/matrix.rb: small cosmetic change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb: Restricting method inspection to show onlyjeg22008-12-172-1/+11
| | | | | | | | | | | non-inherited public methods. [ruby-core:20603] * lib/xmlrpc/server.rb: Fixing method inspection so it doesn't trigger XMLRPC::FaultException when used. [ruby-core:20604] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-18svn2008-12-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-171-9/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (unix_recv_io): relax msg_controllen errorakr2008-12-172-2/+12
| | | | | | | | check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/extconf.rb: check util.h for OpenBSD.akr2008-12-173-1/+26
| | | | | | | | * ext/pty/pty.c: include util.h if available. fix variable name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899]keiju2008-12-172-16/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_push_m): add modification check before actualmatz2008-12-172-0/+4
| | | | | | operation. [ruby-dev:37440] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_pop_m): use enum ary_take_pos_flags.matz2008-12-172-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (OBJDUMP, OBJCOPY):yugui2008-12-172-2/+8
| | | | | | *BSD's ports and MacPorts prefix GNU binutils with 'g'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_hash):kazu2008-12-172-2/+7
| | | | | | | shut up warning. see [ruby-dev:37437] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_hash): gets rid of collisions between differentnobu2008-12-172-1/+10
| | | | | | | encoding strings. [ruby-core:20526] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-17svn2008-12-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_metaclass.rb: removed codes for my debugging.yugui2008-12-172-2/+5
| | | | | | sorry. [ruby-dev:37470] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/testrb: set $0.usa2008-12-162-0/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):matz2008-12-162-1/+4
| | | | | | typo fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.usa2008-12-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):matz2008-12-162-1/+6
| | | | | | should assert by instance_of?, not ===. [ruby-dev:37458] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpToString): reverted modificationmatz2008-12-162-7/+21
| | | | | | | | | (that caused a bug) in r20359. [ruby-dev:37370] * ext/bigdecimal/bigdecimal.c (BigDecimal_limit): comment update. [ruby-dev:37465] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.usa2008-12-162-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (getDevice): add nomesg argument.akr2008-12-163-80/+90
| | | | | | | | | | | (get_device_once): add nomesg argument. chmod slave tty to 0600 if nomesg. more error tests. (no_mesg): new function. (pty_open): make slave tty's mode 0600. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): m17n compliant.tadf2008-12-162-40/+44
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/extconf.rb: check posix_openpt.akr2008-12-164-6/+68
| | | | | | | | * ext/pty/pty.c (get_device_once): use posix_openpt if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c: use strlcpy for error messages.akr2008-12-162-26/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt): returns dispatched result.nobu2008-12-162-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (primary): also in ripper, saves in_def before restoring.nobu2008-12-162-16/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert the previous change. [ruby-dev:37455]knu2008-12-162-10/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typoknu2008-12-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (complex.$(OBJEXT), rational.$(OBJEXT)): Properly addknu2008-12-162-2/+10
| | | | | | | | dependencies to version.h and revision.h to fix parallel build with make -j#. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ac_cv_func_daemon): daemon(3) is deprecated on Mac OSnobu2008-12-162-1/+5
| | | | | | | X 10.5 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ac_cv_header_ucontext_h): do not use ucontext.h on Macnobu2008-12-162-1/+6
| | | | | | | OS X 10.5 or later. merged from MacPorts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_load): ditto.usa2008-12-162-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (set_arg0): use strlcpy() instead of strncpy().usa2008-12-163-3/+8
| | | | | | | | * load.c (rb_feature_p): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (block_call): block should not be given to yield.matz2008-12-162-1/+11
| | | | | | [ruby-core:20583] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed json/runner.rb with permission from florian frank. it was serving no ↵ryan2008-12-151-25/+0
| | | | | | purpose git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-16svn2008-12-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-12-151-0/+60
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (sleep_timeval): cast tv_usec to long to shut upmatz2008-12-152-2/+7
| | | | | | warnings on OSX. [ruby-dev:37449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): revive global sub, gsub, chop, chompmatz2008-12-152-0/+104
| | | | | | | only when auto looping options (-p/-n) is specified. [ruby-core:20570] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX.akr2008-12-152-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (pty_open): new method PTY.open.akr2008-12-152-0/+66
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (get_device_once): use DEVICELEN instead ofakr2008-12-153-7/+8
| | | | | | | | sizeof SlaveName. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): make it static.akr2008-12-152-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (child_info): add slavename.akr2008-12-152-1/+9
| | | | | | | | (chfunc): use slavename. (establishShell): set slavename. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (EXTMK_ARGS): shouldn't use ``\"'' because cmd.exe eatusa2008-12-152-1/+6
| | | | | | | | ''\'' in such quotes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2008-12-150-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e