Commit graph

7022 commits

Author SHA1 Message Date
matz
36aa5671aa * eval.c (rb_call0): wrong condition for $SAFE restoration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 08:13:30 +00:00
matz
c704c569d5 * eval.c (method_arity): should return proper arity value.
[ruby-dev:26390]

* eval.c (rb_add_method): preserve safe level in the environment
  where a method is defined .

* eval.c (rb_call0): restore preserved safe level in the method
  execution.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 06:56:07 +00:00
nagai
9138b29822 * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
work (gives wrong order of arguments).
* ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace
  to support '-namespace' option of 'interp invokehidden' command
  on Tcl8.5.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 05:15:19 +00:00
nagai
d608e7cade 2005-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-01 05:15:16 +00:00
usa
4326e98025 * win32/Makefile.sub (OPTFLAGS): default global optimization to
disabled for all VC++ versions.  fixed: [ruby-dev:26897]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-31 05:43:51 +00:00
usa
97943549d5 * test/gdbm/test_gdbm.rb (teardown): should remove GDBM temporary
file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-31 02:37:15 +00:00
ocean
8d6aa6a539 2005-08-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-31 01:40:58 +00:00
ocean
b692adc093 * process.c (proc_detach, proc_setmaxgroups): missing argument type
declaration. (I recomment ANSI-style function)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-31 01:40:56 +00:00
nobu
0b631d6836 * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.
* lib/mkmf.rb (link_command, cc_command, cpp_command): expand
  variables at once, and quote hdrdir.  fixed: [ruby-core:05680]

* lib/mkmf.rb (libpathflag): quote paths.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 14:21:18 +00:00
nobu
e89058bcaa * eval.c (rb_rescue2): intialization miss. fixed: [ruby-dev:26917]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 14:06:55 +00:00
gotoyuzo
1ee9d8f30a * ext/digest/md5/md5ossl.h, ext/digest/rmd160/rmd160ossl.h,
ext/digest/sha1/sha1ossl.h: include <stddef.h> to avoid
  error in compilation with OpenSSL-0.9.8. [ruby-list:41068]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 10:43:36 +00:00
gotoyuzo
d5860a4eba 2005-08-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 10:43:30 +00:00
ocean
932c3997e9 * lib/rdoc/usage.rb: supress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-29 11:07:10 +00:00
ocean
ce350d61b4 * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]
* lib/rdoc/usage.rb: support the case when non-ruby code exists before
  shebang. (this is needed when ri.bat is executed on windows)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-29 10:56:05 +00:00
akr
1f4cfd6127 * lib/time.rb (Time.parse): extract fractional seconds using
Date._parse.  [ruby-talk:153859]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-28 16:23:51 +00:00
akr
08b4cf22f8 2005-08-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-28 16:23:46 +00:00
ocean
50f9044bf5 * ext/curses/curses.c ({curses,window}_clrtoeol): added. suggested
by Reyn Vlietstra.

* ext/curses/curses.c: chtype in curses is not `char', rahter `long'.
  [ruby-Bugs:2298]

* ext/curses/view.rb: String =~ String is deprecated.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-27 11:21:30 +00:00
ocean
308c783157 2005-08-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-27 11:21:25 +00:00
usa
c68ec26887 * test/logger/test_logger.rb (test_shifting_size): should close log
device before unlink, since some platform cannot unlink opened
  file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-24 01:55:31 +00:00
