nobu
4155206ebd
* eval.c (send_internal): use self in the previous frame to check for
...
protected methods. [ruby-core:13254]
* insnhelper.ci (vm_call_method): send! method has gone.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 01:43:57 +00:00
ko1
9a0e440b81
* marshal.c (w_object): should be SPECIAL_CONST_P() instead of
...
IMMEDIATE_P().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 01:39:56 +00:00
nobu
4c040861c8
* eval.c (rb_invoke_method): check if invoked in function style.
...
[ruby-core:13245]
* insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): stores and returns VM
calling flags.
* vm.c (rb_vm_cfunc_funcall_p): returns if the current method is
invoked in function style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 01:29:24 +00:00
ko1
9f6de20f58
* cont.c: add rb_context_t#type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 01:11:49 +00:00
ko1
0303c1d42b
* ruby.c (set_arg0): fix breaking environ bugs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-09 01:10:06 +00:00
matz
9099eab331
* random.c: update MT URL.[ruby-core:13305].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 22:27:54 +00:00
davidflanagan
68ddfec346
* object.c: improve docs for Object.tap
...
* ChangeLog: fix bogus dates on my previous entries
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 08:12:59 +00:00
davidflanagan
453889cf0c
* parse.y: fix segfault with \x escapes in regexps
...
delete unused #if 0 code regions from previous patch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 06:14:45 +00:00
usa
219d2315af
* parse.y (parser_read_escape): remove C99/gcc-ism.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 03:14:16 +00:00
davidflanagan
baae1c4075
* parse.y: patch, based on Nobu's, work to support \u escapes
...
also modifications for better coderange detection
* test/ruby/test_unicode_escapes.rb: test cases
* test/ruby/test_mixed_unicode_escapes.rb: mixed encoding test cases
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-07 22:55:27 +00:00
davidflanagan
89397d2f6e
* parse.y (rb_intern3): commented out broken code that prevented
...
correct interning of multi-byte symbols. Without this patch
:x==:x is false when x is a multi-byte character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-07 22:17:58 +00:00
davidflanagan
f6fb4b3e8e
* string.c (tr_setup_table, tr_trans): fix test failures in test/ruby/test_string.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-07 22:07:13 +00:00
nobu
ec0187ef15
* enum.c (enum_each_with_index): make different arrays at each
...
iteration. [ruby-dev:32181]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-07 06:07:52 +00:00
davidflanagan
ba80fd2bbf
* eval.c: fix typo in invoke_method documentation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 20:21:50 +00:00
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