matz
40229f892c
* array.c (rb_ary_{times, shuffle_bang, sample}): reducing macro
...
calls inside of the loop by keeping pointers in local
variables. a patch from Masahiro Kanai (CanI) in [ruby-dev:39406].
It was found and fixed at Security and Programming camp 2009.
* string.c (rb_str_{times, split_m}): ditto.
* struct.c (rb_struct_{getmember, set, aref_id, aset_id}, {make,
inspect}_struct, recursive_{equal, hash, eql}): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-05 14:35:39 +00:00
akr
c984f77122
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-05 11:27:06 +00:00
svn
c03265d878
* 2009-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 17:06:02 +00:00
matz
e3fc29a71b
* vm_method.c (basic_obj_respond_to): should not call
...
#respond_to_missing? for not implemented methods.
[ruby-core:25909]
* vm_method.c (rb_method_boundp): returns exceptional value 2 for
not-implemented methods when called from #respond_to? (specifies
by new contant NOEX_RESPONDS).
* method.h (enum): new constant NOEX_RESPONDS added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 17:05:59 +00:00
xibbar
0e260ef122
* lib/cgi/cookie.rb: add default value to @@accept_charset
...
if have not defined. [ruby-dev:38987]
* lib/cgi/util.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 13:25:49 +00:00
nobu
f6f89b880a
* marshal.c (struct {dump,load}_arg): manage with dfree, instead
...
of using local variable which may be moved by context switch.
[ruby-dev:39425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 10:30:56 +00:00
nobu
f517fb54c7
* pack.c (NATINT_LEN, pack_pack): suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 06:00:33 +00:00
akr
4530644186
wrap by a module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 05:44:27 +00:00
nobu
c3721fdcfc
* lib/rubygems.rb (Gem::binary_mode): binary mode uses binary
...
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 05:01:12 +00:00
nobu
47dfb32c43
* test/rubygems/test_gem_installer.rb (test_build_extensions_extconf_bad):
...
escaped meta charater.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:59:11 +00:00
nobu
da63c5ca4b
* test/rubygems/gemutilities.rb (setup): use ENV["RUBY"] before
...
installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:55:23 +00:00
nobu
57940c0323
* test/rubygems/test_gem.rb (TestGem#test_self_find_files): "."
...
is no longer included in $LOAD_PATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 04:53:57 +00:00
akr
ea56a70eb8
add assertion message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 00:00:18 +00:00
akr
31959b52ef
* enum.c (slicebefore_ii): use id_eqq.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 23:29:03 +00:00
azav
bd2eff81d8
* symbian/setup (ruby.mmp): added macro RUBY_EXPORT to match the change in dln.c
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 20:43:45 +00:00
nagai
85b326ac42
* ext/tk/lib/tk/variable.rb: add TkVariable#to_hash,to_proc,to_int,to_str,to_ary
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 20:39:54 +00:00
azav
7f80452c21
* symbian/setup (ruby.mmp): added macro RUBY_EXPORT to match the change in dln.c
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 20:35:09 +00:00
xibbar
ae8ad5ae27
* lib/cgi/core.rb: fix command-line option of
...
non-interactive terminal. [ruby-core:23016]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 16:15:23 +00:00
nobu
19bad26c5a
* test/rubygems: use require_relative.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 15:59:29 +00:00
nobu
78eaef0f8e
* lib/rake/contrib: added. [ruby-core:25918]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 15:40:20 +00:00
nobu
041fc407b0
* test/rake/contrib/test_ftp.rb: moved.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:57:12 +00:00
nobu
74b5825136
* test/rake: get rid of name collision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:54:18 +00:00
nobu
746fe8af5a
* test/rake: get rid of name collision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 14:47:46 +00:00
nobu
664c7ef4f6
* test/rake/test_package_task.rb (Rake::TestPackageTask),
...
(Rake::TestGemPackageTask): get rid of name collision with
rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 13:37:52 +00:00
nobu
72ad8595f2
* parse.y (bv_decls, bvar): fix for block variables.
...
[ruby-dev:39423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 13:14:19 +00:00
nobu
7b26a97142
* test/ripper/test_scanner_events.rb: workaround for ruby-mode.el confusion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:57:54 +00:00
nobu
2957020491
* test/ripper/dummyparser.rb: suppress redefinition warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:25:32 +00:00
nobu
9603cd2f62
* vm_method.c (rb_add_method_def): no redefinition warning on
...
undef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 12:19:19 +00:00
matz
74926fefb7
* object.c (rb_f_integer): now Integer() takes optional base
...
argument. base will be ignored for non string values.
suggested by Sam Carr at RubyFoo Lounge at London.
* test/ruby/test_integer.rb (TestInteger#test_Integer): test
updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 10:18:14 +00:00
marcandre
51b89eeb03
enum.c (enum_chunk): Give proper error message if no block given. cf [ruby-core:25912]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-03 04:55:00 +00:00
akr
a21b7ddf26
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 23:10:38 +00:00
akr
5bdef2f984
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 23:02:04 +00:00
nobu
b3525ae1e7
* parse.y (assignable_gen): parser_yyerror takes two arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 19:34:28 +00:00
nobu
ac57952ab9
* test/rake: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 19:09:05 +00:00
nobu
719b0f8e30
* lib/rake: updated to rake code to rake-0.8.7 source code base.
...
* lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line):
respace dependencies too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 19:07:55 +00:00
nobu
a0f667c33e
* parse.y (assignable_gen): get rid of macro collision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 17:59:25 +00:00
nobu
1a78256861
* array.c (ary_make_shared): should count frozen array itself.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 17:49:52 +00:00
nobu
c305c808e6
* lib/rake: updated to rake code to rake-0.8.7 source code base.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 17:48:20 +00:00
naruse
8d4ebdc8fe
* enc/unicode/name2ctype.h: Updated to Unicode 5.2.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 16:03:20 +00:00
nobu
8a99a39592
* configure.in: workaround for regexp metacharacters of expr in
...
prefix path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 16:01:05 +00:00
nobu
1457dca5d8
* test/ripper/dummyparser.rb (DummyParser): improvement by Magnus
...
Holm in [ruby-core:25884].
* remove scanner events which simply returned the first argument.
* all parser events are now automatically generated.
* simplify blocks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 15:47:54 +00:00
naruse
7054856938
* method.h (rb_method_type_t): remove a comma at end of
...
enumerator list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 15:45:09 +00:00
nobu
e66470a106
* range.c (discrete_object_p): needs the argument type to get rid
...
of truncation on platforms where VALUE is larger than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 15:31:05 +00:00
naruse
48eafcbc49
Updated to Unicode 5.2.0.
...
* enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd,
enc/unicode/name2ctype.src: Updated to Unicode 5.2.0.
NOTE: when you update these data, download UnicodeData.txt
and Scripts.txt from http://www.unicode.org/Public/UNIDATA/
and run
ruby1.9 tool/enc-unicode.rb UnicodeData.txt Scripts.txt \
> enc/unicode/name2ctype.kwd
* enc/unicode/Scripts.txt: removed.
* enc/unicode/UnicodeData.txt: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 13:37:41 +00:00
akr
4b6c600a9b
get rid of unused keywords from svn:keywords.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 12:04:37 +00:00
akr
2e70b9e70d
* enum.c (enum_slice_before): take a pattern if no block given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 11:50:11 +00:00
nobu
aec8a4b0a4
* parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
...
NODE to track local variable assignment.
* parse.y (lvar_defined_gen, assignable_gen): enable local
variable check. [ruby-core:24923]
* parse.y (validate): use value only.
* test/ripper/test_parser_events.rb (test_local_variables): tests
based on a patch from Magnus Holm in [ruby-core:25885].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 11:37:44 +00:00
akr
e9c728fea3
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 10:54:31 +00:00
akr
9dbf7dc6dd
unused svn:keywords property deleted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 10:45:39 +00:00
nobu
56e358d5f9
* thread.c (ruby_suppress_tracing): get rid of clobbering by
...
longjmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 06:34:18 +00:00