Commit graph

7523 commits

Author SHA1 Message Date
nobu
909f0b13b7 * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
[ruby-talk:248288]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-24 00:33:09 +00:00
nobu
27d87bb4de * ext/extmk.rb ($ruby): add extout directory to include path.
[ruby-core:11003]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:13:53 +00:00
nobu
763f629e77 * lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
directory.

* lib/mkmf.rb (init_mkmf): add current directory to default
  library path with highest priority.  [ruby-core:10960]

* lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:08:29 +00:00
nobu
364c4a0974 * configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
it is done by libpathflag in mkmf.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 07:04:35 +00:00
nobu
2a50650ceb * lib/optparse.rb: fix to override conv proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 03:26:19 +00:00
nobu
47807a7b44 * eval.c (ruby_cleanup): inversed the order of errinfos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-20 03:16:21 +00:00
nobu
378c35fc75 * lib/monitor.rb (ConditionVariable#wait, mon_enter, mon_exit_for_cond):
ensures Thread.critical to be false.  [ruby-talk:248300]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-19 05:52:49 +00:00
nobu
7595c80e55 * util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-18 01:40:38 +00:00
nobu
fad88354f9 * configure.in (Makefile): remove $U for automake from MISSING.
[ruby-talk:248171]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 17:29:39 +00:00
nobu
fa0f126d71 * configure.in (LDFLAGS): prepend -L. instead appending it to
XLDFLAGS.  [ruby-core:10933]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 17:17:15 +00:00
matz
874a344ed6 * eval.c (rb_yield_0): should not clear state on TAG_NEXT when
it's invoked from within lambda body.  [ruby-talk:248136]

* eval.c (proc_invoke): handle TAG_NEXT which would be caused by
  next in the lambda body as well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-17 07:47:59 +00:00
matz
0ce51bc995 * ext/pty/expect_sample.rb: avoid symbolic link representation for
expect.  a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30714]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:57:13 +00:00
matz
67e61153d3 * sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30713]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:51:51 +00:00
nobu
5c1b68e95a * lib/optparse.rb (make_switch): do not clobber converter if pattern
has no convert method.  reported by sheepman in [ruby-dev:30709].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 08:07:20 +00:00
nobu
3eb48e993a * ext/stringio/stringio.c (strio_seek): consistent behavior with
IO#seek.  patch by sheepman in [ruby-dev:30710].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:48:50 +00:00
matz
fe2900b515 * parse.y (parser_yylex): should set command_start after block
starting "do"s and braces.  [ruby-core:10916]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:44:56 +00:00
tadf
3ff952f8c9 * lib/date/format.rb: added some zone names.
* lib/date/format.rb (_parse): now interprets doted numerical
	  dates as a big endian (except dd.mm.yyyy).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-15 00:20:12 +00:00
usa
0e59ccdc4e * ChangeLog: sorry, I made mistake in the copy of the log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-11 07:19:50 +00:00
usa
c23eaad4ca * 2007-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-10 08:37:43 +00:00
usa
edac529177 * thread_win32.ci (w32_wait_events): check whether interrupt_event is
valid handle or not.

	* thread_win32.ci (native_thread_destroy): clear interrupt_event when
	  close it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-10 08:37:21 +00:00
