Commit graph

1799 commits

Author SHA1 Message Date
nobu
38c9bb1ae1 * lib/mkmf.rb (create_makefile): support platforms have file separator
other than /.

* {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator
  of building platform.

* {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-20 15:08:36 +00:00
keiju
f9fb21448b * lib/irb.rb lib/irb/* doc/irb: IRB 0.9.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-19 19:24:59 +00:00
(no author)
40906c5d5d This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-19 19:24:59 +00:00
eban
a5d09ee942 * lib/ftools.rb (File.safe_unlink): do not modify a symlinked file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-19 14:49:43 +00:00
aamine
f42db5e785 * lib/fileutils.rb (remove_file): ignore exceptions caused by chmod.
* lib/fileutils.rb (remove_dir): try to get rights to rmdir. [ruby-Bugs:1502] (2 items backportted from HEAD, rev 1.53-54)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-14 10:19:11 +00:00
kou
18061401cc * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.
* lib/rss/rss.rb (RSS::Element#converter): fixed converter
  transmission bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-13 14:48:00 +00:00
seki
3fe8250545 adhoc patch for [druby-ja:123]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-11 14:48:50 +00:00
usa
19acf638f8 * lib/mkmf.rb (configuration): shouldn't output hdrdir twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-11 06:26:49 +00:00
kou
80861909e6 * lib/rss: backoported from HEAD.
* lib/rss: refactored.
  - gave a name to 'x'.
  - undef_method -> remove_method for avoiding a warning in ruby 1.6.


* lib/rss/parser.rb: @@setter -> @@setters.

* lib/rss/parser.rb
  (RSS::BaseListener.register_uri)
  (RSS::BaseListener.uri_registered?)
  (RSS::BaseListener.install_get_text_element):
  swapped the first argument and the second argument.

* lib/rss/taxonomy.rb: swapped the first argument and the second
  argument for RSS::BaseListener.install_get_text_element.
* lib/rss/image.rb: ditto.
* lib/rss/syndication.rb: ditto.
* lib/rss/dublincore.rb: ditto.
* lib/rss/parser.rb: ditto.
* lib/rss/1.0.rb: ditto.
* lib/rss/2.0.rb: ditto.
* lib/rss/0.9.rb: ditto.
* lib/rss/content.rb: ditto.

* lib/rss/parser.rb
  (RSS::BaseListener.install_setter)
  (RSS::BaseListener.register_uri): changed fallback way.

* lib/rss/parser.rb: added class name registry for complex model
  elements. (ex. have childlen elements, have some attributes and
  a child element and so on.)


* lib/rss/dublincore.rb: supported multiple Dublin Core items.
* lib/rss/maker/dublincore.rb: ditto.
* lib/rss/maker/image.rb: supproted new Dublin Core API.
* lib/rss/maker/base.rb: added default current_element implementation.
* lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need):
  moved to RSS::Utils.

* lib/rss/utils.rb (RSS::Utils.new_with_value_if_need):
  moved from RSS::TrackBackUtils.

* lib/rss/maker/image.rb: fixed invalid argument of
  add_need_initialize_variable bug.
* lib/rss/maker/trackback.rb: ditto.

* lib/rss/rss.rb (Hash#merge): added for ruby 1.6.
* lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil
  for date value.


* test/test_dublincore.rb: added tests for plural accessor and
  multiple Dublin Core items.

* test/test_setup_maker_1.0.rb: fixed swapped actual and expected
  values.

* test/rss/rss-assertions.rb (assert_multiple_dublin_core): added
  an assertion for testing multiple Dublin Core items.

* test/rss/test_maker_dc.rb (test_rss10_multiple): added a test
  for making multiple Dublin Core items.

* test/rss/test_maker_dc.rb (test_date): added a test for #date=
  and #dc_date=.


* sample/rss/tdiary_plugin/rss-recent.rb:
  new option: @options['rss-recent.use-image-link']:
  use image as link instread of text if available.

* sample/rss/tdiary_plugin/rss-recent.rb (RSS_RECENT_VERSION):
  0.0.5 -> 0.0.6.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-09 03:09:52 +00:00
nobu
a02c93b399 * ext/extmk.rb (extmake): hdrdir needs to be defined also in
Config::CONFIG.

* lib/mkmf.rb (configuration, create_makefile): get rid of recursive
  macro reference.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-08 11:18:17 +00:00
nobu
d882436a8b * ext/extmk.rb (extmake): keep directory names in Makefile as macros.
* lib/mkmf.rb (configuration, create_makefile): ditto.

* lib/mkmf.rb (CXX_EXT): separate C++ extensions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-07 14:59:24 +00:00
nobu
3b63864fd6 * lib/mkmf.rb (create_makefile): ensure library directories get made
before copying libraries there.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-02 14:39:38 +00:00
nobu
29798fee39 * configure.in (CP, INSTALL): get rid of less portable options.
* lib/mkmf.rb (configuration, create_makefile): correct configuration
  variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-02 13:30:49 +00:00
nobu
51e9f71a1d * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on case
insensitive file system platforms.

* README.EXT, README.EXT.ja (Appendix C): utility functions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-31 13:24:27 +00:00
nobu
162b040611 * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
common.mk, configure.in, ext/extmk.rb, lib/mkmf.rb, instruby.rb,
  runruby.rb: backport extout.  [ruby-dev:25963]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-30 14:45:05 +00:00
seki
ddeed4af3c move method DRbObject#reinit to DRbObject.new_with.
extract method DRbObject.prepare_backtrace. add DRb.regist_server,
remove_server, fetch_server. change server in thread variable if
in-proc sesrver. [druby-ja:113]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-28 14:50:27 +00:00
nobu
8b948641b7 * lib/mkmf.rb (macro_defined?): try to compile for an old compiler
which doesn't bail out at #error directive.  [ruby-dev:25818]

* lib/mkmf.rb (check_sizeof): refine logging messages.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-24 14:11:27 +00:00
gotoyuzo
f80a4dcd47 * lib/webrick/utils.rb (WEBrick::Utils.create_listeners):
- should raise ArgumentError if no port is specified.
  - even if the specified port is 0, all TCPServers should be
  initialized with the port given to the first one.

* lib/webrick/server.rb (WEBrick::GenericServer#initialize): if :Port
  parameter is 0, it should be updated with the port number which
  ectually listened.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-23 19:08:03 +00:00
nobu
2bf474b1a3 * lib/mkmf.rb (mkmf_failed): check if Makefile is created without
create_makefile.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-20 13:51:48 +00:00
nobu
b7efe244cd *** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-15 14:52:59 +00:00
gotoyuzo
2c820137ad * lib/webrick/server.rb (WEBrick::GenericServer#start): should
restore @token if accept failure. suggested by Dominique Brezinski.
  [ruby-core:04518]

I forgot it in my last commit ;)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-09 06:52:08 +00:00
eban
681fcb37ac * lib/un.rb: should use OptionParser. (backported form HEAD)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 01:26:36 +00:00
matz
cde930a4a4 * string.c (rb_str_cmp_m): should not return false but nil.
fixed: [ruby-dev:25811]

* lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499]
  getopts.rb, parsearg.rb, importenv.rb as well.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-07 00:20:16 +00:00
aamine
5e4004fa1d * lib/net/http.rb: HTTPHeader holds its header fields as an array (backport from CVS HEAD rev 1.112-1.123). [ruby-list:40629]
* test/net/http/test_httpheader.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 07:42:35 +00:00
akr
fe565a758d * lib/pp.rb: rdoced by by Sam Roberts. [ruby-core:4490]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:57:53 +00:00
akr
6a3c57bb2a * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgid
may return nil.  [ruby-talk:129826]
  reported by Daniel Berger.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-06 02:41:15 +00:00
nobu
f132f2705d * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
also locally defined modules.

* ext/iconv/iconv.c: backport Iconv::InvalidEncoding from CVS HEAD.

* ext/strscan/strscan.c: moved misplaced rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 10:39:46 +00:00
matz
d43b7e03ef * lib/set.rb (SortedSet::setup): a hack to shut up warning.
[ruby-talk:132866]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 02:29:33 +00:00
seki
e2f928a261 improved keeper thread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-28 15:41:14 +00:00
matz
3d4376d167 * array.c (rb_ary_s_create): no need for negative argc check.
[ruby-core:04463]

* array.c (rb_ary_unshift_m): ditto.

* lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass
  of StandardError class, not Exception class.  [ruby-core:04429]

* lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE.
  fixed: [ruby-core:04444]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-23 13:52:19 +00:00
akira
616a75e7e3 * lib/uri/generic.rb (split_userinfo): should split ":pass" into ""
and "pass".  [ruby-dev:25667]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-23 06:08:29 +00:00
shugo
68ca73a1b1 * lib/net/imap.rb (initialize): handle certs correctly. Thanks,
NABEYA Kenichi. (backported from CVS HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-22 16:58:33 +00:00
akr
9846b5b67f * lib/open-uri.rb (URI::FTP#buffer_open): access mechanism
re-implemented according to RFC 1738.
  reported by Guillaume Marcais.  [ruby-talk:131650]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 15:53:43 +00:00
seki
cadfea8999 (DRbObject#respond_to?) take two arguments. [ruby-dev:25722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 09:14:55 +00:00
akr
70a7a7271d * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_check
after connection is made.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 04:55:16 +00:00
ocean
a64d362405 * lib/drb/drb.rb (DRbServer.default_safe_level): fix typo.
* test/digest/test_digest.rb: separate test case for each algorithms.
  (Thanks nobu) [ruby-dev:25412]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-17 11:16:57 +00:00
ntalbott
f8989a0cdd * lib/test/unit/collector.rb (collect_file): now deletes paths added
to $LOAD_PATH instead of restoring it verbatim.

  * lib/test/unit/autorunner.rb (AutoRunner.run): fixed so that
    'ruby -rtest/unit -rtest1 -rtest2 -e0' will use the objectspace
    collector again. Also tried to simplify the calling convention.

  * test/runner.rb: adjusted for new AutoRunner semantics.

  * lib/test/unit.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-17 02:56:47 +00:00
seki
fe85864b90 add lazy stop_service.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-16 14:36:31 +00:00
kou
10fd0951d1 * lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
fixed invalid namespace handling bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-14 15:01:05 +00:00
seki
963c7a338d pass DRb info to sub thread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-13 15:44:36 +00:00
kou
cb375567f6 * lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): added
convenient methods.
* lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto.
* lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto.
* test/rss/: added tests for the convenient methods.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-13 14:21:21 +00:00
seki
2847325f99 add safe_level, default_safe_level
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-13 13:53:25 +00:00
gotoyuzo
f19caf7300 * lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
to the value of status header field. ([ruby-dev:40617])


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-13 08:00:35 +00:00
seki
b7908e6949 make module_function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 16:34:45 +00:00
matz
8cdd45d15b * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check.
[ruby-dev:25675]

* misc/ruby-mode.el: [ruby-core:04415]

* lib/rdoc/generators/html_generator.rb: [ruby-core:04412]

* lib/rdoc/generators/ri_generator.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 10:57:22 +00:00
akr
8a09688957 * lib/open-uri.rb (OpenURI.open_loop): send authentication only for
the URI directly specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 08:40:23 +00:00
akr
99135ddc20 document updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:38:44 +00:00
akr
acb78c8ed3 * lib/open-uri.rb: support https if the platform provides CA
certificates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:01:18 +00:00
akr
4170736404 * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:
:http_basic_authentication.
  suggested by Kent Sibilev.  [ruby-core:4392]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-11 02:47:11 +00:00
seki
2879018f4d reject :instance_eval, :class_eval, :module_eval [druby-ja:117]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-08 14:51:06 +00:00