Commit graph

15465 commits

Author SHA1 Message Date
mame
3e056da13c * test/webrick/utils.rb (start_server): provide a reference to log of
webrick.

* test/webrick/test_httpproxy.rb, test/webrick/test_httpauth.rb,
  test/webrick/test_cgi.rb, test/webrick/test_httpserver.rb,
  test/webrick/test_server.rb, test/webrick/test_filehandler.rb: use
  webrick log as an assertion message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 11:48:35 +00:00
nobu
19873d5cf9 * configure.in (dln-a-out): cannot make shared library nor work with
ELF.  [ruby-core:19571]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 02:51:00 +00:00
usa
b3b3c17461 * win32/win32.c (rb_w32_open): shouldn't seek here.
* win32/win32.c (rb_w32_write): write to the end of the file when
	  FAPPEND is specified.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-29 02:01:54 +00:00
svn
a6a18d4693 * 2008-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:30:13 +00:00
usa
10a1e380a2 * win32/win32.c (rb_w32_open): need to seek to the end of the file when
O_APPEND is specified.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 15:30:03 +00:00
yugui
6aa5a5a3ce * test/ruby/test_proc.rb: filled all patterns for testing
vm_yield_setup_args.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 14:18:10 +00:00
mame
c0f168f5db * parse.y (parser_yylex): check EOF explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:34:13 +00:00
usa
605102f3cb merge from trunk (r19984, r19985, r19991-r19998)
* io.c (extract_binmode): new function to extract binmode/textmode
	  options from hash.

	* io.c (rb_io_extract_modeenc): use above function.

	* io.c (rb_io_s_pipe): recognize binmode/textmode options.

	* io.c (make_readconv): now can specify the size of cbuf.

	* io.c (read_all, appendline, io_getc, rb_io_ungetc): follow above
	  change.

	* win32/win32.c (rb_w32_pipe_exec): internal fds should be always
	  binmode.

	* test/ruby/test_file.rb (test_each_char_extended_file,
	  test_getbyte_extended_file): add tests.

	* test/ruby/test_file.rb (test_*_extended_file): test in default/text/
	  binary mode.

	* test/ruby/test_file.rb (test_para_gets_extended_file): output file
	  should be binmode.

	* test/ruby/test_io.rb (test_copy_stream, test_copy_stream_socket): skip
	  some tests if there isn't IO#nonblock=.

	* test/ruby/test_io.rb (test_close_on_exec): skip if there isn't
	  IO#close_on_exec=.

	* test/ruby/test_io.rb (test_bytes, test_readbyte): depend on binmode.

	* test/ruby/test_io.rb (test_sysopen): should specify the mode of
	  IO::for_fd if F_GETFL is not available.

	* test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if 
	  enc is not compatible with ASCII.

	* test/ruby/test_require.rb (test_require_too_long_filename): too long
	  commandline may be rejected by OS.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:17:54 +00:00
yugui
9b663af885 * tool/make-snapshot.rb: merged back from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 08:26:42 +00:00
yugui
95f61f5223 * tool/make-snapshot.rb: had returned wrong sizes for generated
archives.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 07:46:08 +00:00
yugui
9ce0619f24 * tool/make-snapshot.rb (package): did not accept tagnames with the
prefix "previewN"


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 03:44:11 +00:00
yugui
9ec77afe42 * test/rubygems/test_gem.rb (@default_dir_re): considers
--program-suffix and prefix configure options.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 03:08:18 +00:00
yugui
bd653b30ca * version.h: set 1.9.1 into Ruby's version number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 02:08:06 +00:00
yugui
c2511c5f76 * gem_prelude.rb: considers --program-suffix and prefix configure
options.

* lib/rubygems/defaults.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 01:43:55 +00:00
yugui
d9f21245ad merged r19973 from trunk into ruby_1_9_1.
* bootstraptest/test_thread.rb: ignore some exceptions.
  [ruby-dev:36951]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 01:25:01 +00:00
yugui
067071c016 merged r19970-r19971 from trunk into ruby_1_9_1.
* 2008-10-28
* win32/Makefile.sub (RUNRUBY): now ruby requires something from
  gem_prelude, so need to set library path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 00:43:30 +00:00
yugui
22fef20d1f New release branch ruby_1_9_1 for the version 1.9.1 of Ruby
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@19969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 14:56:21 +00:00
yugui
a1645803bb * vm_insnhelper.c (vm_yield_setup_args): supports optional parameters.
Fixed [ruby-core:19503].

* vm_insnhelper.c (vm_yield_setup_block_args): a new function. extracted
  from vm_yield_setup_args.

* vm_insnhelper.c (vm_yield_setup_block_args_complex): ditto.

* test/ruby/test_proc.rb: added tests for arguments on a Proc from
  Kernel#proc called.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 13:35:46 +00:00
usa
46f8afdc56 * ext/mathn/complex/complex.c: no need to define rb_cComplex because
it's already defined at $(srcdir)/complex.c.

	* ext/mathn/rational/rational.c: no need to define rb_cRational because
	  it's already defined at $(srcdir)/rational.c.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 11:07:37 +00:00
