Граф коммитов

19595 Коммитов

Автор SHA1 Сообщение Дата
akr 20a6e94e47 * lib/resolv.rb (Resolv::IPv4::Regex): make it only accept 0 to 255.
[ruby-core:29501]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-18 09:09:46 +00:00
nobu e70a308c75 * parse.y (parser_yylex): seems like a symbol-literal when spaces
are unbalanced.  [ruby-core:29578]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-18 03:48:54 +00:00
nobu cfab29b7db * parse.y (string_content): preserve cond_stack and cmdarg_stack.
[ruby-core:29579]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-18 03:32:06 +00:00
nobu 4d82ba512c * transcode.c (transcode_loop): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-18 03:28:12 +00:00
nobu 54985ad7dd * bootstraptest/test_io.rb: reduced megacontent test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-18 03:26:56 +00:00
tenderlove 2845bfa9dd * ext/psych/lib/psych/visitors/yaml_tree.rb: defaulting binary string
format to "literal" format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 20:52:46 +00:00
svn 1cae325a35 * 2010-04-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 17:15:22 +00:00
naruse fd734e6cc6 * lib/irb/ruby-lex.rb (identify_identifier): add '_' to the regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 17:15:20 +00:00
naruse 580677a984 * configure.in: use AC_TRY_LINK instead of AC_TRY_COMPILE.
On Solaris it can compile with signbit but can't link.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 14:27:54 +00:00
mame 71104c3356 * test/ruby/envutil.rb: update Gem::ConfigMap to fake environment for
tests.  Some test of rubygems had failed because envutil.rb changed
  only RbConfig::CONFIG but not Gem::ConfigMap.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 11:38:04 +00:00
