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
svn
c4b17fc135
* 2009-10-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 00:21:38 +00:00
usa
651a207d09
* eval.c (rb_origenviron): remove unused old variable.
...
[ruby-dev:39412]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02 00:21:34 +00:00
usa
4e389756ec
* win32/{setup.mak,Makefile.sub,win32.c},include/ruby/win32.h (RT_VER):
...
split compiler specification and runtime library specification.
* win32/Makefile.sub (LD_SHARED*, config.status): no need to embbed
manifest if not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-01 05:19:19 +00:00
svn
ceca5abce0
* 2009-10-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-01 04:24:02 +00:00
usa
a93b36b3e5
* win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
...
instead of calling MSVCRT's getpid().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-01 04:23:59 +00:00
matz
9b192302ec
* time.c (rb_time_succ): make Time#succ obsolete since time is not
...
a discrete value.
* range.c (discrete_object_p): treat time objects specially to
determine discrete values, since time objects have #succ yet are
discrete (for now at least).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-30 08:32:43 +00:00
nobu
a71d47a380
* vm_method.c (rb_add_method_def): show the location where
...
overwritten method was defined. [ruby-dev:39400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-30 04:15:46 +00:00
naruse
331fdbe822
* re.c (last_match): add "thread and method" to the scope.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-30 01:08:44 +00:00
marcandre
b59109a844
* re.c (last_match): Added note to the doc that last_match is local to current scope [ruby-core:25833]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 16:38:00 +00:00
nobu
40e50764f4
* enumerator.c (enumerator_block_call): extracted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:37:28 +00:00
naruse
5b2d54be66
Escape as \x{XXXX} other than Unicode chars.
...
* string.c (rb_str_inspect): escape as \x{XXXX} when the encoding is
other than Unicode. [ruby-dev:39388]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:02:59 +00:00
nobu
e8f007e6b8
* configure.in (THREAD_MODEL): modified message when no thread
...
model is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 15:00:32 +00:00
nobu
46313c96c7
* io.c (rb_scan_open_args): rb_utf8mac_encoding is undefined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 14:17:34 +00:00
akr
6ab0a79125
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 13:45:28 +00:00
akr
18a07e9d4b
* include/ruby/intern.h (rb_struct_iv_get): deprecated because it is
...
not used and access internal structure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 13:25:54 +00:00
akr
0eddab8404
* lib/test/unit/assertions.rb (assert_equal): use Time#subsec if nsec
...
is not enough to distinguish arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 13:22:27 +00:00
naruse
ad8978fdb1
* io.c (rb_scan_open_args): add UTF8-MAC to no-convertion encoding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:31:43 +00:00
nobu
42f0ea8c61
* configure.in (--enable-pthread): deprecated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:21:16 +00:00
mame
54bf027c91
* add a reference.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:13:26 +00:00
mame
c979cbfcf6
* lib/pp.rb (Kernel#pp): returns its arguments, like Kernel#p.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 12:11:29 +00:00
nobu
dc087bf85d
* ext/json/lib/json/common.rb (recurse_proc): removed needless
...
module_function, since visibility is already module_function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 08:02:47 +00:00
nobu
aed9218981
* test/ruby/test_class.rb (test_method_redefinition): commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 07:03:11 +00:00
nobu
811c2d5100
* test/ruby/test_{class,module}.rb (test_method_redefinition): include
...
warned line number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 06:59:42 +00:00
nobu
e6fb96e691
* test/ruby/test_{class,module}.rb (test_method_redefinition): refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-29 06:26:46 +00:00