nobu
5da1743e3f
* lib/optparse.rb (OptionParser#getopts): use strings as key.
...
fixed: [ruby-dev:29614]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-26 14:57:48 +00:00
nobu
c7908b19b0
* lib/mkmf.rb (rm_f): get rid of NUL.
...
* lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-25 13:26:40 +00:00
tadf
ffc6df2b67
updated based on date2 3.9.3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24 03:11:56 +00:00
matz
9911bca1e2
* lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
...
may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-23 12:47:11 +00:00
matz
b6ec2b7c6d
* lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-22 23:41:47 +00:00
tadf
55eab2a011
updated based on date2 3.9.2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-22 16:05:19 +00:00
nobu
8978bfe7f9
* common.mk (pre-install-doc): create data directory before install.
...
* lib/mkmf.rb (dir_re): fixed typo.
* lib/mkmf.rb (install_dirs): remove extra slash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 14:18:19 +00:00
matz
803591e900
* string.c (sym_eql): fail early to gain performance.
...
* string.c (sym_hash): cache hash value in aux.shared if possible.
* gc.c (rb_obj_id): no need to treat symbols specially.
* lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
longer return an array of strings, but of symbols.
* lib/delegate.rb (DelegateClass): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 04:18:25 +00:00
shugo
92d28f6b8f
* lib/net/imap.rb: allow extra spaces in responses.
...
Thanks, Tom Soderlund.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-20 00:45:08 +00:00
nobu
a388c7dd9e
* object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
...
Kernel#instance_variable_defined? and Module#class_variable_defined?.
[ruby-dev:29587]
* lib/date/format.rb (Date::Bag#method_missing): use new method,
instance_variable_defined? to check if an instance variable is
defined. fixed: [ruby-dev:29554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18 15:43:06 +00:00
nobu
392f342f04
* lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
...
after the previous generation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-17 14:46:13 +00:00
nobu
8114a2edb0
* common.mk (install-doc): reverted.
...
* instruby.rb: stores file name list without destdir prefix.
* lib/rdoc/generators/ri_generator.rb: do not chdir twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-17 08:43:19 +00:00
nobu
4b6a1b7f9c
* lib/mkmf.rb (checking_for): improved the messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:22:49 +00:00
nobu
f06362a4f9
* Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
...
use instruby.rb to install extensions instead of ext/extmk.rb.
* instruby.rb: store installed list into the file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-16 07:06:57 +00:00
matz
62f8f1419c
* hash.c (rb_hash_compare_by_identity): rename Hash#identical to
...
Hash#compare_by_identity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-13 08:10:28 +00:00
nobu
5cb7d10ee0
* lib/optparse.rb (OptionParser#getopts): works with pre-registered
...
options. [ruby-core:08826]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-12 16:14:50 +00:00
matz
f2ad09d5b7
* lib/rexml/source.rb (REXML::Source::encoding): should not
...
convert the body twice. [ruby-core:08828]
* lib/rexml/encoding.rb (REXML::Encoding::encoding):
Encoding#encoding= to return boolean value to tell if the body
is really converted or not.
* lib/rexml/encoding.rb (REXML::Encoding::encoding): Specific
conversion library (e.g. rexml/encodings/UTF-16.rb) to have
higher preceding.
* lib/rexml/encodings/UTF-16.rb (REXML::Encoding::decode_utf16):
UTF-16#decode_utf16 should work strings without BOM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-11 02:48:17 +00:00
tadf
d78b265839
updated based on date2 3.9.1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-10 11:27:56 +00:00
nobu
166ee9719f
* lib/optparse.rb: splat parsed arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-10 00:20:03 +00:00
drbrain
7d3fc8ff2b
Rescue Exception in Test::Unit::TestCase#run. [ruby-core:08783]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-09 05:14:40 +00:00
nobu
fbe8d44d5c
* lib/pstore.rb: open all in binary mode, and get rid of the quirk of
...
msvcrt. fixed: [ruby-dev:29518]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-08 19:56:37 +00:00
nobu
f594f850a4
* Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT.
...
* mkconfig.rb, ext/extmk.rb, lib/mkmf.rb, win32/mkexports.rb: suppress
warnings with $VERBOSE.
* win32/resource.rb: only file which has more than one icon is DLL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-08 19:48:22 +00:00
usa
3d1b573946
* ext/extmk.rb (extmake): follow Array#to_s.
...
* lib/mkmf.rb (create_makefile): ditto.
* win32/resource.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-08 07:38:53 +00:00
ser
ec847fad4e
Merged changes into HEAD from REXML 3.1.5.
...
The list of bug fixes/enhancements is at:
http://www.germane-software.com/projects/rexml/query?status=closed&milestone=3.1.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-08 02:03:44 +00:00
gotoyuzo
b2a8ca6dd6
* lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): new
...
method to parse multiple cookies per Set-Cookie header.
Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>.
[ruby-core:08802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-08 01:04:52 +00:00
nobu
58b0275a4c
* lib/optparse.rb: suppress `assigning void value' warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-07 23:25:56 +00:00
matz
d1cb9e75d0
* array.c (Init_Array): #to_s to be an alias to #inspect.
...
[EXPERIMENTAL] [ruby-dev:29520]
* hash.c (Init_Hash): ditto.
* lib/mkmf.rb (create_makefile): replace "print array" by
"print *array".
* mkconfig.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-07 16:33:08 +00:00
tadf
7f0f585f32
updated based on date2 3.9.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04 12:43:20 +00:00
matz
52817c3654
* lib/cgi.rb (CGI::out): specify -x option for nkf.
...
* lib/cgi.rb (CGI::out): should not convert utf-8 implicitly using
NKF. it is too Japanese centric.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04 07:40:46 +00:00
nobu
0dbe495044
* lib/mkmf.rb: get rid of nil.to_s.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-03 06:34:13 +00:00
nahi
40cefc9844
* lib/soap/generator.rb (SOAP::SOAPGenerator#encode_tag): do not dump
...
XML attribute which value is nil. value "" and nil both were dumped
as 'attr="value"'. [ruby-dev:29395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-02 03:11:02 +00:00
nahi
97c6bc5ffd
* lib/csv.rb (CSV::IOReader#initialize): use String#[](pos, len)
...
instead of String#[](idx) to check utf BOM. follows String#[](idx)
behavior change of 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-02 03:06:33 +00:00
matz
8cf47d14ab
* lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
...
reading buffer (@readed). reported in
<http://jarp.does.notwork.org/diary/200608c.html#200608311 >.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-01 04:15:45 +00:00
nobu
079ec46b4b
* lib/mkmf.rb (configuration): follow nil.to_s.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-31 14:59:43 +00:00
usa
6790891ef0
* ext/Win32API/Win32API.c (Win32API_initialize): use RSTRING_PTR and
...
RSTRING_LEN.
* ext/tk/stubs.c, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: ditto.
* ext/win32ole/win32ole.c (ole_val2olevariantdata): ditto.
* lib/mkmf.rb (create_makefile): follow nil.to_s.
* win32/resource.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-31 11:56:42 +00:00
matz
e8f43ad081
* object.c (rb_Integer): Integer(nil) should raise TypeError.
...
[ruby-talk:210205]
* object.c (nil_to_s): no longer returns empty string but "nil".
[ruby-talk:210205]
* lib/mkmf.rb: avoid COMMON_HEADERS being nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-30 09:46:57 +00:00
matz
51525e12b8
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
...
rdoc documents C module methods as instance methods. a patch in
[ruby-core:08536].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-30 09:39:47 +00:00
drbrain
6e83a71d3b
Include attribution
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-27 23:03:20 +00:00
tadf
0384b2330c
updated based on date2 3.8.2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-25 23:09:30 +00:00
nobu
319d2b185b
* lib/rexml/source.rb (REXML::IOSource#initialize): encoding have to
...
be set with the accessor. fixed: [ruby-list:42737]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-22 15:25:43 +00:00
aamine
575f94043f
* lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is required. [ruby-dev:29316]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-22 10:21:31 +00:00
matz
34deabcbac
* lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
...
patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-17 17:06:52 +00:00
nobu
74eced22e9
* lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-17 05:47:50 +00:00
aamine
a03909606e
* lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.
...
* lib/net/smtp.rb: new method SMTP.use_ssl?
* lib/net/smtp.rb: new method SMTP.enable_ssl.
* lib/net/smtp.rb: new method SMTP.disable_ssl.
* lib/net/smtp.rb: new method SMTP.default_ssl_port.
* lib/net/smtp.rb: new method SMTP.default_tls_port.
* lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext object, instead of a verity and cert. [FEATURE CHANGE]
* lib/net/smtp.rb: new method SMTP.ssl_context.
* lib/net/smtp.rb: new method SMTP.default_ssl_context.
* lib/net/smtp.rb: export SMTP.authenticate.
* lib/net/smtp.rb: export SMTP.auth_plain.
* lib/net/smtp.rb: export SMTP.auth_login.
* lib/net/smtp.rb: export SMTP.auth_cram_md5.
* lib/net/smtp.rb: export SMTP.starttls.
* lib/net/smtp.rb: export SMTP.helo.
* lib/net/smtp.rb: export SMTP.ehlo.
* lib/net/smtp.rb: export SMTP.mailfrom.
* lib/net/smtp.rb: export SMTP.rcptto.
* lib/net/smtp.rb: export SMTP.rcptto_list.
* lib/net/smtp.rb: export SMTP.data.
* lib/net/smtp.rb: export SMTP.quit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-15 02:21:59 +00:00
drbrain
c3321a0266
Make RDoc ignore C function prototypes by Tilman Sauerbeck [ruby-core:8574].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-11 22:39:12 +00:00
drbrain
d7181ca93e
Replace nodoc with stopdoc so Module methods get documented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-11 22:31:02 +00:00
matz
2ff719fcd1
* lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrieve
...
bytes from strings. a patch from WATANABE Tetsuya
<Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-09 07:56:30 +00:00
matz
7e5324e6c1
* lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify
...
RDoc. a patch from Eric Hodel <drbrain at segment7.net>.
[ruby-core:08522]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-08 15:17:06 +00:00
matz
8b5942801d
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):
...
affected by str[0] returns 1 char string. [ruby-dev:29223]
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-08 10:29:02 +00:00
tadf
0c724c2734
revert
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07 13:19:14 +00:00