Commit graph

24190 commits

Author SHA1 Message Date
ryan
0ed77bc70f backported r33039
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 23:05:34 +00:00
drbrain
e5f7bf8442 * backport r32981 and r32982 from trunk.
* ext/dl:  Add documentation.  Patch by Vincent Batts.
  [Ruby 1.9 - Bug #5192]
* ext/.document (fiddle):  Remove duplicate entry
* ext/fiddle:  Complete documentation of Fiddle.  Patch by Vincent
  Batts.  [#5192]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 23:04:38 +00:00
svn
2f8fb75416 * 2011-08-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 21:55:59 +00:00
ryan
1891188830 backport of 33036
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 21:55:38 +00:00
nagachika
bdd342d85a * backport r33021 from trunk.
* sprintf.c (rb_str_format): add RB_GC_GUARD to prevent temporary
  strings from GC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 14:09:34 +00:00
drbrain
df0cb1c4d1 * backport r33027 from trunk.
* load.c (rb_f_require):  Improve documentation of Kernel#require.
  [Ruby 1.9 - Bug #5210]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 06:30:30 +00:00
svn
73867ef5d1 * 2011-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 06:16:21 +00:00
nahi
91d6e312f5 * backport r33023 from trunk.
* ext/zlib/zlib.c (gzfile_read_header): Ensure that each section of
  gzip header is readable to avoid SEGV.

* test/zlib/test_zlib.rb (test_corrupted_header): Test it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-23 06:16:16 +00:00
ktsj
c1ba3ce7a1 * backport r33019 from trunk.
* iseq.c (iseq_s_disasm): remove variable which is no longer used
  since r33013.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 09:00:33 +00:00
ngoto
4d436eefc2 * configure.in: use LD_LIBRARY_PATH_64 on 64-bit Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 05:34:51 +00:00
svn
04694797b3 * 2011-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 02:35:16 +00:00
ngoto
01db73f6c2 Merge commit r32895 from trunk:
* ext/fiddle/conversions.c (generic_to_value): ffi_arg and ffi_sarg
      should be used to handle shorter return value. fix [Bug #3861]
      [ruby-core:32504]
    * ext/fiddle/closure.c (callback): ditto
    * ext/fiddle/conversions.h (fiddle_generic): ditto
    * ext/fiddle/conversions.c (value_to_generic): char, short and int
      are strictly distinguished on big-endian CPU, e.g. sparc64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-21 02:35:12 +00:00
ktsj
aef5decf8b * backport r33013 from trunk.
* iseq.c (iseq_s_disasm): fix a bug that may cause SEGV.

* test/ruby/test_method.rb (test_body): add a test for the above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-20 04:31:20 +00:00
svn
c2de9428c3 * 2011-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-20 01:43:31 +00:00
nobu
aade9453c8 * ext/stringio/stringio.c (strio_read): return new string if nil
is explicitly given as a buffer ([Bug #5207]), otherwise set the
  encoding.  also removed dead code.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-20 01:43:26 +00:00
nobu
e20f354a73 * process.c (proc_spawn_v, proc_spawn): should not wait the
spawned process.
* process.c (proc_spawn_v): fix missing argument, and try with
  /bin/sh only if failed with ENOEXEC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 05:25:52 +00:00
shugo
f23e93f8b3 * backport r33007 from trunk.
* lib/net/imap.rb (idle): raises a Net::IMAP::Error when the
  connection is closed.  based on the patch by Hugo Barauna.
  [Bug #5190] [ruby-core:38930]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 05:18:20 +00:00
svn
31f92d788c * 2011-08-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 02:39:39 +00:00
shugo
b824aff1ae * backport r33001 from trunk.
* lib/net/imap.rb (msg_att): accepts extra space before ')'.
  based on the patch by art lussos.  [Bug #5163] [ruby-core:38820]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-19 02:39:34 +00:00
mrkn
bc6c037f84 Merge commit r32996 from trunk:
* ext/bigdecimal/bigdecimal.c (cannot_be_coerced_into_BigDecimal):
      add a new function for raising error when an object cannot coerce
      into BigDecimal.  [Bug #5172]
    * ext/bigdecimal/bigdecimal.c (BigDecimalValueWithPrec): use
      cannot_be_coerced_into_BigDecimal function.
    * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): ditto.
    * ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto.
    * test/bigdecimal/test_bigdecimal.rb: test for the avobe changes.
    * test/bigdecimal/testbase.rb (under_gc_stress): add a new utility
      method to run tests under the condition of GC.stress = true.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-17 06:52:00 +00:00
mrkn
559b717567 Merge commit r32994 from trunk:
* rational.c (nurat_coerce): Rational#coerce should converts itself
      into Complex if the argument is a Complex with non-zero imaginary
      part.  [Bug #5020] [ruby-dev:44088]
    * test/ruby/test_rational.rb (test_coerce): test for the above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-17 01:32:16 +00:00
emboss
9d5b1a51d6 * backport r32992 from trunk.
* ext/openssl/ossl_x509cert.c: Add class documentation for
  OpenSSL::X509::Certificate.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 21:46:32 +00:00
svn
2a798abf86 * 2011-08-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 20:06:17 +00:00
emboss
03c9ff29ce * backport r32987 from trunk.
* ext/openssl/ossl_pkey.c: corrected docs, OpenSSL::PKey::DH does
  *not* support #sign/verify.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 20:06:13 +00:00
nobu
dea63e4ba2 * vm.c (ruby_threadptr_data_type): rename to hide.
[ruby-core:38972]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 09:56:56 +00:00
nobu
a8f67eed3d * win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
and _threadptr_ functions, as well as mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 09:52:10 +00:00
drbrain
c33343b964 * backport r32981 and r32982 from trunk.
* ext/dl:  Add documentation.  Patch by Vincent Batts.
  [Ruby 1.9 - Bug #5192]
* ext/.document (fiddle):  Remove duplicate entry
* ext/fiddle:  Complete documentation of Fiddle.  Patch by Vincent
  Batts.  [#5192]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-16 00:51:58 +00:00
svn
d42e5dcfce * 2011-08-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-15 23:20:52 +00:00
drbrain
82322e5d4b * backport r32977 from trunk
* ext/socket:  Make Socket documentation appear.  Add documentation for
  Socket, TCPServer, SOCKSSocket.  Patch by Sylvain Daubert.
  [Ruby 1.9 - Feature #5182]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-15 23:20:44 +00:00
svn
28d8d87812 * 2011-08-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-15 01:20:31 +00:00
emboss
b3ed3c9ed1 * backport r32973 from trunk.
* ext/openssl/ossl_ssl.c: Support disabling OpenSSL compression.
* test/openssl/test_ssl.rb: Add a test for it.
  Thanks to Eric Wong for the patch.
  [Ruby 1.9 - Feature #5183] [ruby-core:38911]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-15 01:20:27 +00:00
nobu
a8907d5921 * tool/mkconfig.rb: do not make the entries related to sitedir and
verdordir if disabled by --without options.  [ruby-core:38922]
  [Bug #5187]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 13:17:30 +00:00
tadf
5b70fc56b4 * ext/date/date_core.c: [ruby-core:38861]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 08:07:18 +00:00
tadf
4b7a5776ad changelog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 08:00:35 +00:00
nagachika
7956346af5 * backport r32962+r32965 from trunk.
* ext/date/date_parse.c (parse_ddd_cb): fix r32896. RB_GC_GUARD
  insertion position was mistaken. [ruby-dev:44337] [Bug #5152]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 00:48:16 +00:00
tadf
1bbb318938 * test/date/test_*.rb: added tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 00:42:27 +00:00
tenderlove
6e5aa36709 * ext/psych/lib/psych/core_ext.rb: Make Kernel#y private.
[ruby-core:38913]
* test/psych/test_yaml.rb: corresponding test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 00:29:56 +00:00
tadf
c8a403ebc4 * ext/date/date_core.c (date_strftime_alloc): followed the change
of r32885.
	* NEWS: followed the above change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-13 00:15:50 +00:00
tadf
7eab4f34ff * ext/date/date_core.c: [ruby-core:38855].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 23:50:07 +00:00
drbrain
0fafdc0f34 * backport r32953 from trunk.
* lib/uri/common.rb:  Fix documentation of URI::Parser.new.  Patch by
  Steve Klabnik.  [Ruby 1.9 - Bug #5177]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 18:43:49 +00:00
svn
6787e5fbde * 2011-08-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 17:26:03 +00:00
drbrain
0e53fac484 * Backport r32950 from trunk.
* ext/digest/digest.c:  Add documentation for the Digest module.  Patch by
  Sylvain Daubert.  [Ruby 1.9 - Bug #5167]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 17:26:00 +00:00
shugo
f988bf17bb * backport r32856 from trunk.
* lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use
  String#bytesize instead of String#size.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 08:06:49 +00:00
nari
e199582e24 * backport r32894 from trunk.
* gc.c (gc_lazy_sweep): if sweep target slots are not found, we
  try heap_increment() because it might be able to expand the
  heap. [Bug #5127] [ruby-dev:44285]

* gc.c (gc_clear_mark_on_sweep_slots): if a sweeping was
  interrupted, we expand the heap if at all possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 05:05:18 +00:00
drbrain
ba6e227350 * lib/rake: Update to Rake 0.9.2.2. Prevent pollution of toplevel
namespace by Commands.  Remove unused variable and debugging
  statement in tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 03:29:02 +00:00
drbrain
6f511d694a * backport r32941 from trunk
* lib/rubygems:  Import RubyGems 1.8.8.  Fixes encoding of YAML gemspec
  from gems.  Github Issue #149


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 00:42:44 +00:00
svn
86ba0649ae * 2011-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-11 18:44:14 +00:00
drbrain
a750006eda * backport r32935 from trunk
* lib/rdoc:  Import RDoc 3.9.2.  Fixes TIDYLINK for HTML output.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-11 18:44:10 +00:00
kosaki
6de14984a5 merge revision(s) 32821:
------------------------------------------------------------------------
r32821 | naruse | 2011-08-03 00:39:10 +0900 (Wed, 03 Aug 2011) | 1 line

Refix r32815.
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-11 12:33:21 +00:00
kosaki
d33ccac173 * backport r32815 from trunk.
* gc.c (init_heap): allocate sigaltstack after heaps are allocated.
  [ruby-dev:44315] [Bug #5139]

* vm.c (thread_free): use free because objspace is not ready.

* vm.c (th_init): use malloc because objspace is not ready.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-11 12:28:41 +00:00