Граф коммитов

16992 Коммитов

Автор SHA1 Сообщение Дата
nobu 6d781384c5 * vm_eval.c (rb_f_throw): fixed rdoc about execption.
[ruby-core:23824]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-12 21:45:52 +00:00
nobu a860431e3b * file.c (file_expand_path): associate the input encoding when
copying an absolute path.  [ruby-dev:38594]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-12 05:56:53 +00:00
nobu 7915aed875 * string.c (str_replace_shared): shared target must be frozen.
[ruby-core:23727]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 17:41:27 +00:00
tadf e03cafe16c * lib/cmath.rb (exp): omitted redundant function call.
and some adjustments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 12:08:30 +00:00
nobu 610c0568c4 * ext/bigdecimal/bigdecimal.c (gfCheckVal): never used.
* ext/bigdecimal/bigdecimal.c (VpInit): fixed format modifiers.

* ext/bigdecimal/bigdecimal.c (VPrint): constified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 08:49:37 +00:00
svn 831e03ebd6 * 2009-06-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 06:29:11 +00:00
matz cf8c9c3dd1 * lib/prime.rb: documentation typo fixed. a patch from okkez.
[ruby-dev:38586]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-11 06:29:06 +00:00
usa a610b0a959 * dir.c (dir_s_getwd): directory path's encoding should be filesystem's
one.

	* lib/tmpdir.rb: ditto (but not finished yet.)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-10 09:15:55 +00:00
svn b28d9b6d18 * 2009-06-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 21:39:13 +00:00
drbrain 31c94ffeb5 Update to RubyGems 1.3.4 r2223
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 21:38:59 +00:00
tadf a6afbaeb3b * lib/cmath.rb (log10): raised exception when the given number is
a negative real.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 13:43:49 +00:00
nobu d1dd871707 * dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro at
[ruby-core:23767].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 06:13:16 +00:00
nobu 11fd9224f7 * dir.c (sys_warning): get rid of type-punning function cast.
* dir.c (ruby_glob0): get rid of possible overflow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 06:11:10 +00:00
nobu a5488474c2 * Makefile.in, win32/Makefile.sub (RMALL): need for distclean-rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-09 01:58:51 +00:00
ko1 79b62da9b4 * thread.c: rename functions which require a parameter
"rb_thread_t *", the prefix to be rb_threadptr_ instead of
  rb_thread_.
* thread.c (rb_thread_add_event_hook(), rb_thread_remove_event_hook):
  change the parameter type from rb_thread_t * to VALUE.
* eval.c, eval_error.c, eval_intern.h, signal.c, vm_core.h, vm_eval.c:
  ditto.
* include/ruby/intern.h: remove decl of rb_thread_signal_raise() and
  rb_thread_signal_exit().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-08 16:14:06 +00:00
matz 33a8def1e1 * hash.c (rb_hash_reject_bang): always check frozen status.
[ruby-core:23715]

* hash.c (rb_hash_update): ditto.

* hash.c (rb_hash_reject_bang): call rb_hash_foreach() directly.

* hash.c (rb_hash_update_i): call st_insert() directly.

