naruse
c85be42589
* lib/test/unit/parallel.rb: remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 21:42:23 +00:00
sorah
80b64d145a
* lib/test/unit.rb: Refactoring. Unified if and elsif.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 02:23:21 +00:00
nobu
c7837ed8d3
* lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp
...
to still copy file permissions when :preserve is false (as cp does
this even when -p isn't set).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-17 23:48:13 +00:00
sorah
6ef956ab90
* lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
...
is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
* test/test_pstore.rb: Test for above.
Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43337]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-13 07:14:07 +00:00
tadf
f809440332
* ext/date/lib: moved from lib.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 15:07:47 +00:00
tadf
725e9ee966
* lib/date/delta*: removed undocumented delta.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 14:33:52 +00:00
nobu
e77a9ad446
* lib/mkmf.rb (find_executable0): should exclude directories.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 09:42:46 +00:00
naruse
9e53a0b142
* lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
...
when IO#read or IO#gets returns nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-10 01:35:56 +00:00
ryan
6e5f49770c
Import rubygems 1.6.2 (release candidate @ 2026fbb5)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-09 22:32:29 +00:00
sorah
e267617f3e
* lib/pstore.rb: Delete variable @transaction and fix #4474 . Patch by
...
Masaki Matsushita (Glass_saga).
* test/test_pstore.rb(test_thread_safe): Add test for #4474 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07 14:03:41 +00:00
matz
1df42597d1
cancel subversion backfire. sorry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07 08:44:45 +00:00
matz
eb807d42ec
* gc.c (rb_gc_set_params): allow GC parameter configuration by
...
environment variables. based on a patch from funny-falcon at
https://gist.github.com/856296 , but honors safe level.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07 08:39:39 +00:00
naruse
f25ff846f6
* lib/rexml/encoding.rb (REXML::Encoding#encoding=): store @encoding
...
a String which means the name of the encoding.
this partially revert r29646.
* lib/rexml/document.rb: follow above.
* lib/rexml/output.rb: ditto.
* lib/rexml/parsers/baseparser.rb: ditto.
* lib/rexml/source.rb: ditto.
* lib/rexml/xmldecl.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-02 15:36:48 +00:00
sorah
31fcc22365
* lib/test/unit/parallel.rb: Fix name from `inclement_io` to
...
`increment_io`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-02 05:29:52 +00:00
sorah
39f90db925
* lib/test/unit/parallel.rb: Fix number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-01 13:05:17 +00:00
sorah
0a9442983d
* lib/test/unit/parallel.rb: For Windows.
...
* test/testunit/test_parallel.rb(TestParallelWorker#test_quit_in_test):
Fix for above specification change.
* test/testunit/test_parallel.rb(TestParallel#spawn_runner):
Fix outputing empty line in running test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-01 12:54:39 +00:00
ryan
25a9b62d45
Import rubygems 1.6.0 (released version @ 58d8a0b9)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-01 09:41:32 +00:00
shyouhei
b38b837066
* lib/tempfile.rb: Fix example file paths in docs for tempfile.
...
https://github.com/ruby/ruby/pull/5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-28 04:16:16 +00:00
sorah
04ccb2fee2
* lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
...
method name more be natural English.
* lib/test/unit.rb(Test::Unit::Runner::Worker.launch):
IO.sync doesn't need. Should use "b" for mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-27 22:40:53 +00:00
sorah
c6598ffcae
* lib/test/unit.rb: Refactoring; Worker never use Hash for internal storage.
...
* lib/test/unit.rb: Never use Kernel#spawn. Use IO.popen instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-27 09:03:16 +00:00
nobu
715dc8355c
* lib/test/unit.rb, lib/test/unit/parallel.rb: remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 14:51:35 +00:00
tadf
fdf361189c
* lib/date.rb: [Feature #4257 ]
...
* ext/date/extconf.rb: new
* ext/date/date_core.c: new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 08:10:03 +00:00
sorah
86c7e68442
* lib/test/unit.rb: --jobs-status won't puts over 2 lines.
...
* test/testunit/test_parallel.rb: Fix test for above.
* lib/test/*: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-26 07:17:59 +00:00
sorah
0695a5aa25
* common.mk: Use $RUNRUBY for worker process.
...
* lib/test/unit.rb: Fix bug.
* lib/test/unit.rb: @options[:ruby](@opts[:ruby]) is now Array.
* test/testunit/parallel.rb: Fix for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-24 04:47:48 +00:00
sorah
e9c22a6f1a
* test/testunit/tests_for_parallel/misc.rb: Fix bug in r30947.
...
* lib/test/unit.rb, lib/test/unit/assertions.rb: For this test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-24 01:08:51 +00:00
sorah
48fa6ed529
* test/testunit/test_parallel.rb, test/testunit/parallel/*:
...
Test for r30939.
* lib/test/unit.rb: For test.
* lib/test/parallel.rb: For test.
* lib/test/unit/testcase.rb: For test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-23 14:08:25 +00:00
sorah
8f1430d08b
* lib/test/unit.rb: Fix --ruby option doesn't effect.
...
* lib/test/unit.rb: Fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 14:16:38 +00:00
sorah
06aeddaf92
* lib/test/unit.rb: Fix merging miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 05:35:05 +00:00
sorah
a790bd0bd7
* lib/test/unit.rb: Add new options; --jobs,-j,--ruby,--jobs-status,
...
--no-retry.
[Feature #4415 ] [ruby-dev:43226],[ruby-dev:43222],[ruby-core:35294]
* lib/test/unit/parallel.rb: Used at test/unit --jobs(-j) option.
* test/csv/test_serialization.rb: test/unit parallel running ready.
* test/rake/test_file_task.rb: test/unit parallel running ready.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-22 03:36:38 +00:00
ryan
4f00a27fb5
lib/minitest/*.rb: Imported minitest 2.0.2 r6207
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-19 20:44:08 +00:00
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
shyouhei
c1afbd39e1
* lib/fileutils.rb (FileUtils::remove_entry_secure): there is a
...
race condition in the case where the given path is a directory,
and some other user can move that directory, and create a
symlink while this method is executing.
Reported by: Nicholas Jefferson <nicholas at pythonic.com.au>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-18 10:42:50 +00:00
usa
0755c1c8f2
* lib/test/unit.rb: revert r30863, because it causes too many noise.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-14 01:34:54 +00:00
nobu
63ca916ed4
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skip
...
test suites failed to load instead of mere messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 10:41:59 +00:00
tadf
ce430673be
* lib/date.rb (Date#===): [ruby-core:35127]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 15:51:31 +00:00
nobu
420d98e4a8
* lib/test/unit.rb (Test::Unit::Options#process_args): always
...
return options.
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return
if any test case get loaded.
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add
default directory if it is nil.
* lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return
true if any test cases to run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 15:29:24 +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
aca69e1fdc
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
...
default_dir if no test case given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 05:41:38 +00:00
nobu
4e3df72f0d
* lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 05:41:02 +00:00
nobu
58ed5a45ff
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
...
under base directory if no argument given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 00:30:13 +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
180bf48fea
* lib/test/unit/assertions.rb (assert_no_match): alias for
...
backward compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-11 05:33:21 +00:00
nagachika
b50d85ebc6
* lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of
...
Object#tap to restore STDOUT.sync.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 14:01:01 +00:00
akr
afe7aac47b
* lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
...
Indication) for HTTPS. [ruby-dev:43164]
http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 13:37:43 +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
kosaki
e66eec9284
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
revert r30796. r30797 and r30798 are an alternative fix.
[ruby-dev:43174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 13:06:14 +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
kosaki
49f8799af4
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
msg can be passed nil. [Bug #4371 ] [ruby-dev:43174]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-05 07:50:12 +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
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
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
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
yugui
9a89f325e4
* lib/irb/locale.rb (IRB::Locale::#search_file):
...
Gem might be undefined if --disable-gems. [ruby-core:34990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-31 05:46:50 +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
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
drbrain
b7dd8d07f6
Always enable rubygems/custom_require
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 03:33:00 +00:00
drbrain
84e892f859
Remove require of deleted file in RubyGems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-19 03:09:42 +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
ryan
d26fb035ca
Reverting nobu's rubygems patch. It needs: 1) to have a test, 2) to be UTF8, and 3) to work on 1.8 (see Gem.read_binary). (It should also be submitted to the rubygems repo or tracker)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-18 22:38:34 +00:00
keiju
aa3cb74b81
* lib/irb/comletion.rb: Irb tab completion support for XX::method forms.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-18 09:34:10 +00:00
nahi
9ffaa7e96b
* lib/logger.rb: added RDoc document for logging message escape
...
by Hal Brodigan. See #3869
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-18 06:11:41 +00:00
nobu
f8cf213ba2
* lib/rubygems/source_index.rb (Gem#load_specification): read in
...
binary mode to get rid of failures caused by mismatch between
default internal encoding and encoding comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-17 21:49:40 +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
naruse
2661691698
* lib/net/imap.rb: use bytesize for binary strings.
...
patched by Yoshimasa Niwa. [ruby-core:34222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-14 05:57:50 +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
akr
d737ae5449
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-12 10:36:08 +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
yugui
b128f7ffcd
* lib/irb/locale.rb (IRB::Locale::LOCALE_NAME_RE):
...
some platoform has a locale without territory but with
encoding.
(#each_sub_locale): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-09 07:39:16 +00:00
nobu
35f78ac1f8
* lib/mkmf.rb (configuration): backref needs to capture.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-07 14:07:51 +00:00
usa
a6fac6a669
* lib/mkmf.rb (create_makefile): ignore rest from first dot from
...
TARGET to generate init function name.
this is followup of r30464.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-06 11:58:44 +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
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
yugui
09aefc43a5
* lib/irb/locale.rb (IRB::Locale#search_file): make it possible
...
to load a localization from a gem.
(IRB::Locale#lc_path): obsoleted because of the change of #search_file
(IRB::Locale#each_localized_path): new private method, based on lc_path
(IRB::Locale#find): follows the change of #search_file.
(IRB::Locale#load): removed duplicate with #find.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-05 01:13:12 +00:00
nobu
484e94a89c
* configure.in (warnflags), lib/mkmf.rb (configuration): turn
...
warnings into errors only for bundled extensions.
[ruby-core:33815]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-31 02:46:50 +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
kazu
0924e52c24
* lib/optparse.rb (OptionParser#compsys): escape brackets too.
...
[ruby-dev:42754]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-26 23:30:33 +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
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
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
9a907880f0
* lib/csv.rb (CSV::foreach, CSV#initialize): fixed passing options.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 07:44:50 +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
ryan
f83bc706bf
Fixed a minor warning in 1.9.3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 05:01:32 +00:00
ryan
9698217cda
Imported minitest 2.0.2 r6093
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-25 04:55:15 +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
d236a0ca3b
passing nil to split is not necessary
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-22 23:18: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
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
drbrain
9d767bc265
There is no Perl parser in RDoc 3 â¹
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-20 03:32:22 +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
ryan
5c9194fe1f
Imported minitest 2.0.1 r6079.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 22:23:52 +00:00
usa
1c93261983
* lib/test/unit.rb (process_args): need to setup @help to print options.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-15 11:45:57 +00:00
usa
949e6d454e
* lib/test/unit.rb: help messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 09:32:36 +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
naruse
842110e6a6
fix wrong argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:42:40 +00:00
naruse
00aab58537
* lib/minitest/unit.rb (Minitest::Unit#_run_suite): split test
...
name and its time. Thiw allows to know test's name when you are
running tests and meet a test which spends long time at realtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-14 02:33:07 +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
kazu
89c7efed6f
* misc/rb_optparse.zsh: update how to install.
...
* misc/rb_optparse.zsh: avoid error when setopt noclobber.
* lib/optparse.rb: fix typo. pointed out at
<http://d.hatena.ne.jp/nagachika/20101207 >.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-12 11:40:29 +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
d10fab3139
Add doc to warn the userinfo for auth. [ruby-core:33255]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-10 01:21:13 +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
akr
d99801bbc8
* lib/webrick/accesslog.rb (WEBrick::AccessLog#format): support
...
%{remote}p for logging remote (client) port number.
[ruby-dev:42670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-09 10:16:50 +00:00
nobu
11ef87461a
* lib/optparse.rb (OptionParser::Officious): separate completion
...
options from --help. [ruby-dev:42690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:31:11 +00:00
nobu
ff1fb42734
* lib/optparse.rb (OptionParser::Completion#candidate),
...
(OptionParser::Switch#compsys): remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:29:49 +00:00
kou
c207b0b727
* lib/rexml/light/node.rb: remove circular require.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:01:36 +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
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
e806b0fed7
* configure.in, win32/Makefile.sub (WERRORFLAG): flag to treat
...
warnings as errors.
* lib/mkmf.rb (Logging.postpone): yield log file object.
* lib/mkmf.rb (xsystem): add options, :werror only right now.
* lib/mkmf.rb (with_werror): check as if warnings are errors.
* lib/mkmf.rb (convertible_int): make declaration conflict
warnings errors not to pass wrong type. [ruby-dev:42684]
* lib/mkmf.rb (COMMON_MACROS): get rid of conflicts.
* win32/Makefile.sub (WARNFLAGS): make declaration conflict
warnings errors if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 23:00:47 +00:00
nobu
76c286d195
* lib/optparse.rb (OptionParser#candidate): skip separators.
...
* sample/optparse/opttest.rb: should not override --help.
[ruby-dev:42690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 13:47:19 +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
naruse
2a35a782ab
* lib/uri/common.rb (URI::Parser#initialize_pattern):
...
workaround fix pattern of hostname for RFC 3986. [ruby-dev:42672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 00:19:28 +00:00
naruse
02c0481f8e
* lib/mkmf.rb (check_signedness): rename unused variable prelude.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 00:19:25 +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
eb8ccbad0a
* lib/mkmf.rb (String#tr_cpp): substitute * with P like as
...
autconf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-03 22:46:53 +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
naruse
e41ed50bf0
* lib/uri/common.rb (URI.encode_www_form):
...
split key-value when the value is Array like object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 04:33:56 +00:00
naruse
f5bdc774fd
* lib/net/http.rb (Net::HTTP#set_form_data):
...
use URI.encode_www_form for application/x-www-form-urlencoded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 01:46:45 +00:00
nobu
5f37d6902a
* lib/test/unit.rb (Test::Unit::GCStressOption): --gc-stress
...
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 22:20:23 +00:00
nobu
64740adcff
* lib/test/unit.rb (Test::Unit::Mini#_run_suites): show the result
...
even when interrupted on the way.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 22:15:15 +00:00
drbrain
ec8f4038c9
Fix positional wording in lib/net/http.rb to match revised order
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 17:31:20 +00:00
naruse
95bff6e828
Improve rdoc of net/http/http.rb.
...
* use URI(..)
* normalize Net::HTTP.start()
* use Net::HTTP.start(hostname, :use_ssl). Feature #2579
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 16:40:16 +00:00
naruse
594633fbea
* lib/net/http.rb: improve rdoc.
...
This change the order of chapter because such overview should
begin with simple examples.
patched by Eric Hodel [ruby-core:33469]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 15:07:35 +00:00
naruse
b5e1dfdb1b
Remove unused logics
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-01 06:03:57 +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
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
4bded50f0d
* lib/net/http.rb: improve rdoc.
...
patched by Eric Hodel ref #4100
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-30 08:06:19 +00:00
naruse
80c21e35cb
* lib/net/http.rb: improve rdoc.
...
patched by mathew murphy [ruby-core:33472] ref #4100
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-30 02:56:14 +00:00
drbrain
ff3e943d1f
Improve documentation for URI::Common#encode_www_form, OpenSSL::SSL::SSLContext#ssl_version=.
...
Add documentation for OpenSSL::SSL::SSLContext#ciphers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 20:23:59 +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
naruse
baf7a09d35
* lib/net/http.rb: improve rdoc.
...
patched by Mike Perham [ruby-core:33433]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 19:22:53 +00:00
akr
0ebec8cf72
* resolv.rb (Resolv::DNS): use the same DNS server when retry using TCP.
...
reported by Julian Mehnle. [ruby-core:32970]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 09:03:26 +00:00
shugo
2381984069
* lib/optparse.rb (OptionParser#candidate): : was missing. Thanks,
...
Shota Fukumori. [ruby-dev:42634]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 05:01:13 +00:00
nobu
7050069d80
* lib/optparse.rb (OptionParser#candidate): get rid of 1.9 syntax
...
so that BASERUBY can be 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-27 02:29:26 +00:00
tadf
b828fb85dd
* lib/date/delta/parser.{ry,rb}: fixed a bug of token scanner.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 22:59:48 +00:00
tadf
ed5c01b9a3
* lib/date.rb (daynum): should be private.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 22:28:01 +00:00
nobu
42e17a0b3f
* lib/mkmf.rb (create_makefile): should not duplicate rules.
...
bug fix of r29842.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-22 09:45:46 +00:00
tadf
c70988cbe9
* lib/date.rb: some improvements for performance.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-21 16:51:12 +00:00
tenderlove
c62c8f725d
* lib/mkmf.rb: adding compilation support for ObjC/ObjC++ extensions.
...
Thanks Scott Gonyea! [ruby-core:33260]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19 22:47:20 +00:00
nobu
91c0ff4f7d
* lib/optparse.rb: shell completion support for zsh. based on
...
<http://d.hatena.ne.jp/rubikitch/20071002/zshcomplete >
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19 12:07:09 +00:00
nobu
644f0445e8
* lib/optparse.rb: shell completion support for bash.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19 11:26:54 +00:00
kou
6fcd0b37b3
* lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
...
REXML::Formatters::Pretty#wrap used a recursive method call to
format text. This switches it to use an iterative approach.
[ruby-core:33245]
Patch by Jeremy Evans. Thanks!!!
* test/rexml/test_core.rb: add a test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-18 14:25:03 +00:00
jeg2
b028e8d45d
* lib/csv.rb: Upgrading output encoding with ASCII content
...
as needed. [ruby-core:33229]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-17 15:03:25 +00:00
nobu
4fc08fd17d
* lib/mkmf.rb (create_makefile): use forward slashes in messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-17 14:17:26 +00:00
nobu
49959bfd62
* lib/mkmf.rb (create_makefile): make extension libraries messages
...
brief.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-17 10:13:25 +00:00
jeg2
40e5b39336
* lib/csv.rb: Upgrading output encoding as needed. [ruby-core:33135]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-16 23:55:29 +00:00
tenderlove
b73d1fbd25
* lib/racc/parser.rb (do_parse, yyparse): using class eval to define
...
method and avoid __send__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-15 02:47:05 +00:00
nobu
fd7c0279f8
* Makefile.in, common.mk, cygwin/GNUmakefile.in, enc/depend,
...
ext/ripper/depend, lib/mkmf.rb, win32/Makefile.sub: caddle up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-12 11:51:42 +00:00
nobu
812fc57a9a
* lib/mkmf.rb (create_makefile): missing newline.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 15:53:07 +00:00
nobu
994876860b
* lib/rdoc/stats.rb (RDoc#print): get rid of NaN.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 12:49:11 +00:00
nobu
f2f7a7740a
* common.mk: hide long command lines by default. verbose-mode is
...
turned on by V=1 as before.
http://jarp.does.notwork.org/diary/200605b.html#200605121
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 12:46:23 +00:00
nobu
59a666a25f
* lib/mkmf.rb (try_func): accept variable address.
...
* ext/win32ole/extconf.rb: libuuid is needed on cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-11 12:32:15 +00:00
marcandre
f3e3547407
* lib/*.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:59:01 +00:00
marcandre
cceca83afe
* lib/rubygems/*: Remove unused variables warnings
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:58:42 +00:00
marcandre
571ed8655f
* lib/rdoc/*.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:58:28 +00:00
marcandre
ec67ee3387
* lib/rake/*.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:58:12 +00:00
marcandre
64167ddda8
* lib/minitest/mock.rb: Remove unused variable warnings.
...
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:57:56 +00:00
nobu
81567892d0
* lib/irb/ruby-lex.rb (RubyLex#identify_string): use charclass.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-03 05:23:56 +00:00
nobu
4ec86dcc57
* lib/ostruct.rb (OpenStruct#delete_field): also undefine
...
accessor methods. [ruby-core:33010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-03 05:17:25 +00:00
matz
2d189f672b
* lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple
...
regex options. a patch from Heesob Park in [ruby-core:32988].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-02 22:50:31 +00:00
kou
2b82e06aaf
* lib/rexml/encoding.rb: untabify.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30 14:39:20 +00:00
kou
994f066f76
* lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464]
...
* lib/rexml/encodings/: remove.
* lib/rexml/document.rb, lib/rexml/formatters/default.rb,
lib/rexml/output.rb, lib/rexml/parseexception.rb,
lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb,
lib/rexml/xmldecl.rb: use Ruby's native Encoding object.
* test/rexml/, test/rss/: follow the above encoding chagnes.
* NEWS: add REXML's incompatible change about encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-30 12:10:56 +00:00
akr
aeab9011fe
* lib/resolv-replace.rb: suppress warning.
...
* lib/open-uri.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-29 22:02:39 +00:00
akr
2bb96458e7
* lib/resolv.rb: retry via TCP if UDP reply is truncated.
...
fixed by Julian Mehnle. [ruby-core:32407]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-29 21:01:53 +00:00
naruse
a671a06d25
* lib/webrick/httprequest.rb (read_request_line): extend max
...
length to 2083. This is from Internet Explorer's max uri
length. http://support.microsoft.com/kb/208427 [ruby-core:32924]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-28 04:53:57 +00:00
naruse
6ca3ad34a0
* lib/scanf.rb (extract_float): allow 2.e+2 style.
...
[ruby-dev:42452] #3978
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-26 12:39:33 +00:00
tadf
4fcd5e3fc1
* lib/date.rb: some corrections of documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-24 15:30:25 +00:00
nobu
5383964f98
* lib/test/unit.rb (Test::Unit::Mini#run): abort if interrupted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-24 06:16:36 +00:00
nobu
b560b08014
* lib/test/unit.rb (Test::Unit::Mini#run_test_suites): show the
...
result even when interrupted on the way.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-24 05:18:12 +00:00
nobu
071e1ba1f8
* lib/test/unit.rb (Test::Unit::Mini#run_test_suites): ensure
...
output sync mode to be restored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-24 05:13:55 +00:00
tenderlove
8a40d614a3
* lib/test/unit.rb: make test/unit play nicely with the rake test
...
loader. [ruby-core:32864]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-24 03:11:20 +00:00
nobu
c2fdd98eb0
* lib/mkmf.rb: $extmk should be true for test/runner.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-23 05:40:11 +00:00
nobu
cb9ffb8d1c
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
assertion message must not be nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-22 05:50:17 +00:00
naruse
e1d1571256
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
...
treat nil case. Please run test-all before commit such change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-22 05:10:40 +00:00
ryan
b3ee43bb6e
Cleaned up clevar in test/unit's override of assert
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-21 21:15:06 +00:00
naruse
f3fb1954eb
* lib/webrick/httpauth/digestauth.rb
...
(WEBrick::HTTPAuth::ProxyDigestAuth#check_uri): privated.
[ruby-dev:42344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-21 06:56:17 +00:00
naruse
0d5a81f497
* lib/net/telnet.rb (Net::Telnet#close): added.
...
patched by Erik Hollensbe [ruby-dev:42260] #3830
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-21 06:45:33 +00:00
naruse
b1361d5be1
* lib/net/http.rb (transport_request): @socket may be nil.
...
patched by Egbert Eich [ruby-core:32829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-18 01:20:37 +00:00
tadf
d41305b393
* lib/date/delta.rb: added an rdoc tag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-17 13:37:38 +00:00
xibbar
fc6d58ccc4
* lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibyte
...
string. Thanks nobu and tDiary dev members. [Bug #3909 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-13 13:39:13 +00:00
naruse
3f34ecc536
* lib/net/http.rb (HTTP.get): specify ASCII-8BIT as the result
...
encoding of Zlib::GzipReader.
http://hibari.2ch.net/test/read.cgi/tech/1281473294/271
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-11 11:23:35 +00:00
knu
72ef219804
* lib/set.rb (Set#replace): Apply a bit of optimization.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-10 09:45:36 +00:00
jeg2
b6e0e98117
* lib/csv.rb: Fixing documentation typos. [ruby-core:32712]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-07 15:25:23 +00:00
akr
5fd45a4b79
* lib/uri/generic.rb (URI::Generic#hostname): new method.
...
(URI::Generic#hostname=): ditto.
* lib/open-uri.rb: use URI#hostname
* lib/net/http.rb: ditto.
[ruby-core:32056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-06 03:30:49 +00:00
naruse
c4087bcb12
* lib/uri/common.rb (URI.encode_www_form): change treatment of
...
undefined value in given array as latest internet draft for
application/www-form-urlencoded.
http://tools.ietf.org/html/draft-hoehrmann-urlencoded-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-30 00:48:01 +00:00
nobu
510ae756be
* lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-29 03:31:32 +00:00
shyouhei
36cfaa8052
* test/net/imap/test_imap.rb: resurrection of r29259.
...
this change depends on minitest 1.7.1.
* lib/test/unit/assertions.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-27 06:28:59 +00:00
ryan
4c6551b7d3
Imported minitest 1.7.2 r5879.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 21:27:19 +00:00
naruse
d339fed3ad
Add document about URI.join. [ruby-core:32462]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 12:22:43 +00:00
eban
c72e6c7b86
* lib/rdoc/ri/store.rb (save_cache): remove duplicate entries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-21 15:56:41 +00:00
yugui
3038eae7f6
* lib/mkmf.rb (try_link): rdoc
...
(try_compile): ditto
(try_cpp): ditto
(try_func): ditto
(try_var): ditto
(try_run): ditto
(egrep_cpp): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 13:10:31 +00:00
kou
d8c3fa1506
* lib/rexml/xpath_parser.rb, test/rexml/test_xpath.rb:
...
add missing method availability check. [ruby-core:32447]
Reported by Wiebe Cazemier. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 14:47:20 +00:00