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

14296 Коммитов

Автор SHA1 Сообщение Дата
tadf f43d70f73e * lib/mathn.rb: a hack to provide canonicalization. This must be
temporary, but this seems to be not bad for the time being.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-27 23:41:21 +00:00
nobu 95f9f98ac5 * lib/rake.rb (Module#rake_extension, String#ext, String#pathmap): use
built-in methods.

* lib/rake.rb (String#pathmap): fixed typo in rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 21:22:21 +00:00
nobu 605a46dd05 * file.c (rb_file_s_extname): preceding dots are not a part of
extension.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 19:28:44 +00:00
nobu 9320b5c65f * file.c (rmext): preceding dots are not a part of extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 18:57:23 +00:00
nobu 655685612e * vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 18:15:54 +00:00
nobu 34c7492e2c * ext/socket/socket.c (host_str): numeric address should be unsigned.
[ruby-core:18971]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 18:12:43 +00:00
nobu 77a9d7c32f * parse.y (primary, brace_block): fix for line number.
* proc.c (rb_proc_location, rb_method_location): new methods
  {Proc,Method,UnboundMethod}#source_location.  [ruby-core:18452]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 13:47:01 +00:00
ko1 3e9276a538 * vm_core.h (RUBY_VM_CHECK_INTS_TH): add an UNLIKELY hint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 12:38:38 +00:00
knu e97b544b57 Minor nitpicking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 12:17:54 +00:00
akr a3bebd5564 * include/ruby/encoding.h (rb_str_encode): renamed from
rb_str_transcode.  [ruby-dev:36593]
  (rb_econv_has_convpath_p): renamed from rb_transcode_convertible.

* transcode.c: follow the renaming.

* io.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 10:35:00 +00:00
knu 577e64a874 Fix well-knwon typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 10:13:57 +00:00
knu de3b735720 I forgot to commit ChangeLog somehow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 10:10:51 +00:00
nobu 61b43de755 * test/bigdecimal/test_bigdecimal.rb (test_inspect): fixed CPU bit
size dependent test.  pointed out by TAKANO Mitsuhiro <takano32 AT
  jus.or.jp>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 10:01:50 +00:00
knu 571b2e17b2 * test/pathname/test_pathname.rb: Fix use of deprecated methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:57:33 +00:00
nobu a2ae773503 * common.mk (dist): nothing is need to run BASERUBY.
* tool/make-snapshot: new option -archname.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:40:04 +00:00
nobu 00ae128346 * misc/ruby-mode.el: safe custimizable variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:24:31 +00:00
knu 3a5c011b8e Fix typos in comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:05:33 +00:00
yugui 3cdf9d185c Fixed build failure on some platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:44:04 +00:00
nobu d7e73b0baa properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:43:03 +00:00
yugui 2e102b151f * include/ruby/ruby.h (rb_mPrecision): removed.
Precision module was temporarily removed at r19430.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:38:52 +00:00
yugui bdd70c6109 Updated README.EXT and README.EXT.ja.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:34:35 +00:00
yugui 140048b59d * common.mk (dist): Changed its dependencies and
action.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:27:19 +00:00
yugui 16c95b42ce * error.c (Init_syserr): moved to the template.
(errno_missing): removed. fixed [ruby-dev:35958].

* defs/knwon_errors.def: added. extracted from Init_syserr.

* templates/known_errors.inc.tmpl: added. Template for Init_syserr.
  c.f. [ruby-dev:35958].

* tools/generic_erb.rb: added. general purpose mapper which maps
  data+template into source code.

* common.mk (error.$(OBJEXT), incs, known_errors.inc):
  Fixed dependencies.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:18:49 +00:00
nobu 9ea58e6421 * common.mk (ENC_MK): defaulted to enc.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:06:59 +00:00
nobu f8718692a2 * thread.c (thlist_signal): clears the woken thread if nothing woke.
* thread.c (rb_barrier_wait): achieves the lock if no thread was
  waiting yet.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 08:02:07 +00:00
matz 3deb806a06 * error.c (Init_Exception): introduce EncodingError which is a
superclass for all encoding related exception classes,
  e.g. Encoding::CompatibilityError.  [ruby-dev:36371]

* transcode.c (Init_transcode): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 03:53:11 +00:00
matz edebd815b0 * ext/curses/curses.c: should include <ruby/io.h>.
* ext/io/wait/wait.c: ditto.

* ext/openssl/ossl.h: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 03:05:47 +00:00
usa fac096d512 * variable.c (rb_define_hooked_variable): cast to get rid of compiler
warnings.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 02:34:44 +00:00
usa e76b1a11ca * transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
new function. checking the existance of converter.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 02:07:19 +00:00
nobu 4300e2a993 * variable.c (global_variable, struct trace_var): made function
members more strict.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 01:35:57 +00:00
nobu 07a88b713d * include/ruby{io,sig}.h: moved to include/ruby/backward.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 00:55:09 +00:00
nobu 18684d9f7c * include/rubysig.h: old macros for backward compatibility.
* thread.c (BLOCKING_REGION): rewritten using helper functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 00:47:18 +00:00
ryan 3ceca921fc Forgot to remove test/unit tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 21:56:30 +00:00
nobu 69b0d492ee properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 20:04:15 +00:00
akr 4efc3f78b0 * vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
here for rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 18:04:34 +00:00
akr 2a608fed88 update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 17:42:52 +00:00
mame ec0c394b9e * range.c (range_inspect): fix SEGV for cyclic range object.
[ruby-core:18835]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 15:42:23 +00:00
svn a9da574d74 * 2008-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 15:00:50 +00:00
akr 62390f4c9a * common.mk: dependency updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 15:00:39 +00:00
akr d7dbdef4e5 * transcode.c (rb_eUndefinedConversionError): renamed from
rb_eConversionUndefinedError.
  (rb_eConverterNotFoundError): renamed from rb_eNoConverterError.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 12:47:30 +00:00
mame 2c1c462747 * pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies with
RFC 4648.  It adds no line feed when encoding, and raise ArgumentError
  if the encoded string contains non-alphabet (including CR and LF).

* lib/base64.rb: added.  This provides encoding/decoding method for
  Base64 in standard RFC 2045, Base64 in standard RFC 4648 and ``Base 64
  Encoding with URL and Filename SafeAlphabet'' in RFC 4648.

* test_pack.c, test/base64/test_base64.rb: add tests for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 12:24:54 +00:00
ko1 4ee0a8e740 * common.mk: fix btest-* rules [ruby-dev:36528].
and remove obsolete rules.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 12:04:34 +00:00
akr fee3bb664a update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 11:42:49 +00:00
yugui 7a86a81dcc * class.c (rb_make_metaclass): [BUG] Fixed a bus error
on the case for metaclass of a class which includes a
  module.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 11:31:02 +00:00
drbrain 6cd13d6577 Fix broken merge of gemutilities, add build_rake_in as necessary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 10:37:01 +00:00
yugui 1833cfab35 * ChangeLog: filled missing author names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 10:35:07 +00:00
drbrain d478c7a734 Update to RubyGems 1.3.0 r1891
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 10:13:50 +00:00
yugui 788001a9c8 * class.c (rb_make_metaclass): Made class of class of class
from Class into its own eigenclass. Now meta^(n)-class
  hierarchy regresses infinitely, again.
  (This feature was decided on developer-meeting-20080922.)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 09:46:59 +00:00
nobu faefcc8249 properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 08:26:02 +00:00
ryan dea63a4569 Added passed? per Jim's request. Fixed file/line reporting bug for refutations per Dave's bug report. Very minor cleanup of some nits that were bugging me. Barring other bug reports, I'm 'done'. This version will most likely be released as a gem in the next day or two.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-25 07:53:19 +00:00