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

2894 Коммитов

Автор SHA1 Сообщение Дата
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