nobu
b088414390
* encoding.c (rb_enc_replicate): new function to replicate encoding.
...
* encoding.c (enc_based_encoding): Encoding#base_encoding returns
based encoding of replica.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 08:20:13 +00:00
nobu
3dacfd3fe4
* encoding.c (rb_enc_compatible): ASCII encoding is compatible with
...
ASCII-compatible encoding, even for non-string objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 08:18:36 +00:00
akr
2e064c694c
* lib/open-uri.rb: :redirect option implemented to disable redirects.
...
(OpenURI::HTTPRedirect): new exception class for redirection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-28 12:55:51 +00:00
nobu
62354319cd
* numeric.c (int_chr): take an optional encoding parameter.
...
[ruby-core:12816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 08:38:14 +00:00
nobu
69c7312cb3
* numeric.c (fix_pow): returns 1.0 for 0**0.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 08:14:14 +00:00
nobu
31667e5ffc
* numeric.c (fix_pow): returns infinity for 0**-1. [ruby-dev:32084]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 08:01:41 +00:00
nobu
32865ef821
* misc/ruby-style.el (ruby-style-{case,label}-indent): adjust for
...
labels inside switch block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 06:00:52 +00:00
davidflanagan
27b35eddd6
array.c: raise IndexError for negative length in rb_ary_fill
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 05:52:16 +00:00
jeg2
d520759f65
* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
...
addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 22:12:53 +00:00
jeg2
7c31f2a120
* lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
...
pattern case insensitive. [ruby-Bugs-10746]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 21:35:19 +00:00
matz
7f31a0e793
* lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch from
...
Dan Zwell <dzwell AT zwell.net> in [ruby-core:12941].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 19:22:27 +00:00
matz
bbe0af6be1
* parse.y (parser_yylex): dot at the head of the line denote line
...
continuation from previous one to support fluent interface.
[experimental]
* misc/ruby-mode.el (ruby-calculate-indent): support fluent dot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 17:06:29 +00:00
matz
012b58b121
* hash.c (rb_hash_s_create): check and convert argument hash
...
using #to_hash.
* hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of
hash conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 17:05:09 +00:00
matz
d9ff0a6c22
* array.c (rb_ary_assoc): check and convert inner arrays (assocs)
...
using #to_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 16:52:40 +00:00
nobu
bb053cd824
* io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 05:19:33 +00:00
davidflanagan
966e15e655
* parse.y (parser_tokspace): increment tokidx
...
fixes test failure at [test/ruby/test_stringchar.rb:72]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 05:08:08 +00:00
akira
1c662c2b63
* lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
...
cheme. [ruby-dev:31896]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 00:53:34 +00:00
jeg2
6b63368278
* lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
...
caused time zone conversion to fail for some ISO 8601 date formats.
[ruby-Bugs-12677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 21:24:09 +00:00
jeg2
7e2c0cbda2
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
...
the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 20:00:10 +00:00
jeg2
6f8537cf7f
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
...
message for Content-Type check failures. [ruby-core:12163]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 19:48:06 +00:00
jeg2
3c15e9efe3
* lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
...
Making Content-Type checks case insensitive. [ruby-Bugs-3367]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 18:46:08 +00:00
nobu
2070362f33
* parse.y (parser_tokspace): make space in token buffer.
...
* parse.y (parser_yylex): fix encoding of single character literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 08:09:40 +00:00
akr
7989a0868d
specify prefix for Dir.mktmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 07:11:35 +00:00
akr
7eee7f1cde
forgot to modify TestDBM2 and TestGDBM2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 06:29:59 +00:00
akr
462d4e1224
use Dir.mktmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 06:20:31 +00:00
akr
0945e23b07
doc. wording fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 06:03:48 +00:00
akr
5d2671d2bc
use Dir.mktmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-24 05:55:26 +00:00
akr
124bdf8815
rescue Errno::EWOULDBLOCK as well as Errno::EAGAIN in sample code in rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23 07:40:56 +00:00
nobu
3980699f54
* parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
...
[ruby-core:12850]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23 04:44:15 +00:00
nobu
22179f8124
* ChangeLog: reorderd.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23 01:48:51 +00:00
nobu
4bc9096b23
* ruby.c (process_options): encoding set by command line option takes
...
priority over the encoding in the source, as the primary encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23 01:42:53 +00:00
matz
3493a66ec6
* ruby.c (proc_options): allow space after -E (encoding) option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 15:29:53 +00:00
matz
15112cf003
* enum.c (enum_cycle): hide temporary array from ObjectSpace.
...
[ruby-core:12762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 15:29:17 +00:00
akr
ea0c6d3349
add a test for [ruby-dev:32084].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 03:40:41 +00:00
nobu
d0cbfbd995
* encoding.c (rb_to_encoding_index, rb_to_encoding): commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 02:06:50 +00:00
nobu
3cb10b32bb
* encoding.c (enc_check_encoding): returns index now.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 02:03:10 +00:00
nobu
00befb4b3f
* encoding.c (rb_enc_compatible): check if two objects have compatible
...
encodings.
* encoding.c (enc_compatible_p): added Encoding.compatible?.
* include/ruby/encoding.h (rb_enc_compatible): prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-22 01:57:08 +00:00
nobu
b2c81746ac
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
...
rb_encoding of default and primary respectively. [ruby-core:12795]
* encoding.c (set_primary_encoding): removed primary_encoding setter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-21 09:29:19 +00:00
nobu
6c77d58356
* file.c (rb_get_path): returns frozen string.
...
* file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-20 02:49:22 +00:00
nobu
5d5d0b5c38
* encoding.c (rb_id_encoding): returns ID "encoding".
...
* marshal.c (w_encoding): dump encoding name.
* marshal.c (r_ivar): load encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 11:08:16 +00:00
nobu
c7697aba34
* parse.y (parser_regx_options, reg_compile_gen): relaxened encoding
...
matching rule.
* re.c (rb_reg_initialize): always set encoding of Regexp.
* re.c (rb_reg_initialize_str): fix enconding for non 7bit-clean
strings.
* re.c (rb_reg_initialize_m): use ascii encoding for 'n' option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 07:41:03 +00:00
nobu
a4e493a985
* ruby.c (process_options): set primary encoding from the parser
...
always. [ruby-core:12758]
* ruby.c (load_file): should not discard the parser parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 02:09:57 +00:00
nobu
5725135274
* range.c (range_last): commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 01:57:49 +00:00
nobu
c2aee4c878
* range.c (range_last): removed unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-19 01:55:44 +00:00
matz
53d8c99d8b
* range.c (Init_Range): typo fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 08:14:21 +00:00
matz
0c7d366e47
* enum.c (enum_find_index): update RDoc. a patch from David Flanagan
...
<david AT davidflanagan.com> in [ruby-core:12710].
* enum.c (enum_take, enum_drop): ditto.
* enum.c (enum_cycle): should not cause infinite loop for empty
arrays. [ruby-core:12710]
<david AT davidflanagan.com> in [ruby-core:12710].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 08:12:27 +00:00
matz
b8c9921c02
* lib/rexml/source.rb (REXML::SourceFactory::SourceFactory): more
...
duck typed. better performance on JRuby.
http://headius.blogspot.com/2007/10/another-performance-discovery-rexml.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 07:41:21 +00:00
matz
fada885be6
* range.c (range_first): takes first n element if argument is
...
given. [ruby-core:12697]
* range.c (range_last): returns last n elements if argument is
given.
* array.c (rb_ary_subseq, rb_ary_last): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-18 06:58:35 +00:00
nobu
ae7ea35916
* ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-17 08:39:33 +00:00
matz
05737c3500
* re.c (rb_reg_s_union): the last check was not complete.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-17 05:21:10 +00:00