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

6535 Коммитов

Автор SHA1 Сообщение Дата
akr e710ced659 * lib/resolv.rb (Resolv::DNS::Resource#ttl): new attribute.
(Resolv::DNS::Resource#==): ignore @ttl.
  (Resolv::DNS::Resource#hash): ditto.
  (Resolv::DNS::Message::MessageDecoder#get_rr): save TTL in a
  Resource object.
  based on [ruby-core:5190] by Eric Hodel.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 15:32:46 +00:00
eban 27e59d7cdd * 2005-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 15:20:23 +00:00
nagai dde30e112f * ext/tk/sample/demos-jp/ctext.rb: modify improper message text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 15:02:32 +00:00
nobu 9b274216b2 * 2005-06-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 14:21:12 +00:00
nagai 082393fe39 * ext/tk/tk.rb: support "tk inactive" sub-command. [for Tcl/Tk8.5a3]
* ext/tk/tk/namespace.rb: support "namespace path" sub-command and
  'namespace ensemble' sub-command. [for Tcl/Tk8.5a3]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-15 09:30:54 +00:00
nagai 9d49297a74 * ext/tk/tkutil/tkutil.c: forgot update RELEASE_DATE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-14 11:48:48 +00:00
eban aff3ea1ce0 * 2005-06-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-13 17:27:12 +00:00
nagai ca5d263fac * ext/tk/tkutil/tkutil.c: add TkUtil::CallbackSubst.subst_arg(m, ...)
& _define_attribute_aliases(hash) to get substitution-argument from
  attributes (e.g. subst_arg(:x,:y,:num,:button) --> "%x %y %b %b ").
* ext/tk/lib/tk/event.rb: use _define_attribute_aliases().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-13 17:07:26 +00:00
ocean 7a986b2871 * hash.c (ruby_setenv): fixed SEGV. [ruby-dev:26186]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-13 04:04:33 +00:00
matz 8db3dc39d6 * signal.c (sigexit): call rb_thread_signal_exit() instead of
rb_exit().  [ruby-dev:26347]

* eval.c (rb_thread_signal_exit): a new function to exit on main
  thread.

* eval.c (rb_thread_switch): exit status should be retrieved from
  ruby_errinfo.

* eval.c (rb_f_exit): ensure exit(0) should call
  exit(EXIT_SUCCESS).

* missing/mkdir.c: remove. [ruby-core:05177]

* hash.c (env_aset): do not treat nil as key-removing value.
  [ruby-list:40865]

* parse.y (method_call): allow aref expression ([]) to take a
  block.

* parse.y (block_dup_check): a function to check duplication of
  a block argument and an actual block.

* lib/delegate.rb (SimpleDelegator::__setobj__): need check for
  recursive delegation.  [ruby-core:04940]

* lib/cgi.rb: add underscore aliases CGI::escape_html,
  CGI::unescape_html, CGI::escape_element, CGI::unescape_element.
  [ruby-core:05058]

* misc/ruby-mode.el (ruby-expr-beg): fix looking point drift.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-12 16:56:06 +00:00
eban 4169e76d14 * 2005-06-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-12 16:30:32 +00:00
akr 86aeca931c * eval.c (rb_gc_mark_threads): curr_thread may not be part of the
thread list.
  [ruby-dev:26312]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-12 16:23:08 +00:00
eban 0c3c2633ac * 2005-06-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-11 13:48:44 +00:00
aamine cc5f78419c * parse.y: missing arg_paren event. This patch is contributed by Mitchell N Charity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-11 13:46:39 +00:00
akr dececad56c * eval.c (unknown_node): show more information. [ruby-dev:26196]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-10 14:57:37 +00:00
nobu 647330d723 * 2005-06-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-10 14:39:36 +00:00
nobu 0a32e9daa4 * missing.h: fd_set stuffs need sys/types.h. fixed: [ruby-core:05179]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-10 13:56:08 +00:00
ryan eec9b911bb Added Eric Hodel's rdoc to resolv.rb and added file to .document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 22:47:35 +00:00
nobu c1ae0656e6 * ext/Win32API/Win32API.c (Win32API_Call): disable global
optimization. fixed: [ruby-core:05143]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 14:59:10 +00:00
nobu 3f12095fbf * enum.c (enum_inject): default the result value to Qundef to use
first element as initial value if not given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 14:36:02 +00:00
akr 27c228d681 * eval.c (ruby_longjmp): new macro to call longjmp, setcontext, etc.
(ruby_setjmp): new macro to call setjmp, getcontext, etc.
  (ruby_setjmp): call setjmp before getcontext to avoid IA64 register
  stack problem.
  [ruby-talk:144939]

* gc.c (Init_stack): remove IA64_MAGIC_STACK_LIMIT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 11:18:31 +00:00
eban 20e269da04 * 2005-06-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 09:49:28 +00:00
akr 914a916a91 add ML ref. [ruby-dev:26297]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 09:49:00 +00:00
akr 48f2d3a72d * configure.in, eval.c, gc.c: use libunwind only on HP-UX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-09 09:34:31 +00:00
nagai e1885a0079 * ext/tk/lib/tkextlib/ICONS/icons.rb: fail to create instances of
Tk::ICONS [ruby-dev:26305].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-08 14:42:06 +00:00
ttate c2e1ef22b9 if dlload fail to load a library, it should raise an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-08 14:38:02 +00:00
matz 8d5e6a0fc6 * array.c (rb_ary_nitems): add the block feature to Array#nitems.
suggested by Bertram Scharpf <lists@bertram-scharpf.de> in
  [ruby-talk:134083].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-08 03:30:56 +00:00
matz 5ef43814a8 * bignum.c (get2comp): revert all prior changes, and calculate
proper 2's complement for negative numbers.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-08 02:16:35 +00:00
nobu 17920c7a9e * enum.c (enum_min_by, enum_max_by): return nil if no iteration.
fixed: [ruby-dev:26245]

* eval.c (rb_need_block): ensure a block is given.

* eval.c (backtrace): skip successive frames sharing same node.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 23:33:51 +00:00
matz db128e1b31 * bignum.c (bignorm): fixed a bug in normalizing negative numbers
reported from Honda Hiroki <hhonda@ipflex.com>.  normalizing
  should not trim preceding zeros from negative numbers.

* ext/socket/socket.c (ruby_getaddrinfo__aix): merged a patch from
  KUBO Takehiro <kubo@jiubao.org> to support AIX.  [ruby-list:40832]

* lib/yaml/rubytypes.rb (Array::to_yaml): merged a patch from
  Tilman Sauerbeck <tilman@code-monkey.de>.  [ruby-core:05055]

* lib/yaml/rubytypes.rb (Hash::to_yaml): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 16:33:01 +00:00
eban 3ec9537664 * 2005-06-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 15:08:31 +00:00
matz 39b30616a5 * ext/curses/curses.c (curses_insertln): merged a patch from
TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>.  [ruby-ext:02305]

* lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible
  IRB.rc_file_generators.  [ruby-core:05163]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 15:02:32 +00:00
matz a6e6bb626c * lib/thread.rb: RDoc documentation from Eric Hodel
<drbrain@segment7.net> added.  [ruby-core:05148]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 09:41:17 +00:00
nobu f36783751b * lib/mkmf.rb (create_makefile): add .SUFFIXES from depend file.
fixed: [ruby-dev:26294]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 09:30:35 +00:00
ocean 15dfe8eee6 * ext/tk/sample/tkextlib/tile/themes/kroc.{rb,tcl}: also support tile 0.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 09:04:18 +00:00
nobu 1049fd5f64 * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 08:54:18 +00:00
matz a99cc44c8d * parse.y (parser_yylex): small error fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 08:35:04 +00:00
matz 549c345cef * parse.y (parser_yylex): allow ';;' to be block terminator in
place of 'end'.  [highly experimental]

* misc/ruby-mode.el (ruby-block-end-re): allow ';;' for a negative
  indent trigger.  [highly experimental]

* parse.y (parser_yylex): "respond_to?:foo" should be interpreted
  as "respond_to? :foo" at the command level.  [ruby-talk:144303]

* sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
  not verbose mode (-w/-w).  [ruby-core:05123]

* sprintf.c (rb_f_sprintf): warn always on verbose mode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 08:22:42 +00:00
ocean 7eef190796 * sample/tkextlib/tile/themes/kroc.{rb,tcl}: support tile 0.5 or later.
("pixmap" element constructor replaced by "image")


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 05:11:55 +00:00
akr 261f8e0f73 skip test if openssl is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 02:49:16 +00:00
eban b12b406e98 * 2005-06-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 01:37:24 +00:00
nagai 78e266c241 * ext/tk/lib/multi-tk.rb: slave-ip fails to call procedures
delegated by master-ip.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-07 01:33:12 +00:00
usa 0e7ab28c36 * ext/ripper/depend: add .y to .SUFFIXES for nmake.
fixed: [ruby-dev:26294]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-06 07:37:07 +00:00
eban 99645d57db * 2005-06-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-06 04:54:00 +00:00
ocean d993088277 * ext/tk/lib/tk/console.rb: create console when required
* ext/tk/sample/tkextlib/tile/demo.rb: create Console (commit miss?)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-06 04:47:43 +00:00
eban aa91b7bd5d * 2005-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-05 14:07:21 +00:00
nagai 80eef0fd3b * ext/tk/lib/tk/console.rb: create console when required
* ext/tk/sample/tkextlib/tile/demo.rb: fix TypeError & create Console


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-05 14:03:41 +00:00
akr 8507219097 kill a process spawned by test_exit_action.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-05 07:04:06 +00:00
akr 73c5a99b50 * signal.c (ruby_signal): don't set SA_RESTART.
[ruby-dev:26276]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-05 01:26:01 +00:00
akr cd8d93d0cd * test/dbm/test_dbm.rb: merged from ext/dbm/testdbm.rb.
* test/gdbm/test_gdbm.rb: merged from ext/gdbm/testgdbm.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-04 05:59:16 +00:00