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

3537 Коммитов

Автор SHA1 Сообщение Дата
why c76c3349e4 * ext/syck/bytecode.c: Checkin of YAML bytecode support.
* ext/syck/gram.c: Ditto.

* ext/syck/syck.c: Ditto.

* ext/syck/token.c: Ditto.

* ext/syck/handler.c: Ditto.

* ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.

* ext/syck/rubyext.c: Ditto (on both counts).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 23:15:19 +00:00
knu b215f2fdb9 Update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 20:14:53 +00:00
knu 3982f82b03 * lib/generator.rb: A new library which converts an internal
iterator to an external iterator.

* lib/abbrev.rb: A new library which creates an abbreviation table
  from a list.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 20:14:20 +00:00
nagai 6bd9229984 ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb :
* new demo-scripts

ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget :
 * add entries for 'entry3.rb'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 19:36:09 +00:00
knu 6d9c20d6a3 * test/digest/test_digest.rb: Moved from ext/digest/test.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 19:34:46 +00:00
nagai e437d32cc1 ChangeLog: forgot. sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 18:55:23 +00:00
nagai b4337be29f ext/tk/lib/tk.rb:
* fixed trouble on auto-load Tcl commands (enbug on the last commit).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 18:54:21 +00:00
nagai 382b4ae9a3 ext/tcltklib/tcltklib.c:
* replace Tcl/Tk's vwait and tkwait to switch on threads smoothly and
   avoid seg-fault.
 * add TclTkIp._thread_vwait and _thread_tkwait for waiting on a thread.
   ( Because Tcl/Tk's vwait and tkwait command wait on a eventloop. )
ext/tk/lib/multi-tk.rb:
 * support TclTkIp._thread_vwait and _thread_tkwait
ext/tk/lib/tk.rb:
 * now, TkVariable#wait has 2 arguments.
   If 1st argument is true, waits on a thread. If false, waits on an eventloop.
   If 2nd argument is true, checks existence of rootwidgets. If false, doesn't.
   Default is wait(true, false).
 * add TkVariable#tkwait(arg) which is equal to TkVariable#wait(arg, true)
 * wait_visibility and wait_destroy have an argument for waiting on a
   thread or an eventloop.
 * improve of accessing Tcl/Tk's special variables
ext/tk/lib/tkafter.rb:
 * support 'wait on a thread' and 'wait on an eventloop'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 15:25:45 +00:00
nahi 6adad13946 forgot..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 15:14:49 +00:00
nahi 9cba39a1a1 * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor of
SOAPBasetype and SOAPCompoundtype.

* lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*:
  Encoding methods signature change.  Pass SOAPGenerator as a parameter.

* lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better
  marshalling/unmarshalling support.  Now I think SOAP marshaller supports all
  kind of object graph which is supported by Ruby's original marshaller.  Of
  course there could be bugs as always.  Find it.  :-)

* lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO.  DEBUG is
  too noisy.

* lib/xsd/datatypes.rb: DateTime#of is obsoleted.  Use DateTime#offset.

* test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless
  warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 15:14:02 +00:00
nobu 0b841783b5 * eval.c (ruby_finalize_0): return the given exit status unless
SystemExit got raised.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 10:09:39 +00:00
nobu 921d595fd4 * intern.h (ruby_stop): never return.
* ruby.h (ruby_run): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14 02:53:53 +00:00
akr 839ef7bfbb * lib/pathname.rb (realpath): make ELOOP check bit more robust.
(children): prepend self by default.
  (chroot): obsoleted.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 19:46:07 +00:00
knu 345f1ac53d 2003-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 17:57:53 +00:00
nobu 83fbff2f74 commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 17:34:50 +00:00
nobu e7257aa72e * eval.c (rb_require_safe): segfault after loading .so.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 17:29:34 +00:00
knu b2de95d4af Add ext/enumerator, a helper module for the Enumerable interface.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 17:09:23 +00:00
eban 046dff7f11 * test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],
not "ruby".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 14:59:25 +00:00
nobu 4de0bb549b * eval.c (rb_feature_p): match by classified suffix.
* eval.c (rb_require_safe): require library in the specified safe
  level.

* variable.c (rb_autoload, rb_autoload_load): restore safe level
  when autoload was called.  [ruby-dev:21338]

* intern.h: prototypes; rb_require_safe.

* test/runner.rb: accept non-option arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 14:57:36 +00:00
eban 1b8c124c8d 2003-10-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 13:16:32 +00:00
matz 1184373d86 * string.c (str_new4): should not preserve FL_TAINT status in the
internal shared string. [ruby-dev:21601]

* string.c (rb_str_new4): ditto.

* eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values.

* process.c: ditto. [ruby-dev:38521]

* lib/debug.rb (debug_command): should enter emacs mode when
  assigned any value to the environment variable "EMACS".
  On Meadow, (getenv "EMACS") is "meadow".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-13 13:05:24 +00:00
eban b6f1c0e284 2003-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-12 05:54:05 +00:00
eban 5d0f8cdc6f * ext/win32ole/extconf.rb: check "windows.h", not "windows".
[ruby-talk:84051]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-12 05:46:59 +00:00
eban d430692b95 * lib/rexml/quickpath.rb (REXML::QuickPath::match):
escape '[' to avoid warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 08:10:07 +00:00
akr 6e41de6767 fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 07:12:09 +00:00
akr 31fd8aa681 * lib/pathname.rb (realpath): check existence of the file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 07:09:19 +00:00
akr b01f0cab31 * lib/pathname.rb (realpath): re-implemented.
(realpath_root?, realpath_rec): removed


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 06:42:41 +00:00
eban 79aca9eb60 2003-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 05:51:03 +00:00
akr 6fc32eb8bb * lib/pathname.rb (realpath_rec): fix handling of symlink to absolute
path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 05:37:41 +00:00
shugo 764722dc27 * lib/monitor.rb: handle exceptions correctly. Thanks, Gennady
Bystritsky.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-11 01:20:45 +00:00
eban 45b46d78fa * MANIFEST: add these files:
lib/rexml/encodings/ICONV.rb
  lib/rexml/encodings/UTF-8.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-10 13:26:03 +00:00
