akr
99638b5d1f
* random.c (int_pair_to_real_inclusive): Add a cast to BDIGIT.
...
(random_load): Fix shift width for fixnums.
Re-implement bignum extraction without ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 11:07:05 +00:00
nobu
3fb267e501
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 06:36:06 +00:00
naruse
c0089b4d10
use attribute is more simple way for r41083
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 06:31:43 +00:00
naruse
77857bfc87
* gc.c (before_gc_sweep): don't optimize it to avoid segv on Ubuntu
...
10.04 gcc 4.4.
http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130527T190301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 06:27:43 +00:00
nobu
2ae30c3fa2
* tool/mkrunnable.rb: fix for native mswin compile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 01:43:09 +00:00
naruse
0094cd8c64
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
...
EACCES for Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-05 00:48:24 +00:00
akr
14ec81b0a2
* bignum.c (rb_big_pow): Don't need to multiply SIZEOF_BDIGITS.
...
Use nlz instead of bitlength_bdigit.
(bitlength_bdigit): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 23:15:30 +00:00
tadf
4eabe8193a
* ext/date/date_core.c (d_lite_cmp, d_lite_equal): simplified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 22:18:12 +00:00
tadf
551bcc6364
* ext/date/date_core.c: fixed a bug [ruby-core:55295]. reported
...
by Riley Lynch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 22:09:36 +00:00
drbrain
091c24d51b
* lib/rubygems: Update to RubyGems 2.0.3
...
* test/rubygems: Tests for the above.
* NEWS: Added RubyGems 2.0.3 note.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 21:54:58 +00:00
drbrain
0454c0a281
* doc/marshal.rdoc: Add description of Marshal format.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 21:35:31 +00:00
eregon
ed318080ad
* array.c (Array#+): fix documentation example.
...
Patch by Logan Serman. [Fixes GH-324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 16:16:36 +00:00
ayumin
ee9c279e9b
* lib/irb/lc/ja/help-message: update help messages.
...
following r41028. [ruby-dev:46707] [Feature #7510 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 15:33:34 +00:00
svn
a76f5eb0e0
* 2013-06-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 15:10:32 +00:00
akr
5eab13c377
* marshal.c (r_object0): Generalize a round up expression.
...
Use BDIGIT instead of int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 15:10:28 +00:00
ayumin
aff64b9478
* object.c (rb_Hash): fix docs. patched by Stefan Schüßler.
...
[ruby-core:55299] [Bug #8487 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 14:47:33 +00:00
eregon
5f55e23f9c
* lib/irb/completion.rb: Use %w literal construction for long lists.
...
Patch by Dave Goodchild. [Fixes GH-299]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 14:17:17 +00:00
eregon
71b6077a53
* ext/objspace/objspace.c: improve wording and remove duplicated comment.
...
Based on a patch by Dave Goodchild. [Fixes GH-299]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 14:09:25 +00:00
akr
d893082841
* bignum.c (bitlength_bdigit): Fix an off-by-one error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 09:42:25 +00:00
nobu
5c11384416
adjust style
...
* process.c (rb_execarg_get): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 08:23:26 +00:00
mrkn
1699396fe5
* ext/bigdecimal/lib/bigdecimal/util.rb (Float#to_d): fix the number
...
of figures. Patch by Vipul A M <vipulnsward@gmail.com>.
https://github.com/ruby/ruby/pull/323 fix GH-323
* test/bigdecimal/test_bigdecimal_util.rb: fix for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 06:37:44 +00:00
naruse
dd87e46310
Add more comment about r41041
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 03:47:02 +00:00
kazu
5be4642395
add EEXIST for Linux
...
* test/fileutils/test_fileutils.rb (TestFileUtils#test_mkdir): add
EEXIST for Linux. (suggested by nurse)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 15:46:29 +00:00
svn
4418737455
* 2013-06-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 15:01:47 +00:00
kazu
1739ecda3b
FileUtils.rmdir use remove_tailing_slash
...
* lib/fileutils.rb (FileUtils.rmdir): use remove_tailing_slash.
* test/fileutils/test_fileutils.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 15:01:42 +00:00
akr
935d39a5b8
* bignum.c (bitlength_bdigit): New function.
...
(rb_big_pow): Use bitlength_bdigit instead of ffs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 14:49:33 +00:00
naruse
bf386e580f
Don't run test-all because it often happens false positive
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 14:46:45 +00:00
kazu
2b46322688
fix a typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 14:22:53 +00:00
ayumin
cef3f2ebd4
* lib/fileutils.rb: fix behavior when mkdir/mkdir_p accepted "/".
...
* test/fileutils/test_fileutils.rb: add test for above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 14:20:15 +00:00
nobu
482f0e6b97
dir.c: use fd to fstatfs
...
* dir.c (is_hfs): use the file descriptor instead of a path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 10:02:39 +00:00
nobu
c120db4547
* vm_insnhelper.c (vm_yield_setup_block_args): add comment for r41041.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 08:16:27 +00:00
xibbar
7a8a7864b1
* lib/cgi/cookie.rb (inspect): add inspect for debug.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 02:38:32 +00:00
naruse
94b120fe75
add some rdoc
...
* add reference to spawn to fork
* add an example which runs ruby
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-03 02:37:34 +00:00
kosaki
523bd6737e
* configure.in: removes AC_CHECK_FUNCS(readdir_r). readdir_r()
...
is only used from dir.c and it doesn't need readdir_r().
* configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): remvoed. It is
only used for readdir_r.
* dir.c: removes NAME_MAX_FOR_STRUCT_DIRENT. It is not right way
to detect maximum length of path len. POSIX require to use
fpathconf(). IOW, it might have lead to make a vulnerability
using stack smashing. Moreover, readdir() works enough for our
usage.
* dir.c (READDIR): removes an implementation which uses
readdir_r() and parenthesize in a macro body correctly.
* dir.c (dir_read): removes IF_HAVE_READDIR_R(DEFINE_STRUCT_DIRENT
entry), it is used only for readdir_r().
* dir.c (dir_each): ditto.
* dir.c (glob_helper): ditto.
* dir.c (READDIR): removes entry and dp argument.
* dir.c (dir_read): adjust for the above change.
* dir.c (dir_each): ditto.
* dir.c (glob_helper): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 22:38:11 +00:00
naruse
284d746392
* vm_insnhelper.c (vm_yield_setup_block_args): partially revert r41019.
...
The code is not useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 18:44:33 +00:00
ayumin
233f7d09e3
* test/socket/test_sockopt.rb: change test name. follow r41037.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 16:37:14 +00:00
ayumin
260f6bed23
* test/rinda/test_rinda.rb: rename functions introduced in r41009.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 16:15:51 +00:00
svn
aa32168b5e
* 2013-06-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 15:59:23 +00:00
naruse
aa26e9d9c0
follow r41034
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 15:59:18 +00:00
naruse
dffcadb4ea
Suppress warnings: setting Encoding.default_internal
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 14:46:43 +00:00
ktsj
166d8dc2d6
* enc/trans/japanese_euc.trans, test/ruby/test_transcode.rb,
...
tool/transcode-tblgen.rb: change EUC-JP-2004 to EUC-JIS-2004.
This is follow up to changes in r41024.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 14:36:41 +00:00
naruse
e2582ca28d
* ext/socket/option.c: rename functions introduced in r41009
...
s/ip/ipv4/g because they are ipv4 functions.
(there's a policy that the name "ip" is for methods which supports
both ipv4 and ipv6)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 14:24:34 +00:00
nobu
5615bf5f79
dln_find.c: deprecated functions
...
* dln_find.c (dln_find_exe, dln_find_file): remove deprecated
non-reentrant functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 07:15:55 +00:00
nobu
d8069572f8
dln_find.c: unused macros
...
* dln_find.c: remove unused macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 07:15:42 +00:00
zzak
012dc9d099
* lib/cgi/util.rb, lib/erb.rb: Use String#b [Feature #8394 ] by znz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 06:06:00 +00:00
nobu
021c2102dc
math.c: ASCII minus
...
* math.c: use ASCII minus (-) instead of U+2212.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 05:59:40 +00:00
zzak
78c04602ad
* lib/irb/lc/help-message: Apply english updates for irb --help #7510
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 05:11:16 +00:00
nobu
6db56c86c9
fill rdocs
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 03:12:04 +00:00
zzak
eb5f361937
* range.c: Fix rdoc on Range#bsearch [Bug #8242 ] [ruby-core:54143]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-02 03:05:26 +00:00
svn
bc7a6dbb97
* 2013-06-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-01 17:11:53 +00:00