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

10680 Коммитов

Автор SHA1 Сообщение Дата
akr a072f94fbe add a test for [ruby-core:14288].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 01:36:54 +00:00
duerst 4ef8764fef Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
* transcode_data_one_byte.c: Better (and more honest) optimization.

	* transcode_data_japanese.c: First optimization step.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 01:23:39 +00:00
akr a84103ce60 add a test for [ruby-core:14279].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 00:15:23 +00:00
akr 38c303bb52 ext/nkf/nkf.c follow previous rb_ascii_encoding renaming.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 00:07:24 +00:00
akr 5b809a28f8 * include/ruby/encoding.h, encoding.c, re.c, io.c, parse.y, numeric.c,
ruby.c, transcode.c: rename rb_ascii_encoding. to
  rb_ascii8bit_encoding.  rb_ascii_encoding is ambiguous with 
  ASCII-8BIT and US-ASCII.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 23:47:18 +00:00
nobu cd42707d86 * enc/depend, enc/make_encmake.rb: use erb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 18:35:53 +00:00
nobu 872899fa58 * version.h: use patchlevel if revision is not set.
* {bcc32,win{32,ce}}/setup.mak (-version-): skip including revision.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 18:26:50 +00:00
nobu c892851a25 * common.mk (srcs): new target to generated sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 18:22:43 +00:00
nobu c4bdd0f1ef * common.mk (encs, ext/ripper/ripper.c): MAKEFLAGS needs -.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 18:19:14 +00:00
nobu 1f2d6dc72e * test/net/imap/{cacert.pem,server.{crt,key}}: set properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 17:47:30 +00:00
matz e8a71bc853 * io.c (rb_io_mode_enc): do not set encoding unless explicitly
specified.

* io.c (rb_io_check_readable): fill fptr->enc by default_external
  if it's empty.

* io.c (io_enc_str): fptr->enc is always set for reading IO (by
  rb_io_check_readable(fptr)).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 17:28:20 +00:00
davidflanagan b83cbb0c7c * io.c, io.h: temporary patch to partially implement transcode-on-read and transcode-on-write
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 16:21:09 +00:00
shugo 018bdcadac * test/net/imap/test_imap.rb: added tests for SSL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 15:50:43 +00:00
akr d43090fb41 ignore enc.mk and revision.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 15:31:16 +00:00
nobu 3b8fd2b290 * transcode_data_japanese.c: set properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 15:25:15 +00:00
akr 5b1d121bfa document updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 15:24:23 +00:00
akr 444a19fe44 use String#ascii_only?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 14:48:39 +00:00
matz 9a602ab932 version.h corrupted
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 12:28:22 +00:00
matz 2329ba0d93 * ext/syck/rubyext.c (syck_genericresolver_node_import): should
not set instance variable "@kind" before initializing it.
  [ruby-dev:32677]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 12:14:37 +00:00
ko1 020fd204f8 * bootstraptest/test_objectspace.rb: fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 10:54:02 +00:00
ko1 fc5c62bef7 * ext/probeprofiler/: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 10:19:27 +00:00
ko1 de1dbf4829 * process.c (rb_f_fork): Unsupport Kernel.fork() on NetBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 10:16:39 +00:00
duerst a95ae9619f Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
* test/ruby/test_transcode.rb: Added simple tests for
	  EUC-JP and Shift_JIS and tests for ASCII-only range



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 09:52:00 +00:00
usa d9c407981c * common.mk (version.o): add dependency. [ruby-dev:32680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 09:21:38 +00:00
naruse a745e619d2 * ext/nkf/nkf.c (Init_nkf): use rb_ascii_encoding() for
rb_nkf_enc_get("US-ASCII").
  * if use rb_nkf_enc_get("US-ASCII"), ruby will crash - this is bug?


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:49:28 +00:00
usa bc0963a204 * lib/mkmf.rb ($extmk): fixed broken condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:39:26 +00:00
akr b2a1dc616c add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:38:53 +00:00
naruse 573bd7500b * ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.
* ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding.

* ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc
  when from_enc isn't given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:36:30 +00:00
usa eff45d2cc8 * lib/mkmf.rb ($extmk): fixed broken condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:32:53 +00:00
gotoyuzo 40aa32a0d7 * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params):
  new method to set suitable SSL parameters.

* lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb, 
  test/openssl/test_ssl.rb: follow above change.

* test/net/http/test_https.rb: refine error case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:31:53 +00:00
akr 0fc7dfedd3 add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:11:47 +00:00
shugo e875cfa1fe * lib/net/imap.rb (encode_utf7): accept UTF-8 strings.
* lib/net/imap.rb (decode_utf7): return UTF-8 strings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:00:04 +00:00
shugo 3ee72c86ef * lib/net/imap.rb: fixed RDoc markups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 07:29:01 +00:00
akr fa3d06c738 refine error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 07:14:07 +00:00
usa 05ac036933 * transcode_data_japanese: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:57:26 +00:00
duerst 54f2734069 Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
* ChangeLog: Information for last patch got lost, fixed



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:54:26 +00:00
duerst 5ad8c5566d Sat Dec 22 15:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
* transcode_data_one_byte: slightly optimized

	* transcode_data_japanese: new data file for EUC-JP and SHIFT_JIS
	  (not yet optimized; tests to follow; data from
	   http://nkf.sourceforge.jp/ucm/{SJIS|eucJP}-nkf.ucm)

	* common.mk, transcode.c: Adjusted for transcode_data_japanese



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:45:55 +00:00
usa c9bf419684 * */Makefile.sub (MFLAGS): define unless defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:30:40 +00:00
usa 366b82dde8 * lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:19:11 +00:00
nobu aefc34a041 * common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
* configure.in (STRINGIZE): stringizing macro.

* include/ruby/defines.h (STRINGIZE): fallback.

* tool/make-snapshot: new file.

* version.c (ruby_description, ruby_copyright): string constants for
  -v option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:14:50 +00:00
shugo 482690cdf8 * lib/net/imap.rb (initialize): fixed documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:05:14 +00:00
shugo a7ef0c7303 * lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.build
instead of SSLContext.new (default verify mode is now
  OpenSSL::SSL::VERIFY_PEER).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:03:20 +00:00
akr da8b4a5e41 update tests for latest /.../n handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:00:56 +00:00
tadf 0067dc24d8 * lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:48:30 +00:00
akr bcb064eb0f * regenc.c (onigenc_ascii_is_code_ctype): moved from enc/ascii.c.
* regenc.h (onigenc_ascii_is_code_ctype): declared.

* enc/ascii.c: use onigenc_ascii_is_code_ctype.

* enc/us_ascii.c: new file for US-ASCII.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:38:33 +00:00
nobu e11ed98f88 * parse.y (reg_named_capture_assign_iter): allows non-ascii names and
get rid of reserved word IDs.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:30:37 +00:00
ko1 34ff55e82a * test/ruby/test_float.rb, test_sprintf.rb: fix test place.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:19:38 +00:00
ko1 e6f67598e9 * bootstraptest/test_objectspace.rb: skip flozen string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:18:52 +00:00
ko1 dd6ab4f3d5 * array.c (rb_ary_permutation): add volatile to avoid GC problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:05:30 +00:00
usa 3ce6e61a7b * test/ruby/test_float.rb (test_float): test literal, not sprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 03:15:36 +00:00