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

17026 Коммитов

Автор SHA1 Сообщение Дата
akr 841cf3b948 * time.c (num_exact): use to_r for T_FLOAT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 20:38:57 +00:00
akr 36b84733f4 * time.c (quo): return an integer if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 20:17:00 +00:00
akr 2cb0c38014 unused variable removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 18:48:34 +00:00
svn db0721aaeb * 2009-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 18:46:41 +00:00
akr d516a3e471 rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 18:45:57 +00:00
akr 2f8b6234cd * include/ruby/intern.h (rb_time_num_new): declared.
* time.c (nsec2timev): extracted from time_new_internal.
  (time_new_internal): change argument to VALUE.
  (rb_time_new): follow the argument change.
  (rb_time_nano_new): ditto.
  (rb_time_num_new): new function.

* ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to
  represent struct bintime preciously.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 12:11:53 +00:00
nobu ae9c138e2d * test/ruby/test_marshal.rb (TestMarshal#test_limit): test for
[ruby-core:24100].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-01 02:32:24 +00:00
nobu 4bef732db1 * marshal.c (w_encoding): encodings need extra depth.
[ruby-core:24100]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 23:46:20 +00:00
nobu 01430b6e69 * enum.c (enum_grep): gets rid of type-punning calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 21:47:14 +00:00
matz 5d7a215f6e * re.c (reg_match_pos): adjust offset based on characters, not
bytes.  [ruby-dev:38722]

* string.c (rb_str_offset): new function.

* string.c (rb_str_index_m): no call to rb_reg_adjust_startpos().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 09:06:48 +00:00
nobu b472f9b61a * tool/*: executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 08:02:13 +00:00
nobu 9a46638fb3 * tool/rbinstall.rb: renamed to get rid of collision against
instruction.rb on command line completion of shell.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:57:11 +00:00
nobu 9ae3b070c1 * tool/mkconfig.rb (RbConfig.expand): get rid of exceptions on
frozen strings unless really changed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:55:36 +00:00
nobu 99c8ded878 * tool/file2lastrev.rb: get rid of global variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:53:22 +00:00
nobu fd83230726 * tool/compile_prelude.rb: use US-ASCII name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:48:52 +00:00
nobu d06f74d736 * insns.def, tool/instruction.rb: fixed types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:46:44 +00:00
nobu 7259c3f2e0 * tool/*: executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:40:05 +00:00
nobu 4ac820c0bf * tool/{generic_erb,parse,strip-rdoc,transcode-tblgen,vtlh}.rb: executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 07:33:21 +00:00
nobu 23a32d6444 * include/ruby/oniguruma.h, include/ruby/re.h, re.c, regcomp.c,
regenc.c, regerror.c, regexec.c, regint.h, regparse.c: use long.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 02:08:54 +00:00
nobu 88ca298efb * dln.c (dln_find_1): fixed index overrun.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-30 02:06:04 +00:00
drbrain 4a29a3e90b Remove suprious #dump on version
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 23:53:36 +00:00
drbrain d88b7ea530 summary is required in a valid gemspec, fixes gem list -d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 23:44:48 +00:00
yugui cbb56c7514 Doxy-comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:52:57 +00:00
yugui 2d42e704f4 Doxy-comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:39:28 +00:00
yugui d6ef893798 * tool/strip-rdocs.rb: supports QT style doxy-comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:39:14 +00:00
tadf ad1d5a3c31 * lib/cmath.rb (log2, cbrt): added. [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:25:11 +00:00
tadf c8b995e7ac reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:22:02 +00:00
tadf 59a9da6443 * complex.c (nucomp_expt): do not use rb_fexpt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 16:20:32 +00:00
yugui 8bacaf1f5c * object.c: updated the diagram of metaclass hierarchy in rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 15:34:30 +00:00
svn da2c21614a * 2009-06-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 15:34:10 +00:00
yugui d154bc4c7d * Doxyfile.in: removed. merged into template/Doxyfile.template
* configure.in: new checking for dot and doxygen.

* template/Doxyfile.template: merged with Doxyfile.in.
  configured some options.

* common.mk (capi): use $(DOXYGEN) instead of "doxygen".
  (Doxyfile): removed a duplicate entry in the dependency.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 15:34:05 +00:00
tadf aa68d47b88 * complex.c (nucomp_expt): checks exactness.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 12:03:25 +00:00
tadf 51e70cae46 added a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 11:33:52 +00:00
tadf 2b9df66146 * rational.c (float_to_r): always returns rational.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 11:31:03 +00:00
nobu ee5add4a79 * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 09:56:03 +00:00
nobu ae72efc541 * file.c (BUFCHECK): use common bdiff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 08:16:19 +00:00
nobu b861b2a6b2 * file.c (file_expand_path): should copy original encoding.
[ruby-dev:38612]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-29 08:14:39 +00:00
svn c212f81dde * 2009-06-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 16:22:20 +00:00
yugui 4a1f1ba66e * gem_prelude.c (Gem.default_dir): follows the change on
lib/rubygems/default.rb in r23879

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 16:22:14 +00:00
tadf 0bd29ba216 * complex.c (nucomp_div): raises ZeroDivisionError immediately
when the given second argument is zero.

	* rational.c (nurat_fdiv): never raise even if the given second
	  argument is zero.

	* rational.c (rb_raise_zerodiv): changed the message (zero to 0).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 14:39:31 +00:00
tadf 268432c51d * complex.c (nucomp_expt): convert to a float when the given power
is a bignum.

	* rational.c (nurat_expt): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 13:27:48 +00:00
tadf faea8893f8 * lib/cmath.rb (sqrt): fixed an issue [ruby-list:45852]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 12:20:02 +00:00
tadf f365778c26 * complex.c (nucomp_expt): some improvements.
* rational.c (nurat_expt): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 10:50:39 +00:00
yugui c97f55efa5 * tool/instruby.rb (:gem): registers the bundled version
of minitest as a gem as rdoc or rake. 
  c.f. [ruby-dev:38692].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 10:08:52 +00:00
yugui 5d8bff6d90 * lib/rubygems.rb (ConfigMap[:rubylibprefix]): new entry
* lib/rubygems/defaults.rb (Gem.default_dir): considers
  "--with-rubylibprefix" configure option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 10:08:36 +00:00
tadf 426afe1e67 trivial changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 00:22:41 +00:00
svn 11ab22bba6 * 2009-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 00:22:17 +00:00
tadf 53125214cc * complex.c: renamed some static functions.
* rational.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-28 00:22:07 +00:00
tadf ae96b225c4 trivial change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 10:35:17 +00:00
tadf 7cf1d66848 * complex.c (nucomp_addsub): new
* complex.c (nucomp_{add,sub}): use nucomp_addsub.

	* complex.c (nucomp_divide): changed the algorithm.

	* complex.c (nucomp_abs): added shortcuts.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-27 10:12:04 +00:00