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

3488 Коммитов

Автор SHA1 Сообщение Дата
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
mneumann 777681bda1 applied patch by OHARA Shigeki:
* use Apache::Request#headers_in instead of obsolete #headers methods
  * XMLRPC::ModRubyServer::new is no longer a singleton method


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 11:22:16 +00:00
eban 885ea0a9f7 * MANIFEST: add test/ruby/endblockwarn.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 06:32:22 +00:00
nahi dc952ac536 * test/ruby/test_beginendblock.rb, test/ruby/endblockwarn.rb: commited older
version..


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 06:32:18 +00:00
nahi cd8d08b532 * test/ruby/test_beginendblock.rb: add tests for nested BEGIN/END.
* test/ruby/beginmainend.rb: add tests for nested BEGIN/END.

* test/ruby/endblockwarn.rb: new file added to test of END-in-method warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 06:27:11 +00:00
akr 0a5f6fd37d define Fcntl::O_ACCMODE instead of Fcntl::ACCMODE to be consist with
other constants.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 03:30:55 +00:00
akr 4f6558a4ec * ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::ACCMODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 03:24:11 +00:00
akr 9c6cfb5672 * ext/socket/extconf.rb: useless assignment removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 01:04:07 +00:00
nobu cda830ff33 * test/ruby/test_beginendblock.rb (test_endinmethod): END{} is now
allowed in eval.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-07 00:13:29 +00:00
nobu 6fc88be3d9 * parse.y (stmt): should not expand mrhs if lhs is solely starred.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 19:15:29 +00:00
matz 8a4abe47ca * parse.y (stmt): rhs of multiple assignment should not be
expanded using "to_a". [ruby-dev:21527]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 17:59:53 +00:00
gotoyuzo 0dd4fde745 * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): use appropriate
free function for ASN1_OBJECT.

* ext/openssl/ossl_asn1.c (ossl_asn1obj_get_sn): add new function for
  ASN1::ObjectId#sn; it returns short name text representation of OID.

* ext/openssl/ossl_asn1.c (ossl_asn1obj_get_ln): add new function for
  ASN1::ObjectId#ln; it returns long name text representation of OID.

* ext/openssl/ossl_asn1.c (ossl_asn1obj_get_oid): add new function for
  ASN1::ObjectId#oid; it returns numerical representation of OID.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 16:55:00 +00:00
nahi 11d2edffe6 * lib/csv.rb (IOReader, BasicWriter): call binmode when a given IO
respond_to?(:binmode).  record separator was wrong when you gave text mode IO
  to Reader.parse and Writer.generate.

* test/csv/test_csv.rb: add tests for above change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 14:03:58 +00:00
akr 26d111540e * ext/socket/extconf.rb: check recvmsg even if sendmsg is exists.
* ext/socket/socket.c (thread_read_select): restored.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 11:11:07 +00:00
nobu 2a07445e0b * marshal.c (w_object): wrong method name in the message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 07:23:40 +00:00
eban 64e098503a 2003-10-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 07:10:25 +00:00
matz 49e8bdf7a3 * parse.y (stmt): END in method should cause warning.
[ruby-dev:21519]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 07:03:20 +00:00
nahi 6e6b863d53 * test/ruby/test_iterator.rb (test_block_argument_without_paren): added.
(follows sample/test.rb)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 06:18:45 +00:00
nahi 3d307549a5 * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: added test for
eval-ed BEGIN END order.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 02:58:39 +00:00
matz 56235e083d * marshal.c (w_object): should pass "weak" value to next level.
[ruby-dev:21496]

* eval.c (proc_alloc): should not use cached object if klass is
  different. [ruby-talk:83685]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-06 01:50:41 +00:00
akr 4fca6e91dc * lib/pathname.rb: version information is added in document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 14:31:35 +00:00
nobu 92abdcefe4 * eval.c (rb_f_END): block should be given. [ruby-dev:21497]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 14:07:07 +00:00
gotoyuzo f58812a7e2 * lib/ext/openssl/extconf.rb: add check for some engine functions
unavailable in OpenSSL-0.9.6.

* lib/ext/openssl/ossl_engine.c: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 13:58:02 +00:00
eban 474e9004de * MANIFEST: add these files:
test/ruby/beginmainend.rb
  test/ruby/envutil.rb
  test/ruby/test_beginendblock.rb
  test/testunit/runit/test_assert.rb
  test/testunit/runit/test_testcase.rb
  test/testunit/runit/test_testresult.rb
  test/testunit/runit/test_testsuite.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 13:56:11 +00:00
