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

6574 Коммитов

Автор SHA1 Сообщение Дата
matz 639bd5e78f * eval.c (rb_eval): pre-evaluate argument for unambiguous
evaluation order.  [ruby-dev:26383]

* lib/delegate.rb (Delegator::method_missing): forward unknown
  method to the destination.  suggested by
  <christophe.poucet@gmail.com>.  [ruby-talk:146776]

* process.c (detach_process_watcher): terminate process watcher
  thread right after rb_waitpid() succeed.  [ruby-talk:146430]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:20:09 +00:00
eban 00433666fd * 2005-06-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 06:13:55 +00:00
gotoyuzo 7fb6a09023 * lib/net/http.rb (Net::HTTP#connect, Net::HTTP#request): should
not send proxy username and password to origin servers.
  [ruby-dev:25673]

* lib/net/http.rb (Net::HTTP::ProxyDelta#edit_path): should not
  send HTTPS scheme URL to origine servers. [ruby-dev:25689]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-30 05:58:42 +00:00
eban 13212d08f1 * 2005-06-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-29 08:08:20 +00:00
ocean 002794959d * regparse.c (fetch_token): avoid warning of unused goto tag.
[ruby-dev:26389]

(patch from Kazuhiro NISHIYAMA)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-28 15:06:03 +00:00
ocean 08133b1344 * dir.c, eval.c, parse.y, process.c, ruby.c: avoid warning "unused
variable" [ruby-dev:26387]

* dir.c (glob_helper): avoid warning "enumeration value `RECURSIVE'
  not handled in switch" [ruby-dev:26392]

(patch from Kazuhiro NISHIYAMA)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-28 13:08:32 +00:00
eban 4029f29dd7 * 2005-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-27 16:56:40 +00:00
naruse 8e70a60da0 * ext/nkf/lib/kconv.rb: add Kconv::VERSION
* ext/nkf/lib/kconv.rb (conv): can process arrayed options
* ext/nkf/nkf-utf8/nkf.c: imported Revision 1.69
* ext/nkf/nkf-utf8/utf8tbl.c: imported Revision 1.9


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-27 16:53:48 +00:00
gotoyuzo 41d2099e96 * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
discard if key=val pair is empty. patch from Gary Wright.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 08:16:16 +00:00
nobu 9480c6b720 * enum.c (enum_min, enum_max, enum_min_by, enum_max_by): do not ignore
nil as the first element.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 06:49:25 +00:00
ocean 66e5af96b2 * lib/set.rb (Set#==): [ruby-dev:25206] (ported from ruby_1_8 branch)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 06:22:05 +00:00
nobu 52a590f0cc * 2005-06-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 05:11:54 +00:00
naruse 73812eca67 * ext/nkf/lib/kconv.rb: remove constants
Iconv_Shift_JIS, Uconv_EUC_JP, Iconv_UTF8
* ext/nkf/lib/kconv.rb: add module functions to Kconv
  conv, {eucjp, shiftjis, utf8}?, guess_as_symbol
* ext/nkf/lib/kconv.rb: add instance methods to String
  conv, {eucjp, shiftjis, utf8}?
* ext/nkf/lib/kconv.rb: add aliases Kconv.to_* and String#to_*


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-25 02:50:50 +00:00
akira b1020bf03e * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
replaced some existent domain name with "example.com".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 04:18:16 +00:00
eban f07afe1cb5 * 2005-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 03:32:22 +00:00
nagai 2e3404c1bb * ext/tk/lib/tk.rb: fix typo on Tk.grid_propagate.
* ext/tk/lib/tk.rb: Tk.event_generate and TkWindow#event_generate
  accept TkEvent::Event object as context argument.
* ext/tk/lib/tk/event.rb: add TkEvent::Event#valid_fields and
  valid_for_generate to get field parameters of event_generate.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 03:29:24 +00:00
nobu fc114887e6 * runruby.rb: should load built rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 14:56:40 +00:00
eban 20484c52b0 * 2005-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 08:23:23 +00:00
akira 7e962a7379 fixed typo in the example of URI.extract.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 08:22:44 +00:00
nagai 223798c50e * ext/tk/lib/tk/canvastag.rb: TkcGroup.new cannot include given items.
TkcGroup#exclude calls wrong method.
  Add alias TkcGroup#add [ruby-talk:146049].
* ext/tk/lib/tk/canvas.rb: TkCanvas#dtag and some subcommands of
  TkCanvas#addtag fail to treat a TkcTag argument.
* ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
  current event to other widgets.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 07:57:39 +00:00
akr 258f9f49d6 * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): DUMMY_SETJMP is replaced
because setjmp is not enough to fix getcontext and SPARC register
  window problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-20 10:00:23 +00:00
usa b03649bc2a * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
* ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed?

* ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed?

* test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb
  (teardown): close all db objects before deleting data files.

* win32/win32.{ch} (unlink): hook runtime function to change
  file attribute before unlinking.
  merge from 1.8, see [ruby-dev:26360]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-20 08:17:53 +00:00
nobu 7946d2357a * gc.c (define_final): document fix: finalizers never get called
before target object is destroyed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 17:16:14 +00:00
gotoyuzo 5cea368b61 * ext/openssl/openssl_missing.c, ext/openssl/ossl.h,
ext/openssl/ossl_asn1.c, ext/openssl/ossl_bio.c,
  ext/openssl/ossl_pkcs12.h, ext/openssl/ossl_x509req.c: avoid
  compiler warnings. suggested by Mical Rokos.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 16:29:17 +00:00
eban 846350c22a * 2005-06-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 16:02:41 +00:00
mneumann 4110c8936a * lib/xmlrpc/utils.rb: Patch by Nobuhiro IMAI fixes the following
problem: Default value modification on
  Module#public_instance_methods (false -> true) breaks
  s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) style
  security protection.

* lib/xmlrpc/client.rb: Aliased XMLRPC::Client#new2 as
  XMLRPC::Client#new_from_uri, and #new3 as #new_from_hash.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 15:47:31 +00:00
nobu 716f1d3cbe * 2005-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:41:37 +00:00
nobu 991ee3ab0a * gc.c (run_final): commit miss to add new variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:16:36 +00:00
nobu c8b7f0cef9 * gc.c (run_final): reduce unnecessary object allocation during
finalization.

* gc.c (rb_gc_call_finalizer_at_exit): deferred finalizers list should
  be cleared before calling them.  fixed: [ruby-talk:145790]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-19 05:09:32 +00:00
nobu 3adc6a6d3d * 2005-06-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-18 15:02:20 +00:00
shugo 4a3fffdccb * ext/readline/readline.c (readline_readline): do not set rl_{in,out}stream.
* ext/readline/readline.c (readline_s_set_input): new method.
* ext/readline/readline.c (readline_s_set_output): new method.
* lib/irb/input-method.rb: set Readline.input and Readline.output.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-17 16:18:56 +00:00
akr edf7bc2464 * lib/time.rb (Time.parse): fix previous leap seconds support.
(Time.rfc2822): ditto.
  (Time.xmlschema): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-17 04:04:44 +00:00
eban 539ac33671 * 2005-06-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-16 17:27:09 +00:00
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