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

29307 Коммитов

Автор SHA1 Сообщение Дата
nobu b0c4ac7779 proc.c: original arity
* proc.c (rb_mod_method_arity): return original arity of the method if
  aliased because of visibility change, like as Method#arity.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29 07:49:22 +00:00
akr 2d55537dce * test/ruby/test_marshal.rb: remove temporally files early.
* test/ruby/test_process.rb: ditto.

* test/psych/test_exception.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29 03:06:40 +00:00
nobu 1d15bbdae5 ChangeLog: remove duplicated entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29 00:58:55 +00:00
svn ae04783559 * 2013-01-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29 00:32:10 +00:00
shugo a1ed445b81 * ext/socket/socket.c (sock_s_pack_sockaddr_un): calculate the
correct address length of an abstract socket.

* test/socket/test_unix.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29 00:32:05 +00:00
nobu 616f2c43c6 vm_backtrace.c: use long
* vm_backtrace.c (rb_debug_inspector_frame_{class,binding,iseq}_get):
  use long as index as well as RARRAY_LEN().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-28 09:02:19 +00:00
nobu 43ce5ce1b4 envutil.rb: no core dump
* test/ruby/envutil.rb (assert_separately): imply no core dump.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-28 08:51:41 +00:00
svn ea632a6daa * 2013-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-28 03:34:50 +00:00
akr 8477d3131c * ext/fcntl/fcntl.c: update document. use "file descriptor" instead
of "file handle" because it is not used other Ruby documents and
  it is confusing with Windows file handle.
  correct F_DUPFD behavior.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-28 03:34:43 +00:00