seki fde4c2dce8 add rinda, (import from drb-2.0.4)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 12:23:33 +00:00
nobu 4aa8b47bb9 * eval.c (rb_eval): fix evaluation order. [ruby-list:38431]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 08:56:34 +00:00
akira 12c8c18f09 * test/uri/*: translated RUNIT to Test::Unit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 06:09:26 +00:00
nahi 16658578a5 * lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
* test/soap/marshal/test_marshal.rb: ditto.

* test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to RUBYBIN.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 05:42:04 +00:00
nahi d50d6d396a * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests about
scope, order and allowd syntax.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 04:51:05 +00:00
nahi d77b17aa73 * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.
* test/ruby/test_system.rb: use envutil.rb

* test/ruby/test_beginendblock.rb: added.

* test/ruby/beginmainend.rb: added.  used in test_beginendblock.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 02:56:42 +00:00
ntalbott 1e85ca8a02 * test/testunit/runit/test_testresult.rb: removed some unnecessary
cruft.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 02:23:48 +00:00
ntalbott b60827ba04 * lib/rubyunit.rb: aliasing TestCase into the top level is
problematic.

	* lib/runit/assert.rb: fixed a couple of bugs caused by recent
	  refactoring in Test::Unit.

	* test/testunit/runit/*: added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 02:17:07 +00:00
nahi 0cf763af9c * lib/open-uri.rb (URI::Generic#find_proxy): no_proxy support did not work.
[ruby-dev:21484]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 02:00:29 +00:00
ntalbott cc32628660 * lib/test/unit/assertions.rb: will use pp for output if available.
Can be disabled by setting Assertions.use_pp = false.

	* test/testunit/test_assertions.rb: made a small change to exception
	  formatting.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 00:59:02 +00:00
ntalbott 82f064a524 * lib/test/unit/assertions.rb: made small improvements to assertion
messages. Deprecated Assertions#assert_not_nil; use #assert instead.

	* test/testunit/test_assertions.rb: ditto.

	* test/testunit/util/test_procwrapper.rb: use #assert instead of
	  #assert_not_nil.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 21:40:17 +00:00
ntalbott 960f29a956 * lib/test/unit/assertions.rb: refactored message building.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 19:18:52 +00:00
gotoyuzo 0afc6e3f4f delete CVS confliction indicator. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 18:48:32 +00:00
gotoyuzo d0dd2997f3 * ext/openssl/ossl_asn1.h: global symbols should be declared
as external.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 18:45:53 +00:00
akira 993783d84a * test/ruby/test_exception.rb (test_else): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 18:06:19 +00:00
eban 16ea4a3192 2003-10-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:55:54 +00:00
matz 415283ac95 * marshal.c (w_object): instance variable dump do not cause error
for objects that cannot be dumped, if they traversed from
  marshal_dump.  they are just ignored.

* gc.c (Init_stack): cast "space" (doble value) into unsigned
  int.  should run on PowerPC.

* eval.c (rb_eval): should not execute else part if any exception
  is caught. [ruby-dev:21482]

* parse.y (f_args): should allow unparenthesized block argument.

* parse.y (f_rest_arg): should allow unparenthesized rest
  argument.

* lib/irb/ruby-lex.rb (RubyLex::identify_identifier): support
  'class ::Foo' syntax. [ruby-talk:83514]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:51:11 +00:00
ntalbott 28af5f6cf5 * lib/test/unit/assertions.rb: changed assertion messages to rely more
heavily on #inspect. Added backtrace filtering for exceptions in
	  assertion messages.

	* test/testunit/test_assertions.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:18:27 +00:00
seki 22c0d83eb1 * lib/drb/acl.rb, lib/drb/ssl.rb: added.
* lib/drb/drb.rb: exit from a thread using 'break'.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:15:50 +00:00
seki 824bc6692b * add lib/drb/acl.rb, lib/drb/ssl.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:09:06 +00:00
seki 8d2a8dbfb0 add acl.rb, ssl.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:08:23 +00:00
seki e6b60ce2fe exit from a thread using 'break'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 17:06:41 +00:00
eban 0e2cb1e5b2 * MANIFEST: added these files:
test/uri/test_common.rb
  test/uri/test_ftp.rb
  test/uri/test_generic.rb
  test/uri/test_http.rb
  test/uri/test_ldap.rb
  test/uri/test_mailto.rb
  test/yaml/test_yaml.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 12:54:29 +00:00
eban d821751c85 * gc.c (Init_stack): the type of space is changed to unsigned int
from double.  [ruby-dev:21483]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 12:51:32 +00:00
nahi cbef5b65db * lib/soap/netHttpClient.rb: follow http-access2. hosts which matches
ENV['no_proxy'] or ENV['NO_PROXY'] is not proxyed.
  - [,:] separated. ("ruby-lang.org:rubyist.net")
  - no regexp. (give "ruby-lang.org", not "*.ruby-lang.org")
  - if you want specify hot by IP address, give full address.
    ("192.168.1.1, 192.168.1.2")

* lib/soap/rpc/cgistub.rb: return "Status: XXX MMM" line.

* test/runner.rb: give testsuite name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 08:57:11 +00:00
akr 94e01ab645 * lib/pathname.rb (initialize): raise ArgumentError if argument has
'\0' character.
  (relative_path_from): new method.
  (each_entry): new method for replacement of dir_foreach.
  (foreach, foreachline, dir_foreach, chdir): obsoleted.


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