nobu
b094ab0948
* file.c (rmext): no extension to strip if empty string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 02:40:29 +00:00
svn
a2905fb2a0
* 2012-01-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 02:32:12 +00:00
nobu
ed469831e4
* file.c (rb_enc_path_next, rb_enc_path_skip_prefix)
...
(rb_enc_path_last_separator, rb_enc_path_end)
(ruby_enc_find_basename, ruby_enc_find_extname): encoding-aware
path handling functions.
* file.c (rb_home_dir, file_expand_path, rb_realpath_internal)
(rb_file_s_basename, rb_file_dirname, rb_file_s_extname)
(rb_file_join): should respect the encodings of arguments than
file system encoding. [ruby-dev:45145] [Bug #5919 ]
* dir.c (check_dirname, ruby_glob0): ditto.
* ext/pathname/pathname.c (path_sub_ext): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 02:32:06 +00:00
nobu
abd135d36b
* object.c (rb_Hash): fix mixed declaration and code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 07:21:33 +00:00
nobu
e187c4ca1f
* README.EXT, README.EXT.ja: rb_iter_break() and rb_iter_break_value().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 06:28:26 +00:00
nobu
04726dd749
* vm.c (rb_iter_break_value): new function to break a block with
...
the value. [ruby-dev:45132] [Feature #5895 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 05:20:48 +00:00
nobu
d03199b6d6
* object.c (rb_Hash): trivial optimization.
...
* test/ruby/test_object.rb (TestObject#test_convert_hash): fix
arguments order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 04:29:07 +00:00
matz
498838c662
* object.c (rb_Hash): add Kernel#Hash conversion method like
...
Array() or Float(). a patch from Run Paint Run Run. Fix #3131
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 04:02:30 +00:00
naruse
ac2683c809
Additional test for r34358.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 04:00:44 +00:00
svn
b9e4806133
* 2012-01-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 02:52:14 +00:00
naruse
edb7cdf1ea
* lib/uri/common.rb (URI.encode_www_form_component): initialize on
...
requiring to support JRuby, which runs parallel multithreads.
[ruby-core:42222] [Bug #5925 ]
* lib/uri/common.rb (URI.decode_www_form_component): initialize on
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 02:52:09 +00:00
shyouhei
e1fbcc4cf9
ChangeLog added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 12:25:22 +00:00
shyouhei
5de2c3c2d3
Writing entire packet at once to avoid incomplete transmission
...
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 12:25:19 +00:00
naruse
44d7233201
* lib/uri/mailto.rb (URI::MailTo.build): follow Array#to_s change of
...
Ruby 1.9; use Array#join. [Bug #5840 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 08:12:52 +00:00
naruse
aa5b65b2ed
* io.c (extract_binmode): raise an exception if binmode/textmode
...
is specified with both vmode and opthash.
[ruby-core:42199] [Bug #5918 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 07:56:25 +00:00
naruse
e7d83904cb
* io.c (rb_io_extract_modeenc): set ASCII-8BIT if binmode is specified
...
with opthash. [ruby-core:42197] [Bug #5917 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 07:56:20 +00:00
mrkn
4c9968c9d9
* test/cgi/test_cgi_util.rb (test_cgi_escape_preserve_encoding):
...
add a test for CGI::escape to preserve encoding.
* test/cgi/test_cgi_util.rb (test_cgi_unescape_preserve_encoding):
add a test for CGI::unescape to preserve encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 01:09:06 +00:00
svn
ca516aad53
* 2012-01-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 15:56:07 +00:00
knu
e21d7c1284
* misc/rdoc-mode.el (rdoc-imenu-create-index): Add imenu support
...
to rdoc-mode.
* misc/rdoc-mode.el (rdoc-mode): Fix regexp patterns containing
"\s " where CR/LF is not supposed to match.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 15:56:03 +00:00
nobu
bb19bcf93e
* parse.y (rb_intern3): split to registration check and new
...
registration.
* parse.y (rb_intern_str): make interned string shared with the
given string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 06:41:29 +00:00
svn
2d87a5c150
* 2012-01-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 06:23:45 +00:00
nobu
f1dc132b41
* parse.y (rb_intern3, rb_intern_str): check the coderange first.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 06:23:38 +00:00
nobu
86d4d10479
* include/ruby/ruby.h (FIXNUM_P): simple flag should be int.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-21 13:21:10 +00:00
naruse
b1428ace6b
* encoding.c (rb_enc_compatible): fix segv on symbols.
...
[ruby-core:42204] [Bug #5921 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-21 12:57:37 +00:00
svn
c8f98a75d8
* 2012-01-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-21 02:43:51 +00:00
nobu
c3d6f8d74f
* dir.c (dir_chdir, check_dirname): get rid of optimization-out.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-21 02:43:48 +00:00
mrkn
338a3073bd
* ChangeLog: insert redmine's issue number for the previous commit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 11:51:00 +00:00
mrkn
ce8d368b1e
* lib/cgi/util.rb (CGI.escape): support a string with invalid byte
...
sequence.
* test/cgi/test_cgi_util.rb
(test_cgi_escape_with_invalid_byte_sequence): test for the above
change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 11:48:52 +00:00
naruse
587135e994
* vm.c (vm_exec): remove workaround for LLVM because r34278 fixes it.
...
* vm_insnhelper.c (vm_call_cfunc): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 08:39:24 +00:00
nobu
a903f89a23
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name): enabled the test too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 08:27:24 +00:00
svn
d02b0d9558
* 2012-01-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 05:56:40 +00:00
naruse
bee7ccddd2
* lib/net/http.rb (Net::HTTP#transport_request): retry a idempotent
...
request automatically. [ruby-dev:45030] [Bug #5790 ]
[ruby-core:41821] [Bug #5813 ]
* lib/net/http.rb (Net::HTTP#keep_alive_timeout=): added to specify
the second to reconnect the TCP connection on Keep-Alive.
The default value is 2 second because current servers uses 2 sec.
http://ftp-admin.blogspot.com/2009/09/keepalivetimeout2.html
* lib/net/http.rb (Net::HTTP#begin_transport): reconnect TCP
connection on keep-alive timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 05:56:35 +00:00
nobu
87daaf61b9
* test/ruby/test_file_exhaustive.rb (test_expand_path): fix commit miss, removed surplus downcase.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-19 06:28:48 +00:00
nobu
d6c22be4e7
* test/ruby/test_file_exhaustive.rb (test_expand_path): ignore case of paths on DOSISH platforms.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-19 06:20:49 +00:00
nobu
81d3b071b9
* test/ruby/test_file_exhaustive.rb (test_expand_path): add tests for absolute paths and drive letters. [ruby-core:42177]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-19 06:01:29 +00:00
tadf
1d794b9335
ext/date/date_strptime.c: moved detector of leftover.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:54:09 +00:00
svn
6bada9cc0a
* 2012-01-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:13:27 +00:00
tadf
49d65bc4d6
ext/date/date_parse.c: [ruby-core:42173].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:13:10 +00:00
nagachika
0a99ea86f4
* ChangeLog: fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 14:38:34 +00:00
knu
10e85b7f84
* misc/rdoc-mode.el (rdoc-mode): Add provide so that requiring
...
this library succeeds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 09:12:54 +00:00
nobu
d3b540cf40
* ext/curses/curses.c (cWindow, cMouseEvent): made typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 09:06:48 +00:00
naruse
8c6e0d3007
Suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 07:02:58 +00:00
tenderlove
8cf05741bc
* ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
...
subclasses of String with ivars
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
subclasses of String with ivars
* test/psych/test_string.rb: corresponding tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 03:52:01 +00:00
svn
99840a64b6
* 2012-01-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 01:44:25 +00:00
tenderlove
ee3ebc2de5
* ext/psych/lib/psych/visitors/to_ruby.rb: Added ability to load array
...
subclasses with ivars.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added ability to dump
array subclasses with ivars.
* test/psych/test_array.rb: corresponding tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 01:44:21 +00:00
nobu
e58d77bdda
* configure.in (SPT_TYPE): enable as SPT_REUSEARGV on Darwin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:18:46 +00:00
nobu
b3e2baa3b5
* missing/setproctitle.c (ruby_init_setproctitle): changed prefix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:13:50 +00:00
nobu
eec5d2014f
* confiugre.in (setproctitle): removed dupcated checks.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:10:00 +00:00
nobu
e87c0e6574
* gc.c (aligned_malloc, aligned_free): covered missing defined
...
operators and fixes for cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 03:32:50 +00:00
nobu
e8590143a0
* st.c (add_packed_direct): ditto.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 02:40:42 +00:00