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

15074 Коммитов

Автор SHA1 Сообщение Дата
mame 19f45f853c * bignum.c (rb_big_mul): faster multiplication by Karatsuba method and
twice faster square than normal multiplication.

* random.c (rb_rand_internal): used by Bignum#*.

* test/ruby/test_bignum.rb: add some tests for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-14 03:59:02 +00:00
akr 529ad093d4 new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-14 03:52:13 +00:00
yugui 834e3662ba reverts r20713
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-14 00:28:10 +00:00
nobu 365d27a8b9 properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 23:42:32 +00:00
svn c0bf7abb21 * 2008-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 16:40:06 +00:00
akr 6e03277db0 * process.c (forked_child): new variable.
(before_exec): don't call rb_thread_stop_timer_thread if
  forked_child.
  (after_exec): reset forked_child after rb_thread_start_timer_thread.
  (rb_fork): set forked_child just after fork in child.

* ext/pty/pty.c (chfunc): extracted from establishShell.
  (establishShell): use rb_fork.

  [ruby-dev:37418]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 16:40:01 +00:00
yugui f3634e5dc8 * common.mk (help): describes more targets.
based on a patch by Michael Klishin. [ruby-core:20523].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 13:20:26 +00:00
matz 3d28b3bf3b * string.c (sym_printable): wrong condition for string iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 10:35:06 +00:00
matz 0241c6506f * string.c (sym_inspect): quote if symbol contains non-printable
characters.  [ruby-dev:37398]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 08:09:23 +00:00
matz d6023d88a2 * string.c (sym_equal): remove documentation error "Otherwise,
compares them as strings".  [ruby-dev:37398]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 08:07:40 +00:00
yugui 87f6de3e18 * encoding.c (default_external): endless recursion during
loading a locale encoding on some locale.
  fixed by Nobuyuki Nakada.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 07:08:56 +00:00