mame 0b28bf2958 * lib/irb/ruby-lex.rb (identify_identifier): allow multibyte character
as identifier.  [ruby-core:27275]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 11:37:56 +00:00
tenderlove 94365e5345 * ext/psych/lib/psych/visitors/yaml_tree.rb (find_ivars): ignore
to_yaml_properties defined by syck.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 03:04:03 +00:00
wanabe 8b261b413c * compile.c (iseq_compile_each): fix splat condition in NODE_WHEN.
[Bug #2226]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-17 00:23:28 +00:00
nobu 2939d61f28 * lib/net/smtp.rb (Net::SMTP#rcptto_list): continue when at least
one RCPT is accepted.  based on a patch from Kero van Gelder at
  [ruby-core:26190].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 23:57:43 +00:00
kazu a350d0afc5 * test/thread/test_queue.rb (TestQueue#grind): fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 22:45:45 +00:00
kazu d49860bfbc NEWS: add Array#repeated_{combinationpermutation} [Feature #2981]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 22:30:16 +00:00
tenderlove 5b5bbdbb35 * ext/psych/lib/psych/core_ext.rb (yaml_as): supporting deprecated
"yaml_as" method
* ext/syck/lib/syck/tag.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 20:31:59 +00:00
tenderlove 2db7b7f3fe * ext/psych/lib/psych/coder.rb (scalar): supporting deprecated methods
* ext/psych/lib/psych/deprecated.rb: supporting deprecated
  to_yaml_properties method

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 20:27:51 +00:00
nobu 039219b2c9 * test/thread/test_queue.rb: property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 19:27:47 +00:00
svn 2c6a1457b6 * 2010-04-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 16:36:11 +00:00
mame d6f289b0ff * io.c (rb_io_rewind, rb_io_eof): add rdoc. based on a patch from
Roger Pack in [ruby-core:26771] [Bug #2377].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 16:36:08 +00:00
suke de1324fb7f * test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb):
run test only when "Create Shortcut (&S)" menu is found. 
  [ruby-core:29550] [Bug #1602]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 14:55:42 +00:00
mame fd9c3fef0b * parse.y (string_content, etc): counts of CMDARG_PUSH and POP were
inconsistent.  [ruby-core:22637]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 12:57:28 +00:00
mame 49884b5769 * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): revert r23389,
which not only is unnecessary but also causes the inconsistency of
  return type.  [ruby-core:25706] [Bug #2129]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 12:36:41 +00:00
mame 6511fec7ad add thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 11:11:17 +00:00
mame 93c5002a7c * lib/thread.rb (Queue#push, #pop, SizedQueue#push, #pop): remove
code that kicks waiting thread twice, which caused race and
  deadlock.  [ruby-core:25537]

* test/thread/test_queue.rb: added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 11:10:08 +00:00
mame 7d26c313a1 * .gitignore: updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 11:02:24 +00:00
nobu 565d22756b * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about
DOSISH, sometimes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 07:51:18 +00:00
svn b62feb5e04 * 2010-04-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 07:24:08 +00:00
matz 38ae996706 * array.c (rb_ary_repeated_permutation): new method added. a patch
from Makoto Kishimoto in [ruby-core:29267]   [ruby-core:28724]

* array.c (rb_ary_repeated_combination): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 07:24:04 +00:00
mame 42b8a699ed * thread.c (rb_thread_priority, rb_thread_priority_set): fix rdoc.
Lower-priority thread may run even if there are higher-priority
  threads.  See [ruby-dev:40977].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 13:44:52 +00:00
mame 8588e7631e * lib/uri/ftp.rb (URI::FTP#set_path): added to correct handling of
special case where path of ftp is relative.  This converts relative
  path to absolute one, because external representation of ftp path is
  relative and internal representation is absolute.  [ruby-core:24077]

* lib/uri/ftp.rb (URI::FTP#initialize): converts absolute to relative.

* lib/uri/generic.rb (URI::Generic#check_path): allow relative path
  when scheme is ftp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 13:41:19 +00:00
akr 77204d5391 * tool/file2lastrev.rb: use backtick for ruby 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 12:55:11 +00:00
naruse 83724a77dd * tool/file2lastrev.rb: this should run with ruby 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 12:14:45 +00:00
akr d9aab57252 * tool/file2lastrev.rb: make -q effective for files not version
controlled.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 11:43:09 +00:00
nobu 7475244ec4 * vm_dump.c (bugreport_backtrace): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 05:50:24 +00:00
nobu 584829aa81 * vm.c (vm_backtrace_each): get rid of use of malloc from signal
handler by using ruby_engine_name.  [ruby-core:29497]

* vm_eval.c (print_backtrace): file may be nil when segfaulted in
  very early stage.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 05:38:07 +00:00
svn 073515a649 * 2010-04-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 02:52:15 +00:00
usa 202ce4fd63 * common.mk (help): small fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 02:52:12 +00:00
naruse 46ff009168 * lib/rexml/source.rb: force_encoding("UTF-8") when the input
is already UTF-8. patched by Kouhei Sutou [ruby-core:23404]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 13:11:11 +00:00
mrkn 55f7857a77 * configure.in (signbit): signbit is a macro in C99.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 09:29:29 +00:00
nobu 8e7a682be0 * io.c (io_shift_cbuf): should terminate.
http://golf.shinh.org/p.rb?DECimal+number+to+BINary#Ruby


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 08:56:11 +00:00
nobu 95c52c8e6c * gc.c (GET_STACK_BOUNDS): fixed macro argument names. a patch from
Satoshi Shiba <shiba AT rvm.jp> at [ruby-dev:40973].

* gc.h (ruby_get_stack_grow_direction): fixed prototype.

* thread_pthread.c (get_stack, ruby_stack_overflowed_p): both side
  should be same type.  [Bug #3145]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 07:29:04 +00:00
nobu 92496d73eb * string.c (rb_string_value_cstr): make NUL terminated if it is
not done.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 06:58:13 +00:00
shugo 2587316c73 * lib/net/imap (encode_utf7): encode & properly. Thanks, Kengo
Matsuyama.  [ruby-dev:38063]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 04:00:09 +00:00
nobu ddafeb2f2a * ext/syck/lib/syck/basenode.rb (Syck::BaseNode#match_path): fixed
library name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 02:39:28 +00:00
nobu eedb41a85b * ext/syck/lib/yaml/syck.rb: split from ext/syck/lib/syck.rb for
backward compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 02:37:54 +00:00
svn bde213674c * 2010-04-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 01:55:20 +00:00
naruse b2ae252976 * ext/nkf/nkf-utf8/nkf.c: Refix [nkf-bug:21393]. (explicit -X)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-14 01:55:17 +00:00
naruse 4392ea3527 * ext/nkf/nkf-utf8/nkf.c: Fix: Windows Codepages wrongly convert
Halfwidth Katakana. [nkf-bug:21393]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-13 11:37:55 +00:00