summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/digest/lib/digest.rb (Digest::self.const_missing): avoidmatz2007-07-283-5/+12
| | | | | | infinite recursive const_missing call. [ruby-talk:262193] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_eqq): call_super() in === does not work wellmatz2007-07-262-3/+25
| | | | | | since Enumerable#=== has different behavior. [ruby-dev:31296] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (load_1, dln_find_1): constified.nobu2007-07-263-5/+9
| | | | | | | * ruby.c (usage): constified. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (conv_to_posix_path): removed.nobu2007-07-264-121/+124
| | | | | | | | | | | | | * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return VALUE instead of a pointer to static buffer. * ruby.c (push_include_cygwin): fixed buffer overflow. [ruby-dev:31297] * ruby.c (ruby_init_loadpath): not convert built-in paths. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/formatters/*.rb: set properties.nobu2007-07-250-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Indentation fix.ser2007-07-251-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merges upstream changes for REXML v3.1.7ser2007-07-2523-1414/+1775
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://www.germane-software.com/repos/rexml/tags/3.1.7 r1278@bean: ser | 2007-06-07 00:53:06 -0400 Fixed a double-encoding bug. This was a regression, related to ticket:48. r1292@bean: ser | 2007-07-25 08:19:36 -0400 r1279@bean: ser | 2007-06-09 23:19:02 -0400 Fixes ticket:89 -- encoding CP-1252 was broken. ISO-8859-15 had the same problem. Also in this patch is a fix to merge.rb (unused, but it should at least contain no errors), and a unit test for ticket:88. r1293@bean: ser | 2007-07-25 08:19:37 -0400 r1281@bean: ser | 2007-07-24 11:08:48 -0400 Addresses ticket:85 This is a major rewrite of the XML formatting code. The XML writers have all been extracted out of the classes and put into their own class containers. This makes writing parsers easier, and cleaner. There are three formatters, which correspond to the previous three XML writing modes: REXML::Formatters::Default Prints the XML document exactly as it was parsed REXML::Formatters::Pretty Pretty prints the XML document, destroying whitespace in the document REXML::Formatters::Transitive Pretty prints the XML document, preserving whitespace All of the write() functions have been deprecated (some are still used, but these will also go away) except the write() function on Document, which is left for convenience. To pretty print an XML document the canonical way: formatter = REXML::Formatters::Pretty.new( 5 ) # indent by 5 spaces formatter.write( document, output ) r1294@bean: ser | 2007-07-25 08:19:38 -0400 r1283@bean: ser | 2007-07-24 19:53:30 -0400 This goes with the previous commit. r1295@bean: ser | 2007-07-25 08:19:39 -0400 r1285@bean: ser | 2007-07-24 20:02:07 -0400 And THIS goes with the previous two patches. Dammit. r1296@bean: ser | 2007-07-25 08:19:40 -0400 r1287@bean: ser | 2007-07-24 20:12:25 -0400 Applied patch from Jeff Barczewski. Note that this changes what the values of the name and IDs are from the previous behavior -- the values no longer include the quotes. This is the correct behavior, so I'm leaving it in, but it is not backwards compatible. Also fixes the serializer so that it outputs the doctype in a correct format (needed as a result of this change). r1297@bean: ser | 2007-07-25 08:38:38 -0400 Version update git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_f_p): return nil if no argument. [ruby-dev:31285]nobu2007-07-242-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regint.h (USE_MATCH_RANGE_IS_COMPLETE_RANGE): undef to achieve oldmatz2007-07-233-4/+9
| | | | | | rindex behavior. [ruby-dev:31265] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/oniguruma.h: upgrade to Oniguruma 5.9.0. fixesmatz2007-07-2314-1411/+1392
| | | | | | some memory violation. [ruby-dev:31070] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (value_expr_gen): warn for empty expression ().matz2007-07-233-6/+16
| | | | | | [ruby-dev:31252] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date._parse): now accepts some newtadf2007-07-223-22/+67
| | | | | | | | | | | hints. [experimental] * lib/parsedate.rb: followed the changes on lib/date/format.rb. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (is_ruby_native_thread): made an int function asnobu2007-07-225-5/+13
| | | | | | | | | | well as version 1.8. * include/ruby/ruby.h (is_ruby_native_thread): moved prototype from intern.h as well as version 1.8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_rename): deleted code to get rid of a bug ofnobu2007-07-228-19/+33
| | | | | | | | | | | | | | | | | | | | | | | old Cygwin. * file.c (rb_file_truncate): added prototype of GetLastError() on cygwin. [ruby-dev:31239] * include/ruby/intern.h (is_ruby_native_thread): prototype. * missing/strftime.c (strftime): fix printf format and actual arguments. * ext/Win32API/Win32API.c (Win32API_initialize): ditto. * ext/tk/tcltklib.c (ip_finalize): ditto. * ext/win32ole/win32ole.c (lcid_installed): ditto. * ext/socket/getnameinfo.c: include stdio.h always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_resize): fix indent.nobu2007-07-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb (Date._parse): now can take sometadf2007-07-213-24/+318
| | | | | | | | | | | | | | | | hints (its aim must be mainly determination of endianness of date). [experimental] * lib/date.rb, lib/date/format.rb (Date._parse): now completes truncated year as default action. [experimental] * lib/date.rb, lib/date/format.rb: added ::iso8601, ::rfc3339, ::xmlschema, ::rfc2822, ::httpdate, ::jisx0301, #xmlschema, #httpdate. [experimental] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: inverted rules order.nobu2007-07-214-15/+50
| | | | | | | | | | | * thread_win32.ci (w32_create_thread): bcc does not have _beginthreadex(). * bcc32/Makefile.sub: headers have moved. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/{Makefile.sub,configure.bat,setup.mak: configure_argsnobu2007-07-215-53/+160
| | | | | | | | | | | | support. * bcc32/setup.mak: check runtime version. * win32/win32.c (rb_w32_open_osfhandle): prototype has changed in bcc 5.82. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_Hnobu2007-07-212-2/+6
| | | | | | | only if extconf.h is created. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bcc32/Makefile.sub (ASMEXT): had overwitten OBJEXT.nobu2007-07-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.nobu2007-07-214-4/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/resource.rb: include patchlevel number.nobu2007-07-212-3/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (init_mkmf): should remove mkmf.log too.nobu2007-07-213-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date._parse): completes calendar week based year.tadf2007-07-202-17/+30
| | | | | | | | | | | * lib/date/format.rb (Date._parse): detects year of ordinal date in extended format. * and some trivial adjustments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_sequence): raise SyntaxError instead of rb_bugnobu2007-07-202-8/+23
| | | | | | | | | since this function can be called from VM::InstructionSequence.load. * compile.c (insn_set_sc_state, iseq_set_sequence_stackcaching): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, compile.h (DECL_ANCHOR, INIT_ANCHOR): split not tonobu2007-07-207-74/+102
| | | | | | | | | | | | | | | | initialize aggregations with dynamic values. [ruby-talk:259306] * eval.c (rb_protect): not to initialize aggregations with dynamic values. [ruby-talk:259306] * gc.c (mark_current_machine_context): ditto. * thread.c (thgroup_list, call_trace_func): ditto. * vm.c (vm_init_redefined_flag): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_config.c (ossl_config_set_section): do notnobu2007-07-202-1/+9
| | | | | | | initialize aggregations with dynamic values. [ruby-talk:259306] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (remove_begin): keep empty NODE_BEGIN, instead of null.nobu2007-07-201-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (stmt, mlhs_node, lhs, arg, var_ref): return dummynobu2007-07-203-20/+26
| | | | | | | | | | NODE_BEGIN after errors. [ruby-dev:31100], [ruby-dev:31118] * parse.y (remove_begin): make empty NODE_BEGIN to NODE_NIL, instead of null. [ruby-dev:31252], [ruby-dev:31263] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_syntax.rb: SEGV tests for syntax.nobu2007-07-201-0/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb (get_result_string): check $?.coredump? nobu2007-07-203-5/+19
| | | | | | | | | | first. * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see stackdump file too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine tests for shift.akr2007-07-192-7/+56
| | | | | | | more tests for string to integer conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_error.ci (get_backtrace): check the result more.nobu2007-07-193-7/+14
| | | | | | | [ruby-dev:31261] [ruby-bugs-12398] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_lshift, rb_big_rshift): separated functionsnobu2007-07-196-26/+147
| | | | | | | | | | to get rid of infinite recursion. fixed calculation in edge cases. [ruby-dev:31244] * numeric.c (rb_fix_lshift, rb_fix_rshift): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]nobu2007-07-182-1/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_parser_append_print, rb_parser_while_loop): moved checknobu2007-07-183-4/+16
| | | | | | | | | | for node to the head. * ruby.c (proc_options): do nothing for -p/-n options if tree is null. submitted by Yusuke ENDOH <mame AT tsg.ne.jp> at [ruby-dev:31243]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_succ): Time#succ should return a time object in thematz2007-07-173-4/+14
| | | | | | same timezone mode to the original. [ruby-talk:260256] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): make %u behave like %d for negativematz2007-07-162-9/+9
| | | | | | | values, since decimal format does not work with preceding dots. [ruby-core:11575] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/base64.rb (Base64::b64encode): should not specify /o optionmatz2007-07-163-4/+9
| | | | | | for regular expression. [ruby-dev:31221] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rindex_m): accept string-like object convertiblenobu2007-07-162-39/+50
| | | | | | | with #to_str method, as well as rb_str_index_m. [ruby-core:11692] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (getspecial): lfp_svar_get() requires int for specialnobu2007-07-152-0/+6
| | | | | | | global variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_f_sprintf): more checks for format argument.nobu2007-07-153-26/+74
| | | | | | | | [ruby-core:11569], [ruby-core:11570], [ruby-core:11571], [ruby-core:11573] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]nobu2007-07-153-18/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]nobu2007-07-1510-9/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * include/ruby/win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine failure messages.akr2007-07-151-6/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229]nobu2007-07-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]nobu2007-07-152-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum): check leading non-digits.nobu2007-07-153-15/+33
| | | | | | | [ruby-core:11691] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add reference.akr2007-07-151-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refined.akr2007-07-151-5/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e