nobu b2ca2c58f1 test_system.rb: commit miss
* test/ruby/test_system.rb (TestSystem#test_system_redirect_win): fix
  intentional failure left carelessly.  [Bug #7482]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-27 13:13:12 +00:00
nobu d10cea5010 test_system.rb: indent
* test/ruby/test_system.rb (TestSystem#test_system): adjust indent

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-27 04:04:26 +00:00
nobu ad1715f0b9 test_system.rb: fix test
* test/ruby/test_system.rb (TestSystem#test_system_redirect_win): fix
  meaningless test.  [Bug #7482]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-27 04:04:23 +00:00
svn dbf8e164ce * 2013-01-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 19:18:23 +00:00
marcandre 888ccebbb0 * NEWS: Improve wording
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 19:18:13 +00:00
kazu a8d4b22c58 fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 13:48:15 +00:00
nobu 3d0786a3a8 marshal.c: marshal_dump instance varialbes
* marshal.c (w_object): dump instance varialbes of the result of
  marshal_dump not the original object.  [ruby-core:51163] [Bug #7627]
* complex.c (nucomp_marshal_dump): need to copy instance variables.
* rational.c (nurat_marshal_dump): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 13:39:15 +00:00
nari 68d131d6a5 fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 09:51:34 +00:00
suke 2eae39e05b Windows Vista supports __declspec(thread) in dynamic loaded dll, so
Change the following comment in ChangeLog
    to avoid SEGV if win32ole.so loaded with LoadLibrary in Windows Vista
 -> to avoid SEGV if win32ole.so loaded with LoadLibrary in Windows XP


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 07:12:15 +00:00
drbrain 623f6d6673 * ext/fcntl/fcntl.c: Document Fcntl constants
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 04:36:14 +00:00
drbrain 0051369ba3 * hash.c (rb_env_size): Restored documentation for ENV.size
* lib/drb/drb.rb:  Documented DRb::DRb#run.

* lib/erb.rb (class ERB):  Improved documentation of ERb.

* transcode.c:  Documented Encoding::Converter constants.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 03:58:33 +00:00
nobu 6048f9a6cf * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 02:31:43 +00:00
nobu a110d1782e extconf.rb: fix warnings
* ext/socket/extconf.rb: fix warnings from IN6_IS_ADDR_ macros in
  apple's netinet6/in6.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 02:31:40 +00:00
drbrain 28afe277a8 * lib/webrick/accesslog.rb: Improved WEBrick documentation.
* lib/webrick/cgi.rb:  ditto.
* lib/webrick/config.rb:  ditto.
* lib/webrick/cookie.rb:  ditto.
* lib/webrick/httpauth/authenticator.rb:  ditto.
* lib/webrick/httpauth/basicauth.rb:  ditto.
* lib/webrick/httpauth/digestauth.rb:  ditto.
* lib/webrick/httpproxy.rb:  ditto.
* lib/webrick/httprequest.rb:  ditto.
* lib/webrick/httpresponse.rb:  ditto.
* lib/webrick/https.rb:  ditto.
* lib/webrick/httpserver.rb:  ditto.
* lib/webrick/httpservlet/cgihandler.rb:  ditto.
* lib/webrick/httpservlet/filehandler.rb:  ditto.
* lib/webrick/httpservlet/prochandler.rb:  ditto.
* lib/webrick/httputils.rb:  ditto.
* lib/webrick/httpversion.rb:  ditto.
* lib/webrick/log.rb:  ditto.
* lib/webrick/server.rb:  ditto.
* lib/webrick/ssl.rb:  ditto.
* lib/webrick/utils.rb:  ditto.
* lib/webrick/version.rb:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-26 01:12:54 +00:00
tenderlove 89232d1dd9 updating news [Bug #6820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 23:36:42 +00:00
shugo 07e9f122a9 * ext/socket/raddrinfo (rsock_unix_sockaddr_len): renamed from
rsock_unixpath_len, because it returns not the length of the path,
  but the length of a socket address for the path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 23:33:50 +00:00
svn 6b36e95851 * 2013-01-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 17:15:10 +00:00
kosaki 0dddb4b328 * test/ruby/test_io.rb (test_ioctl_linux): skip if a platform is
not x86 because linux ioctl request number depend on cpu arch.
  At least, alpha, mips, sparc and ppc have a different number.
  [Bug #7718] [ruby-core:51544]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 17:15:05 +00:00
suke 57408cb1d1 * ext/win32ole/win32ole.c: use TlsAlloc instead of __declspec(thread)
to avoid SEGV if win32ole.so loaded with LoadLibrary in Windows
  Vista or earlier.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 10:17:59 +00:00
shugo ad55d141eb * ext/socket/raddrinfo.c (rsock_unixpath_len, init_unix_addrinfo),
ext/socket/unixsocket.c (unixsock_connect_internal,
  rsock_init_unixsock): calculate the correct address length of
  an abstract socket.  Without this fix, sizeof(struct sockaddr_un)
  is specified as the length of an abstract socket for bind(2) or
  connect(2), so the address of the socket is filled with extra NUL
  characters.  See unix(7) for details.

* ext/socket/lib/socket.rb (unix_server_socket): don't access the
  file system if the platform is Linux and path starts with NUL,
  which means that the socket is an abstract socket.

* test/socket/test_unix.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 08:15:26 +00:00
drbrain 76ade818ae * lib/drb/drb.rb: Updated documentation based on patch from Vincent
Batts.  [ruby-trunk - Bug #7714]
* lib/drb/ssl.rb:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 04:02:46 +00:00
drbrain 90e69dfdaf * lib/drb/drb.rb: Improved documentation by adding or hiding methods.
* lib/drb/eq.rb:  ditto.
* lib/drb/extserv.rb:  ditto.
* lib/drb/gw.rb:  ditto.
* lib/drb/invokemethod.rb:  ditto.
* lib/drb/observer.rb:  ditto.
* lib/drb/ssl.rb:  ditto.
* lib/drb/timeridconv.rb:  ditto.
* lib/drb/unix.rb:  ditto.

* sample/drb/gw_cu.rb:  Fixed bug in DRb gateway sample.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 03:25:39 +00:00
ko1 d50bd4939a * vm_core.h: modify a comment about rb_iseq_t::local_size.
A patch by davidbalbert (David Albert) [Bug #6750]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 03:03:50 +00:00
nobu 8a77b4780e ChangeLog: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 01:39:39 +00:00
nobu 8cc69387e0 test_process.rb: reduce command string size
* test/ruby/test_process.rb (test_spawn_too_long_path),
  (test_aspawn_too_long_path): reduce command string size until
  intended exception occurs.  [ruby-core:51592] [Bug #7721]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 01:37:34 +00:00
drbrain c8a4d4b071 * lib/mkmf.rb: Documented MakeMakefile constants. Hid implementation
details from RDoc 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 01:37:06 +00:00
drbrain 5e3ebde7c8 * lib/rubygems/compatibility.rb: Hide compatibility shims from RDoc
* lib/rubygems/config_file.rb:  Hide RbConfig use from RDoc

* lib/rubygems/test_case.rb:  Added note to use realpath when 1.8
  support is dropped.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 01:04:18 +00:00
svn e2d341d9e5 * 2013-01-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 00:15:14 +00:00
drbrain 2d579c0074 * lib/rdoc/generator/darkfish.rb: Fixed debug message. RDoc bug #174
by Thomas Leitner.

* lib/rdoc/store.rb:  Fixed deletion of ri attribute data when a class
  was loaded then saved.  RDoc bug #171 by Thomas Leitner.
* test/rdoc/test_rdoc_store.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 00:15:08 +00:00
sorah f1ef3d600d * NEWS (yaml): Write about bundled libyaml.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 10:56:47 +00:00
drbrain dbcf20069a * doc/syntax/calling_methods.rdoc: Added a Method Lookup section.
* doc/syntax/refinements.rdoc (Method Lookup):  Clarified that
  refinement methods are looked up in classes, not instances.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 07:54:45 +00:00
marcandre 96af5360a4 * enum.c (enum_zip): Fix error message
* array.c (take_items): Same, for Array#zip
  [Bug #7706]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 07:51:05 +00:00
marcandre aab2f788d7 * enumerator.c (lazy_zip): raise error for bad arguments
[Bug #7706]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 07:50:33 +00:00
marcandre 1af390b1ea * enumerator.c: Optimize Lazy#zip when passed only arrays
[Bug #7706]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 07:05:42 +00:00
nobu cc6e6de22f re-fix documents
File.realdirpath(path) is not a shorthand for
File.dirname(File.realpath(path)), just does not err if the last
component does not exist.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 06:55:24 +00:00
marcandre 41d6ba8765 * enumerator.c: Fix state handling for Lazy#zip
[bug #7696] [bug #7691]

* test/ruby/test_lazy_enumerator.rb: test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 06:24:22 +00:00
marcandre 9d94a1a5a1 * enumerator.c: Fix state handling for Lazy#drop
[bug #7696] [bug #7691]

* test/ruby/test_lazy_enumerator.rb: test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 06:23:42 +00:00
marcandre bcbeb5d008 * enumerator.c: Fix state handling for Lazy#drop_while
[bug #7696] [bug #7691]

* test/ruby/test_lazy_enumerator.rb: test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 06:23:07 +00:00
marcandre de0e887635 * enumerator.c: Fix state handling for Lazy#take
[bug #7696]

* test/ruby/test_lazy_enumerator.rb: test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 06:22:34 +00:00
nari 892e8efd47 fix documents. __dir__ is a shorthand File.realdirpath(__FILE__).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 05:35:05 +00:00
naruse ded754f33d Refix of r38916: it uses realpath
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-24 04:20:33 +00:00