naruse
9b40cdfe8c
Add test for sprintf with Infinity and NaN.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 06:44:30 +00:00
nobu
7e3e79d083
* enc/utf_16{be,le}.c (utf16{be,le}_mbc_to_code): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 05:30:25 +00:00
naruse
3a4c2bc034
* util.c (BSD__hdtoa): don't use C99 macros. (FP_NORMAL etc)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 05:09:10 +00:00
naruse
12b2e16e21
* sprintf.c (rb_str_format): support %a format. [ruby-dev:40650]
...
* 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
2010-04-01 04:32:57 +00:00
naruse
4d399f12d4
* object.c (rb_cstr_to_dbl): return 0.0 if hexadecimal and
...
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
2010-04-01 04:32:43 +00:00
naruse
2067e4eb30
* lib/scanf.rb: support %a format. [ruby-dev:40650]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 04:32:22 +00:00
usa
7b93993b20
* ChangeLog: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 03:20:04 +00:00
usa
c530b9d60a
* include/ruby/ruby.h (PRE_TIMET_PREFIX): define if configure doesn't
...
defines it. [ruby-core:29190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 03:06:07 +00:00
nobu
171131061e
* io.c (rb_io_initialize): fixed a rdoc miss that textmode and
...
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
2010-04-01 02:36:33 +00:00
nobu
44e08324c7
* include/ruby/ruby.h (RUBY_{DEFAULT,NEVER}_FREE): added.
...
[ruby-dev:40889]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-01 00:54:37 +00:00
tenderlove
a4dbc2ea10
* ext/psych/lib/psych.rb: Syck api compatibility [ruby-core:29157]
...
* 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
2010-03-31 21:09:58 +00:00
akr
c97f5f514a
* time.c (rb_big_abs_find_minbit): fix handling the last word.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-31 19:56:04 +00:00
akr
e758c3fbce
* time.c (long_mul): overflow condition changed.
...
(wi_mul): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-31 19:31:08 +00:00
svn
d245582dcb
* 2010-04-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-31 17:58:04 +00:00
tenderlove
69c6ee0b45
* ext/psych/lib/psych/coder.rb: Adding Syck compatibility to the yaml coder
...
* 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
2010-03-31 17:56:55 +00:00
akr
6024074540
* time.c (long_mul): extracted from mul and avoid integer overflow.
...
(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
2010-03-31 14:35:13 +00:00
akr
fbc42054e8
* time.c: less bignum allocations.
...
* 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
2010-03-31 12:34:31 +00:00
nobu
59ad28c261
* test/rake/test_{package_task,rules,task_manager}.rb: use
...
temporary directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-31 07:05:24 +00:00
wanabe
f163275b5c
* test/psych/test_emitter.rb (setup): encoding of @out should be same as script's.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-31 06:33:45 +00:00
naruse
35b2c59ac0
* test/rubygems/gemutilities.rb (setup, teardown):
...
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
2010-03-31 04:57:31 +00:00
akr
0da3fc65db
* time.c (timew2timespec): fix previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 21:57:53 +00:00
svn
8fcc8e2d67
* 2010-03-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 15:34:42 +00:00
akr
7b83aa4f3c
* time.c (wdivmod): renamed from wdivmodv. fix neg/pos and pos/neg.
...
(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
2010-03-30 15:34:33 +00:00
akr
39146c6b6b
* time.c: use more polymorphic operations.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 13:25:57 +00:00
kazu
91616a00ba
* NEWS: add URI.decode and URI.encode to Obsoleted methods,
...
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
2010-03-30 13:13:20 +00:00
kazu
cda49a46f6
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 13:13:07 +00:00
akr
c4845fdf36
* time.c: reorder wide value implementation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 13:07:48 +00:00
keiju
6ca6efc246
* lib/irb.rb: suppoort [Feature#988], [ruby-core:21177].
...
* lib/irb/context.rb: fix Context#verbose?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 13:03:23 +00:00
akr
08f828002b
* time.c: make wide value more polymorphic.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 12:58:34 +00:00
naruse
ee90d5d30e
* ext/psych/extconf.rb: install psych .so to not psych/ but direct.
...
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
2010-03-30 12:21:55 +00:00
akr
0cf5d3fa96
fix previous commit for LP64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 12:00:31 +00:00
akr
a00c1c00c1
* time.c (w2v): renamed from w2xv.
...
(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
2010-03-30 11:57:03 +00:00
nobu
f1330fd124
* ext/psych/lib: moved external library dependent files from lib.
...
[ruby-core:29129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 10:46:06 +00:00
nobu
38af94c6ab
* file.c (rb_file_dirname): split from rb_file_s_dirname.
...
* 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
2010-03-30 09:26:09 +00:00
knu
635bdf6f13
* process.c (proc_daemon): Process.daemon should raise an error on
...
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
2010-03-30 05:00:15 +00:00
nobu
4a6acc26d5
* tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can
...
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
2010-03-30 04:11:24 +00:00
nobu
0c6fb8ccaa
* tool/file2lastrev.rb (VCS#get_revisions): particular commands do
...
not depend on instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 04:01:17 +00:00
akr
6c7edcb00a
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-30 00:12:21 +00:00
tenderlove
9dd3af9ae7
* ext/psych/extconf.rb: Making library detection more agnostic.
...
[ruby-core:29118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 23:57:43 +00:00
tenderlove
797f482fe8
* lib/psych.rb: Fix problem with empty and white-space only strings.
...
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
2010-03-29 23:57:25 +00:00
tenderlove
c294fcc0ab
* lib/psych.rb: documentation updates. Thanks Peter McLain!
...
* lib/psych/{coder,tree_builder}.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 20:33:22 +00:00
naruse
e43b94231b
* ext/psych/{emitter,parser,psych}.c: move variable
...
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-29 18:58:22 +00:00
svn
7abf7e58e8
* 2010-03-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 18:26:10 +00:00
tenderlove
03399d9001
* test/psych/*: switching tests to use relative require.
...
[ruby-core:29104]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 18:25:57 +00:00
knu
a828a658a4
* prelude.rb, .document: Stuff in prelude.rb should be documented
...
as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 12:48:43 +00:00
keiju
cd492563f8
* lib/matrix.rb(Vector#each2, Vector#collect2): add type check for
...
Integer[Bug #2495 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 11:27:03 +00:00
akr
33d1647252
* time.c: wide value condition changed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 10:47:00 +00:00
nobu
b1b3e13570
* lib/optparse.rb (Numeric): accept rationals.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 09:10:12 +00:00
nobu
d0cb5c71ce
* lib/tempfile.rb (Tempfile#open): re-open with same mode and
...
options as initialize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-29 06:11:48 +00:00
shyouhei
d894e1d930
instance_methods should not special-case singleton classes, fixes #2993
...
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
2010-03-29 05:59:46 +00:00