Commit graph

707 commits

Author SHA1 Message Date
marcandre
941025c31b * lib/bigdecimal.rb: fix comparison operators [ruby-core:26646]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-06 22:05:52 +00:00
nobu
8f591c434d * marshal.c (marshal_load): should set taintness. [ruby-dev:39723]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04 12:51:32 +00:00
nahi
6e06327817 * test/stringio/test_stringio.rb: use 1.8 methods for easier backport.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 13:45:12 +00:00
nahi
6d03001cf1 * test/stringio/test_stringio.rb: imported tests from trunk. it has 2
failures which can be fixed by backporting r17739 from trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03 13:26:09 +00:00
nobu
394dbd9e8d * eval.c (proc_invoke): unbound block created by define_method
cannot call super.  [ruby-core:26984]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-02 08:32:52 +00:00
nahi
cc9522f840 * test/digest/test_digest_extend.rb: added tests for digest framework.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-01 09:03:47 +00:00
nahi
3206785c00 * test/digest/test_digest_extend.rb: Added tests for current digest
framework.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 15:04:44 +00:00
knu
f51983e848 * test/ruby/test_array.rb (TestArray#test_splat): Add tests for a
recently introduced bug in array splatting.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-25 06:11:12 +00:00
nobu
6ead29d044 * eval.c (rb_method_missing): adjusted format and argument number.
* eval.c (rb_call): fixed for super in cached method.
  [ruby-dev:39757]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-23 14:59:28 +00:00
shugo
c20c7f1e2e * lib/net/imap.rb (flag_list): untaint strings to intern in the safe
level 1.
* lib/net/imap.rb (max_flag_count=): new methods to set the max
  number of flags interned to symbols.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-19 13:38:35 +00:00
marcandre
9c197735be * eval.c (method_inspect, method_name, mnew): Bug fix when
method created from an alias.
  Based on a patch by Peter Vanbroekhoven [ruby-core:22040]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08 16:55:30 +00:00
nobu
3241664bc3 * eval.c (call_trace_func): remove the trace hook if any exception
raised.  [ruby-list:46515]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 02:01:36 +00:00
nobu
c417db90cb * test/ruby/test_settracefunc.rb: skip thread events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-06 01:45:31 +00:00
naruse
ee3e66e7a6 Merged r22308. [ruby-dev:39637]
* hash.c (rb_hash): always return a fixnum value because a return
  value of rb_hash may be used as a hash value itself and bignums have
  no unique VALUE.

* test/ruby/test_hash.rb: add a test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 12:22:24 +00:00
naruse
60a40ecaf6 * gc.c (rb_obj_id): a Fixnum which is beyond signed long
was converted to a Bignum in calculating its hash.
  [ruby-dev:39637]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 11:56:11 +00:00
naruse
b7d63cbb85 * parse.y (args): use splat_array.
fix: when *foo doesn't splat. [ruby-list:46517]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 03:11:27 +00:00
nahi
76af5abe21 * lib/net/http.rb (Net::HTTPResponse#each_response_header):
accept multiline message header of HTTP response.  see #1796.
          cf. RFC 2616 '4.2 Message Header'.  

        * test/net/http/test_httpresponse.rb: added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-30 13:05:23 +00:00
nobu
20a2b656c2 * string.c (rb_str_inspect): get rid of adding garbage to short
UTF-8 string.  [ruby-dev:39550]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-27 13:05:48 +00:00
nobu
ce4e9dff9b * io.c (io_fwrite): adjust stdio file position after direct write on
BSDish platforms.   [ruby-core:26300]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-26 03:06:29 +00:00
nahi
69743fbd85 * lib/monitor.rb (MonitorMixin.mon_release): ensure the scheduled
thread to be alive when a thread is releasing a monitor. #2240


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-20 16:14:25 +00:00
nobu
ac0b7f38fe * test/ruby/test_{queue,thread}.rb: backported from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 01:10:44 +00:00
nobu
d2c1ab806d * eval.c (rb_clear_cache_for_undef): clear entries for inherited
methods.  [ruby-core:26074]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 00:52:02 +00:00
nobu
5b5ab17388 * test/ruby/test_object.rb: backported from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 00:28:23 +00:00
nobu
c6b1f4ad06 * test/ruby/test_array.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 00:21:49 +00:00
nobu
ac418c850e * test/ruby/envutil.rb: get rid of double loading.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-16 00:20:46 +00:00
nobu
aee3b87f8c * ext/iconv/iconv.c (iconv_create): cannot retry with given block.
[ruby-dev:39487]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:21:00 +00:00
nobu
eae49e23e0 * test/iconv/test_option.rb: removed particular implementation
specific tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-15 05:17:06 +00:00
nobu
bf40bc6837 * marshal.c (struct {dump,load}_arg): manage with dfree, instead
of using local variable which may be moved by context switch.
  [ruby-dev:39425]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-04 10:30:56 +00:00
nobu
ce897307b0 * eval.c (rb_thread_start_timer): start to catch SIGVTALRM together
with timer thread.   [ruby-core:25606]

* eval.c (rb_thread_atfork): stop timer thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-16 07:51:07 +00:00
akr
d2e45f4950 remove temporally files explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 17:59:49 +00:00
akr
3d93c5198f make tempfile prefix more descriptive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 05:46:38 +00:00
nobu
d24f4c0fe3 * io.c (rb_io_binmode): check if closed regardless platforms.
[ruby-core:25363]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-04 21:29:29 +00:00
nobu
d380745cc3 * gc.c (gc_sweep): makes new room if object space is full of
finalized objects and has no free objects.  [ruby-dev:39201]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-30 06:12:37 +00:00
kou
bcffee6938 * lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bug
that RSS Maker doesn't accept 'false' as guid's isPermaLink.
  Reported by Joe Holt. Thanks!!!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 12:32:24 +00:00
nobu
27a9a7d1db * io.c (argf_eof): go to the next file if called after ARGF.close
or ARGF.skip.  [ruby-core:24561]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 10:17:39 +00:00
nobu
030aec1c04 * test/ruby/test_argf.rb: partially backported from the trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-26 09:37:55 +00:00
knu
81a2573e20 * lib/time.rb, test/test_time.rb: Move test code to a separate
file to save memory and compile time. [Bug #1812]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-24 11:44:29 +00:00
nobu
3948410b04 * test/ruby/test_proc.rb (test_return_from_proc): test for [ruby-core:24097].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 07:09:53 +00:00
kou
7b998913fe Merge r24865:23867 from trunk.
* NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: add
item.guid.permanent_link? and item.guid.permanent_link=.

* NEWS: rss: 0.2.5 -> 0.2.7.

* lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 04:50:37 +00:00
matz
1e7898d76a * ext/bigdecimal/bigdecimal.c (VpCtoV): big number should result
to infinite.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): rounding mode
  condition check updated.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpPower): should handle NaN and
  Inf.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): divmod should
  raise ZeroDivisionError.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should check
  exception for VP_EXCEPTION_UNDERFLOW and VP_EXCEPTION_ZERODIVIDE.
  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpException): ditto.

