shugo
bb9435a75c
* lib/net/imap.rb (hmac_md5): should use String#ord to get ascii
...
code from the one-character string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-03 03:12:30 +00:00
akr
41eb896e09
* version.h: bump up to 1.9.2 patchlevel -1.
...
yugui recommend "-1" strongly.
* lib/rubygems/version.rb: accept negative patchlevel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 07:07:59 +00:00
nobu
2478f1caaf
* lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
...
platform names.
* lib/resolv.rb (Resolv::Hosts::DefaultFileName),
(Resolv::DNS::Config.default_config_hash): tries win32/resolv on
mswin64 too.
* lib/rubygems/specification.rb (Gem::Specification#ruby_code):
aded mswin64.
* lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
spawn is better to start a process in background.
* ext/extmk.rb: uses FNM_SYSCASE.
* instruby.rb: installs win32.h on mswin64 platform.
[ruby-core:21722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-01 23:12:52 +00:00
nobu
d99eeabea6
* lib/optparse.rb (Switch#summarize): strips an equal sign from
...
short option, and fills right sides in shorter lines.
[ruby-talk:326414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-01 07:10:08 +00:00
akr
cd350b6768
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 14:48:48 +00:00
akr
a0b15459ef
* lib/test/unit/assertions.rb (assert_equal): show class in failure
...
message if meaningful.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 13:51:46 +00:00
akr
14605ab0ad
fix rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 13:42:18 +00:00
akr
c109d8ab9f
* lib/resolv.rb (Resolv::DNS#each_address): don't query IPv6 address
...
if the host has no global IPv6 address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 13:40:05 +00:00
nobu
de398e8f61
* lib/optparse.rb (List#accept, parse_in_order): n option is no
...
longer needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 09:03:43 +00:00
akr
fc77d9d1cb
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 05:18:25 +00:00
akr
8cc36df9c3
* lib/pathname.rb (Pathname#each_child): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-31 05:13:49 +00:00
akr
966675c860
* lib/test/unit/assertions.rb
...
(Test::Unit::Assertions#assert_nothing_raised): supress warning.
[ruby-core:21312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30 15:09:17 +00:00
akr
e94e674d0e
* lib/pathname.rb (Pathname#realdirpath): new method.
...
[ruby-dev:36290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30 12:50:55 +00:00
nobu
e501209104
* lib/test/unit/assertions.rb (assert_respond_to): gets rid of
...
overcounting. [ruby-dev:37703]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-30 02:03:32 +00:00
nobu
f10e2af1e6
* lib/securerandom.rb (SecureRandom.uuid): uses unpacked array
...
instead of string, because String#[] returns one length string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-29 04:16:17 +00:00
nobu
f226c38630
* lib/rake.rb (FileUtils#rake_system): no longer needs workaround
...
on Windows. [ruby-core:21339]
* lib/rake/win32.rb (Rake::Win32#rake_system): ditto.
* lib/rake/win32.rb (Rake::Win32#win32_system_dir): no longer
needs environment variables other than APPDATA now.
* lib/rake.rb (Rake::Application#standard_system_dir): uses
platfrom specific definition on Windows system.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-29 03:29:53 +00:00
technorama
7dd1a098a6
* lib/securerandom.rb: new method SecureRandom#uuid
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-29 03:20:26 +00:00
nobu
d232a50435
* lib/mkmf.rb (try_header): checks the header depending on
...
platform.
* lib/mkmf.rb (have_header, find_header): use try_header.
* win32/Makefile.sub (try_header): uses try_compile to get rid of
slow -E option of VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-27 02:09:47 +00:00
nobu
c938de20cd
* common.mk (distclean-enc, realclean-enc): do not call clean of
...
enc.mk twice or more.
* enc/depend (cleanobjs): added deffile.
* lib/mkmf.rb (create_makefile): removes deffile at clean instead
of distclean.
* win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp
files.
* win32/Makefile.sub (clean, distclean): have moved to common.mk.
* win32/rmdirs.bat: omits `not empty' message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-27 02:03:54 +00:00
matz
a0947ecd75
* lib/mkmf.rb (create_makefile): should point correct path to
...
ruby.h and defines.h. [ruby-core:21570]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-26 18:27:58 +00:00
nobu
5225998612
* lib/pathname.rb (chop_basename, prepend_prefix): use o option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-26 06:49:46 +00:00
nobu
cdaadbd903
* lib/mkmf.rb (create_makefile):fixed the variables order because
...
converter proc refers the separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:50:24 +00:00
nobu
97de7d1081
* Makefile.in, win32/Makefile.sub (RMDIRS): remove directory and
...
parents.
* Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove
temprary rdoc.
* Makefile.in, win32/Makefile.sub (distclean): removes extout
directory.
* Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent
directories.
* common.mk (clean, distclean): cleans rdoc.
* configure.in (RMDIRS, RMALL): added to clean extout.
* lib/fileutils.rb (FileUtils#rmdir): added :parents option.
* lib/mkmf.rb (create_makefile): cleans installed files at clean
instead of distclean.
* lib/mkmf.rb (create_makefile): added clean-so and clean-rb.
* lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS.
* lib/un.rb (rmdir): added -p option.
* tool/rmdirs, win32/rmdirs.bat: removes directory and the parents.
* win32/rm.bat: added -r option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-25 02:06:29 +00:00
nobu
b9170351da
* lib/mkmf.rb (configuration): tools under the top source
...
directory are not installed, so unusable outside extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 23:21:16 +00:00
nobu
834e7488af
* lib/mkmf.rb (configuration): leaves PATH_SEPARATOR unchanged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 06:11:39 +00:00
nobu
389157d8cf
* lib/mkmf.rb (mkintpath): new function which converts native path
...
to format acceptable in Makefile.
* lib/mkmf.rb (configuration): convers srcdir, topdir and hdrdir.
a patch by Alexey Borzenkov <snaury AT gmail.com> at
[ruby-core:21448].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 05:56:01 +00:00
nobu
1c374fef37
* lib/mkmf.rb (try_func): got rid of c-mode confusion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-23 05:34:49 +00:00
nobu
6708c103dc
* lib/mkmf.rb (create_makefile): removes installed files under
...
extout at distclean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 09:12:49 +00:00
xibbar
9dce4d52ca
* lib/cgi/core.rb (CGI.parse): generate only key on params hash
...
if request have only key uri parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 08:25:44 +00:00
nobu
018e1e4f5e
* lib/rubygems/installer.rb (Gem::Installer#initialize): fixed
...
typos.
* test/rubygems/test_gem.rb (test_self_dir): removed false
assertions.
* test/rubygems/test_gem.rb (test_self_set_paths): checks if paths
are included.
* test/rubygems/test_gem_commands_install_command.rb
(test_execute_remote): checks diagnostic message too.
* test/rubygems/test_gem_installer.rb (load): uses Gem.ruby.
* test/rubygems/gemutilities.rb (Gem.ruby): initializes from the
environment variable to run without installation.
* test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem):
creates cache directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22 07:28:35 +00:00
ryan
7bcd50555b
Imported minitest 1.3.1 r4532.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-20 23:26:55 +00:00
ryan
464efd977f
Fixed LocalJumpError
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17 20:17:37 +00:00
yugui
fa1bec3664
* lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.
...
[ruby-core:21383].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-17 08:59:54 +00:00
ko1
e317b93409
* lib/debug.rb: as wanabe-san pointed out,
...
set_trace_func should be completely final task in debug.rb.
Bug #847 [ruby-core:20449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 15:59:59 +00:00
yugui
ed15422759
* lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.
...
Patch by Kornelius Kalnbach. [ruby-core:20992].
* test/ostruct/test_ostruct.rb: test for inspect.
Patch by Kornelius Kalnbach. [ruby-core:20992].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 12:52:23 +00:00
yugui
a5fdc9de34
* lib/irb/input-method.rb: IRB did not prompt for MSwin32.
...
[ruby-dev:37686].
Patch by arton <artonx AT yahoo.co.jp>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 03:37:15 +00:00
nobu
6b0304a5d7
* lib/test/unit/assertions.rb (assert_nothing_raised): removes the
...
current trace to get rid of an issue of MiniTest::Unit#location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 08:23:07 +00:00
seki
2d53925643
remove PercentScanner. fixed % after %> bug. [ruby-dev:37751] [Bug #997 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-11 07:58:02 +00:00
akr
ccdcc971f6
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-07 22:33:00 +00:00
akr
d45c4a8107
* lib/test/unit/assertions.rb (assert_no_match): don't count up as two
...
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-07 15:33:17 +00:00
nobu
f597d65a6f
* instruby.rb (gem), lib/rubygems/defaults.rb (Gem.default_dir):
...
use version invariant configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-07 08:13:07 +00:00
nobu
6754cad8e9
* lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create
...
directories stealthily. [ruby-core:20990]
* lib/rubygems.rb (Gem.find_home): expand_path deals with platform
dependent envirionments.
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto.
* instruby.rb (gem): creates gem directories at installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-04 08:07:22 +00:00
nobu
a7999ab13c
* ext/extmk.rb (extmake): does not use both of makefile.rb and
...
extconf.rb at the same time.
* lib/mkmf.rb (DLLIB): depends on Makefile. [ruby-core:21096]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-04 02:11:33 +00:00
seki
da3eba7551
merged r20850, r17881, r16811, r16763, r16748, r15829, r15794 and r15698 from ruby_1_8.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-03 15:36:14 +00:00
matz
6e959da071
* lib/singleton.rb: fix documentation. [ruby-core:21038]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-02 14:28:02 +00:00
matz
0d2e8c14bb
* lib/singleton.rb: fix indentation of RDoc text. [ruby-core:21029]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-31 22:43:41 +00:00
ryan
70365e5deb
Imported minitest 1.3.1 r4506.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-30 09:26:27 +00:00
yugui
af91b42354
* lib/erb.rb (ERB): m17n of ERB. adds rdoc.
...
fixes #712 . c.f. [ruby-dev:37516].
* lib/erb.rb (ERB::Compiler#compile): recognizes magic comments.
returns a pair of compiled script and its script encoding.
* lib/erb.rb (ERB#set_eoutvar): make generated scripts return a
string in correct encoding.
* lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness
of the evaluated string.
* bin/erb.rb (ERB::Main.run): adds -E and -U options.
String is no longer Enumerable.
* man/erb.1: new manapage.
* test/erb/test_erb_m17n.rb: new test case for m17n features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29 09:26:34 +00:00
ryan
1cbf898172
Imported minitest 1.3.1 r4505.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 20:51:23 +00:00
akr
5effdad2cd
* lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
...
patch from Roman Shterenzon. [ruby-core:20485]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 05:30:58 +00:00
jeg2
7d052b1d74
* lib/csv.rb: Using a more robust transcoding scheme to produce
...
ASCII compatible inspect() messages. [ruby-dev:37591]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-26 16:53:13 +00:00
yugui
3beeeffb97
* lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):
...
removed a 'p' for debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-26 08:06:33 +00:00
nobu
0a23fe6572
* lib/optparse.rb (OptionParser::List#summarize): gives priority
...
to latter switches. [ruby-dev:36692]
* lib/optparse.rb (OptionParser#summarize): do not append
unnecessary line terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-26 06:50:55 +00:00
usa
9541c63080
* lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-25 05:53:22 +00:00
nobu
b8e79f34a2
* configure.in (Makefile): removes GNU make specific files on
...
distclean.
* Makefile.in (distclean-ext): removes extension directories.
* lib/mkmf.rb (try_do): removes conftest.dSYM
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-24 04:45:34 +00:00
matz
d5bc38fdbf
* lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid calling
...
read_nonblock in rescue. use retry instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 15:24:54 +00:00
akr
ace35ac66c
* lib/test/unit/assertions.rb (assert_equal): show small differences
...
for Regexp and Float.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 09:34:08 +00:00
yugui
99825ae914
* lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 06:48:42 +00:00
drbrain
b8f7b97321
Don't coalesce adjacent comment blocks. [bug#901]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 05:16:54 +00:00
drbrain
e4d04b0b55
Fix documentation. [bug#827]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 23:11:11 +00:00
akr
c8cbfe7deb
* lib/test/unit/assertions.rb (assert_nothing_raised): increment
...
assertion count. [ruby-dev:37480]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 12:11:43 +00:00
matz
0f6e6c8bbc
* lib/rake.rb (Rake::MultiTask): invoke_prerequisites should be
...
private. a patch from okkez in [ruby-dev:37399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 02:41:28 +00:00
matz
850df4b8e7
* lib/rake.rb (Rake::FileList#egrep): change open mode to "rb",
...
i.e. default to binary. [ruby-dev:37385]
* lib/rake.rb (Rake::FileList#egrep): allow specifying reading
encoding, e.g. FileList['*.rb'].egrep(/require/, encoding:
"ascii-8bit")
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-22 02:35:37 +00:00
nobu
39c4d6928b
* lib/optparse.rb (SPLAT_PROC): splat values by hand.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-21 05:55:20 +00:00
nobu
8cd6a45a2a
* lib/optparse.rb (parse_in_order): splat values to be passed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-21 05:46:01 +00:00
nobu
5ad1f1d3cd
* lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-21 03:23:19 +00:00
yugui
734e1dc491
* lib/irb/locale.rb (IRB::Locale#initialize)
...
initializes instance variables to suppress warnings.
typo fix to ignore LoadError: [ruby-dev:37508]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-20 02:01:26 +00:00
yugui
5c1bd53c92
* lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command
...
line options. [ruby-dev:37161]. Fixes #711 .
improved long optinos.
* lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse
* lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards
scripts that user types as encoded in the external_encoding.
* lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto.
* lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects
magic comment.
* lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment
in the resource file.
* lib/irb/lc/help-message: adds -U and -E.
* lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8.
* lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific
character encoding name table for backward compatibility.
* lib/irb/lc/ja/error.rb: re-eoncoded from ISO-2022-JP into UTF-8.
magic comment.
* lib/irb/locale.rb: integrated with Ruby 1.9's M17N support.
* lib/irb/magic-file.rb: new file. utility to handle files with magic
comment and opens in the correct encoding.
* lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers
character encoding for a statement after it lexed so that irb can
eval the statement in correct encoding.
* lib/irb/src_encoding.rb: new file. utility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 13:09:26 +00:00
xibbar
52d481d8de
* lib/cgi/session.rb: fix bug for ignore session_id option.
...
report from [ruby-core:18635], [Bug #572 ]
* lib/cgi/core.rb: use Encoding#find when encoding set.
* test/cgi/test_cgi_session.rb: test for session_id specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 12:20:13 +00:00
matz
85bae86cb6
* lib/optparse/version.rb: remove variable shadowing to stop
...
warning. [ruby-core:20612]
* lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
lib/rinda/ring.rb, lib/racc/parser.rb,
lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
* lib/racc/parser.rb: remove space before parentheses.
* lib/shell/command-processor.rb, lib/shell/process-controller.rb:
use parentheses around arguments.
* lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
lib/yaml/baseemitter.rb: indentation fix.
* lib/matrix.rb: small cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-18 07:54:50 +00:00
jeg2
cd5c309542
* lib/xmlrpc/server.rb: Restricting method inspection to show only
...
non-inherited public methods. [ruby-core:20603]
* lib/xmlrpc/server.rb: Fixing method inspection so it doesn't
trigger XMLRPC::FaultException when used. [ruby-core:20604]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-17 23:15:56 +00:00
keiju
67d18f7ff7
* lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-17 10:25:29 +00:00
matz
d85760abff
* lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
...
typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 13:52:17 +00:00
usa
879d8aa079
* lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 13:43:34 +00:00
matz
9d049cc729
* lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
...
should assert by instance_of?, not ===. [ruby-dev:37458]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 13:16:13 +00:00
usa
d8d41b2380
* lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 13:03:49 +00:00
tadf
3ea21e47c1
* lib/date/format.rb (_parse): m17n compliant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-16 11:25:13 +00:00
matz
29de254722
* lib/rake/packagetask.rb (Rake::PackageTask): small document
...
update from okkez in [ruby-dev:37443]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-15 09:14:16 +00:00
yugui
834e3662ba
reverts r20713
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-14 00:28:10 +00:00
yugui
3b1a65add3
* lib/minitest/test.rb (MinTest::Unit#location):
...
skips user-defined assertions as MiniTest's.
e.g. for test/ruby/test_m17n.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 03:41:01 +00:00
ryan
ac6024f522
Imported minitest 1.3.2 r4503.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-13 00:22:31 +00:00
tadf
0d7f4ad828
do not pass -infinity.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 15:11:14 +00:00
tadf
50c1da22df
* lib/cmath.rb (sqrt): should pass nan or infinity to the original
...
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 14:49:54 +00:00
kou
876e1b87e7
* lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
...
RSS::Maker.[] returns a maker class corresponds to passed version.
* test/rss/test_maker_*.rb: add tests for RSS::Maker.[].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 12:06:26 +00:00
akr
cbc6a104b2
* lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
...
lib/test/unit/testcase.rb: ditto.
at asakusa.rb. [ruby-core:20014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:40:24 +00:00
akr
120ab4b826
* lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.
...
[ruby-core:19690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:21:14 +00:00
matz
bc53f80b37
* lib/rexml/document.rb (REXML::Document#write): require
...
rexml/formatters/transitive if transitive flag is on. a patch
from akira yamada in [ruby-dev:36230]. fix #553
* lib/rexml/element.rb (REXML::Element#write): ditto.
* lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element):
add hack for IE. [ruby-dev:36230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 01:20:23 +00:00
akr
3266ec1658
* lib/open3.rb (Open3.pipeline_start): return an array of threads if a
...
block is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 17:24:42 +00:00
kou
1e5fbe04f6
* lib/rss/maker.rb (RSS::Maker.[]): add.
...
Suggested by Akinori MUSHA. Thanks!!! [ruby-dev:37210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 12:34:09 +00:00
knu
1ed799937b
* enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.
...
* lib/prime.rb (Prime::OldCompatibility#each): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 03:49:48 +00:00
akr
ca138145f5
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-08 17:00:44 +00:00
akr
920ea359ba
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 12:35:11 +00:00
akr
7c20c4ec02
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 10:34:25 +00:00
akr
c0264efadd
* lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.
...
(Open3.capture2): renamed from Open3.poutput2.
(lOpen3.capture2e): renamed from Open3.poutput2e.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 08:45:31 +00:00
akr
1de2a15aaf
* lib/open3.rb (Open3.poutput3): :binmode option implemented.
...
(Open3.poutput2): ditto.
(Open3.poutput2e): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 02:49:18 +00:00
akr
0b314ffd87
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-06 12:52:43 +00:00
akr
415e2cbd88
* lib/open3.rb (Open3.pipeline_start): new method.
...
(Open3.pipeline): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-05 10:07:13 +00:00
akr
5dbbef2b02
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 23:03:53 +00:00
akr
21d438243d
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 14:35:19 +00:00
akr
bca9bf7fef
* lib/open3.rb (Open3.poutput3): new method.
...
(Open3.poutput2): ditto.
(Open3.poutput2e): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 14:24:54 +00:00