eban
0d2ec8d2f4 * 2007-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-09 09:37:04 +00:00
shugo
687637e280 * lib/net/imap.rb (disconnect): call shutdown for
SSLSocket. Thanks, Technorama Ltd.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-09 00:29:48 +00:00
nobu
233a94b91e * error.c (rb_notimplement), io.c (pipe_open): removed definite
articles and UNIX manual section from messages.  [ruby-dev:30690]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-04 15:42:16 +00:00
nobu
f67fc8a43f * io.c (pipe_open): refined the message of NotImplementedError.
[ruby-dev:30685]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-04 08:08:46 +00:00
nobu
496371638e * io.c (pipe_open): raise NotImplementedError for command "-" on
platforms where fork(2) is not available.  [ruby-dev:30681]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-04 01:17:34 +00:00
usa
f7ba3c3de3 * ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as
windows) doesn't set fromlen if the socket is connection-oriented.
	  reported by Bram Whillock in [ruby-core:10512] [ruby-Bugs#9061]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-03 06:48:08 +00:00
nobu
d33cc535c3 * node.h (struct rb_thread.locals): explicit as struct.
[ruby-core:10585]

* eval.c, node.h (enum rb_thread_status, struct rb_thread,
  rb_curr_thread, rb_main_thread): prefixed.  [ruby-core:10586]

* file.c (chompdirsep): made an unprefixed name static.

* io.c (io_fread): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-24 14:40:08 +00:00
nobu
2898d5c5a8 * eval.c (ruby_cleanup): exit by SystemExit and SignalException in END
block.  [ruby-core:10609]

* test/ruby/test_beginendblock.rb (test_should_propagate_exit_code):
  test for exit in END block.  [ruby-core:10760]

* test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
  test for signal in END block.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-23 16:53:42 +00:00
nobu
a8ba0adb5c * eval.c (rb_provided): check for extension library if SOEXT is
explicitly given.  [ruby-dev:30657]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-22 14:12:56 +00:00
usa
2e8def5d14 * test/ruby/test_bignum.rb (test_to_s): add tests for Bignum#to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-22 01:29:34 +00:00
nobu
d527feaf19 * bignum.c (rb_big2str0): round up for the most significant digit.
[ruby-core:10686]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-21 08:04:11 +00:00
knu
1bb22ded25 * ext/thread/thread.c (remove_one): Preserve List invariants;
submitted by: MenTaLguY <mental AT rydia.net>
  in [ruby-core:10598] and [ruby-bugs:PR#9388].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 22:26:18 +00:00
matz
59aac16283 * marshal.c (w_extended): erroneous check condition when dump
method is defined.  [ruby-core:10646]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 14:08:05 +00:00
shyouhei
70075a4b7d * distruby.rb: Add zip generation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 07:37:34 +00:00
knu
c16ce66684 20070320
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 02:29:46 +00:00
knu
fd08f3ac6b * lib/matrix.rb (Matrix::inverse_from): adding partial pivoting to
the Gauss-Jordan algorithm, making it stable.  a patch from
  Peter Vanbroekhoven.  [ruby-core:10641]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 02:29:09 +00:00
usa
d4fb0b1f6d * 2007-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19 03:22:09 +00:00
aamine
cad1282b24 * lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-19 02:39:22 +00:00
eban
0afe6a7862 * 2007-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-18 04:02:57 +00:00
knu
08eecd0adc * NEWS: Add a note about the new `date' library defining
Time#to_date and Time#to_datetime private methods.

* NEWS: Inform that the old `thread' library is considered to be
  stable.

* NEWS: Sort library entries in alphabetical order.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 19:28:37 +00:00
eban
8641054e5f * 2007-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 06:18:30 +00:00
ttate
474e217c55 fixed the problem reported in [ruby-dev:30531].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 06:01:02 +00:00
knu
94c043e91e * ext/dl/dl.c (rb_ary2cary): Fix a bug in type validation;
submitted by sheepman <sheepman AT sheepman.sakura.ne.jp>
  in [ruby-dev:30554].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 12:52:07 +00:00
knu
f99852f162 * ext/etc/etc.c (etc_getgrgid): Fix a bug in Etc::getgrgid()
always returning the (real) group entry of the running process;
  reported by: UEDA Hiroyuki <ueda AT netforest.ad.jp>
  in [ruby-dev:30586].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 09:35:23 +00:00
eban
2134d1c788 * 2007-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:53:01 +00:00
knu
5f4b6b984a * ext/thread/thread.c (unlock_mutex_inner): Make sure that the
given mutex is actually owned by the caller; submitted by:
  Sylvain Joyeux <sylvain.joyeux AT m4x.org> in [ruby-core:10598].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:36:08 +00:00
knu
15b97d196a * ext/thread/thread.c (wait_condvar, lock_mutex): Fix a problem in
ConditionVariable#wait that occurs when two threads that are
  trying to access the condition variable are also in concurrence
  for the given mutex; submitted by: Sylvain Joyeux
  <sylvain.joyeux AT m4x.org> and MenTaLguY <mental AT rydia.net>
  in [ruby-core:10598].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:27:09 +00:00
knu
89150c9ecb * test/thread/test_thread.rb: Add a test script for the `thread'
library.  This should result in failure as of now with
  ext/thread; submitted by: Sylvain Joyeux <sylvain.joyeux AT
  m4x.org> in [ruby-core:10598].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:21:02 +00:00
matz
1fbbef5d73 * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
treated as ("-0.31") not as ("0.31").

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-14 05:35:31 +00:00
nobu
f5022c8e44 * common.mk (clear-installed-list): separated from install-prereq.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-13 00:24:58 +00:00