tenderlove
c36abbfd43
* lib/test/unit.rb: partial revert of r30849. [ruby-core:32864]
...
* test/testunit/test_rake_integration.rb: adding an integration test
with the rake loader to prevent regressions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-18 21:39:09 +00:00
nagachika
594f2fcfc0
* test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
...
fix a typo of local variable. [Bug #3720 ] [ruby-dev:42083]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-17 13:37:55 +00:00
kosaki
36a0a1a3f3
* eval_jump.c (rb_exec_end_proc): changed at_exit and END proc
...
evaluation order. [Bug #4400 ] [ruby-core:35237]
* eval_jump.c (rb_mark_end_proc): ditto.
* test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_nested_at_exit):
added a test for nested at_exit.
* test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_beginendblock):
changed the test to adopt new spec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-16 11:42:03 +00:00
naruse
1a492ba17d
Add a test for the encoding of str_aset. [ruby-core:35142]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 07:14:00 +00:00
naruse
c7d3b3f1b4
* array.c (array_join): copy the encoding of the first element as
...
an initial encoding.
* array.c (array_join_0): ditto.
* array.c (array_join_1): ditto.
* array.c (inspect_ary): ditto.
* array.c (array_join_1): add an argument to check the appending is
first one or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 07:08:24 +00:00
naruse
366e1c3884
* array.c (inspect_ary): don't taint the inspected result of a
...
recursive array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 07:08:18 +00:00
naruse
a8f5a06a68
* encoding.c (rb_enc_compatible): change the rule for empty strings:
...
remove the special treatment of the US-ASCII encoded empty string.
Now Encoding.compatible? usually respect the encoding of the
receiver.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 07:08:15 +00:00
naruse
443b1517cf
* string.c (rb_enc_cr_str_buf_cat): remove special treatment of
...
ASCII-8BIT receivers.
* string.c (str_gsub): set initial encoding of the buffer as the
same of the receiver. [ruby-core:35141]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 07:08:12 +00:00
usa
25a4c79279
* test/ruby/test_system.rb (TestSystem#test_system_at): use findstr
...
command instead of find command, because the latter is confusing
another famous Unix command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-15 00:51:50 +00:00
kosaki
8068d73cc1
* test/ruby/test_system.rb (TestSystem#test_system_at):
...
added test. [ruby-core:35218] (#4393 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-14 08:49:55 +00:00
kosaki
cee21ad215
* test/ruby/test_system.rb (TestSystem#test_system_at):
...
added test. [ruby-core:35218] (#4393 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-14 08:30:00 +00:00
nobu
7c3a80272a
* test/openssl/test_config.rb (OpenSSL#test_freeze): fix error
...
message assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:52 +00:00
nobu
afafb8c055
* test/io/nonblock/test_flush.rb (TestIONonblock#flush_test):
...
return true to finish the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:48 +00:00
nobu
b16fc57852
* test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
...
use assert_not instead of refute, unless required minitest
directly.
* test/test_prime.rb (TestPrime::sieve.Integer): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:44 +00:00
nobu
c84e529219
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
...
catch IOError when server socket was closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:40 +00:00
nobu
7f46fadd9d
* lib/test/unit.rb (assert_include): add alias.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 14:17:54 +00:00
nobu
58b325366d
* thread.c (rb_thread_io_blocking_region): new function to run
...
blocking region with GIL released, for fd.
* thread.c (rb_thread_fd_close): implement. [ruby-core:35203]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 05:44:23 +00:00
nobu
7dea05dc6f
* test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use
...
method_added hook defined in Module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 23:03:21 +00:00
nobu
c750f945c6
* test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_scan):
...
assert_raise does not check exception message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 12:54:04 +00:00
nobu
9c560af1b7
* bin/testrb, test/runner.rb, lib/test/unit.rb: improve backward
...
compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 12:41:58 +00:00
nobu
96c078c340
* eval.c (ruby_cleanup): use rb_ary_free to free internal object.
...
* gc.h (RUBY_FREE_UNLESS_NULL): get rid of double free.
[ruby-core:35192]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 10:45:34 +00:00
nobu
18364f541b
* test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
...
assertion and move back.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 07:57:05 +00:00
nobu
12000bc2de
* test/ruby: uniquify test names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 05:29:42 +00:00
nobu
020dc4ba60
* configure.in (rubygems): add --disable-rubygems option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 03:03:26 +00:00
usa
acda9a6872
* test/rdoc/test_rdoc_encoding.rb: remove unnecessary (and wrong)
...
platform-dependent hacks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-09 00:47:42 +00:00
drbrain
60f2c9cf5b
Upgrade to RDoc 3.5.3. Fixes [Bug #4376 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 07:07:12 +00:00
naruse
ca9f7009db
TestProcess#test_wait_and_sigchild randomly fails on FreeBSD
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 04:27:46 +00:00
usa
55ea57af65
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
...
there is no easy way to create owner unreadable file on Windows.
So, skip the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 01:23:28 +00:00
nobu
9b68d667c7
* ext/pty/pty.c (chfunc): suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-06 05:56:14 +00:00
drbrain
edaf78dfb6
Ensure result encoding is the same as input encoding for String#gsub. [Bug #4340 ].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-06 03:54:50 +00:00
nobu
b1986003bd
* parse.y (words, qwords): dispatch array events. based on a
...
patch from Michael Edgar. [Bug #4365 ].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-06 03:18:44 +00:00
nobu
58195557b2
* test/fileutils/fileasserts.rb (FileAssertions): separate module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-06 03:13:08 +00:00
naruse
0efad539ed
Surpress warnings: possibly useless use of :: in void context
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 13:48:45 +00:00
nobu
476ba90835
* parse.y (mlhs_basic): include mlhs_post for ripper. a patch
...
from Michael Edgar at [ruby-core:35078].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 12:47:16 +00:00
nobu
dd9341f02b
* lib/test/unit/assertions.rb (assert_block): move from
...
test/fileutils/fileasserts.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 12:22:27 +00:00
nobu
790f43a374
* test/fileutils/fileasserts.rb (assert_block): pass arguments
...
as-is. [ruby-dev:43174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 11:40:43 +00:00
drbrain
8aa895294b
Import RDoc 3.5.2
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 06:20:57 +00:00
nobu
74e6dd4078
* ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr
...
NULL.
* ext/openssl/ossl_cipher.c (ossl_cipher_new, ossl_cipher_initialize):
allocate internal structure. [ruby-core:35094]
* ext/openssl/ossl_cipher.c (ossl_cipher_copy): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 02:48:55 +00:00
nobu
1069e5d665
* ext/json/parser/parser.h (GET_PARSER): raise TypeError.
...
* ext/json/parser/parser.rl (cParser_initialize): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 02:29:18 +00:00
nobu
9cc62abc6b
* ext/json/parser/parser.h (GET_PARSER): check if initialized.
...
[ruby-core:35079]
* ext/json/parser/parser.rl (cParser_initialize): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 01:30:01 +00:00
nobu
bf794afbf9
* load.c (rb_get_expanded_load_path): always expand load paths.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 01:09:39 +00:00
nobu
780678dafb
* lib/fileutils.rb (FileUtils::LowMethods): make low level methods
...
in NoWrite and DryRun to do nothing. [ruby-dev:43129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-04 18:37:52 +00:00
nobu
ab53367bc7
* test/fileutils/fileasserts.rb: add message arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-04 18:35:07 +00:00
nobu
f38aad8d87
* test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
...
show the given message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-04 18:34:12 +00:00
nobu
f6b4cba666
* parse.y (lex_getline, parser_set_encode): set encoding of lines
...
in SCRIPT_LINES__ as source encoding. [ruby-dev:43168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-04 17:09:45 +00:00
nobu
b6371b55de
* ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup
...
before rb_str_resurrect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-03 15:15:04 +00:00
naruse
b4940b61e3
e ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrect
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-03 09:56:52 +00:00
tenderlove
89ef6628eb
* re.c (Init_Regexp): added a constant for ARG_ENCODING_NONE
...
[ruby-core:35054]
* test/ruby/test_regexp.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02 22:18:14 +00:00
tenderlove
cc6b1b3c8d
* ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regular
...
expressions can round trip. [ruby-core:34969]
* test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex
* ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular
expressions can round trip.
* test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02 22:05:15 +00:00
drbrain
de15b19498
Commit files I forgot to add
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02 05:52:11 +00:00
drbrain
cc2a16d94d
Import RDoc 3.5.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-02 00:32:30 +00:00
usa
c4bf3eba2b
* test/ruby/test_require.rb (TestRequire#test_require_with_unc):
...
use ``127.0.0.1'' instead of ``localhost'' as host name, because
XP or earlier cannot resolv it as NBT hostname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-01 06:15:14 +00:00
kosaki
6e2a194fa7
* test/benchmark/test_benchmark.rb (#capture_bench_output):
...
Added explict sleep. Windows have imprecise time support.
Thus Tms.new.Add!{} may be or may be not equal 0. The
test failure started since r30747.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-01 04:33:00 +00:00
ryan
ec84bfc9e3
Import rubygems 1.5.0 (released version @ 1fb59d0)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-01 03:11:34 +00:00
naruse
979ec8df5d
* lib/benchmark.rb: fix benchmarck to work with current ruby.
...
patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143]
merged from https://github.com/eregon/ruby/commits/benchmark
* lib/benchmark (Report#width): update documentation
* lib/benchmark: document the return value of #benchmark and the
:list attribute in Report
* lib/benchmark (Tms#format): rename variables, use String#%
instead of Kernel.format
* lib/benchmark: remove undocumented Benchmark::times (an alias
of Process::times used twice)
* lib/benchmark (#benchmark): use label_width for the caption
* lib/benchmark (Tms#initialize): rename variables
* lib/benchmark: allow title to not be a String and call #to_s
* lib/benchmark (Benchmark#bm): return an Array of the times with
the labels
* lib/benchmark: correct output for Benchmark#bmbm
(remove the extra space)
* lib/benchmark: add a few tests for Benchmark::Tms output
* lib/benchmark: improve style (enumerators, ljust, unused vars)
* lib/benchmark: add spec about output and return value
* lib/benchmark: improve basic style and consistency
no parenthesis for print and use interpolation instead of printf
* lib/benchmark: remove unnecessary conversions and variables
* lib/benchmark: correct indentation
* lib/benchmark: rename the FMTSTR constant and variable to FORMAT
* lib/benchmark: remove useless exception
* test/benchmark: remove unused variable warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 16:11:06 +00:00
naruse
a924b1768f
Add ML Reference and a test for r30736 [ruby-core:34997]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 21:00:04 +00:00
nobu
ce00071053
* test/rubygems/test_gem_security.rb (TestGemSecurity): valid only
...
if OpenSSL is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 07:40:31 +00:00
nobu
59064a75b8
* test/dl/test_dl2.rb (TestDL#test_sin): math functions do not
...
work on x86_64 due to the design of DL2.
* test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 07:15:23 +00:00
akr
2418e5ca83
* strftime.c (rb_strftime_with_timespec): %G produces 4 digits.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 07:10:55 +00:00
nobu
b4be48e88d
* enc/emacs_mule.c (emacsmule_islead): 7bit range is also leading
...
byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 06:13:25 +00:00
nobu
46142e472f
* hash.c (rb_hash_fetch_m): use useful message for longer key, not a
...
nonsense id value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 04:03:19 +00:00
nobu
f989f7c7ea
* string.c (rb_str_ellipsize): new function to ellipsize a string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 04:01:58 +00:00
nobu
286615d430
* enc/emacs_mule.c (emacsmule_islead): fix inverse condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-30 03:53:44 +00:00
naruse
5323407175
* ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case.
...
patched by Martin Bosslet. [ruby-core:34987]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-29 18:48:24 +00:00
naruse
674ea103fa
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
...
[ruby-list:47790]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-29 15:33:50 +00:00
mame
5b74e4f09e
* vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevel
...
private constant has been prohibited incorrectly.
* test/ruby/test_module.rb (test_toplevel_private_constant): add a
test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-29 02:01:19 +00:00
ryan
934f537b45
Import rubygems 1.5.0 (release candidate @ 09893d9)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 23:46:47 +00:00
mame
b511e1bfbe
* variable.c (rb_mod_const_of, sv_i): Module#constant should exclude
...
private constants. see [ruby-core:32912].
* test/ruby/test_module.rb (test_constants_with_private_constant): add
a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 17:57:48 +00:00
mame
b1e829fb30
* variable.c (rb_const_set): const_set shoud preserve constant
...
visibility. see [ruby-core:32912].
* test/ruby/test_module.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 17:57:42 +00:00
mame
a2ec8666cf
* compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raise
...
an exception when "class Foo::Bar" is evaluated and Foo::Bar is
private. To implement this, define_type of "defineclass" is added
so that the instruction can distinguish whether the class definition
is scoped (class Foo::Bar) or not (class Bar).
* test/ruby/test_class.rb (test_redefine_private_class),
test/ruby/test_module.rb
(test_define_module_under_private_constant): add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 17:57:34 +00:00
mame
f0483c494f
* constant.h, variable.c: to ensure compatibility, rb_const_get_* must
...
not raise an exception even when the constant is private. Instead,
rb_public_const_get_* and rb_public_const_defined_* are introduced,
which raise an exception when the referring constant is private.
see [ruby-core:32912].
* vm_insnhelper.c (vm_get_ev_const): use rb_public_const_get_* instead
of rb_const_get_* to follow the constant visibility when user code
refers a constant.
* test/ruby/test_marshal.rb (test_marshal_private_class): add a test.
This test had failed because of incompatibility of rb_const_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 17:57:27 +00:00
kosaki
77a7137c4b
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,
...
TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm 1.8.0,
not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 14:23:04 +00:00
kosaki
3a0ec68109
* test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):
...
gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need
to be changed too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 08:50:18 +00:00
kosaki
36f71db31e
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skip
...
the test if gdbm version is 1.8.x.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 08:36:46 +00:00
kosaki
a3d861ef2f
* test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):
...
Added -w option because too long path error don't output a message
by default since r30660. [Bug #4336 ] [ruby-dev:43134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 07:31:44 +00:00
kosaki
bacc7e6a42
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):
...
Added -w option because too long path error don't output a message
by default since r30660. [Bug #4336 ] [ruby-dev:43134]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 07:21:38 +00:00
kosaki
6526985522
remove unnecessary local variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 07:13:49 +00:00
kosaki
29422e5d31
* test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):
...
split from test_require_path_home.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 07:06:48 +00:00
usa
d4f8142d18
* test/ruby/test_process.rb (TestProcess#test_too_long_path{,2}):
...
should handle Errno::E2BIG, because this test checks crash of ruby,
not the error type system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-28 02:48:46 +00:00
kosaki
41bbb319dd
* test/ruby/test_process.rb (TestProcess#test_too_long_path)
...
TestProcess#test_too_long_path): Reduced string size from 100MB
to 10MB. 100MB may cause no memory error. It isn't intended.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 16:36:21 +00:00
kosaki
6c2b2c2853
* test/ruby/test_process.rb (TestProcess#test_too_long_path2):
...
Factored out from test_too_long_path. A test should only do
one test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 16:33:23 +00:00
nobu
beec203a1d
* process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)
...
(proc_spawn_n, proc_spawn): get rid of too huge alloca().
[ruby-core:34827], [ruby-core:34833]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 23:41:47 +00:00
nahi
0522ffd51f
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decode
...
should reject indefinite length primitive encodings as that is
illegal. Patch by Martin Bosslet. See #4324 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-26 08:17:01 +00:00
kazu
9a4a8673c0
* test/ruby/test_thread.rb: remove unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:50:21 +00:00
kazu
fa6f4336f3
* test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get rid of method redefined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:50:18 +00:00
nobu
7a6113d6b6
* string.c (rb_string_value_cstr): rb_str_modify can change
...
RSTRING_PTR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 22:00:55 +00:00
kosaki
68823fdea5
* test/ruby/test_thread.rb: Added various ConditionVariable tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 18:25:20 +00:00
nobu
97b8e4996f
* error.c (rb_invalid_str): prevent intermediate variable from GC.
...
[ruby-core:34820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-24 12:04:47 +00:00
kosaki
b9c0b5039c
* test/io/console/test_io_console.rb: Don't run test if the system
...
don't support io/console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 14:03:24 +00:00
kosaki
99ef86707c
* test/fiddle/test_fiddle.rb: Don't run test if the system don't support
...
fiddle.
* test/fiddle/test_function.rb: ditto.
* test/fiddle/test_closure.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 13:20:58 +00:00
tenderlove
18e3c52bc4
reverting r30628 since this seems like a bug in libyaml
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 22:43:41 +00:00
kosaki
fe505c47c8
* test/test_syslog.rb: Fix to make a lot of test failure if
...
the platform doesn't support syslog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 15:46:11 +00:00
tenderlove
6e5aa6311a
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key support
...
when multiple merge keys are specified.
* test/psych/test_merge_keys.rb: tests for multi-merge key support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:51:14 +00:00
tenderlove
5b1c06c74b
* ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actually
...
part of YAML 1.1, so they should be supported. Remove warning and
merge keys to parent. [ruby-core:34679]
* test/psych/test_merge_keys.rb: test for merge keys
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:34:50 +00:00
tenderlove
7b876e65ed
* ext/psych/parser.c (parse): fixing off-by-one error on line numbers
...
in parse exceptions. [ruby-core:34690]
* test/psych/test_parser.rb: test for error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:23:12 +00:00
tenderlove
cab95ab712
fixed a bug in the test suite. Thanks Benoit Daloze! [ruby-core:34641]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 02:18:21 +00:00
tenderlove
8dd3a4af66
* ext/psych/parser.c (parse): add the file name to the exception when
...
parse errors occur.
* test/psych/test_parser.rb: test for parse error file name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 01:26:40 +00:00
tenderlove
0331314d27
* ext/psych/parser.c (parse): fix assertion error when reusing a
...
parser after an exception has been raised
* test/psych/test_parser.rb: test for assertion error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-22 01:13:52 +00:00
tenderlove
960720ef4f
* ext/psych/lib/psych/nodes/node.rb: Make Psych::Nodes::Node
...
enumerable.
* ext/psych/lib/psych/visitors/depth_first.rb: Add a depth-first
visitor to enumerate over a YAML AST in a depth-first fashion
* test/psych/nodes/test_enumerable.rb: test for enumerating nodes
* test/psych/visitors/test_depth_first.rb: test for depth-first
visitor
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-21 19:11:53 +00:00
kosaki
7fd0d4a4d3
revert unrelated fix from r30615. Sorry!
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 15:40:04 +00:00
kosaki
d41d2f26ce
* configure.in: Add '#include <stdlib.h>' to
...
rb_cv_localtime_overflow test too. It's reported by Tomoyuki
Chikanaga. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 14:34:39 +00:00
usa
a9f76259ce
* test/webrick/utils.rb (TestWEBrick::RubyBin): test CGI does not need
...
to load rubygems. if it activated, ruby raises LoadError about
rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 02:41:09 +00:00
tenderlove
74b0a7a06f
* ext/psych/lib/psych/visitors/json_tree.rb: Fix JSON emit for
...
DateTime and Time classes.
* test/psych/test_json_tree.rb: test for JSON emit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-20 00:20:57 +00:00
tenderlove
a17cdfdde2
* ext/psych/lib/psych/coder.rb (represent_object): arbitrary objects
...
may be passed to the Psych::Coder object.
* ext/psych/lib/psych/visitors/yaml_tree.rb: support for visiting
arbitrary objects set on the coder.
* test/psych/test_coder.rb: supporting test case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 23:05:53 +00:00
ryan
64847a9cfe
Importing rubygems @ c2d4131: Deal with platforms that have DLEXT2 == nil. Fixes RF#28867
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 21:23:04 +00:00
drbrain
4993a1a814
Finish removing code, (fixes sources command test).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 04:17:17 +00:00
ryan
e798ccbacf
Import rubygems 1.5.0 (release candidate)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 00:08:49 +00:00
tenderlove
0b38e9bc9d
* ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
...
marker information
* ext/psych/parser.c (mark): Add a method to return the mark object
for the parser
* test/psych/test_parser.rb: tests for the Mark class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-17 19:44:31 +00:00
tenderlove
eacee9d95f
* ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSON
...
strings should be dumped with double quotes. [ruby-core:34186]
* test/psych/test_json_tree.rb: test for double quotes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-17 17:48:09 +00:00
nobu
49cf75e675
* test/net/smtp/test_ssl_socket.rb: fix dependency.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-15 03:01:19 +00:00
nobu
b794a2bd8c
* configure.in (warnflags): add -Werror=implicit-function-declaration
...
if available.
* lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
* test/mkmf/base.rb (setup, teardown): restore config values.
* test/mkmf/test_flags.rb: split from test_find_executable.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-15 02:57:36 +00:00
shugo
9d155ebf51
* test/net/imap/test_imap.rb: call neither logout nor disconnect
...
unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-14 06:38:32 +00:00
naruse
2dbf7d11f2
* pack.c (pack_unpack): the resulted string of unpack('M') must have
...
ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-14 05:03:22 +00:00
ryan
f52c2cc24d
Reduced gem_prelude to just require rubygems. Reviewed by Evan Phoenix
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-14 02:02:12 +00:00
nobu
7909af18ed
* io.c (argf_next_argv): go advance when the next file cannot be
...
read. [ruby-core:34446]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-13 22:30:50 +00:00
ryan
b404cbac77
Simple fix for emacs parsing. (emacs doesn't like _heredocs_)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-12 21:53:31 +00:00
yugui
ef0736604a
* lib/net/http.rb (Net::HTTP#connect): makes it timeout during
...
SSL handshake too. [ruby-core:34203]
Patch by Marc Slemko.
* test/net/http/test_http.rb (TestNetHTTP_v1_2#test_timeout_during_HTTP_session):
test for [ruby-core:34203]
* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-12 07:26:18 +00:00
naruse
6bcf709838
* test/webrick/test_cgi.rb: Removes usage of deprecated
...
:RequestHandler option.
patched by Peter Weldon [ruby-core:34010]
* test/webrick/test_httpproxy.rb: ditto.
* test/webrick/test_httpserver.rb: Add a test of the deprecation
behaviour.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-12 00:37:12 +00:00
nobu
79654f3fd3
* hash.c (hash_i): return different values for inverse hash.
...
[ruby-core:34334]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-11 23:37:15 +00:00
nobu
dd55661f56
* include/ruby/defines.h (CASEFOLD_FILESYSTEM): HFS+ is case
...
insensitive.
* load.c (loaded_feature_path, rb_feature_p, load_lock): on a
case-insensitive filesystem, loaded features search should
ignore case. [ruby-core:34297]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-10 13:46:47 +00:00
nobu
fd7c5303eb
* test/ruby/test_method.rb (TestMethod#test_define_method): method
...
transplanting between class and module is impossible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-10 05:32:59 +00:00
tenderlove
10284a049a
* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags
...
should not be included in JSON mapping
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06 02:29:18 +00:00
tenderlove
b092e967b0
use require_relative instead of File.expand_path
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06 00:39:50 +00:00
tenderlove
9bc8ccf4d4
* lib/net/protocol.rb (eof?): BufferedIO should proxy eof? to the
...
underlying IO object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06 00:24:45 +00:00
tenderlove
5d0fb7c155
* lib/mkmf.rb (configuration): fixing gsub when multiple error flags
...
are passed to GCC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06 00:18:16 +00:00
nobu
5631792727
* ext/-test-/array/resize/resize.c (Init_resize): renamed method
...
for test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 20:47:01 +00:00
nobu
d8d9bac5c8
* ext/stringio/stringio.c (get_strio, strio_set_string)
...
(strio_reopen): check if frozen. [ruby-core:33648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 20:14:43 +00:00
nobu
c8aaf31fdd
* array.c (rb_ary_resize): new utility function. [ruby-dev:42912]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 20:10:59 +00:00
nobu
697a45b196
* dln.c (init_funcname_len): ignore rest from first dot.
...
[ruby-dev:41774]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 20:03:28 +00:00
tenderlove
e9e01ec4a0
* ext/psych/lib/psych/visitors/yaml_tree.rb: use YAML 1.0 output
...
format for serializing nil values. Thanks Eric Hodel!
* test/psych/test_nil.rb: test for nil values
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 17:57:38 +00:00
usa
ae931140b9
* test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
...
skip on Windows because chmod 0 doesn't mean unreadable by owner.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 05:06:44 +00:00
knu
0d375e732d
* lib/net/http.rb (Net::HTTP#get): A header hash given should not
...
be modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 04:58:57 +00:00
akr
bb4f62f234
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-01 01:52:15 +00:00
naruse
3d38ba877e
* vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.
...
patched by Peter Weldon <peter.weldon AT null.net>
[ruby-core:33985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-30 18:53:41 +00:00
wanabe
af8df10d3b
* vm.c (vm_define_method): guard iseq from GC while method definition.
...
[ruby-dev:42832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-30 14:17:32 +00:00
drbrain
b2d68b2826
Deprecate Rake::RDocTask in favor of RDoc::Task
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-28 22:22:58 +00:00
drbrain
e2efe8e81d
Import RDoc 3.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-28 22:08:56 +00:00
tenderlove
5c99ee83ad
* ext/fiddle/extconf.rb: check for windows.h while building fiddle.
...
Thanks Jon Forums! [ruby-core:33923]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-27 19:34:00 +00:00
nobu
fc0df967d7
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths::HOMEDIR): no exception if
...
HOME is not set. [ruby-core:33867]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-26 03:16:34 +00:00
nobu
cc479b25ba
* parse.y (stmt): missing ripper rule. i.e., `a::B ||= c 1'.
...
http://twitter.com/#!/wannabe53/status/18797576396472321
http://twitter.com/#!/wannabe53/status/18798416150663168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-26 02:39:14 +00:00
nobu
6d8c13bc61
* test/with_different_ofs.rb (DifferentOFS): should not affect
...
original classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-26 02:15:55 +00:00
kosaki
085e40d45b
* io.c (advice_arg_check): Change argument check.
...
Now, an unsupported advice makes NotImplementedError.
[ruby-dev:42887] [Ruby 1.9-Feature#4204]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 17:25:02 +00:00
nobu
ef99044673
* test/csv: DifferentOFS needs to be include in each classes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 13:49:14 +00:00
nobu
c41b036f4d
test/with_different_ofs.rb: fixed typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 13:41:11 +00:00
nobu
3e7c68119c
* test/digest/test_digest_extend.rb (TestDigestExtend#setup):
...
should not depend on the result of previous tests
* test/with_diffent_ofs.rb (DifferentOFS::WithDifferentOFS): give
name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 13:32:48 +00:00
nobu
7df8b94926
* test/with_diffent_ofs.rb (DifferentOFS): test suite for test
...
suites affected by $,.
* test/digest/test_digest_extend.rb (TestDigestExtend): should not
assume $, invariant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 13:08:07 +00:00
nobu
36feefecb9
* test/csv/test_data_converters.rb, test/csv/test_table.rb: don't
...
not call setup within tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 13:04:43 +00:00
nobu
08d99ac9e3
* lib/csv.rb (CSV.foreach): 'rb' mode is defaulted in open.
...
* lib/csv.rb (CSV#init_separators): cannonicalize encoding options
as Encoding objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 09:04:33 +00:00
naruse
9ff4e23741
Support OpenSSL 1.1; it supports RSA1024 and DSS1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 09:02:03 +00:00
nobu
eadc639598
* test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to
...
anonymous classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 08:33:58 +00:00
nobu
9c017ca5fb
* lib/csv.rb (CSV#init_separators): use IO#gets with length
...
parameter to get rid of wrong convertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 08:32:27 +00:00
nobu
b4876f5e04
* lib/csv.rb (CSV::foreach, CSV#initialize): directly use encoding
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 07:04:38 +00:00
nobu
d05217109f
* lib/csv.rb, test/csv: should not assume $, invariant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 06:58:58 +00:00
nobu
9b0f2e48d7
* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
...
suite writing to the source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 06:04:07 +00:00
nobu
522c538e93
* io.c (rb_io_extract_encoding_option): accept Encoding object as
...
encoding: optional argument. [ruby-dev:42884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 05:27:12 +00:00
nobu
91c6ba2333
* ext/zlib/zlib.c (gzreader_gets): support optional length
...
parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 02:02:55 +00:00
nobu
bd3c7a7e90
* test/zlib/test_zlib.rb (test_readline): renamed from test_gets.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 01:54:28 +00:00
yugui
dae189e8c6
* test/net/imap/cacert.pem: updated because it has been expired.
...
* test/net/imap/server.crt: signed again because CA cert was expired.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-23 10:25:44 +00:00
tenderlove
26e6372a87
adding tests for Net::SMTP::Response#exception_class
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 23:32:57 +00:00
tenderlove
3971bc3c70
adding more tests for Net::SMTP::Response class
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 23:26:05 +00:00
tenderlove
0a2392a50a
* lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an
...
attr_accessor
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 23:13:49 +00:00
tenderlove
df8e7db7c5
adding tests for the SMTP response parser
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 23:09:05 +00:00
tenderlove
4a7f4d1f48
* lib/net/smtp.rb: Net::SMTP should close the SSL connection if the
...
connection verification fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 21:37:13 +00:00
nobu
182b614869
* test/rexml/test_contrib.rb (ContribTester#test_pos): should not
...
use fixed path name for tests. [ruby-dev:42827]
* test/rexml/test_sax.rb (SAX2Tester#test_socket): should not use
fixed port for tests. [ruby-dev:42828]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 21:25:49 +00:00
nobu
f4db8aedc8
* compile.c (setup_args), vm.c (invoke_block_from_c),
...
vm_insnhelper.c (caller_setup_args): reverted r30241 and r30243
except for the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 21:10:24 +00:00
drbrain
2ef9c50c6e
Import RDoc 3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 03:22:49 +00:00
nobu
cd3f980ea2
* compile.c (setup_args), vm.c (invoke_block_from_c),
...
vm_insnhelper.c (caller_setup_args): fix of r30241. lambda block
shoud check argument number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-18 07:02:35 +00:00
nobu
5cb9711323
* test/mkmf/base.rb (TestMkmf::FakeLog): capture output from mkmf.
...
* test/mkmf/test_find_executable.rb (test_find_executable):
suppress meaningless diffrences for chkbuild.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 10:35:20 +00:00
nobu
f913368b57
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_require): -r
...
with no name is ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-17 08:04:35 +00:00
kosaki
cc9b886691
* io.c (rb_io_advise): New API. IO#advise() allows to tell the
...
ruby runtime how it expects to use a file handle. This feature
can be improved a performance some situations.
Note: This feature is mainly developed by Run Paint Run Run.
Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038]
* io.c (do_io_advise): Helper function.
* io.c (io_advise_sym_to_const): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-16 15:01:55 +00:00
tenderlove
033cea7d8e
drying up the requires in the openssl tests
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 19:50:00 +00:00
usa
fc233f516c
* test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 02:20:37 +00:00
kosaki
b2f69c4c1f
* test/ripper/test_parser_events.rb (TestRipper#test_block_variables):
...
Limit address space 100MB instead 100KB. Quite frankly, This margin
is too narrow to contain ruby. [ruby-dev:42763] [Bug#4159]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 18:21:31 +00:00
usa
d6273007fc
* test/ruby/test_io.rb (test_reopen, test_reinitialize): should close
...
the temporay files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 06:06:18 +00:00
usa
4d257293f8
* test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
...
maked by make_temfile is already closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 05:26:34 +00:00
usa
a5b77d1cf7
* test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
...
temporary file because it's only used for taking pathname and
unlinking the file after the end of the test (in GC phase).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 04:54:20 +00:00
naruse
cba0d62d91
* lib/net/http.rb (Net::HTTPRequest#send_request_body_data):
...
set binmode to tempfile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 04:05:03 +00:00
usa
b33cb3c017
* test/zlib/test_zlib.rb (*): should close files associated with zlib.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 03:57:26 +00:00
usa
fae9930033
* test/ruby/test_argf.rb (test_inplace_rename_impossible): unlink
...
the renamed temporary file on no_safe_rename platforms.
* test/ruby/test_argf.rb (test_readlines_limit_0,
test_each_line_limit_0): should close argf because the associated
Tempfile object cannot unlink the temporary file when it's gc'ed
on some platforms (Windows, etc.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:34:46 +00:00
tenderlove
b130018e86
adding a test for OpenSSL::PKCS12.create
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-13 04:17:42 +00:00
naruse
1c9f703a47
* lib/net/http.rb (Net::HTTPRequest#set_form): Added to support
...
both application/x-www-form-urlencoded and multipart/form-data.
There is a similar API, Net::HTTPRequest#set_form_data, but
to keep its compatibility this is newly added. [ruby-dev:42729]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-13 01:04:37 +00:00
naruse
2b79366f52
* string.c (rb_str_inspect): fix: extra back slash is added when
...
the string is dummy encoding and includes \x22 or \x5C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-11 19:03:26 +00:00
tenderlove
b82ba18990
* ext/openssl/ossl_asn1.c: indefinite length BER to DER encoding is
...
properly supported. Thanks Martin Bosslet! [ruby-core:33082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-11 17:45:42 +00:00
tenderlove
e1e671d60d
refactor load error rescue to the openssl util file
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-11 01:25:25 +00:00
drbrain
62e2f9052b
Include Comparable in OpenSSL::X509::Name, document #<=>
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 21:26:23 +00:00
nobu
61d197a62d
* test/mkmf/base.rb (TestMkmf#config_value): extract macro value from
...
config.h.
* test/mkmf/test_sizeof.rb (TestMkmf::TestSizeof#test_sizeof_builtin),
(TestMkmf::TestSizeof#test_sizeof_struct): more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 09:12:33 +00:00
nobu
30e0f51a5d
* lib/mkmf.rb (check_signedness): should use the prelude code.
...
[ruby-dev:42731]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 09:11:48 +00:00
nobu
b38cc52c13
* lib/mkmf.rb (Logging.log_close): separate from Logging.logfile.
...
* test/mkmf/base.rb (TestMkmf::MKMFLOG): show mkmf.log at failures.
* test/mkmf/base.rb (TestMkmf#teardown): close log file for each tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 09:11:10 +00:00
naruse
c37ca96692
* lib/net/http.rb: remove version 1.1 features.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 01:08:45 +00:00
tenderlove
16a166dd35
* ext/openssl/ossl_x509store.c (ossl_x509stctx_cleanup): removing C
...
implementation of `cleanup`.
* ext/openssl/lib/openssl/x509.rb: adding ruby implementation of
`cleanup`. OpenSSL::X509::StoreContext#cleanup is deprecated since
reusing the underlying struct doesn't make sense. [ruby-dev:42546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-09 17:18:54 +00:00
nobu
fc2748e71e
* test/irb/test_option.rb (test_end_of_option): don't read .irbrc. Bug#4138
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-08 22:00:59 +00:00
nobu
2f26014e38
* parse.y (shadowing_lvar_gen): fix line number. [ruby-dev:42718]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-08 12:36:20 +00:00
shyouhei
87a826b8c2
reverted to r30124; r30124 breaks test
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-08 10:55:36 +00:00
nobu
43cfe6c63e
* parse.y (struct vtable, struct local_vars, vtable_add):
...
restructued to add declared line. [ruby-dev:42718]
* parse.y (shadowing_lvar_gen): should not add dvar to vars.
* parse.y (local_push_gen, local_id_gen, dvar_defined_gen): check
local variable usage for args and vars respectedly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 22:29:47 +00:00
naruse
7fd6016e1c
Set DH Parameter for SSLContext to clean warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 14:24:40 +00:00
naruse
4ec63ef245
fix typo: not response.attr.data, but response.data.attr.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:12:10 +00:00
nobu
5bf72d1fa6
* transcode.c (transcode_loop): call default handler of the given
...
hash, method, proc or [] method as fallback. [ruby-dev:42692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:05:26 +00:00
kou
40a5012381
* test/rexml/test_light.rb: really suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:57:35 +00:00
kou
d5e607eb52
* test/rexml/test_light.rb: suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:55:12 +00:00
kou
9ce40aacef
* lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.
...
[ruby-core:33305]
Reported by Aaron Patterson. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 12:10:23 +00:00
naruse
85eb93d062
* ext/nkf/lib/kconv.rb (String#kconv): fix typo and update rdoc.
...
patched by Kouhei Yanagita [ruby-dev:42696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:47:39 +00:00
kou
1f70a6ba67
* test/rexml/test_doctype.rb: add Accessor to test case name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:32:45 +00:00
kou
25a6a3fd99
* test/rexml/test_doctype.rb: Doctype -> DocType.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:31:46 +00:00
kou
eb20de889c
* test/rexml/test_doctype_mixin.rb: rename to ...
...
* test/rexml/test_doctype.rb: ... this to remove needless name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 11:30:19 +00:00
shugo
fd019a5cbd
* lib/net/imap.rb (xlist): supported the XLIST command, which is an
...
extension by Apple and Google. patch by Geoff Youngs.
[ruby-core:33521]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 08:07:12 +00:00
nobu
5d8fd7f1ba
* test/mkmf/base.rb (TestMkmf#setup): run quietly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 14:18:26 +00:00
nobu
6852bf0933
* test/mkmf/test_find_executable.rb (test_find_executable): use
...
configured results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 14:17:40 +00:00
nobu
a3732110fb
* common.mk (test-build): test for build process.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 13:55:15 +00:00
kazu
dd77ae9f6c
* test/ruby/test_string.rb (TestString#test_scan): add a test for
...
[ruby-core:33338] #4087 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 10:01:45 +00:00
kazu
9600d9693c
* test/uri/test_common.rb (TestCommon#test_encode_www_form): add
...
tests for r30015.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 10:01:42 +00:00
naruse
68b18291ac
* lib/uri/common.rb (URI::Parser#initialize_pattern):
...
refix for restrict the pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 01:41:10 +00:00
nobu
504e6b4dac
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-05 03:09:34 +00:00
nobu
af54c1694c
* ruby.c (load_file_internal): decrement for ungotten line.
...
[ruby-dev:42680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-05 02:27:13 +00:00
nobu
b942e7891a
* vm_insnhelper.c (vm_call_method): revert r30064 and r30071,
...
because of [ruby-core:26761]. Bug#4106 rejected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 23:25:19 +00:00
nobu
7b0b9df60e
* vm_insnhelper.c (vm_call_method): protected methods should be
...
checked against the real class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 13:36:49 +00:00
nobu
9e3e0ca3fe
* lib/mkmf.rb (convertible_int): define printf format prefix too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 11:23:48 +00:00
nobu
e33b7f3381
* lib/mkmf.rb (convertible_int): detect convertible integer type.
...
port RUBY_REPLACE_INT from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 10:53:53 +00:00
nobu
7031b99bca
* lib/mkmf.rb (check_sizeof): should return integer always.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 10:48:12 +00:00
nobu
adc978adc3
* vm_insnhelper.c (vm_call_method): protected singleton methods should
...
be visible from same real class methods. [ruby-core:33506]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 03:17:22 +00:00
nobu
bfcd4e5453
* ext/stringio/stringio.c (strio_getline): round upto next char
...
boundary. [ruby-dev:42674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 22:08:45 +00:00
naruse
c20b8f75dd
* ext/json/lib/json/add/rails.rb: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 12:28:45 +00:00
naruse
7eadd51dfe
Setup Symbol#to_json to avoid conflict.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 04:36:54 +00:00
naruse
521876c373
* ext/json/lib/json/common.rb: don't use iconv on 1.9.
...
patched by Shota Fukumori [ruby-core:33164]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 16:26:15 +00:00
naruse
4a84c27e3e
* ext/json: Update github/flori/json from 1.4.2+ to
...
e22b2f2bdfe6a9b0. this fixes some bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 16:26:13 +00:00
akr
6dea556eb7
* test/socket/test_addrinfo.rb: extract Errno::EADDRINUSE as a method.
...
* test/socket/test_socket.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 12:42:50 +00:00
usa
1972f9eec1
* test/openssl/test_ssl.rb (test_not_started_session): non socket
...
argument of SSLSocket.new is not supported on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 06:09:22 +00:00
nobu
417ea3a3c3
* string.c (rb_memhash): zero-filled strings should return
...
different values. [ruby-core:33500]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 05:36:39 +00:00
ryan
d264d3cc38
Imported minitest 2.0.0 r5952. Fixed test/unit.rb to work with changes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 05:33:32 +00:00
naruse
ed22b0ecee
* string.c (rb_str_inspect): fix typo (not 0xFD but 0xFE).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 01:20:56 +00:00
naruse
54fd6de064
Revert r29986: "Imported minitest 2.0.0 r5952"
...
This breaks test-all:
* two test-all errors (test_run_passing and test_run_failing_filtered).
* -v option to test-all is ignored
Additional to say, please describe summary of the change when you
import from external repository.
And, RUN test-all BEFORE COMMIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 01:12:31 +00:00
ryan
3632f4cf1c
Imported minitest 2.0.0 r5952
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-30 22:45:53 +00:00
naruse
05d7d889ea
* string.c (rb_str_inspect): inspect as a dummy encoding string
...
when a UTF-16/32 (not BE/LE) string does not have a BOM.
Unicode and some RFCs say that a string labeld as UTF-16/32
doesn't have a BOM, it should be considered big endian.
But many Windows programs generates little endian UTF-16
strings without a BOM. So String#inspect treats a string
labeled UTF-16/32 withaout a BOM as a dummy encoding string.
patched by Martin Duerst. [ruby-core:33461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-30 16:47:24 +00:00
nobu
839ee60687
* lib/uri/common.rb (URI::WFKV_): get rid of backtrack explosion
...
by nested repeat operators. [ruby-core:33464]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 13:55:27 +00:00
duerst
5ff2c82a08
test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
...
- Removed commented-out options that are no longer under discussion.
- Added two more tests for forthcomming clarifications.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 09:33:08 +00:00
nobu
53d06bb081
* test/iconv/utils.rb: suppress warning message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-28 13:25:58 +00:00
nobu
2451d735a7
* time.c (leap_year_v_p): fixed typo. [ruby-dev:42631]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 09:08:29 +00:00
naruse
f8f3585416
* regcomp.c (setup_tree): restart setup_tree() for a node whose
...
AnchorNode's type is ANCHOR_PREC_BEHIND or ANCHOR_PREC_BEHIND_NOT
and divide_look_behind_alternatives() divided it to NT_ALT or
NT_LIST. [ruby-core:33370]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-26 03:28:48 +00:00
nobu
756dfe9f40
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-25 14:31:36 +00:00
usa
69a248a073
* test/win32ole/test_err_in_callback.rb (teardown): remove tmp file
...
only when it exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-25 01:03:52 +00:00
naruse
38b482be8c
* enc/trans/utf_16_32.trans: add the UTF-32 converter.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-24 00:08:04 +00:00
nobu
bcf80a5140
* test/ruby/test_transcode.rb: ASCII-8BIT is not a valid encoding name in Emacs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 21:37:56 +00:00
naruse
7f38397b6c
* enc/trans/utf_16_32.trans: add a convert from UTF-8 to UTF-16.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 20:49:56 +00:00
naruse
3ab82a65d7
* enc/trans/utf_16_32.trans: raise error on unpaired upper
...
surrogates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 18:23:03 +00:00
naruse
78bee9c26a
* enc/utf_16_32.h: add UTF-16 and UTF-32 as a dummy encoding.
...
* enc/trans/utf_16_32.trans: add a converter from UTF-16 to UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 16:42:47 +00:00
nobu
3c575a15c2
* vm.c (rb_thread_mark): should mark self in conrol
...
frames. [ruby-core:33289]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 09:54:07 +00:00
tadf
bacd547858
added some tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 22:32:57 +00:00
tadf
6e9ca64843
added some tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 22:28:53 +00:00
naruse
18c0fc890c
* vsnprintf.c (BSD_vfprintf): don't output floating point
...
when the precision is 0. [ruby-dev:42615]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 16:06:38 +00:00
nobu
94e6c0c233
* string.c (rb_str_inspect): fix for ascii-compatible external
...
encoding and different encoding string. [ruby-core:33283]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 12:30:58 +00:00
naruse
60dfa6b655
* enc/big5.c: split CP950 from Big5.
...
* enc/big5.c: split CP951 from Big5-HKSCS.
* enc/trans/big5.trans: import conversion table of Big5, Big5-HKSCS,
CP950, and CP951 from ICU. they need fallback conversions.
ref [ruby-core:33256]
http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/
* tool/transcode-tblgen.rb (import_ucm): add to import ucm files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 09:35:08 +00:00