* ext/bigdecimal/bigdecimal.h (VP_EXCEPTION_ZERODIVIDE): new error
  code.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_round,
  BigDecimal_truncate, BigDecimal_floor, BigDecimal_ceil): eagerly convert
  bigdecimal to integer.  backported from 1.9.

* ext/bigdecimal/bigdecimal.c (VpMult): free internal Real.
  backported from 1.9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 06:06:01 +00:00
kou
0b5294ba03 merge r23451.
* lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Image
  element causes parse error even if ignore_unknown_element mode.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:48:53 +00:00
kou
6a5794bd7c merge r23450.
* lib/rss/maker.rb, lib/rss/maker/0.9.rb,
  test/test_maker_*.rb: add RSS::Maker.supported?


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:46:22 +00:00
kou
df8d8394ba merge r23449, r23453.
* lib/rss/content/*, lib/rss/dublincore/*: fix circular require.
* test/test_maker_atom_feed.rb,
  test/test_maker_atom_entry.rb: suppress warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:44:15 +00:00
kou
54550f9dec merge r23448.
* lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:
  remove needless codes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:41:54 +00:00
kou
b2cc48a1d2 merge r23446.
* lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,
  test/test_maker_atom_feed.rb: fix duplicated dc:date.
  Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:39:06 +00:00
kou
7212b5fd37 merge r23445.
* lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,
  test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb:
  RSS 1.0 and Atom feed maker treat maker.channel.language as
  maker.channel.dc_language.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:36:17 +00:00
kou
97c6598262 merge r23442.
* lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION):
  0.2.5 -> 0.2.6.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16 10:34:06 +00:00
nobu
072ccff04d * eval.c (rb_thread_join), ext/thread/thread.c (wake_one): adjusts
targets of rest waiting threads to join.  [ruby-core:23457]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-15 08:33:52 +00:00
nobu
9ad6c7dae1 * test/thread/test_thread.rb: changed indent level to 2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-15 05:28:05 +00:00
kazu
5a7a16de68 test/test_timeout.rb: backported from 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-28 10:11:19 +00:00