24199 Commits

Author SHA1 Message Date
kosaki
2c9375ba69 * thread.c (rb_thread_select): fix to ignore an argument
modification of rb_thread_fd_select().
  based on a patch by Eric Wong. [Bug #5306] [ruby-core:39435]
* thread.c (rb_fd_rcopy): New. for reverse fd copy.

* test/-ext-/old_thread_select/test_old_thread_select.rb
(test_old_select_false_positive): test for bug5306.

* ext/-test-/old_thread_select/old_thread_select.c (fdset2array):
  New. convert fdsets to array.
* ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
  return 'read', 'write', 'except' argument of rb_thread_select()
  to ruby script.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 11:36:06 +00:00
nobu
4705fcc3c0 * README.EXT, README.EXT.ja (2.2.2), parse.y (rb_check_id): add
documents for rb_check_id().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 04:38:15 +00:00
usa
821ae88259 * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
open files in binary mode.
  see more details in https://github.com/jimweirich/rake/issues/74


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 03:54:53 +00:00
nobu
a458e72e7c * test/ruby/test_exception.rb (TestException#test_exit_success_p):
assert also the cases when exiting with true and false.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 03:42:39 +00:00
svn
704830be3d * 2011-09-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 03:40:54 +00:00
nobu
1161616768 * lib/test/unit/assertions.rb (assert_send): make arguments in
the default message clearer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12 03:40:49 +00:00
nagachika
776227cbcf * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-11 09:36:20 +00:00
svn
1b27801506 * 2011-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-10 20:23:40 +00:00
marcandre
506b253856 * lib/matrix.rb: Deal with subclasses of Matrix [redmine #5307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-10 20:23:36 +00:00
naruse
39ec2f6864 Revert test fixes.
This reverts r33233, r33234, and r33235.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-10 10:34:15 +00:00
ayumin
35551be602 * dir.c: Two small documentation fixes. [Bug #5302]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-10 04:43:12 +00:00
ko1
49042ae821 * gc.c (GC_PROFILE_MORE_DETAIL, CALC_EXACT_MALLOC_SIZE):
define macros only if they are not defined.
  fixes: [Ruby 1.9 - Feature #5291]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 23:34:05 +00:00
matz
6126c50add * parse.y (bv_decls): parse.y relies on $$ = $1 before action
routines.  a patch from Michael Edgar.  [Bug #5303]
  [ruby-core:39429]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 23:32:56 +00:00
akr
cf7d76f0bc update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 23:14:00 +00:00
svn
8ecf99f235 * 2011-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 16:44:42 +00:00
kazu
69a4efaf66 * sample/drb/dhasenc.rb: coding cookie of Emacs is coding,
not encoding.

* sample/mine.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 16:44:38 +00:00
ayumin
0abbe4c1e6 * ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment.
BigDecimal#sqrt requires argument. Reported by Makoto Kishimoto.
  Thanks for your contribution. [Bug #5267] [ruby-dev:44452]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 13:06:51 +00:00
shugo
702d25f5eb added new methods of Net::IMAP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 07:48:00 +00:00
naruse
cf8626a082 Run GC.start before test_too_long_path.
NoMemoryError is raised in MiniTest#exception_details where exception
is made, and no effect. Run GC.start before running to keep the room.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 06:29:36 +00:00
naruse
6199181b09 Catch NoMemoryError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 02:26:31 +00:00
naruse
dcea3a0fb2 Decide by majority.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 02:26:28 +00:00
sorah
73a1e841d6 * test/rubygems/test_gem_commands_help_command.rb: Add one
`require` because if run test-all with test/unit parallel
  running, sometimes this test fails by some constants not found.
  The error reason is some worker doesn't require the file needed by
  this test. This issue is related to [ruby-core:36168].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 02:08:44 +00:00
nobu
61b062ba6d * thread.c (rb_thread_select): fix a typo to initialize efds
properly.  [Bug #5299] [ruby-core:39380]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-09 01:22:06 +00:00
ayumin
fa5446f14e * template/yarvarch.ja:
Change encoding from Shift-JIS to UTF-8


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 17:09:30 +00:00
ayumin
b81c4967f7 Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 16:26:22 +00:00
svn
ce7a3174b8 * 2011-09-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 16:24:47 +00:00
ayumin
d53e9c1e84 * sample/drb/README.rd.ja:
* sample/drb/dhasenc.rb:
* sample/mine.rb:
Change encoding from EUC-JP to UTF-8


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 16:24:43 +00:00
naruse
05558e04b8 * ext/nkf/nkf-utf8/nkf.c: import nkf 2.1.2 (be9c280)
Bump version number/release date only.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 12:17:06 +00:00
nari
599071b700 * gc.c (Init_GC): defined GC::Profiler.raw_data. based on the
patch by Eric Hodel. [ruby-core:37857] [Bug #4991]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 03:57:41 +00:00
nobu
f1cdbd7bc8 * ext/nkf/nkf-utf8/nkf.c: revert also svn:mime-type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 00:07:49 +00:00
nobu
ac6ad66d0b * gc.c (id2ref): objects which are unmarked but not in sweep_slots
are not dead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-08 00:02:55 +00:00
nobu
6572bd3ce9 * transcode.c (rb_declare_transcoder, load_transcoder_entry): no
longer need to limit the length of transcoder library name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 22:44:27 +00:00
naruse
7dc427f7ed * ext/syck/lib/syck/types.rb: use toplevel Syck.
for the case someone define Syck::Syck (or YAML::Syck).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 22:37:34 +00:00
nobu
4fe51cb330 * gc.c (id2ref): unmarked object is already dead while lazy
sweeping, and to it cannot come back since other objects
  referred from it might have been freed already.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 22:33:14 +00:00
naruse
e3532c8bde Revert "Change encoding from ISO-2022 to UTF-8"
This reverts commit r33213.
Don't change nkf which is imported from upstream.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 22:17:55 +00:00
ayumin
776a2d9ddf * ext/readline/README.ja:
Change encoding from EUC-JP to UTF-8


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 18:51:10 +00:00
ayumin
5aa34ef562 Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 18:15:33 +00:00
ayumin
32b81702d7 fix test/rexml/test_encoding.rb failure
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 18:03:23 +00:00
svn
a33ae8a87e * 2011-09-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 17:56:28 +00:00
ayumin
9f4dd65e89 Change encoding from ISO-2022 to UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 17:56:24 +00:00
kou
7b30cb6122 * add missing '#' in bug reference.
* add ML reference.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 14:46:53 +00:00
kou
2bb6fcb6fd * lib/rexml/parsers/baseparser.rb, test/rexml/test_comment.rb:
allow a single hyphen in comment. [Bug 5278]
  Reported by Thomas Fritzsche. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 14:42:44 +00:00
naruse
6b3feab965 Remove assertion which depends the load order
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 10:36:11 +00:00
naruse
f2bd0ce993 * lib/yaml.rb: explicitly specify ::Object to avoid the collision with
Syck::Object.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07 08:28:42 +00:00
svn
5a883a2cf4 * 2011-09-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 22:50:23 +00:00
nobu
031c06b3e1 eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 22:50:20 +00:00
sorah
7e04b19d22 * lib/test/unit.rb (_run_suites): Now reports are written the
following order: Skip, Failure, Error. [Feature #5282]

* test_sorting.rb: test for above.

* test4test_sorting.rb: Ditto.

* lib/test/unit.rb (run): Put RUBY_DESCIPTION before quitting.
  [Feature #5282]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 12:20:17 +00:00
tarui
e2b7469698 * win32/Makefile.sub (INSNS): change command line option -Ks to -Ku
for generate *.inc. because insns.def encoding has been changed SJIS
	  to UTF-8. if $BASERUBY is 1.9, -Ks cause an error. [Feature #5128] 
	  (same as r33194)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 12:16:44 +00:00
naruse
90c33c2198 Use assert_operator to show clear message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 08:11:21 +00:00
nobu
e240f49073 * transcode.c (load_transcoder_entry): concatenate paths directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 06:55:30 +00:00