ser ece4dc43e5 * Forgot to update the MANIFEST, WRT the removal of files from the
rexml/encodings directory
* Missed a regexp speed optimization in rexml/parsers/baseparser.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-10 12:58:23 +00:00
ser 7d21c237cc * Changes to the encoding mechanism. If iconv is found, it is used first
for encoding changes.  This should be the case on all 1.8 installations.
  When it isn't found (<1.6), the native REXML encoding mechanism is used.
  This cleaned out some files, and tightened up the code a bit; and iconv
  should be faster than the pure Ruby code.
* Changed deprecated assert_not_nil to assert throughout the tests.
* Parse exceptions are a little more verbose, and extend RuntimeError.
* Bug fixes to XPathParser
* The Light API is still shifting, like the sands of the desert.
* Fixed a new Ruby 1.8.0 warning, added some speed optimizations, and
  tightened error reporting in the base parser


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-10 12:54:46 +00:00
nobu 662532be00 2003-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-10 00:26:26 +00:00
nobu 3354489d06 * eval.c (is_defined): inheritance line adjustment as like as
rb_call_super().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 22:50:57 +00:00
matz 90a88ab9a0 * marshal.c (r_object0): remove unnecessary iv restoration for
USRMARSHAL. [ruby-dev:21582]

* marshal.c (w_object): dump generic instance variables from
  a string from '_dump'.

* variable.c (rb_generic_ivar_table): return 0 if obj's FL_EXIVAR
  is not set.

* time.c (time_dump): copy instance variables to dumped string, to
  be included in the marshaled data.

* bignum.c (rb_big2ulong): add range check to ensure round trip.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 17:45:53 +00:00
gotoyuzo 80549d5f17 * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): add
optional argument to specify the DirectoryString type
  (ASN1::UTF8STRING by default). RFC3280 deprecates PrintableString
  for DirectoryString, and strongly requires to use UTF8String for
  all certificates issued after December, 31 2003.

* ext/openssl/lib/openssl/x509.rb (X509::Name::parse): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 16:20:22 +00:00
nobu 67a98cd52f * eval.c (rb_thread_start_0): prevent thread from GC.
[ruby-dev:21572]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 14:50:24 +00:00
nobu 8022abdc69 * eval.c (rb_thread_start_0): non-volatile should be restored from
volatile.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 10:11:48 +00:00
nobu dd3eed4f08 * eval.c (proc_save_safe_level, proc_get_safe_level,
proc_set_safe_level): save/restore safe level 1..4.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 08:43:39 +00:00
matz 0b2e94b2ab * pack.c (uv_to_utf8): change message to "out of range", since
negative values are not "too big". [ruby-dev21567]

* marshal.c (w_object): should pass the value of "weak" to
  w_object().  [ruby-dev:21555] and [ruby-dev:21561]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 06:46:40 +00:00
nobu 582b7e1ca9 * eval.c (rb_set_end_proc, rb_exec_end_proc): restore safe level.
[ruby-dev:21557]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 05:05:43 +00:00
nobu 894d8d9e61 * eval.c (rb_yield_0): no error if block is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 01:51:08 +00:00
eban 99e2ecdebf 2003-10-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 01:33:18 +00:00
nobu 5cefaf0c8f eval.c (eval): re-indented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09 00:09:40 +00:00
nobu 517f019851 commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-08 22:40:22 +00:00
nobu c0e5a7c63f * eval.c (localjump_error): id should be ID.
* eval.c (rb_eval): nd_rval is set in copy_node_scope().

* eval.c (rb_yield_0): unused variable.

* eval.c (rb_yield_0): nothing to do for empty node.

* eval.c (call_end_proc, proc_invoke): adjust backtrace in END.
  [ruby-dev:21551]

* eval.c (rb_thread_start_0): set the value by break as the result.
  [ruby-dev:21552]

* eval.c (rb_thread_start_0, rb_thread_raise, rb_callcc): save
  variables across THREAD_SAVE_CONTEXT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-08 21:43:36 +00:00
eban 99fb4ed24e 2003-10-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-08 13:28:57 +00:00
eban 540653f474 * MANIFEST: add these files:
lib/test/unit/autorunner.rb
  lib/test/unit/collector.rb
  lib/test/unit/collector/dir.rb
  test/testunit/collector/test_dir.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-08 13:28:54 +00:00
ntalbott 09d2946061 * lib/test/unit.rb: removed installation instructions.
* lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more
	  central location.

	* lib/test/unit.rb: ditto.

	* lib/test/unit.rb: extracted the running code in to AutoRunner.

	* lib/test/unit/autorunner.rb: added.

	* lib/test/unit/collector/objectspace.rb: extracted common test
	  collection functionality in to a module.

	* lib/test/unit/collector.rb: ditto; added.

	* test/testunit/collector/test_objectspace.rb: ditto.

	* lib/test/unit/collector/dir.rb: added. Supports collecting tests out
	  of a directory structure.

	* test/testunit/collector/test_dir.rb: added.

	* test/runner.rb: simplified to use the new capabilities.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-08 13:21:28 +00:00