Commit graph

2916 commits

Author SHA1 Message Date
nobu
106b437ceb * parse.y (parser_tokadd_utf8, parser_tokadd_string): allow NUL
containing symbol literals, as well as String#to_sym.
  [ruby-dev:41447]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 18:40:48 +00:00
yugui
9c5957af34 merges r28023 and r28024 from trunk into ruby_1_9_2.
--
* test/rinda/test_rinda.rb (class TupleSpaceTest): kill a used thread
  at teardown. [ruby-dev:41397]
* test/rinda/test_rinda.rb (class TupleSpaceProxyTest): ditto.
--
* ChangeLog: fix wrong format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 05:36:57 +00:00
yugui
4f36d45e6c merges r28011 from trunk into ruby_1_9_2.
--
refine an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 05:36:37 +00:00
yugui
80cb3c3ebd merges r27992 from trunk into ruby_1_9_2.
--
add an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 05:36:02 +00:00
nobu
5668c8ac5e * lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM.
[ruby-dev:41452]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 03:05:55 +00:00
nobu
cd86b29da2 * test/ruby/envutil.rb: fix for --disable-gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-29 00:34:35 +00:00
nobu
5f3f080504 * string.c (sym_inspect): escape ASCII-compatible strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-28 09:39:41 +00:00
nobu
2dfa488b2a * string.c (rb_str_inspect): escape ASCII-compatible strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-28 09:37:06 +00:00
usa
d86860592a * test/sdbm/test_sdbm.rb (test_s_open_error): doesn't support to avoid read
access by owner on Windows


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-27 05:48:34 +00:00
usa
a77351eac0 merge from trunk (r28021)
* test/open-uri/test_open-uri.rb (test_find_proxy_case_sensitive_env):
  environment variable name is not case sensitive on Windows


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-26 08:26:02 +00:00
usa
1ea31179fe merge from trunk (r28019)
* test/test_tempfile.rb: skip some tests on Windows because unlinking is always
  delayed till closed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-26 06:38:21 +00:00
nobu
9dae7d94f9 * random.c (random_rand): subtraction method of non-numeric can
return Float, and add the result of random to the beginning of
  range, not the opposite.  [ruby-dev:41410]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-26 03:08:07 +00:00
naruse
f054a1bbe1 merge revision(s) 28013:
* regparse.c (add_code_range_to_buf0): fix false negative
	  warning when given range is just before previous range.
	  [ruby-dev:41406]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-25 15:14:29 +00:00
usa
2daff3cd66 merge from trunk (r28008)
* test/test_find.rb: skip some tests on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-25 07:12:49 +00:00
nobu
c7ab8693cd * process.c (rb_f_spawn): use correct command name for the error
message.  [ruby-dev:41395]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-23 23:16:09 +00:00
yugui
a8e4a2aa17 merges r27690 and r27903 from trunk into ruby_1_9_2.
--
* lib/net/imap.rb (disconnect): terminates @receiver_thread even if
  @sock.shutdown raises an exception.  [ruby-dev:34881]
--
* lib/net/imap.rb (disconnect): closes the socket of a Net::IMAP
  object only when it is not closed.  [ruby-dev:41350]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-23 12:18:20 +00:00
suke
dad3ce7a73 merged from trunk (r27922)
* ext/win32ole/win32ole.c (ole_invoke): merged from trunk (r27922).
  raise NoMethodError when COM method is not found.

* test/win32ole/test_win32ole.rb (test_no_method_error): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-21 14:53:13 +00:00
usa
c2ff169664 merge from trunk (r27887-r27889)
* test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb): should use
  assert_equal instead of assert in such cases.

* test/dl/test_func.rb (test_sinf): sinf() doesn't exist in the standard of C.

* test/csv/test_interface.rb (test_write_hash): may need to set binary mode
  when converter is specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 13:47:24 +00:00
naruse
7098740753 merge revision(s) 27897:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 12:36:33 +00:00
naruse
42ad60bc61 merge revision(s) 27891:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 12:20:38 +00:00
mame
621b15ced9 * vm_eval.c (rb_f_caller): return [] instead of nil when the function
is called on toplevel.  [ruby-dev:41348]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 11:30:53 +00:00
usa
53b89477a1 merge from trunk (r27877, r27879, r27880, r27883, r27884)
* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if
  they are not implemented.

* test/socket/test_addrinfo.rb: ipaddr.rb defines Socket::AF_INET6 as an Object
  if the constant is not available.

* test/logger/test_logger.rb: close logger (or logdevice) if it's related to
  a file because some platforms such as Windows cannot remove opened files.

* test/openssl/test_ssl.rb (server_loop): treat Errno::ENOTSOCK just like as
  Errno::EBADF and Errno::EINVAL.

* test/openssl/test_ssl.rb (test_client_auth): Errno::ECONNRESET is raised on
  Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 05:20:44 +00:00
naruse
9c5fb33a69 merge revision(s) 27860:
* enc/iso_2022_jp.h: add CP50220.
	* enc/trans/iso2022.trans: add converter for CP50220.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 08:40:05 +00:00