kouji e53990e4bd * ruby.c (process_options): fixed default_internal is nil.
(closes #862)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 06:58:58 +00:00
yugui ada58fe013 * test/ruby/enc/test_utf16.rb: feature changed in r20626.
follows it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 05:26:37 +00:00
yugui a6c69a7d35 * test/ruby/test_m17n_comb.rb: feature changed in r20626.
follows it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 04:45:56 +00:00
tadf ac6e87fc59 * complex.c: use rb_usascii_str_new2 instead of rb_str_new2.
* rational.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 04:05:25 +00:00
yugui dd2a86cf11 * test/ruby/test_m17n.rb: feature changed in r20626.
follows it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 03:49:46 +00:00
yugui 3b1a65add3 * lib/minitest/test.rb (MinTest::Unit#location):
skips user-defined assertions as MiniTest's.
  e.g. for test/ruby/test_m17n.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 03:41:01 +00:00
ryan ac6024f522 Imported minitest 1.3.2 r4503.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 00:22:31 +00:00
tadf 0e0c53a092 Numeric#scalar? has been renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 00:03:18 +00:00
tadf 2209f072fc must be typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 23:59:36 +00:00
tadf 8729368f14 * complex.c (nucomp_canonicalization): renamed.
* ext/math/complex.c: followed the above change.

	* rational.c (nurat_canonicalization): renamed.

	* ext/math/rational.c: followed the above change.

	* configure.in: defines a new macro.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 23:40:55 +00:00
kouji b7e026fb3f * ChangeLog: commit miss (r20680).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 16:15:09 +00:00
svn 86a625f8bb * 2008-12-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 16:13:14 +00:00
kouji 8b123714e2 * ext/readline/readline.c
(readline_s_get_completion_append_character): uses locale
  encoding but not ASCII-8BIT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 16:13:11 +00:00
tadf 75fbac3b0d * complex.c, rational.c: do not use RUBY_VERSION_CODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 13:13:44 +00:00
kouji 02a37bee67 * ext/readline/readline.c: r20662 reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 12:44:08 +00:00
yugui 58740ef881 * encoding.c (rb_enc_set_default_external): default_internal can be
nil, but default_external cannot.

* encoding.c (rb_set_default_internal): adds rdoc.

* encoding.c (enc_find): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:35:39 +00:00
yugui 63a534194c * common.mk (run, runruby, parse, gdb, gdb-ruby): you can also run
other scripts than $(srcdir)/test.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:35:31 +00:00
kouji 74ea7d93c1 * ext/readline/readline.c (readline_readline): changed the message
of IOError to 'closed stdin' from 'stdin closed' if stdin was
  closed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:17:01 +00:00
kouji cfb8e8301e * ext/readline/readline.c: used the ExportStringValue macro
instead of the OutputStringValue macro. removed the
  OutputStringValue macro.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:04:42 +00:00
knu 1757d80076 - Remove doc/NEWS when we have doc/NEWS-1.9.1.
- Add NEWS for keeping changes since 1.9.1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 09:46:28 +00:00
knu cef2867e66 Add historical NEWS files for the record.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 09:42:26 +00:00
nobu 303c28d49b * parse.y (yycompile0): ruby_eval_tree_begin is always 0 when
ruby_eval_tree is 0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 07:23:24 +00:00
yugui aa06e69000 * encoding.c (enc_get_default_encoding): removed.
Generalizing rb_default_{external,internal}_encoding seems to be
  difficult. 
  default_external cannot be NULL even before detected. [ruby-dev:37390]

* encoding.c (rb_default_external_encoding): has its own
  implementation again.

* encoding.c (rb_default_internal_encoding): ditto.

* gem_prelude.rb: added notice.

* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): uses locale
  encoding but not ASCII-8BIT.

* ruby.c (process_options): refers less to default_external.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 05:25:39 +00:00
nobu d7f67b4970 * load.c (rb_feature_p): load path must be expanded.
[ruby-dev:37388]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 02:00:55 +00:00
nobu 1eeeb00a0a * configure.in (rb_version): greps only the line that defines version.
* version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:28:10 +00:00
nobu 8e3bf17b03 * complex.c, rational.c: do not use RUBY_VERSION_CODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:20:57 +00:00
nobu 1a5acb464d properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:20:04 +00:00
nobu dab7d5d8e3 * string.c (rb_string_value_ptr, rb_to_id): do not use a side
effect expression in RSTRING_PTR.

* string.c (rb_str_split_m): simplified the argument of
  RSTRING_LEN.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:19:23 +00:00
svn 279363b615 * 2008-12-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 15:11:18 +00:00
tadf 0d7f4ad828 do not pass -infinity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 15:11:14 +00:00
tadf 50c1da22df * lib/cmath.rb (sqrt): should pass nan or infinity to the original
method.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 14:49:54 +00:00
kou 876e1b87e7 * lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
RSS::Maker.[] returns a maker class corresponds to passed version.

* test/rss/test_maker_*.rb: add tests for RSS::Maker.[].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 12:06:26 +00:00
kou 7ff55ae6bb * ChangeLog: add missing 'Nobuyoshi Nakada'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 12:03:51 +00:00
knu 9f37bc558c Remove things that have been backported to the ruby_1_8 branch. [trunk-only]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:25:49 +00:00
knu 566e7da773 Elaborate with Range#include?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:09:02 +00:00
nobu e5f1572583 * encoding.c (rb_enc_aliases_enc_i): skips default internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:05:21 +00:00
akr cbc6a104b2 * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
lib/test/unit/testcase.rb: ditto.
  at asakusa.rb.  [ruby-core:20014]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:40:24 +00:00
akr 240378856b * test/ruby/test_io.rb (test_dup_many): extracted from test_dup.
test in ruby subprocess.  at asakusa.rb.  [ruby-dev:35648]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:25:05 +00:00
akr 120ab4b826 * lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.
[ruby-core:19690]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:21:14 +00:00