* hash.c (rb_hash_update_block_i): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-08 05:44:17 +00:00
ko1 0cdfbc9446 * thread_pthread.c (rb_thread_create_timer_thread): print fatal error
message to stderr instead of using rb_bug().
* KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07 23:59:58 +00:00
tadf 27174800d4 * lib/cmath.rb (log): avoided redundant expression.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07 13:46:56 +00:00
svn 2a0342a442 * 2009-06-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07 10:05:16 +00:00
tadf c77cd2c11b removed extra spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-07 10:05:14 +00:00
svn 8376d7cca0 * 2009-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-04 22:15:11 +00:00
matz fbd58422de * lib/mkmf.rb (#link_command): should dup CONFTEST_C which is
frozen.  ref  [ruby-core:23675].  [ruby-core:23702]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-04 22:15:03 +00:00
nobu 0d28ad1985 * README.EXT: typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-04 00:53:19 +00:00
svn dd9338bc66 * 2009-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 17:26:42 +00:00
matz 6c987f3e06 * lib/base64.rb: typo fixed. a patch from okkez. [ruby-dev:38564]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 17:26:35 +00:00
matz cab726cfac * enum.c (enum_first): should check negative length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 00:06:40 +00:00
matz 967001d9da * enum.c (first_i): Enumerator#first should consume only what is
needed.   a patch from Marc-Andre Lafortune.  [ruby-core:23661]

* enum.c (enum_first): call to_int once for an argument.  based on
  a patch from Marc-Andre Lafortune.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-03 00:02:14 +00:00
svn 6eaf79f39a * 2009-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-02 15:24:30 +00:00
matz c5949a0e58 * string.c (rb_str_gsub_bang): modify check at the beginning.
[ruby-core:23662]  ref [ruby-core:23657]

* string.c (rb_str_rstrip_bang): ditto.  [ruby-core:23657]

* string.c (rb_str_chop_bang): ditto.

* string.c (rb_str_chomp_bang): ditto.

* string.c (rb_str_reverse_bang): modify check added.  [ruby-core:23671]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-02 15:24:23 +00:00
svn 8b362c8a23 * 2009-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-02 04:29:36 +00:00
kazu 06ac718546 * test/ripper/test_filter.rb: add tests. see [ruby-dev:37856]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-02 04:29:31 +00:00
nobu 6c743b0e5a * cont.c (cont_capture, fiber_store): reraise transferred error.
* cont.c (fiber_switch): transfers dead fiber error to the previouse
  or root fiber if the current fiber is dead.  [ruby-core:23651]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 02:21:31 +00:00
nobu 4c79d4bee2 * include/ruby/intern.h (rb_exc_new2): optimization for literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 01:41:43 +00:00
nobu 99945ed664 * cont.c: fixed types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-01 01:11:04 +00:00
svn cfacda1a9f * 2009-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 22:46:51 +00:00
matz 5594f2bffb * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf if
exp is bigger than DBL_MANT_DIG.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 22:46:43 +00:00
nobu 17d88c0333 * lib/mkmf.rb (create_makefile): checks for duplication of source
files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 14:28:04 +00:00
nobu d6d8d973c8 * file.c (istrailinggarbage): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-31 14:26:40 +00:00
nobu 08e914f331 * struct.c (Init_Struct): made #to_s an alias to #inspect to
reduce the result of recursive struct.  a patch from ujihisa at
  [ruby-dev:38554].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 08:10:10 +00:00
nobu 2a6fb9690a * hash.c (Init_Hash): made #to_s an alias to #inspect to reduce
the result of recursive array.  a patch from ujihisa at
  [ruby-core:23601].  [ruby-dev:38555]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 08:08:25 +00:00
nobu 893349cadf * hash.c (rb_hash_inspect): rescurses with defined ID to get rid
of extra call.  [ruby-core:23601]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 01:04:34 +00:00
nobu 82f2e90d07 * enum.c (collect_all): checks interrupts. [ruby-core:23594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-29 00:30:02 +00:00
nobu f0371f2f28 * configure.in (THREAD_MODEL): reject unknown value and checks
pthread.h only when pthread.  [ruby-core:23577]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 22:39:24 +00:00
matz 62005d344b * sample/optparse/opttest.rb: typo fixed. [ruby-dev:38544]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 18:48:49 +00:00
matz 4f6bfb4a83 * time.c (time_strftime): update RDoc according to info from
Marc-Andre Lafortune in [ruby-core:23575].  [ruby-core:23564]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 18:44:54 +00:00
akr 0fd221bd78 * lib/uri: don't set @parser if it is DEFAULT_PARSER for marshaling
URI objects between Ruby 1.8 and Ruby 1.9.
  [ruby-dev:38377]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 17:48:54 +00:00
matz 7afe0c92ea * marshal.c (w_encoding): more compact encoding information for
US-ASCII and UTF-8.  [incompatible] [experimental]

* marshal.c (r_ivar): restore :E encoding information.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 16:31:51 +00:00
matz 80ad1473cf * bignum.c (bigand_int): new function to calculate bignum and
fixnum without allocating internal bignum.

* bignum.c (bigor_int): ditto.

* bignum.c (bigxor_int): ditto.

* bignum.c (bigand_int): even less object allocation.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 16:16:57 +00:00
svn 72f4e2c709 * 2009-05-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 15:56:21 +00:00
matz 844a6890c6 * st.c (st_insert2): new function with processing new key,
e.g. copy.

* hash.c (rb_hash_aset): use st_insert2() to reduce redundant
  st_lookup calls.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 15:56:14 +00:00