nobu
902b109465
* marshal.c (w_symbol): dump no encoding for 7bit only coderange
...
symbol. [ruby-core:27375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-08 04:12:29 +00:00
ryan
06925a0952
Imported minitest 1.5.0 r5596
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-06 22:58:07 +00:00
kazu
84c25ece86
* test/ruby/test_exception.rb: add a test. cf [ruby-dev:39116]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-05 10:34:00 +00:00
akr
50b8893d56
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#inspect):
...
implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-02 16:31:00 +00:00
akr
c0b4e90f08
* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
...
* lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby.
* test/ruby/envutil.rb: ditto.
* benchmark/report.rb: ditto.
* benchmark/runc.rb: ditto.
* tool/eval.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-31 15:00:04 +00:00
naruse
7ed0640ffb
Add Float::INFINITY and Float::NAN.
...
* numeric.c (Init_Numeric): Add Float::INFINITY and Float::NAN.
[ruby-dev:1657] [ruby-dev:4760] [ruby-list:7023] [ruby-list:46690]
[ruby-core:26632] [ruby-talk:41352] [ruby-talk:203333]
* include/ruby/defines.h (INFINITY): defined.
* include/ruby/defines.h (NAN): defined.
* include/ruby/util.h (ruby_div0): removed.
* numeric.c (fix_pow): use INFINITY and NAN instead of ruby_div0(1.0).
* marshal.c (r_object0): ditto.
* bignum.c (big_fdiv): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-29 07:05:39 +00:00
nobu
cff7d0c80e
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):
...
any number spaces can be placed between equal-sign and the value.
patch from Ed Howland in [ruby-core:27345].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-29 01:36:26 +00:00
nahi
26269cbd5d
* test/ruby/test_marshal.rb: added tests for taintness/untrustness
...
propagation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-28 13:01:28 +00:00
suke
b3c318bffd
* ext/win32ole/win32ole.c (foleparam_initialize): add foleparam_initialize
...
to check argument of WIN32OLE_PARAM.new
* test/win32ole/test_win32ole_param.rb (test_s_new): add some assertion
to test WIN32OLE_PARAM.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-27 01:51:54 +00:00
akr
cbfdacdd36
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-25 12:38:16 +00:00
nobu
e6a8408c2c
* iseq.c (iseq_s_disasm): return nil for native methods.
...
[ruby-core:27226], [Bug#2499]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 06:22:48 +00:00
nobu
d3fc1d3e3a
* test/drb/drbtest.rb (DRbService.add_service_command): quotes
...
rubybin only, not including -d.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 01:31:37 +00:00
nobu
99bf251b69
* test/ruby/test_thread.rb (test_priority): removed not-guaranteed result.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 01:24:33 +00:00
nobu
738515d12b
* test/cgi: check by Encoding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 00:14:48 +00:00
nobu
da861d79b7
* test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
...
always must be binary mode. c.f. Bug#2341
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 00:12:33 +00:00
akr
8d7677b498
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-22 14:02:13 +00:00
naruse
35230b1a78
Add a test for [ruby-core:27247]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-21 09:17:55 +00:00
nobu
93278f2387
* vm_eval.c (check_funcall): reset method_missing_reason before
...
trying the call. based on a patch from Yehuda Katz in
[ruby-core:27219].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-19 00:58:13 +00:00
tenderlove
eadda0002a
* test/yaml/test_boolean.rb (test_n): fixing test name
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-17 19:37:54 +00:00
tenderlove
08c7cde986
* test/yaml/test_set.rb (**) Adding test coverage for YAML::Set
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16 21:08:25 +00:00
kazu
f4109ec1c7
* test/ruby/envutil.rb: fix a typo in assert message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-16 11:29:54 +00:00
akr
6aafca91db
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 17:21:09 +00:00
usa
d698bd8ad0
* test_find.rb: close temporary files before removing them.
...
* test_find.rb: skip symlink tests if not implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 00:16:48 +00:00
akr
92e9bf7a59
* lib/find.rb (Find.find): narrow rescue region.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 12:50:13 +00:00
akr
4df4a74308
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 11:56:03 +00:00
naruse
315cab1249
Explicitly use FileUtils.rm_f. [ruby-dev:39345]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 03:19:51 +00:00
akr
b3ea5a1789
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 22:48:13 +00:00
akr
8dc14638ea
new test file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 16:00:33 +00:00
akr
71ab182911
* test/ruby/envutil.rb (invoke_ruby): call to_str for stdin_data to
...
reject non-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 11:56:37 +00:00
naruse
07f81c06ca
Add rdoc and test of Encoding#replicate.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-12 16:35:10 +00:00
duerst
b32ee85f97
* transcode_data.h, transcode.c, tool/transcode-tblgen.rb: Added
...
support for new transcoding instruction FUNsio (with Tatsuya Mizuno)
* enc/trans/gb18030.trans: Significantly reduced GB18030 conversion
table footprint using FUNsio and differences (with Tatsuya Mizuno)
* test/ruby/test_transcode.rb: Minor name fix (from Tatsuya Mizuno)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 11:59:12 +00:00
akr
136c25ebf0
unset HTTP_PROXY, etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 10:26:55 +00:00
akr
e82e2beb7c
unset HTTP_PROXY and FTP_PROXY.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 10:13:03 +00:00
shugo
9071538179
* vm_eval.c (yield_under): yields self the same as 1.8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 08:24:11 +00:00
naruse
ae76a2323e
* test/webrick/test_server.rb (test_daemon): simply use fork's return
...
value, don't use pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 03:46:08 +00:00
naruse
e5dc8988af
* string.c (rb_str_inspect): CHAR_ESC_LEN should be 13.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-10 00:26:41 +00:00
nobu
c9c095fc7b
* string.c (rb_str_justify): fixed the case a fill size is a
...
multiple of the length of the padding. [ruby-dev:39856]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-09 00:50:37 +00:00
nobu
ed5d5c5829
* lib/rubygems: update to 1.3.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 07:19:09 +00:00
nobu
1963713205
* test/ripper/test_parser_events.rb: more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-08 01:01:04 +00:00
akr
785191b12d
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 16:53:34 +00:00
nobu
1d10aa8bfc
* marshal.c (w_object): reverted r26007. [ruby-dev:39845]
...
* test/test_delegate.rb (test_marshal): moved from test_marshal.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 05:11:10 +00:00
tenderlove
753de85e40
* test/dl/test_callback.rb testing callback removal
...
* test/dl/test_func.rb testing function names, to_i
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07 00:49:09 +00:00
nobu
1cc1ea378a
* marshal.c (w_object): dump instance variables when using
...
marshal_dump. [ruby-core:24211]
* variable.c (rb_ivar_count): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-05 06:35:07 +00:00
tenderlove
6a1aebaabf
* ext/dl/cptr.c (to_int): DL::CPtr supports to_int
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 23:21:01 +00:00
nobu
9ad065375f
* parse.y (k_def): adjust the location of method definition to the
...
line of def. [Bug #2427 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:50:15 +00:00
shugo
4cec4edd0b
fixed tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 07:09:21 +00:00
nahi
39802186b2
* ext/stringio/stringio.c (ungetc): RDoc updated. trunk allows
...
pushing back behind the beginning of the pseudo stream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 04:14:37 +00:00
tenderlove
d5e1b514f9
* test/dl/test_callback.rb (**): using DL::Function to test callbacks
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 00:15:26 +00:00
shugo
7dbfe89630
* compile.c (compile_cpath, iseq_compile_each): reverted
...
constant/class variable lookup in instance_eval etc. to the
behavior of 1.8.
* eval.c (rb_mod_nesting): ditto.
* insns.def (putspecialobject, defineclass): ditto.
* node.h (NODE_FL_CREF_PUSHED_BY_EVAL): ditto.
* vm_core.h (VM_SPECIAL_OBJECT_CONST_BASE): ditto.
* vm_eval.c (yield_under, eval_under): ditto.
* vm_insnhelper.c (vm_cref_push, vm_get_const_base,
vm_get_ev_const, vm_get_cvar_base): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 18:25:57 +00:00
duerst
9998481d4e
* enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code table
...
(from Tatsuya Mizuno)
* test/ruby/test_transcode.rb: Added test for converting full range of
Unicode codepoints from/to GB18030 (from Tatsuya Mizuno)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 11:29:33 +00:00