matz
53f22d3a05
* array.c (rb_ary_product): core dumped with non array arguments.
...
a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32180]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 18:54:02 +00:00
matz
d9ebaef79b
* array.c (rb_ary_each_index): should return meaningful value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 18:36:49 +00:00
matz
23176da722
* lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
...
nkf conversion. a patch from <moonwolf AT moonwolf.com>.
[ruby-dev:32183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 18:35:33 +00:00
nobu
974cd1b380
* eval_load.c (loaded_feature_path): need to expand relative paths.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 07:37:49 +00:00
nobu
bb1f1c5782
* eval_load.c (rb_feature_p): check if the feature is loading with
...
load path. [ruby-dev:31932]
* eval_load.c (load_lock): check the result of barrier waiting.
* thread.c (rb_barrier_wait): check if owned by the current thread.
* thread.c (rb_barrier_release): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 06:52:01 +00:00
matz
6a24fdb09d
* eval.c (Init_eval): move #send to Kernel module from BasicObject.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-05 03:21:54 +00:00
matz
1eee78b876
* eval.c (rb_f_send): allow send/__send__ to call methods of all
...
visibility again. we no longer provide __send, __send!.
* eval.c (rb_invoke_method): new method to honor private
visibility. if it's invoked in a function call style, it calls
private methods as well (previous 1.9 send behavior).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:36:20 +00:00
nobu
ed823523e3
* lib/optparse.rb (OptionParser::Switch::summarize): fix for long form
...
option with very long argument. a patch from Kobayashi Noritada
<nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:17:06 +00:00
matz
950c618335
* parse.y (call_args): remove "parenthesize argument(s) for future
...
version" warning. when I added this warning, I had a plan to
reimplement the parser that is simpler than the current one.
since we abandoned the plan, warning no longer required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 16:23:59 +00:00
aamine
fc8bd6d109
* lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix 500 error on some corrupted HTTP servers. [ruby-core:13135]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 16:03:30 +00:00
usa
fc3b17968b
* win32/Makefile.sub: vendor_ruby support.
...
* configure.in (RUBY_LIB): duplicated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 15:26:21 +00:00
akr
af9c868eae
* re.c (rb_reg_quote): quote \v as well.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 15:03:31 +00:00
akr
794fc684e8
* re.c (rb_reg_initialize_m): use StringValuePtr instead of
...
StringValueCStr because \0 exists when Regexp.new("\0").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 14:53:36 +00:00
ser
06f2b5b1d8
Fixes ticket:110 (more UTF-16 problems)
...
Missing include for UndefinedNamespaceException was causing errors in some
cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 04:52:08 +00:00
akr
b3ab1dbf34
add test for Regexp.new("\0").
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 01:53:29 +00:00
akr
4cdcfbe2ba
* gc.c (count_objects): count TOTAL.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 23:13:57 +00:00
matz
19c4d26c51
* string.c (tr_setup_table): use C array for characters that fit
...
in a byte to gain performance.
* string.c (rb_str_delete_bang): ditto.
* string.c (rb_str_squeeze_bang): ditto.
* string.c (rb_str_count): ditto.
* string.c (tr_trans): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 19:04:53 +00:00
akr
e920777bb5
add ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 15:50:35 +00:00
akr
16c8ac3921
* gc.c (count_objects): ObjectSpace.count_objects implemented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 15:09:10 +00:00
matz
6e8eea7abe
* hash.c (rb_hash_each_pair): make Hash#each to be alias to
...
Hash#each_pair for compatibility and clarity.
* hash.c (env_each_pair): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 14:07:48 +00:00
akr
fbc00c8772
* README.EXT: explain --vendor option for extconf.rb
...
* README.EXT.ja: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 13:41:52 +00:00
akr
9435853daf
* configure.in: --with-vendor-hdrdir implemented.
...
* lib/mkmf.rb: check --vendor argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 13:30:59 +00:00
akr
21eebfb086
* configure.in: --with-vendordir implemented.
...
* mkconfig.rb: add config to vendorlibdir and vendorarchdir.
* instruby.rb: make vendor library directories.
* ruby.c: insert vendor library directories into load path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-03 11:35:59 +00:00
kou
79041dfc8d
* lib/rss/content.rb, lib/rss/content/, lib/rss/maker/content.rb,
...
test/rss/test_content.rb, test/rss/test_maker_content.rb,
test/rss/rss-testcase.rb (RSS::TestCase): supported
content:encoded with RSS 2.0.
Suggested by Sam Lown. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-02 11:58:03 +00:00
kou
a7f1c72e90
* lib/rss/rss.rb, test/rss/test_version.rb: 0.2.0 -> 0.2.1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-02 11:49:20 +00:00
matz
7f018bde09
* error.c (Init_Exception): make NameError to be subclass of
...
StandardError again.
* error.c (Init_Exception): make SecurityError to be subclass of
Exception, since it's too important to be handled implicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-02 06:28:52 +00:00
davidflanagan
d04b7871a1
* enum.c (take_while_i, drop_while_i) add RTEST to handle nil return
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-01 05:53:52 +00:00
usa
a95d19bf59
* common.mk (prereq): update the path of prelude.c.
...
* common.mk (prelude.c): rollback a part of r13675, because it is not
documented and causes build error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 17:16:00 +00:00
usa
4905959e34
* enum.c (enum_drop): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 16:53:04 +00:00
usa
ac5a975aaf
* vm_core.h (ruby_current_thread): RUBY_EXTERN'ed for probeprofiler.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 16:52:10 +00:00
usa
2276493ee5
* win32/setup.mak: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 16:34:16 +00:00
usa
24ada5f55e
* win32/configure.bat, setup.mak: now can recognize OS even if
...
the ``--target'' option of configure is omitted.
* win32/README.win32: update the descriptions about compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-31 15:53:19 +00:00
matz
d2a1637d90
* enum.c (enum_take_while): separate with-block form.
...
* enum.c (drop_while_i): ditto.
* enum.c (enum_butfirst): abandon butfirst method. reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-30 23:43:26 +00:00
matz
a68451d610
* enum.c (enum_butfirst): add a new method to iterates over
...
elements but first n. RDoc need to be updated.
* enumerator.c (Init_Enumerator): remove unnecessary symbol
initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-30 01:06:10 +00:00
nobu
f3cbb20b22
* parse.y (bvar): block-local variable can shadow outer variable.
...
[ruby-core:13036]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 09:42:18 +00:00
nobu
2ae60f1634
* string.c (rb_str_substr): perfomance improvement. [ruby-dev:31806]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-29 08:58:17 +00:00
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