nobu
85101b7625 * test/ruby/test_argf.rb (test_{argf,lineno,lineno2}): don't repeat
comments and expected results.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 07:30:56 +00:00
nobu
0a20a506e1 * ruby.c (load_file): preserves $.. [ruby-dev:36937]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 06:58:28 +00:00
nobu
782f3bd3f9 * io.c (argf_init): initial value of $. should be 0.
see [ruby-dev:36937].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 06:55:06 +00:00
yugui
1a863754fa * test/minitest/test_mini_test.rb
(test_assert_raises_triggered_different): the test failed when a
  file path in the backtrace contontains something except [\w\/\.],
  e.g. hyphen, Japanese characters or backslash.

* test/minitest/test_mini_test.rb
  (test_assert_raises_triggered_subclass): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 06:43:13 +00:00
yugui
a1cef99541 * test/minitest/test_mini_test.rb: fixed that r19958 made
test-all fail when the ruby was built at $(srcdir).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 06:34:23 +00:00
yugui
0a88cb504b * test/ruby/envutil.rb: reverted the changeset 19948 because it
concealed unexpected behaviours of ruby.

* test/ruby/test_io.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 03:13:54 +00:00
yugui
a61e734d0f * ChangeLog: added missing timestamps
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 03:13:47 +00:00
kazu
4e0b83e95b * ext/nkf/nkf.c (rb_nkf_convert): should specify type of variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 03:04:22 +00:00
yugui
afea4a4995 * test/minitest/test_mini_test.rb (test_filter_backtrace):
fixed failure on Ruby built at out of $(srcdir).

* test/minitest/test_mini_test.rb (test_Filter_backtrace_unit_starts):
  ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 02:39:17 +00:00
kazu
83acdeedd8 fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 02:15:08 +00:00
usa
db8e3024e7 * io.c (read_all): the 3rd argument maybe Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-27 01:03:22 +00:00
mame
52061f4ecd * test/nkf/test_nkf.rb: add a test for [ruby-dev:36909].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 16:31:15 +00:00
svn
abfddf2cd9 * 2008-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 16:08:08 +00:00
naruse
f850cf2866 * ext/nkf/nkf.c (rb_nkf_convert): avoid GC.
reported in [ruby-dev:36909] and patched [ruby-dev:36941] by mame.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 16:08:03 +00:00
mame
5cc0569281 * set svn:ignore property to ext/mathn/complex and ext/mathn/rational
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 14:32:50 +00:00
nobu
824e1e4265 * ChangeLog: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 13:49:10 +00:00
mame
2b3f026b8a * test/json/test_json.rb: remove dependency on permutation gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 12:30:07 +00:00
nobu
945faf92e6 * gem_prelude.rb: disables debug and verbose flags to suppress failure
messages.  interpolation does not occur inside single quotes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 10:18:39 +00:00
nobu
b98a6b7ac0 * test/ruby/envutil.rb (assert_in_out_err): disables builtin rubygems
to get rid of the interference.

* test/ruby/test_io.rb (ruby): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 09:42:21 +00:00
nobu
bcf61f58d5 * ext/io/wait/{extconf.rb,wait.c}: needs sys/ioctl.h for fcntl on
cygwin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 09:11:40 +00:00
nobu
201eb37d92 * ext/etc/etc.c (sGroup): getgrent may not be available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 09:07:37 +00:00
nobu
860fad971d * thread.c (blocking_region_{begin,end}): declared as inline.
* util.c (freedtoa): used only when MULTIPLE_THREADS is not defined.

* win32/win32.c (rb_w32_pipe): serial is DWORD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 09:01:23 +00:00
nobu
425dcb131e * missing/vsnprintf.c (BSD__sfvwrite): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 06:05:21 +00:00
nobu
0db5641dae * io.c (read_all): use the given buffer to read when needs readconv.
based on the patch by wanabe <s.wanabe AT gmail.com> at
  [ruby-dev:36931].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 04:30:45 +00:00
nobu
c68aaa94f7 properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-26 00:42:33 +00:00
drbrain
b61d8b6045 Update to RubyGems 1.3.1 r1909.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 22:58:43 +00:00
ryan
17358af75b Imported minitest 1.3.0 r4429. Fixes issues reported by akira and nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 22:38:09 +00:00
yugui
fe7ce06150 * configure.in ($MANTYPE): followed ruby.1, which had moved.
* instruby.rb (:man): ditto.

* mdoc2man.rb: fixed for the case Xr with 2 arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 17:20:05 +00:00
yugui
4dd24d6ba6 * man/irb.1: new manual page.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 16:44:13 +00:00
yugui
92d172e9c3 * man/ruby.1: moved into man/. added some descriptions.
* man/goruby.1: new file.

* instruby.rb (:man): followed ruby.1.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 15:15:24 +00:00
svn
357a0ddc9e * 2008-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-25 15:15:09 +00:00