Commit graph

7022 commits

Author SHA1 Message Date
aamine
661268aba7 * lib/net/http.rb: imported from trunk, rev 1.129
* lib/net/http.rb (add_field, get_fields): keep 1.8.2 backward compatibility.
* lib/net/https.rb: imported from trunk, rev 1.3.
* lib/net/https.rb: #use_ssl? definition moved from net/http.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-05 09:56:34 +00:00
ocean
c44118b8a0 * lib/pstore.rb: should return default value if name is not found.
[ruby-core:7304]

* lib/pstore.rb: should raise PStore::Error if not in transaction.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-05 05:28:11 +00:00
akr
914e4d244f * eval.c: apply the FreeBSD getcontext/setcontext workaround
only before FreeBSD 7-CURRENT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-04 13:54:53 +00:00
usa
49a2b019f6 * win32/win32.c (LK_ERR): ERROR_NOT_LOCKED is not an error.
In such situation, flock() should return 0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-04 12:21:55 +00:00
eban
bc0e58a181 * 2006-02-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-04 07:04:37 +00:00
ocean
1939b48f8d * numeric.c (fix_to_s): (2**32).to_s(2) fails with exception where
sizeof(int) == 4 < sizeof(long). [ruby-core:7300]

  I think the function name of rb_int2big is quite misleading.
  This should be "rb_long2big".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-04 06:58:43 +00:00
eban
1a321a3f42 * 2006-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-03 06:23:41 +00:00
ocean
e5e2253fbb * ext/syck/syck.c (syck_move_tokens): should reset p->cursor or etc
even if skip == 0. This causes buffer overrun.
  (ex: YAML.load('--- "..' + '\x82\xA0' * 511 + '"'))


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-03 06:11:13 +00:00
ocean
2debdd1063 * ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
emitter's marker. if marker points to the end of buffer, this causes
  buffer overrun. (ex: YAML.dump("." * 12288))


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 14:59:06 +00:00
matz
737ef3f4a3 * eval.c (eval): need not to protect $SAFE value.
[ruby-core:07177]

* struct.c (rb_struct_select): update RDoc description.
  [ruby-core:7254]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 07:18:12 +00:00
ocean
2bde26b0ff commit miss...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 06:13:21 +00:00
eban
d08de62c1c * 2006-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 05:59:14 +00:00
ocean
9a4eb635d1 * configure.in: The isinf is not regognized by autoconf
library guesser on solaris 10. [ruby-core:7138]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-02 05:52:17 +00:00
eban
cae08b6d74 * 2006-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-01 13:47:16 +00:00
ocean
e4cddd7d2e * configure.in, hash.c (ruby_setenv): use setenv(3) and unsetenv(3)
where they are supported. modifing environ variable seems to
  segfault solaris 10. [ruby-core:7276] [ruby-dev:28270]

* ruby.c (set_arg0): if use setenv(3), environ space cannot be used
  for altering argv[0].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-01 13:27:47 +00:00
nagai
5cc002a132 * ext/tk/lib/multi-tk.rb: add MultiTkIp#eval and bg_eval.
* ext/tk/lib/tk/namespace.rb: TkNamespace#eval was enbugged at the
  last commit. Now it will return a proper object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-31 03:01:31 +00:00
eban
43e0fa47da * 2006-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-30 15:15:07 +00:00
ocean
4c21f9d61f * ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV.
ex: YAML.load("!map:B {}"). [ruby-core:7217]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-30 15:13:11 +00:00
eban
52af732300 * 2006-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-28 05:36:25 +00:00
ocean
40f9da0873 * lib/rdoc/usage.rb: support "a:0:33" style caller[-1]. In this case
file name is "a:0". I don't know this really happens though...
  [ruby-Bugs:3344]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-27 22:58:07 +00:00
suke
63de8155b0 add win32ole
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-27 21:44:51 +00:00
suke
d4ced2d25d add .document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-27 12:41:52 +00:00
nobu
71411154db * 2006-01-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-25 13:32:08 +00:00
nobu
3da2897dc0 * configure.in, dln.c, file.c, intern.h, missing.h (eaccess): use
system routine if provided.  fixed: [ruby-core:07195]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-25 13:30:11 +00:00
nobu
26dd7b1d68 * lib/test/unit/autorunner.rb (process_args): ignore arguments after
'--' so that test scripts can handle them.  fixed: [ruby-dev:28258]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-22 14:28:02 +00:00
akr
f41377f226 * eval.c (POST_GETCONTEXT): define separately from PRE_GETCONTEXT on
IA64 to avoid reusing variable address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-22 13:17:39 +00:00
eban
1b656356f3 * 2006-01-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-22 11:38:01 +00:00
akr
2d386e5b9a * eval.c (ruby_setjmp): workaround for FreeBSD/i386
getcontext/setcontext bug.
  [ruby-dev:28263]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-22 11:36:08 +00:00
