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
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
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
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
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
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
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
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
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
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
nobu
3a6c3a672f
* encoding.c (load_encoding): predefined encoding names are safe.
...
[ruby-dev:44469] [Bug #5279 ]
* transcode.c (load_transcoder_entry): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 04:15:49 +00:00
nobu
a1c5ebe787
* transcode.c: enabled econv newline option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-06 03:07:16 +00:00
marcandre
80f54e6810
* numeric.c (dbl2ival): Fix Float#divmod and #round for 32 bit platform
...
part 1 of [bug #5276 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 21:45:25 +00:00
marcandre
3dc28710c9
* numeric.c (flo_round): Fix criteria for 32 bits platform
...
part 2 of [bug #5276 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 21:44:42 +00:00
seki
319531524b
* test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures
...
[ruby-dev:44430] [Ruby 1.9 - Bug #372 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 20:39:54 +00:00
nagachika
4117048c40
* insns.def: change encoding pragma for emacs (shift_jis to utf-8).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 12:02:30 +00:00
nagachika
1cd56023d3
* Makefile.in (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 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 10:36:24 +00:00
nobu
bc17dba00f
* transcode.c (rb_econv_binmode): newline decorators are
...
exclusive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 09:10:58 +00:00
naruse
522c16e84c
* test/rubygems/test_gem_security.rb
...
(test_class_build_self_signed_cert): reset opt[:trust_dir] to apply
temporary Gem.user_home.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 06:06:31 +00:00
shyouhei
48cd6cb153
README.ja, README.EXT.ja: resolve conflicts. [ruby-dev:44459]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05 01:06:25 +00:00
marcandre
75c42535c9
* numeric.c (flo_round): Make Float#round round big values [bug #5272 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 20:14:29 +00:00
marcandre
9d2f5dff62
* numeric.c (int_round): Integer#round always returns an Integer [Bug #5271 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 19:28:54 +00:00
shugo
26f73a5117
* lib/net/imap.rb (default_port, default_imap_port,
...
default_tls_port, default_ssl_port, default_imaps_port):
added methods for consistency with Net::POP.
based on the patch by art lussos. [ruby-core:38997] [Bug #5198 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 13:33:14 +00:00
shyouhei
60c8455253
Change encoding from EUC-JP to UTF-8. [Feature #5128 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 12:22:46 +00:00
ktsj
a17fd731c9
* ChangeLog: style fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-04 06:18:06 +00:00
ktsj
7c9b9977b0
* test/ruby/test_fiber.rb (TestFiber#test_no_valid_cfp):
...
add a test. Unlike TestThread#test_no_valid_cfp,
this test succeeds even if win32ole is required (see r33153).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 15:54:44 +00:00
nobu
bc2a1f2a98
* variable.c (rb_const_set): show the previous definition
...
location. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 15:11:53 +00:00
nobu
3e0819c66a
* configure.in (sizeof_struct_dirent_too_small): check if struct
...
dirent.d_name is too small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:56:26 +00:00
nobu
90a10297d6
* configure.in (RUBY_MINGW32): take tool prefix from CC.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:55:20 +00:00
nobu
74f724de1a
* io.c (argf_next_argv): open in default text mode.
...
[ruby-core:39234] [Bug #5268 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 14:52:18 +00:00
nagachika
a46d29bb4e
* lib/thread.rb (SizedQueue#max=) raise ArgumentError if max is not
...
positive number. patch by Masaki Matsushita.
[ruby-dev:44449] [Bug #5259 ]
* test/thread/test_queue.rb (test_sized_queue_initialize,
test_sized_queue_assign_max): add tests for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-03 09:46:51 +00:00
nobu
7dc7da3d86
* io.c (validate_enc_binmode, prep_stdio): default to text mode on
...
dosish platforms. [ruby-core:38822] [Bug #5164 ]
* transcode.c (rb_econv_prepare_options): keep default ecflags
unchanged if no options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-02 12:11:17 +00:00
kazu
45fffaeac8
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-02 08:09:04 +00:00
nobu
7dddaf6807
* vm_insnhelper.c (vm_search_const_defined_class): search
...
ancestors only when global scope. [ruby-core:39227] [Bug #5264 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-02 05:36:49 +00:00
nobu
5e14b97947
* parse.y (parser_tokadd_string, parser_yylex): ignore a backslash
...
which prefixes an non-ascii character, which has no escape
syntax. [ruby-core:39222] [Ruby 1.9 - Bug #5262 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-02 00:58:10 +00:00