aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add test for sprintf with Infinity and NaN.naruse2010-04-011-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/utf_16{be,le}.c (utf16{be,le}_mbc_to_code): simplified.nobu2010-04-013-6/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (BSD__hdtoa): don't use C99 macros. (FP_NORMAL etc)naruse2010-04-012-19/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): support %a format. [ruby-dev:40650]naruse2010-04-016-10/+242
| | | | | | | | | | | | | * missing/vsnprintf.c (BSD_vfprintf): ditto. * missing/vsnprintf.c (cvt): ditto. * util.c (BSD__hdtoa): added. This is 2-clause BSDL licensed by David Schultz and from FreeBSD. * LEGAL: add about hdtoa() in util.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_cstr_to_dbl): return 0.0 if hexadecimal andnaruse2010-04-015-16/+46
| | | | | | | | | baccheck is FALSE: Float("0x1p+0") works, but "0x1p+0".to_f doesn't. [ruby-dev:40650] * util.c (ruby_strtod): allow hexdecimal integers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/scanf.rb: support %a format. [ruby-dev:40650]naruse2010-04-013-7/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: commit miss.usa2010-04-011-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (PRE_TIMET_PREFIX): define if configure doesn'tusa2010-04-011-0/+10
| | | | | | | | defines it. [ruby-core:29190] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): fixed a rdoc miss that textmode andnobu2010-04-012-2/+8
| | | | | | | bimode flag explanation was reversed each other. a patch from Heesob Park in [ruby-core:29166]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RUBY_{DEFAULT,NEVER}_FREE): added.nobu2010-04-012-1/+9
| | | | | | [ruby-dev:40889] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych.rb: Syck api compatibility [ruby-core:29157]tenderlove2010-03-313-6/+32
| | | | | | | * ext/psych/lib/psych/nodes/node.rb: ditto * test/psych/test_psych.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_big_abs_find_minbit): fix handling the last word.akr2010-03-313-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (long_mul): overflow condition changed.akr2010-03-312-4/+9
| | | | | | | (wi_mul): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-04-01svn2010-03-311-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/coder.rb: Adding Syck compatibility to the yaml codertenderlove2010-03-312-1/+35
| | | | | | * test/psych/test_coder.rb: test for syck compatibility git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (long_mul): extracted from mul and avoid integer overflow.akr2010-03-312-30/+111
| | | | | | | (wi_mul): extracted from wmul and avoid integer overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: less bignum allocations.akr2010-03-314-152/+347
| | | | | | | | | * strftime.c (rb_strftime_timespec): defined to avoid rational for nano second resolution time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/test_{package_task,rules,task_manager}.rb: usenobu2010-03-314-1/+34
| | | | | | temporary directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/psych/test_emitter.rb (setup): encoding of @out should be same as ↵wanabe2010-03-311-1/+1
| | | | | | script's. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/gemutilities.rb (setup, teardown):naruse2010-03-312-0/+22
| | | | | | Object#to_yaml must use syck on RubyGem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (timew2timespec): fix previous change.akr2010-03-302-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-03-31svn2010-03-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (wdivmod): renamed from wdivmodv. fix neg/pos and pos/neg.akr2010-03-302-31/+84
| | | | | | | | | | (split_second): return number of seconds as wideval_t. (timet2wv): new function. (wv2timet): new function. (timet2wideval): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: use more polymorphic operations.akr2010-03-302-24/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: add URI.decode and URI.encode to Obsoleted methods,kazu2010-03-302-2/+12
| | | | | | | | and fix typos. [ruby-dev:40852] * NEWS: add Time#subsec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2010-03-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: reorder wide value implementation.akr2010-03-302-103/+108
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: suppoort [Feature#988], [ruby-core:21177].keiju2010-03-303-0/+9
| | | | | | | | * lib/irb/context.rb: fix Context#verbose?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: make wide value more polymorphic.akr2010-03-302-100/+106
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/extconf.rb: install psych .so to not psych/ but direct.naruse2010-03-303-2/+9
| | | | | | | | This prepends to install *.rb files to psych/psych. * ext/psych/lib/psych.rb: require 'psych.so'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous commit for LP64.akr2010-03-301-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (w2v): renamed from w2xv.akr2010-03-302-89/+104
| | | | | | | | | (v2w): renamed from xv2w. (rb_time_magnify): takes wideval_t. (rb_time_unmagnify): returns wideval_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib: moved external library dependent files from lib.nobu2010-03-3025-0/+5
| | | | | | [ruby-core:29129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_dirname): split from rb_file_s_dirname.nobu2010-03-304-4/+17
| | | | | | | * load.c (rb_f_require_relative): use absolute path instead of expanded path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_daemon): Process.daemon should raise an error onknu2010-03-302-4/+11
| | | | | | | | | failure regardless of whether the implementation uses daemon(3) or not. [ruby-dev:40832] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log cannobu2010-03-302-11/+4
| | | | | | deal with git-svn repository faster than git-svn-info. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (VCS#get_revisions): particular commands donobu2010-03-302-19/+20
| | | | | | not depend on instance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2010-03-301-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/extconf.rb: Making library detection more agnostic.tenderlove2010-03-292-8/+6
| | | | | | [ruby-core:29118] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/psych.rb: Fix problem with empty and white-space only strings.tenderlove2010-03-293-2/+17
| | | | | | | Thanks Peter McLain! * test/psych/test_psych.rb: tests for change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/psych.rb: documentation updates. Thanks Peter McLain!tenderlove2010-03-294-4/+9
| | | | | | * lib/psych/{coder,tree_builder}.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/{emitter,parser,psych}.c: move variablenaruse2010-03-294-43/+48
| | | | | | declaration to the first of the block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-03-30svn2010-03-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/psych/*: switching tests to use relative require.tenderlove2010-03-2929-29/+29
| | | | | | [ruby-core:29104] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb, .document: Stuff in prelude.rb should be documentedknu2010-03-293-5/+21
| | | | | | | | as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb(Vector#each2, Vector#collect2): add type check forkeiju2010-03-292-0/+7
| | | | | | | | Integer[Bug #2495]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: wide value condition changed.akr2010-03-292-122/+132
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (Numeric): accept rationals.nobu2010-03-292-3/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#open): re-open with same mode andnobu2010-03-293-1/+12
| | | | | | options as initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* instance_methods should not special-case singleton classes, fixes #2993shyouhei2010-03-292-1/+8
| | | | | | Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e