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

6541 Коммитов

Автор SHA1 Сообщение Дата
akr 1f15fe8da0 add tests for leapseconds on an environment without leapseconds support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 17:21:57 +00:00
nagai ffb1f5722b * lib/tkextlib/SUPPOPRT_STATUS: add RELEASE_DATE information.
* lib/tkextlib/tile/style.rb: add "style element options <elem>"
  command support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 09:22:01 +00:00
usa 79d206efef * ruby.c (load_file): '!' is already read. reported by gotoyuzo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 06:43:00 +00:00
ocean 4fb012a86a * ext/tk/tcltklib.c (ip_rb_threadVwaitCommand): Tcl_Release was missing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 06:22:19 +00:00
nagai 8cd944803e * ext/tk/lib/tk.rb: add Tk.getMultiple{Open|Save}File() which return
an Array of selected files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 04:37:07 +00:00
akr 37b0e4164b * lib/time.rb (Time.parse): "Fri Jan 1 08:59:60 +0900 1999" was
parsed as "Fri Jan 01 09:00:00 JST 1999" even on an environment
  which supports leap seconds.
  (Time.rfc2822): ditto.
  (Time.xmlschema): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 04:00:01 +00:00
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