usa
777f21290a merge from trunk (r27856, r27857)
* lib/fileutils.rb (FileUtils::Entry_#entries): returns pathname in
  UTF-8 on Windows to allow FileUtils accessing all pathnames
  internally.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 02:10:42 +00:00
yugui
6bbe1db1d3 * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
fixes "NoMethodError: undefined method `[]=' for nil:NilClass"

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:16:18 +00:00
yugui
f9d0043099 merges r27791 from trunk into ruby_1_9_2.
--
* test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):
  use opened pipes by with_pipe.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:16:13 +00:00
yugui
28b215880d merges r27787 from trunk into ruby_1_9_2.
--
add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:15:53 +00:00
yugui
76bd722eab merges r27784 from trunk into ruby_1_9_2.
--
* test/ruby/test_io_m17n.rb (TestIO_M17N#test_cbuf_select),
  (TestIO_M17N#test_textmode_paragraphmode): close pipes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:15:46 +00:00
yugui
49f9df123e merges r27762 from trunk into ruby_1_9_2.
--
add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 12:15:32 +00:00
yugui
a1fecc0158 merges r27737 from trunk into ruby_1_9_2.
--
* test/rake/test_task_arguments.rb: makes ENV empty during tests
  because ENV may change the behavior of Rake::TaskArguments.
  [ruby-core:29984]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 11:36:05 +00:00
yugui
c1dc27f7c2 merges r27723 from trunk into ruby_1_9_2.
--
* ext/psych/parser.c (parse): Return strings encoded as
  Encoding.default_internal if set.
* test/psych/test_encoding.rb: Tests for encoding change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 03:07:52 +00:00
yugui
ee56b16552 merges r27713 and r27715 from trunk into ruby_1_9_2.
--
* cont.c (fiber_switch): raise FiberError when returning to dead
  fiber.  [ruby-dev:40833]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 03:07:41 +00:00
usa
9065b17130 merge from trunk (r27796)
* test/ruby/test_rubyoptions.rb (test_segv_test): VC runtime adds some messages
  when SEGV occurs


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-14 05:00:18 +00:00
usa
05b21ec8df merge from trunk (r27779, r27793)
* test/ruby/test_process.rb: skip some tests on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-14 04:40:29 +00:00
usa
2d8fd61af0 * test/ruby/test_io_m17n.rb (test_stdin_external_encoding_with_reopen): skip
on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 04:38:33 +00:00
naruse
25c7c4a4de * re.c (rb_reg_initialize_m): fix wrong index for the lang
option's value 'N'. reported by Masaya TARUI via IRC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 07:11:27 +00:00
nobu
1f24a436c3 * numeric.c (flo_to_s): make minimum string representation.
[ruby-core:30145]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 06:37:13 +00:00
mrkn
cab5124b59 merge from trunk (r27734)
* ext/bigdecimal/lib/bigdecimal/math.rb (atan), test/bigdecimal/test_bigmath.rb (test_atan): explicitly specify the precision for calculating a reciprocal number of an argument. [Bug #3267]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 05:28:36 +00:00
nobu
dca029ddd8 * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc):
reduced heavy test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 16:00:37 +00:00
nobu
5bd7289ab6 * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc):
fixed test subject.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 14:38:56 +00:00
yugui
af712edd5f merges r27695 from trunk into ruby_1_9_2.
--
* test/dl/test_callback.rb: fixing valgrind errors.  Ruby string may be
  GC'd before the callback returns.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 03:10:29 +00:00
yugui
a190fa4fff merges r27691 from trunk into ruby_1_9_2.
--
* test/net/imap/test_imap.rb: use IPv4 for
  test_imaps_post_connection_check.  [ruby-dev:41189]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-09 03:10:20 +00:00
yugui
0636a4be62 * test/dl/test_base.rb (libc_so, libm_so): supports solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 16:00:23 +00:00
nobu
2776b6fd60 * ext/bigdecimal/bigdecimal.c (VpAlloc): ensure buf does not get
collected.  based on a patch masaya tarui at [ruby-dev:41213].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 02:07:43 +00:00
naruse
44ff836e58 Revert r26058 "* test/webrick/test_server.rb (test_daemon): simply use fork's return"
This must use pipe because the target for kill is not direct child.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-07 08:09:37 +00:00
naruse
54476a6024 * ext/bigdecimal/bigdecimal.c (VpCtoV): fix to check overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 19:28:12 +00:00
nobu
bcd0bcc390 * test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
truncated with ec_key.group.order.size after openssl 0.9.8m for
  FIPS 186-3 compliance.

  WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using
  openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises
  OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns
  false when you pass dgst longer than expected (no truncation
  performed).

* ext/openssl/ossl_pkey_ec.c: rdoc typo fixed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 10:13:46 +00:00
tenderlove
4bada8b864 * ext/fiddle/*: Adding fiddle library to wrap libffi
* test/fiddle/*: testing fiddle extension
* ext/dl/lib/dl.rb: Requiring fiddle if it is available
* ext/dl/lib/dl/callback.rb: using Fiddle if it is available
* ext/dl/lib/dl/func.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 06:59:24 +00:00
nobu
a6e33fd71c * test/etc/test_etc.rb: assert only when any value is given.
[Bug #1575] [ruby-core:23722]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-05 06:11:04 +00:00
naruse
7a17dca09f Fix and add tests for String#inspect. [ruby-dev:41153]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 19:07:05 +00:00