eban
5d07469223 * 2006-01-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-21 01:47:41 +00:00
akr
c39dcdecae add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-20 15:45:13 +00:00
akr
2fab485a46 * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): use only for SPARC and IA64
before gcc 4.0.3.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-20 15:39:58 +00:00
aamine
52c0bca7fb * lib/fileutils.rb (mv): should remove file after copying. [ruby-dev:28223]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-19 13:22:13 +00:00
eban
55ab288328 * 2006-01-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-18 16:20:19 +00:00
akr
946308af67 * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): don't clobber %l7 of SPARC
if enable-shared.
  (ruby_setjmp): call FUNCTION_CALL_MAY_RETURN_TWICE after getcontext
  too.
  reported by Pav Lucistnik and Marius Strobl.
  http://lists.freebsd.org/pipermail/freebsd-sparc64/2006-January/003739.html


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-18 15:01:22 +00:00
usa
c81b214021 * win32/setup.mak (MAKE): workaround for nmake 8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-17 02:33:29 +00:00
usa
a8f3d9a912 * 2006-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-17 02:11:52 +00:00
usa
1c102070bb * win32/{Makefile.sub,setup.mak}: invoke .bat via shell. workaround
for nmake 8.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-17 02:11:32 +00:00
eban
ad38977106 * 2006-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-16 01:37:56 +00:00
ocean
bfcae60260 * ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):
should output complex key mark even if map's key is empty seq/map.
  [ruby-core:7129]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-16 01:29:58 +00:00
akr
9a720a6c07 * io.c (READ_DATA_PENDING, READ_DATA_PENDING_COUNT): defined
for DragonFly BSD 1.4.0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 20:41:02 +00:00
ocean
8190c93409 * file.c (rb_file_s_chmod): avoid warning where sizeof(int) !=
sizeof(void*).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 18:44:34 +00:00
eban
cdefa0421d * 2006-01-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 17:18:34 +00:00
akr
91cd9984f7 Tue Jan 11 15:00:00 2006 Ville Mattila <mulperi@iki.fi>
* io.c (READ_PENDING*): Support solaris 64-bit enviroments.
         Solaris defines a opaque FILE struct when compiling 64 bit
         binaries. This means that we dont have access to _ptr etc.
         members anymore. The solution by Steven Lumos is to define
         FILE64 that has needed members available. I've modified
         the origanal patch a bit so that it compiles both with gcc
         and now free sun studio 11 compiler and both amd64 and sparc.
         NOTE! We have to 64 bit solaris FILE structure time to time
         otherwise we'll get breakage.
         [ruby-core:7106]

Fri Jan  6 10:16:20 2006  Steven Lumos <steven@lumos.us>

       * io.c (READ_DATA_PENDING): defined for 64bit Solaris on SPARC.
         [ruby-core:7057]
         (READ_DATA_PENDING_COUNT): ditto.
         (READ_DATA_PENDING_PTR): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 16:47:34 +00:00
ocean
1383c1eb2d * lib/rdoc/diagram.rb:
- properly quote bare element attributes
    - terminates dangling elements (e.g. <img>, <br>, <link>, etc)
    - converts "CVS" to the more HTML-friendly acronym element
    - adds missing type attributes to style elements

  based on Paul Duncan's patch <pabs@pablotron.org> [ruby-core:7028]

* lib/rdoc/generators/html_generator.rb: ditto.
* lib/rdoc/generators/template/html/hefss.rb: ditto.
* lib/rdoc/generators/template/html/html.rb: ditto.
* lib/rdoc/generators/template/html/kilmer.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-13 10:27:52 +00:00
eban
50371feb52 * 2006-01-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-12 03:20:59 +00:00
nagai
4bae48cf0e * ext/tk/sample/tkballoonhelp.rb: [bug fix] couldn't add to a widget
which is constructed with TkComposite module.
  [new feature] support 'command' option which is called just before
  popping up the balloon help.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-12 02:56:11 +00:00
akr
94ba775bac bit more explanation for previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 11:02:36 +00:00
akr
84be7576b8 * gc.c (garbage_collect): mark ruby_current_node.
if an exception is raised in a finalizer called by
  rb_gc_call_finalizer_at_exit, ruby_set_current_source may use
  collected ruby_current_node and mark_source_filename may corrupt
  memory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 10:50:17 +00:00
ocean
89a5e51fb4 Commit miss again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 09:37:08 +00:00
ocean
37bafa322a Sorry, commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-01-10 04:54:10 +00:00