usa
5b6f86d8f3 2005-08-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-24 01:55:26 +00:00
nahi
2e553d11ef * lib/wsdl/xmlSchema/importer.rb (WSDL::XMLSchema::Importer#fetch): add
a workaround for importing an WSDL whose path begins with drive
          letter.  [ruby-dev:26242]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-20 15:14:35 +00:00
nahi
64f4737b1a 2005-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-20 15:14:30 +00:00
nahi
d17031f41a * lib/logger.rb (write, shift_log?, shift_log): file shifting race
condition bug fixed.  [ruby-dev:26764]

        * test/logger/test_logger.rb: tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-20 13:43:46 +00:00
nahi
4c0f3df36c 2005-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-20 13:43:40 +00:00
akr
4244e4ce53 * lib/time.rb (Time.apply_offset): fix a problem with last day of
month.  reported by Lucas Nussbaum.  [ruby-talk:152866]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-19 09:17:20 +00:00
akr
fdecc15c60 2005-08-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-19 09:17:15 +00:00
ocean
78604644e2 * bcc32/Makefile.sub (COMMON_HEADERS): reverted 1.42.2.24.
I misunderstood, bccwin32 on ruby_1_8 uses winsock2 originally.
  [ruby-dev:26806]

* win32/win32.h: include winsock2.h instead of winsock.h. (bcc32)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-18 03:50:47 +00:00
ocean
17223d3520 2005-08-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-18 03:50:41 +00:00
nobu
0b7d1b404f * eval.c (terminate_process): take String message.
* eval.c (rb_thread_switch): propagate the exception caused thread
  termination directly.  fixed: [ruby-core:05552]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-17 14:58:47 +00:00
nobu
eb544b2178 2005-08-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-17 12:35:58 +00:00
nobu
e60449249f * test/ruby/test_iterator.rb (test_block_passing): more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-17 12:35:56 +00:00
nobu
4fc0955e4a 2005-08-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-16 03:43:46 +00:00
nobu
5e8b113d4d * eval.c (rb_mod_autoload_p, rb_f_autoload_p): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-16 03:43:44 +00:00
nobu
2e37c7fe2f * object.c (rb_to_integer): argument constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-14 22:25:25 +00:00
nobu
4fbaa3aedc 2005-08-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-14 15:39:41 +00:00
nobu
6794aead0d * eval.c (rb_rescue2): reduce PUSH_TAG() as well as NODE_RESCUE.
[ruby-dev:26800]

* range.c (range_check, range_init): reduce uselse exceptions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-14 15:39:39 +00:00
nobu
e29813f764 * ChangeLog: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-13 09:55:14 +00:00
nobu
b54022b752 * eval.c (rb_block_pass): distinguish current block from others.
fixed: [ruby-dev:26274]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-13 09:52:06 +00:00
nobu
41349a4064 * ext/stringio/stringio.c (strio_set_string): disallow nil.
http://www.rubyist.net/~nobu/t/20050811.html#c05


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-13 09:36:12 +00:00
nobu
81cc5f0cd8 2005-08-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-13 09:36:07 +00:00
ser
69e5c7d297 * Fixed the inheritance bug in the pull parser that James Britt found.
* Indentation changes, and changed some exceptions to runtime
  exceptions.
* Backed out the patch that changed the versions
* Wasn't including Text class.
* Fixes issue:25 (Trac)
* Fixes ticket:3 (Issue38 in Roundup.)
* Numerous fixes in the XPath interpreter correcting, among other
  things, ordering bugs and some incorrect behavior.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-12 12:08:52 +00:00
ser
1b12d598f8 2005-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-12 12:08:49 +00:00
nobu
7e04df4e0b * ext/stringio/stringio.c: keep holding string after closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-11 14:29:46 +00:00
kou
8c2ae988f7 added ML number. [ruby-list:41018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-11 04:21:37 +00:00
kou
2bafec23f0 * lib/rss/1.0.rb (RSS::RDF::Channel#setup_maker_attributes):
removed self.

* lib/rss/maker/base.rb (RSS::Maker::ItemsBase#<=>): use #date
  instead of @date.
  (RSS::Maker::Base::self.def_array_element): added #size.

* lib/rss/maker/1.0.rb
  (RSS::Maker::RSS10::Channel#to_rss,
   RSS::Maker::RSS10::Items::Item#to_rss): cleared dc_dates set
  upped by using #date.

* lib/rss/maker/dublincore.rb
  (RSS::Maker::ChannelBase, RSS::Maker::ItemsBase::ItemBase):
  fixed opposite alias.

* test/rss/test_setup_maker_1.0.rb
  (RSS::TestSetupMaker10::test_setup_maker_items_sort): added some
  tests for RSS::Maker::ItemsBase#do_sort.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-11 04:08:05 +00:00
nobu
29c1d98017 2005-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-10 22:57:40 +00:00
nobu
ef42d998bd * test/ruby/test_iterator.rb (test_block_passing): yield in method
argument behaves differently.  [ruby-dev:26274]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-10 22:57:38 +00:00
matz
9b42142366 * bignum.c (rb_big_coerce): allow bignum x bignum coercing.
[ruby-dev:26778]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-10 01:37:25 +00:00
nagai
38a63b25bc * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys().
* ext/tk/lib/tk/itemconfig.rb: fix bug on handling
  __item_ruby2val_optkeys().
* ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys().
* ext/tk/lib/tkextlib/blt/component.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-10 01:32:44 +00:00
nagai
80766db4ae 2005-08-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-10 01:32:38 +00:00