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

26156 Коммитов

Автор SHA1 Сообщение Дата
svn 19be9a8d80 * 2012-05-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 15:09:44 +00:00
nobu 4b0e5edaea inilne markups
* README.ja: separate inilne markups from multibyte sequence by
  spaces, so that another implementation can parse them properly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 15:09:41 +00:00
nobu aa913eb6fa single quotes
* README, README.ja: use single quotes for RDoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 15:09:39 +00:00
nobu 3f6349a1bf * tool/rbinstall.rb (capi): install to capi directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 14:56:39 +00:00
nobu cfcc9b53c2 * template/Doxyfile.tmpl (EXCLUDE_PATTERNS): exclude files only for tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 14:56:36 +00:00
nobu f959f2afdd * template/Doxyfile.tmpl: exclude generated files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 14:05:34 +00:00
svn f2a1e50f4c * 2012-05-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 00:14:14 +00:00
ayumin fd7632ee8e * cont.c (rb_fiber_m_transfer): fixed typo in example.
[ruby-core:44818][Bug #6395]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-03 00:14:10 +00:00
nobu db33b28cc3 * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): expand
real path to get rid of loading same files via symlinks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 14:55:53 +00:00
nagachika f0feb0a4f0 * cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer
documentation. emphasize the difference between transfer and resume.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 14:30:48 +00:00
nobu 9cf2170e78 * parse.y (parser_yylex): allow spaces between lambda arrow and
parenthesis.  [ruby-dev:45605][Feature #6390]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 14:21:23 +00:00
ayumin 6f72a6dcb5 * cont.c: Improved Fiber documentation.[ruby-core:44540][Bug #6343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 10:13:28 +00:00
nobu 8de9bb275f * README, README.ja: reformatted using rdoc markup. based on the
patches by zzak (Zachary Scott) in [Feature #6388].
* README, README.ja: updated the author's mail address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 04:06:40 +00:00
kouji 1451c619a7 fix my email address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 00:48:42 +00:00
svn 9683b27c39 * 2012-05-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 00:48:03 +00:00
kouji 7c602ea07f * ext/readline/readline.c (Readline.special_prefixes=)
(Readline.special_prefixes): new function. An original patch was
  created by nagachika. [Feature #5784]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-02 00:47:57 +00:00
kazu 517f225306 fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 14:23:22 +00:00
kouji 7a4b214558 * ext/readline/readline.c (Readline.pre_input_hook)
(Readline.insert_text, Readline.redisplay): new function. An
  original patch was created by nagachika. [Feature #5785]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 13:21:55 +00:00
nobu 28b7df7820 * revert r35510 and r35511 which caused removing the headers everytime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 07:15:18 +00:00
nobu d7228e5bba depends on ext/openssl/deprecation.rb
* ext/digest/*/depend: depends on ext/openssl/deprecation.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 06:52:28 +00:00
nobu 1735969296 extconf.h dependency
* lib/mkmf.rb (MakeMakefile#depend_rules): deal with extconf.h
  dependency.  just remove it and bail out right now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 06:52:25 +00:00
ko1 e6bd1496a8 * common.mk: "$(Q)-..." doesn't work on nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 06:49:00 +00:00
ko1 458c30e57d * common.mk: replace '@' prefix to '$(Q)' to control build
process outputs.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 06:37:24 +00:00
nobu d32155358c * ext/openssl/deprecation.rb (OpenSSL.check_func): check if header is
available for macro compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 05:18:02 +00:00
usa 633cebb0ef * test/ruby/test_settracefunc.rb: ignore traces from another threads
because Kernel.set_trace_func affects other threads.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-01 01:56:25 +00:00
nobu e1d1397af8 * ext/digest/sha2/sha2.c (REVERSE32): exlicitly cast since unsigned
long may be larger than sha2_word32.
* ext/digest/sha2/sha2.c (SHA{256,512,384}_{Final,End}): should clear
  whole content, not pointer size.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 21:04:16 +00:00
nobu 26e258c807 * ext/digest/*/extconf.rb: use pkg_config to use same library with
openssl.  [ruby-core:44755][Bug #6379]
* ext/openssl/deprecation.rb: extract check for broken Apple OpenSSL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 21:03:38 +00:00
nobu 0f1181a539 Bug #6370
* configure.in (optflags): fixed typo. [ruby-core:44679][Bug #6370]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 20:14:26 +00:00
svn fa9a1b62f1 * 2012-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 20:02:38 +00:00
nobu 7d45d3f84d * configure.in (optflags): disable unsafe optimizations.
[ruby-core:44679][Bug #6370]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 20:02:34 +00:00
akr 52af87a5a7 add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 14:45:31 +00:00
akr 7d89ecdc52 * lib/fileutils.rb (copy_metadata): use File.lchown and File.lchmod to
update meta data of symlinks.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 14:37:54 +00:00
nagachika c40e6f8257 * test/ruby/test_continuation.rb (tracing_with_set_trace_func): don't
call Continuation from other threads. [ruby-dev:45596] [Bug #6382]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 14:09:36 +00:00
nobu 860cf7b812 * configure.in (optflags): disable unsafe optimizations.
[ruby-core:44679][Bug #6370]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 12:09:09 +00:00
akr ce007c7c86 * ext/zlib/extconf.rb: detect z_crc_t type which will be defined
since zlib-1.2.7.

* ext/zlib/zlib.c (rb_zlib_crc_table): use z_crc_t if available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 11:11:21 +00:00
ayumin 3893159530 * test/net/http/test_https.rb: update test for r35494
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 03:51:03 +00:00
ayumin 0456c36d03 * ext/openssl/lib/openssl/ssl.rb: add hostname to "hostname does not
match server cert." error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-30 00:11:44 +00:00
svn 746c080bf3 * 2012-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-29 19:44:22 +00:00
tenderlove 13edcbea75 * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
be changeable for JSON events.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-29 19:44:18 +00:00
tenderlove 75cff1d7d0 add a test for yaml ast roundtripping
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 22:24:01 +00:00
svn 874acd7347 * 2012-04-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 21:12:10 +00:00
nobu 3380974143 * parse.y (assoc, parser_yylex): add syntax to splat keyword hash.
[ruby-core:44591][Feature #6353]
* compile.c (compile_array_): generate keyword splat insns.
* vm.c (m_core_hash_merge_kwd): merge keyword hash into intermediate
  hash.  leftward argument is prior currently.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 21:12:05 +00:00
nobu 82fa2995b5 * ext/-test-/win32/dln/extconf.rb: remove test DLL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 14:22:25 +00:00
svn 55ac2cac3c * 2012-04-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 09:59:48 +00:00
ko1 6978b8ca67 * vm_core.h (rb_thread_t#yielding): add a field.
* thread.c (rb_thread_schedule_limits): set th#yielding while
  release GVL to yield CPU time.
* thread.c (timer_thread_function): skip timer interrupt when
  th#yielding is true.  This patch fixes r35480.
* thread.c (rb_threadptr_execute_interrupts_common): revert
  a patch of r35480.
* ChangeLog: add an extended memo of r35480.
  http://bugs.ruby-lang.org/projects/ruby-trunk/wiki/R35480_ExtendedMemo



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 09:59:44 +00:00
usa 62d71852df * ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
unsigned long long on Win64.
  [ruby-core:44636][Bug #6364] reported by raylinn@gmail.com (ray linn)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-27 03:36:33 +00:00
nobu 0a68f1200b * test/readline/test_readline.rb (setup): avoid affected by user's
inputrc file.  [ruby-dev:45584][Bug #6357]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-27 01:58:21 +00:00
nobu 664a13b732 test/readline/test_readline.rb: suppress bell
* test/readline/test_readline.rb (replace_stdio, with_pipe): suppress bell.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-27 01:41:02 +00:00
naruse c746b6fa42 * thread.c (rb_threadptr_execute_interrupts_common):
handle timer_interrupt only on the first loop for the case to avoid
  the infinite loop like following case:
  * there is 2 Ruby threads (3 pthreads)
  (1) main thread is waiting at gvl_yield:112 (native_cond_wait)
  (2) sub thread works
  (3) sub thread waits at gvl_yield:133 (native_mutex_unlock)
  (4) main thread works
  (5) main thread goes to gvl_acquire_common
  (6) main thread call rb_wakeup_timer_thread
  (7) timer thread set timer interrupt to the main thread
  (8) main thread works
  (9) main thread waits at gvl_acquire_common:64 (native_cond_wait)
  (10) sub tread works
  (11) set sub thread as the current thread
  (12) run Ruby thread
  (13) ...100ms
  (14) sub thread goes to rb_threadptr_execute_interrupts_common
  (15) sub thread call rb_thread_schedule_limits
  (16) sub thread call gvl_release_common
  (17) sub threads waits at gvl_yield:121 (native_cond_wait)
  (18) main threads works
  (19) main thread back to gvl_yield
  (20) set main thread as the current thread
  (21) main thread call gvl_yield
  (22) main thread waits at gvl_yield:112 (native_cond_wait)
  As described above, the main thread can't escape from
  rb_threadptr_execute_interrupts_common.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 23:19:11 +00:00
akr da12c793c4 * ext/socket/socket.c (sock_s_pack_sockaddr_un): support the longest
path in sockaddr_un, really.
  reported by nagachika.
  http://d.hatena.ne.jp/nagachika/20120426/ruby_trunk_changes_35474_35476


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 22:18:03 +00:00