aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * hash.c (rb_hash_s_create): check and convert argument hashmatz2007-10-252-8/+32
| | | | | | | | | using #to_hash. * hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of hash conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_assoc): check and convert inner arrays (assocs)matz2007-10-253-6/+10
| | | | | | using #to_ary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]nobu2007-10-253-5/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokspace): increment tokidxdavidflanagan2007-10-252-4/+8
| | | | | | | fixes test failure at [test/ruby/test_stringchar.rb:72] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri.rb, lib/uri/ldaps.rb: added LDAPSakira2007-10-253-0/+18
| | | | | | | cheme. [ruby-dev:31896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug thatjeg22007-10-242-2/+8
| | | | | | | | caused time zone conversion to fail for some ISO 8601 date formats. [ruby-Bugs-12677] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly startjeg22007-10-242-0/+8
| | | | | | | the HTTP connection to support keepalive requests. [ruby-Bugs-9353] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the errorjeg22007-10-242-2/+7
| | | | | | | message for Content-Type check failures. [ruby-core:12163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):jeg22007-10-242-1/+6
| | | | | | | Making Content-Type checks case insensitive. [ruby-Bugs-3367] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokspace): make space in token buffer.nobu2007-10-243-10/+32
| | | | | | | * parse.y (parser_yylex): fix encoding of single character literal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* specify prefix for Dir.mktmpdir.akr2007-10-243-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to modify TestDBM2 and TestGDBM2.akr2007-10-242-26/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Dir.mktmpdir.akr2007-10-243-9/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* doc. wording fix.akr2007-10-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Dir.mktmpdir.akr2007-10-243-27/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rescue Errno::EWOULDBLOCK as well as Errno::EAGAIN in sample code in rdoc.akr2007-10-231-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.nobu2007-10-232-1/+6
| | | | | | | [ruby-core:12850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: reorderd.nobu2007-10-231-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): encoding set by command line option takesnobu2007-10-232-1/+13
| | | | | | | priority over the encoding in the source, as the primary encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): allow space after -E (encoding) option.matz2007-10-222-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_cycle): hide temporary array from ObjectSpace.matz2007-10-223-7/+15
| | | | | | [ruby-core:12762] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:32084].akr2007-10-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_to_encoding_index, rb_to_encoding): commit miss.nobu2007-10-221-3/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_check_encoding): returns index now.nobu2007-10-222-13/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_compatible): check if two objects have compatiblenobu2007-10-224-4/+34
| | | | | | | | | | | encodings. * encoding.c (enc_compatible_p): added Encoding.compatible?. * include/ruby/encoding.h (rb_enc_compatible): prototype. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_default, rb_enc_primary): return pointers tonobu2007-10-214-15/+31
| | | | | | | | | rb_encoding of default and primary respectively. [ruby-core:12795] * encoding.c (set_primary_encoding): removed primary_encoding setter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_get_path): returns frozen string.nobu2007-10-203-10/+17
| | | | | | | * file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_id_encoding): returns ID "encoding".nobu2007-10-193-21/+68
| | | | | | | | | * marshal.c (w_encoding): dump encoding name. * marshal.c (r_ivar): load encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_regx_options, reg_compile_gen): relaxened encodingnobu2007-10-193-37/+71
| | | | | | | | | | | | | | matching rule. * re.c (rb_reg_initialize): always set encoding of Regexp. * re.c (rb_reg_initialize_str): fix enconding for non 7bit-clean strings. * re.c (rb_reg_initialize_m): use ascii encoding for 'n' option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set primary encoding from the parsernobu2007-10-192-9/+8
| | | | | | | | | always. [ruby-core:12758] * ruby.c (load_file): should not discard the parser parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_last): commit miss.nobu2007-10-191-4/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_last): removed unused variables.nobu2007-10-192-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (Init_Range): typo fixed.matz2007-10-182-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_find_index): update RDoc. a patch from David Flanaganmatz2007-10-182-15/+29
| | | | | | | | | | | | | <david AT davidflanagan.com> in [ruby-core:12710]. * enum.c (enum_take, enum_drop): ditto. * enum.c (enum_cycle): should not cause infinite loop for empty arrays. [ruby-core:12710] <david AT davidflanagan.com> in [ruby-core:12710]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/source.rb (REXML::SourceFactory::SourceFactory): morematz2007-10-182-6/+13
| | | | | | | duck typed. better performance on JRuby. http://headius.blogspot.com/2007/10/another-performance-discovery-rexml.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_first): takes first n element if argument ismatz2007-10-186-13/+82
| | | | | | | | | | | given. [ruby-core:12697] * range.c (range_last): returns last n elements if argument is given. * array.c (rb_ary_subseq, rb_ary_last): export. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]nobu2007-10-172-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_s_union): the last check was not complete.matz2007-10-172-3/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_from_encoding, rb_enc_register): associate indexnobu2007-10-173-6/+24
| | | | | | | | | | | | to self. * encoding.c (enc_capable): Encoding objects are encoding capable. * re.c (rb_reg_s_union): check if encoding matching by exact encoding objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_alias, rb_enc_find_index): changednobu2007-10-163-12/+83
| | | | | | | | | | | | | | | | enc_table_alias to a name-to-index hash. * encoding.c (rb_enc_init): use upper case names for aliases to use as constant names. * encoding.c (enc_find): allow symbols. * encoding.c (Init_Encoding): define encoding constants. * st.c (strcasehash): fix wrong code range condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_list): seems a commit miss.nobu2007-10-161-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_primary_encoding): added Encoding.primary_encoding.nobu2007-10-166-11/+108
| | | | | | | | | | | | | | | | | * parse.y (rb_parser_encoding): added. * ruby.c (proc_options): added -E and --encoding options. * ruby.c (process_options): set primary encoding from command line option if set, or source encoding. * include/ruby/encoding.h (rb_enc_from_encoding, rb_get_primary_encoding, rb_set_primary_encoding): prototypes. * include/ruby/node.h (rb_parser_encoding): prototype. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_desc): set encoding.nobu2007-10-162-2/+7
| | | | | | | * re.c (rb_reg_s_union): check encodings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/utf8.c (utf8_code_to_mbclen): 0xfe and 0xff are valid Unicode tonobu2007-10-162-5/+6
| | | | | | | be encoded to 2bytes in UTF-8. [ruby-core:12700] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_ord): use encoding.nobu2007-10-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_initialize_m): allow binary encoding option.nobu2007-10-163-4/+19
| | | | | | | [ruby-dev:32083] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* It should be ArgumentError thatakr2007-10-161-0/+12
| | | | | | | | | | Regexp.union( "a", Regexp.new("\x80".force_encoding("euc-jp")), Regexp.new("\x80".force_encoding("utf-8"))). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_s_union): check for encoding of original object.nobu2007-10-162-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Regexp.union("a", "a") causes SEGV.akr2007-10-161-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NODE_LMASK is also possible for enum.akr2007-10-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e