Commit graph

707 commits

Author SHA1 Message Date
nobu
dcb13f8e17 * lib/timeout.rb (Timeout#timeout): propagate errors to the
caller.  [ruby-dev:41010]'


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19 09:58:09 +00:00
nobu
d6178649a1 * test/ruby/test_thread.rb (TestThreadGroup#test_uninitialized):
typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 22:02:39 +00:00
nobu
48f342af4c * test/webrick/utils.rb (TestWEBrick#start_server): add log for
test_filehandler.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 22:01:33 +00:00
nobu
75c1cac7f3 * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 21:51:01 +00:00
knu
908667e45a Add tests for Kernel#singleton_class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-25 19:00:30 +00:00
nobu
7dbb035ba8 * ext/nkf/nkf-utf8/nkf.c (numchar_getc): get rid of buffer
overflow.  [ruby-dev:40606]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-13 02:06:35 +00:00
knu
453f94c2b2 * eval.c (rb_f_loop): Return an enumerator if no block is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-10 07:30:47 +00:00
nahi
bbbd594c3c * ext/openssl/ossl_config.c: defined own IMPLEMENT_LHASH_DOALL_ARG_FN_098
macro according to IMPLEMENT_LHASH_DOALL_ARG_FN in OpenSSL 0.9.8m.
          OpenSSL 1.0.0beta5 has a slightly different definiton so it could
          be a temporal workaround for 0.9.8 and 1.0.0 dual support.

        * ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): follows function
          definition in OpenSSL 1.0.0beta5. PKCS5_PBKDF2_HMAC is from 1.0.0
          (0.9.8 only has PKCS5_PBKDF2_HMAC_SHA1)

        * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_eq): do not use
          SSL_SESSION_cmp and implement equality func by ousrself.  See the
          comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 14:04:44 +00:00
nahi
3bd917a643 fixed syntax error introduced in the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-09 13:59:16 +00:00
nahi
bebc39d135 * ext/openssl/ossl_x509name.c: added X509::Name#hash_old as a wrapper
for X509_NAME_hash_old in OpenSSL 1.0.0.

        * test/openssl/test_x509name.rb (test_hash): make test pass with
          OpenSSL 1.0.0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 21:49:54 +00:00
nahi
e0bfe3254b * test/openssl/test_x509*: make tests pass with OpenSSL 1.0.0b5.
* PKey::PKey#verify raises an exception when a given PKey does not
            match with signature.
          * PKey::DSA#sign accepts SHA1, SHA256 other than DSS1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 21:48:44 +00:00
nahi
8e6893f7b2 * test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
truncated with ec_key.group.order.size after openssl 0.9.8m for
          FIPS 186-3 compliance.

          WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using
          openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises
          OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns
          false when you pass dgst longer than expected (no truncation
          performed).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 21:43:31 +00:00
nahi
0322d30623 * test/openssl: backport cosmetic changes from 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-06 21:41:32 +00:00
akr
48844c0018 * pack.c (pack_unpack): call PACK_ITEM_ADJUST for 'Q'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18 15:25:10 +00:00
knu
c93458e0e6 This even fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07 04:59:00 +00:00
shugo
b3da2ad803 * test/net/imap/test_imap.rb: added a test for unexpected BYE responses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-06 13:54:59 +00:00
knu
0759512a5b * test/ruby/test_array.rb (TestArray#test_splat): Add test cases
where splat fails in when clause.  ref [Bug #2468]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05 17:09:27 +00:00
knu
d2e30d50cf * ext/rational/rational.c: Added to provide a fast implementation
of Fixnum#gcd (and maybe some others in the future) in C.  The
  base code was submitted by Kurt Stephens. [Feature #2561]

* ext/rational/lib/rational.rb: Moved from lib/rational.rb.  Make
  overall code optimization; submitted by Kurt Stephens.
  [Feature #2561]

* test/rational/test_rational.rb, test/rational/test_rational2.rb:
  Add tests for Rational, ported from trunk.

* test/rational/test_fixnum_gcd.rb: Add a test for Integer#gcd.
  Case values are only provided for i386 and amd64 at the moment;
  submitted by Kurt Stephens. [Feature #2561]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-05 14:11:08 +00:00
nobu
5facf7e22f * lib/net/http.rb (Net::HTTP#request): close @socket only after
started.  [ruby-core:28028]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-03 12:15:02 +00:00
nobu
4c97668455 * eval.c (proc_invoke): reverted r25975. [ruby-dev:39931]
[ruby-dev:40059]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01 07:40:45 +00:00
nobu
a7055a6b45 * test/ruby/test_super.rb (TestSuper#test_define_method): modified
expected result.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-01 07:32:24 +00:00
naruse
4563853574 fix commit miss. [ruby-core:27794]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 14:58:55 +00:00
naruse
8142629cae * test/ruby/test_string.rb (test_split): add tests.
patched by Hugh Sasse [ruby-core:27794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 14:26:56 +00:00
nobu
040fef9a89 * lib/webrick/httpservlet/filehandler.rb (make_partial_content):
add bytes-unit.  [ruby-dev:40030]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 08:16:07 +00:00
nobu
08e5438ac9 * test/webrick/test_cgi.rb: require util.rb first to override the
executable name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-18 07:50:08 +00:00
knu
fbc0b59bd6 * ext/digest/digest.c (rb_digest_instance_digest)
(rb_digest_instance_hexdigest): Save a method call of reset()
  for a disposable clone.

* ext/digest/digest.c (rb_digest_instance_hexdigest_bang): Fix
  rdoc.

* ext/digest/lib/digest.rb (Digest::Class.base64digest)
  (Digest::Instance#base64digest{,!}): New methods.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-17 19:23:17 +00:00
knu
c162703062 * lib/base64.rb (Base64#{strict_encode64,strict_decode64,urlsafe_encode64,
urlsafe_decode64): New methods backported from 1.9.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-17 18:43:04 +00:00
nahi
be546199dc * ext/zlib/zlib.c: backport r18029 and r21861 from trunk.
* r18029 ext/zlib/zlib.c (rb_deflate_params): flush before
            deflateParams. [ruby-core:17675] (by mame)
          * r21861 ext/zlib/zlib.c (zstream_run): desperately guard the
            variable.  [ruby-core:20576] (by usa)

        * test/zlib/test_zlib.rb: backport deflate tests from trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-15 22:20:21 +00:00
nahi
1a3abb627a * test/zlib/test_zlib.rb: backport tests for 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-13 13:09:11 +00:00
kou
a61588c666 merge r26304.
* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:
  accept any time format in maker. [ruby-core:26923]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 15:00:22 +00:00
kou
7847b28694 revert r26305.
* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:
  accept any time format in maker. [ruby-core:26923]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 14:57:57 +00:00
kou
c680899e82 merge r26304.
* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:
  accept any time format in maker. [ruby-core:26923]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 14:55:55 +00:00
nobu
e10f47864c * test/ruby/envutil.rb (EnvUtil#rubybin): fake also rbconfig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 07:41:40 +00:00
nobu
71ecd89998 reverted r26263.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-09 20:39:28 +00:00
nobu
2ae2d9dd4d * lib/matrix.rb (Matrix#inverse_from): use #quo. backported r9490.
* lib/matrix.rb (Matrix#determinant): ditto.  [ruby-core:27507]

* lib/matrix.rb (Matrix#rank): ditto.

* lib/matrix.rb (Matrix::Scalar#initialize): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-09 20:35:28 +00:00
nobu
c1d3b01b7a * io.c (io_fwrite): preserve errno. [ruby-core:27425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-08 09:51:23 +00:00
knu
25e036d5aa * string.c: Add instance methods to Symbol: succ, next, <=>,
casecmp, =~, [], slice, length, size, empty?, match, upcase,
  downcase, capitalize and swapcase. [backport from 1.9]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-31 15:40:46 +00:00
nobu
21ebe83f54 * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):
any number spaces can be placed between equal-sign and the value.
  patch from Ed Howland in [ruby-core:27345].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-29 01:36:26 +00:00
nahi
ec5a11dd0a * test/ruby/test_marshal.rb: added tests for taintness propagation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-28 13:02:34 +00:00
usa
e39eb4423f * test/ruby/test_settracefunc.rb: removed the influence of other tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-24 14:06:52 +00:00
nobu
efe97f7f7b * parse.y (args): splat other than direct array literal.
[ruby-dev:39771]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 11:48:55 +00:00
nobu
282a055612 * eval.c (rb_load): initialize orig_func. [ruby-core:27296]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 08:23:54 +00:00
nobu
911e78c8b6 * test/drb/drbtest.rb (DRbService.add_service_command): quotes
rubybin only, not including -d.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 01:31:37 +00:00
nobu
0c4003dad7 * test/ruby/test_thread.rb: removed not-backported features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 01:25:25 +00:00
nobu
8bec48f2a4 * test/ruby/test_thread.rb (test_priority): removed not-guaranteed result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-23 01:24:33 +00:00
nahi
06cbdc307a * test/net/http/test_post_io.rb: parse chunked stream to avoid client
side connection error raised.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-22 02:01:34 +00:00
nahi
f9df459a31 * ext/stringio/stringio.c (strio_getline): fix for "" as separator.
[ruby-dev:34591] (Backport r17739 by Yusuke Endoh from trunk).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-21 06:33:05 +00:00
nahi
ac714c2d30 * test/openssl/{common.pem,max.pem}: added fixture certificates.
needed for new tests added on Sun Dec 13 23:07:05 2009.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-21 06:28:20 +00:00
nahi
471ad3039c * lib/net/http.rb (HTTPGenericRequest#send_request_with_body_stream):
increased encoding chunk size for POST request with body_stream
          (1K -> 16K). patched by Brian Candler. #1284.

        * test/net/http/test_post_io.rb: added for the patch. It's good if a
          patch comes with a test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-20 14:54:18 +00:00
nahi
c2e8a9ca94 * test/openssl/*: added some tests from jruby-openssl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 14:09:20 +00:00