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

24129 Коммитов

Автор SHA1 Сообщение Дата
kosaki 3abbda4f6e * error.c (report_bug): use a small message buffer instead of BUFSIZ.
It is needed for avoiding nested SIGSEGV on Linux.
  Note: BUFSIZ is not proper buffer size. It's unrelated with maximum
  filename length. :-/
  [Bug #5139] [ruby-dev:44315]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 11:23:16 +00:00
nobu 1c647cc203 * ext/psych/psych.gemspec (files): remove extra commas.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 07:09:58 +00:00
nobu 5f3a8912f7 * tool/rbinstall.rb (gem): install all gemspecs under lib and ext.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 07:08:48 +00:00
nobu f555a533d0 * tool/rbinstall.rb (Gem::Specification): may not be defined when
cross-compiling and BASERUBY is 1.8.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 06:44:13 +00:00
nobu 11667b9c9a * include/ruby/missing.h: fix typo and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 02:54:22 +00:00
naruse d04697df88 * include/ruby/missing.h: define __syscall on OpenBSD as r32702.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 02:32:19 +00:00
tenderlove e9ddb1a1f9 * tool/rbinstall.rb: use rubygems to load gemspecs, copy actual
gemspecs on install rather than generate fake ones for all gems.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 18:08:57 +00:00
tenderlove 92f3904534 oops, fix author in the psych gemspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 18:08:48 +00:00
mrkn 03418c4e5f * configure.in: set CXX variable to the C++ compiler that matches the
C compiler specified by CC variable (e.g. use g++-4.2 for gcc-4.2).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:49:22 +00:00
nobu ae51324199 * lib/mkmf.rb (link_command): use static library only for bundled
extensions.  [Bug #5147]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:21:12 +00:00
nobu 7150df4522 * ext/psych/psych.gemspec: property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:20:26 +00:00
tenderlove 55d68f1160 installing psych as a gem
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 17:02:44 +00:00
naruse d7c026d058 Mark a code is GPL or not.
This is made the comparison between current and initial commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 15:40:03 +00:00
svn 9dd559a73a * 2011-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 15:38:49 +00:00
nahi c8c02c9cc3 Cosmetic change of Hash literal.
'BindAddress: var' => ':BindAddress => var' according to other configurations.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 15:38:44 +00:00
akr 454de1d5eb update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 12:18:50 +00:00
usa f9e9eee677 * util.c, include/ruby/util.h (ruby_add_suffix): remove the function.
[Bug #5153] [ruby-core:38736]

* io.c (argf_next_argv): remove the call of above function.

* ext/-test-/add_suffix, test/-ext-/test_add_suffix.rb: remove the test
  extension module because this is only for testsing ruby_add_suffix().

* LEGAL: remove the mention about a part of util.c, because now we
  removed the part.

* io.c (argf_next_argv): now the new filename is not guranteed to
  use, so should check the return value of rename(2).

* test/ruby/test_argf.rb (TestArgf#test_inplace_rename_impossible):
  now we expect same result with other platforms on no_safe_rename
  platforms (=Windows).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 07:10:56 +00:00
nobu f0fbf6c976 * variable.c (check_before_mod_set): should be static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 03:47:10 +00:00
shyouhei deb0024af1 * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
Like r32795, bind address should be specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-03 00:22:08 +00:00
nobu a0b9f48674 * encoding.c (enc_find): mistakenly remained !. [Bug #5150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 22:46:34 +00:00
naruse 7340796338 Revert "* encoding.c (enc_find): simplified with RB_TYPE_P."
This reverts commit r32817.
It has less code on the surface, but it needs more condition.
Moreover it doesn't need !.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 22:39:28 +00:00
naruse ae1bccf7a4 Refix r32815.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 15:39:10 +00:00
svn 2392f45289 * 2011-08-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 15:26:04 +00:00
akr 642458fd77 * lib/prettyprint.rb: update document. [ruby-core:36776]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 15:25:59 +00:00
nobu 048202f446 * encoding.c (enc_find): simplified with RB_TYPE_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 14:50:54 +00:00
naruse 48bc63fa7a Fix r32811: add UNSPECIFIED_ENCODING case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 14:27:56 +00:00
naruse 027a15e958 * 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/trunk@32815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 13:08:45 +00:00
naruse 2cf05e5879 Remove an obsolete file, ToDo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 12:19:27 +00:00
sorah 9864da84f6 * test/testunit/test_parallel.rb: pass "--ruby" option to
test/testunit/tests_for_parallel/runner.rb. [Bug #5132] [ruby-dev:44303]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 11:18:58 +00:00
naruse faf295f1e1 * encoding.c (str_to_encoding): rename from to_encoding and
use str_to_encindex.

* encoding.c (str_to_encindex): split from to_encoding.

* encoding.c (rb_to_encoding): use str_to_encoding.

* encoding.c (rb_obj_encoding): don't bypass rb_encoding*.
  If it uses rb_encoding*, it bypass encindex. If it uses encindex,
  it doesn't bypass.

* encoding.c (enc_find): add shortcut for encoding object, use
  str_to_encindex, and avoid bypass rb_encoding*.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 07:35:21 +00:00
nobu 86bbfdadf3 * hash.c (recursive_hash): hash value of emptied hash should be
equal to an empty hash.  [ruby-core:38650]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 03:03:18 +00:00
nobu 48fd404ffe * parse.y (rb_enc_symname2_p): :! is valid symbol. [Bug #5136]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 02:42:17 +00:00
nobu f1a7dc3f13 * property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-02 02:15:55 +00:00
shyouhei fa25f26095 * test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):
If you connect to localhost, you should listen localhost.

* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 22:35:05 +00:00
svn 35186277d1 * 2011-08-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 21:22:17 +00:00
luislavena 9e49d29e08 Correct RubyGems bin check on Windows. Bug #5111
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 21:22:13 +00:00
nagachika 4d9c0998cf * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 13:18:16 +00:00
usa b8d546db64 * test/ruby/test_process.rb (TestProcess#windows?): new method.
* test/ruby/test_process.rb (TestProcess#*): use above method.

* test/ruby/test_process.rb (TestProcess#test_execopts_redirect):
  windows doesn't support FD_CLOEXEC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 11:23:44 +00:00
drbrain f209dc7242 * test/rake/test_rake_functional.rb: Don't assume the binary name of
ruby is "ruby".  [Ruby 1.9 - Bug #5114]
	* test/rake/helper.rb:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 06:45:43 +00:00
shyouhei 6851f29bb7 * test/io/console/test_io_console.rb (TestIO_Console#test_sync):
Skip when PTY allocation failed (that's not our failt).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 06:36:09 +00:00
shyouhei 3237f7dc9a * test/xmlrpc/test_webrick_server.rb (Test_Webrick#setup_http_server):
XMLRPC::Client.new3(), when called without host: argument, tries
  to  connect to  a host  where "localhost"  resolves to.   On the
  other  hand  a  WEBrick::HTTPServer.new(), when  called  without
  BindAddress:  argument, tries  to listen  all the  address where
  getaddrinfo(AF_UNSPEC) resolves to.   This is a mismatch because
  "localhost" might not resolve to one of those listening sockets.
  We  would  better explicitly  specify  "localhost"  here and  if
  failed, just skip the whole test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 06:22:05 +00:00
drbrain a429cafc4d * lib/rdoc.rb: Import RDoc 3.9.1. Fixes bugs in the RDoc::Markup
parser.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 05:25:13 +00:00
kazu 7d2efc1fda remove duplicated entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 03:21:43 +00:00
svn d18f05af85 * 2011-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 03:10:06 +00:00
naruse db42bd0448 * insns.def (concatstrings): don't use initial ASCII-8BIT string.
[ruby-core:38635] [Bug #5126]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 03:10:02 +00:00
yugui 6280ce3b68 Forward-ports r32779 from branches/ruby_1_9_3 to trunk. The original commit
by ktsj.
--
configure.in: fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:45 +00:00
yugui ddeccd20f1 Forward-ports r32780 from branches/ruby_1_9_3 to trunk.
--
* enc/Makefile.in (ECHO1): Same as the recent fix in common.mk.
  ":" in a make variable replacement cause a syntax error with
  /usr/ccs/bin/make on Solaris.  Uses $(NULLCMD) instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:42 +00:00
yugui 4270dbe629 Forward-ports r32777 from branches/ruby_1_9_3 to trunk.
--
* complex.c (f_signbit): gcc4 on Solaris DOES have signbit but does
  not have it on header.

* math.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:40 +00:00
yugui 05ec839244 Forward-ports r32776 from branches/ruby_1_9_3 to trunk.
--
* common.mk (node_name.inc): Use $(Q) for consistency.

* Makefile.in (INSNS): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:37 +00:00
yugui 2dafa21892 Forward-ports r32778 from branches/ruby_1_9_3 to trunk.
--
* lib/mkmf.rb (configuration:ECHO1): Same as the recent fix in
  common.mk.
  ":" in a make variable replacement cause a syntax error with
  /usr/ccs/bin/make on Solaris.  Uses $(NULLCMD) instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-31 14:17:34 +00:00