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

6446 Коммитов

Автор SHA1 Сообщение Дата
shugo 6e02769837 * test/readline/test_readline.rb: do not test libedit.
fixed: [ruby-dev:26217]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-24 08:48:41 +00:00
nobu f7ca291dd1 * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): string
literals to be matched non-greedy.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 21:46:18 +00:00
eban 0162e83dfa * version.h: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 15:45:01 +00:00
eban b38dcb30b4 * 2005-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 15:41:59 +00:00
nahi 087ff5d6e7 * test/soap/calc: method name 'set' was able to crash with a class Set.
[ruby-dev:26210]

        * test/wsdl/document/test_rpc.rb: dateTime comparison failed under
          TZ=right/Asia/Tokyo (with leap second.) [ruby-dev:26208]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 15:40:01 +00:00
nagai 94aa5943bb * ext/tk/extconf.rb: Framework support on MacOS X Tiger.
* ext/tk/README.tcltklib: add description of Framework support options.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 07:27:08 +00:00
usa 34075ed209 * win32/Makefile.sub ($(PROGRAM)): add dependency on $(LIBRUBY_SO).
[experimental]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 06:10:32 +00:00
eban d7fcba730c * 2005-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 04:08:37 +00:00
matz d11b15eb8c * re.c (make_regexp): should not return junk address during
compile time.  [ruby-dev:26206]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-23 03:24:28 +00:00
nahi eb3f829be9 * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.4.
== SOAP client and server ==

	  === for both client side and server side ===

	  * improved document/literal service support.
	    style(rpc,document)/use(encoding, literal) combination are all
	    supported.  for the detail about combination, see
	    test/soap/test_style.rb.

	  * let WSDLEncodedRegistry#soap2obj map SOAP/OM to Ruby according to
	    WSDL as well as obj2soap.  closes #70.

	  * let SOAP::Mapping::Object handle XML attribute for doc/lit service.
	    you can set/get XML attribute via accessor methods which as a name
	    'xmlattr_' prefixed (<foo name="bar"/> -> Foo#xmlattr_name).

	  === client side ===

	  * WSDLDriver capitalized name operation bug fixed.  from
	    1.5.3-ruby1.8.2, operation which has capitalized name (such as
	    KeywordSearchRequest in AWS) is defined as a method having
	    uncapitalized name. (converted with GenSupport.safemethodname
	    to handle operation name 'foo-bar').  it introduced serious
	    incompatibility; in the past, it was defined as a capitalized.
	    define capitalized method as well under that circumstance.

	  * added new factory interface 'WSDLDriverFactory#create_rpc_driver'
	    to create RPC::Driver, not WSDLDriver (RPC::Driver and WSDLDriver
	    are merged).  'WSDLDriverFactory#create_driver' still creates
	    WSDLDriver for compatibility but it warns that the method is
	    deprecated.  please use create_rpc_driver instead of create_driver.

	  * allow to use an URI object as an endpoint_url even with net/http,
	    not http-access2.

	  === server side ===

	  * added mod_ruby support to SOAP::CGIStub.  rename a CGI script
	    server.cgi to server.rb and let mod_ruby's RubyHandler handles the
	    script.  CGIStub detects if it's running under mod_ruby environment
	    or not.

	  * added fcgi support to SOAP::CGIStub.  see the sample at
	    sample/soap/calc/server.fcgi.  (almost same as server.cgi but has
	    fcgi handler at the bottom.)

	  * allow to return a SOAPFault object to respond customized SOAP fault.

	  * added the interface 'generate_explicit_type' for server side
	    (CGIStub, HTTPServer).  call 'self.generate_explicit_type = true'
	    if you want to return simplified XML even if it's rpc/encoded
	    service.

	  == WSDL ==

	  === WSDL definition ===

	  * improved XML Schema support such as extension, restriction,
	    simpleType, complexType + simpleContent, ref, length, import,
	    include.

	  * reduced "unknown element/attribute" warnings (warn only 1 time for
	    each QName).

	  * importing XSD file at schemaLocation with xsd:import.

	  === code generation from WSDL ===

	  * generator crashed when there's '-' in defined element/attribute
	    name.

	  * added ApacheMap WSDL definition.

	* sample/{soap,wsdl}: removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-22 13:03:38 +00:00
gotoyuzo 7aea792d3b * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#intialize):
should initialize session id context. [ruby-core:4663]

* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): add session id support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-22 10:18:41 +00:00
nobu 21393f1b2d * intern.h, parse.y (ruby_pragma): removed. fixed: [ruby-dev:26198]
* parse.y (parser_pragma): pragma name was ignored.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-22 03:31:08 +00:00
eban 9564678f36 * 2005-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-21 17:42:53 +00:00
aamine 5eacc550e2 add ML link [ruby-dev:26100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-21 17:42:08 +00:00
aamine 57873ba60f * lib/fileutils.rb (rm_r): new option :secure (default = true).
* lib/fileutils.rb (remove_file, remove_dir): try chmod(700) only on Windows.
* lib/fileutils.rb: does not depend on find.rb.
* lib/fileutils.rb: new method chmod_R.
* lib/fileutils.rb (chown_R): did not work.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-21 17:40:24 +00:00
ocean fecc253a10 * bcc32/Makefile.sub: tds files were not deleted when DESTDIR
included '\' path delimiter. [ruby-dev:26193]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-21 01:26:02 +00:00
shugo 37852577fc * ext/readline/readline.c (readline_attempted_completion_function):
return 2 items if completion_proc returns only 1 item (for libedit).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-20 06:57:06 +00:00
eban 6362afe606 * 2005-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-19 17:01:43 +00:00
shugo 327e957c73 * ext/readline/extconf.rb: check rl_vi_editing_mode() and
rl_emacs_editing_mode().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-19 16:26:50 +00:00
shugo 3fd16970f3 * ext/readline/readline.c: supported libedit. fixed: [ruby-core:4858]
* ext/readline/extconf.rb: added new option --enable-libedit.

* test/readline/test_readline.rb: added assertions for
  Readline::HISTORY.

* lib/irb/input-method.rb: do not use Readline::HISTORY.pop.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-19 14:36:20 +00:00
eban ddec3de32a * 2005-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-19 03:28:25 +00:00
ser 21e8df5c10 Merged in development from the main REXML repository.
* Fixed bug #34, typo in xpath_parser.
* Previous fix, (include? -> includes?) was incorrect.
* Added another test for encoding
* Started AnyName support in RelaxNG
* Added Element#Attributes#to_a, so that it does something intelligent.
  This was needed by XPath, for '@*'
* Fixed XPath so that @* works.
* Added xmlgrep to the bin/ directory.  A little tool allowing you to grep
  for XPaths in an XML document.
* Fixed a CDATA pretty-printing bug. (#39)
* Fixed a buffering bug in Source.rb that affected the SAX parser
  This bug was related to how REXML determines the encoding of a file, and
  evinced itself by hanging on input when using the SAX parser.
* The unit test for the previous patch.  Forgot to commit it.
* Minor pretty printing fix.
* Applied Curt Sampson's optimization improvements
* Issue #9; 3.1.3: The SAX parser was not denormalizing entity references
  in incoming text.  All declared internal entities, as well as numeric
  entities, should now be denormalized.  There was a related bug in that the
  SAX parser was actually double-encoding entities; this is also fixed.
* bin/* programs should now be executable.  Setting bin apps to executable
* Issue 14; 3.1.3: DTD events are now all being passed by StreamParser
  Some of the DTD events were not being passed through by the stream parser.
* #26: Element#add_element(nil) now raises an error Changed XPath searches so
  that if a non-Hash is passed, an error is raised Fixed a spurrious undefined
  method error in encoding.  #29: XPath ordering bug fixed by Mark Williams.
  Incidentally, Mark supplied a superlative bug report, including a full unit
  test.  Then he went ahead and fixed the bug.  It doesn't get any better than
  this, folks.
* Fixed a broken link.  Thanks to Dick Davies for pointing it out.  Added
  functions courtesy of Michael Neumann <mneumann@xxxx.de>.
  Example code to follow.
* Added Michael's sample code.  Merged the changes in from branches/xpath_V
* Fixed preceding:: and following:: axis Fixed the ordering bug that Martin
  Fowler reported.
* Uncommented some code commented for testing Applied Nobu's changes to the
  Encoding infrastructure, which should fix potential threading issues.
* Added more tests, and the missing syncenumerator class.  Fixed the
  inheritance bug in the pull parser that James Britt found.  Indentation
  changes, and changed some exceptions to runtime
  exceptions.
* Changes by Matz, mostly of indent -> indent_level, to avoid
  function/variable naming conflicts
* Tabs -> spaces (whitespace)

Note the addition of syncenumerator.rb.  This is a stopgap, until I can work on
the class enough to get it accepted as a replacement for the SyncEnumerator
that comes with the Generator class.  My version is orders of magnitude faster
than the Generator SyncEnumerator, but is currently missing a couple of
features of the original.  Eventually, I expect this class to migrate to
another part of the source tree.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-19 02:58:11 +00:00
nobu a399253153 * error.c (exc_exception): reverted to call Exception#initialize
directly.  fixed: [ruby-dev:26177]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-18 14:43:03 +00:00
eban dd2d4bc29b * dir.c (glob_helper): check whether path is "" before calling
do_opendir.  [ruby-dev:26183]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-18 08:41:50 +00:00
usa a70902a5c9 * win32/win32.c (NtInitialize): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-18 05:10:09 +00:00
eban 8e5dee50ea * 2005-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-18 02:28:52 +00:00
nobu b272844547 * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]
* eval.c (ruby_options), win32/win32.c (NtInitialize): move argument
  intialization back.  [ruby-dev:26180]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-18 02:08:00 +00:00
usa aab01c2bc9 * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-17 03:13:12 +00:00
usa c902442151 * 2005-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-17 02:53:09 +00:00
usa 0a6a371abf * win32/win32.c (unixtime_to_filetime): use localtime() instaed of
gmtime() when using FileLocalTimeToFileTime().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-17 02:52:43 +00:00
nobu a1ce08c5b3 * process.c (proc_spawn_v): use rb_w32_aspawn on Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-16 13:42:59 +00:00
nobu 6c2bce70a3 * parse.y (pragma_encoding): add prototype to suppress false warning
by VC.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-16 13:40:49 +00:00
nobu db218799e8 * class.c (rb_class_init_copy): singleton class is disallowed to copy,
from its definition.  fixed: [ruby-talk:142749]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-16 13:28:59 +00:00
nobu a3c29ec51a * win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_t
to get rid of redefinition warnings on mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-16 13:22:09 +00:00
ocean 208f2f27ca * win32/win32.{h,c}: define rb_{p,g,u}id_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 18:36:56 +00:00
eban a8d293220d * 2005-05-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 15:41:58 +00:00
akr cb025decff * lib/pathname.rb (Pathname#unlink): use SystemCallError instead of
Errno::EISDIR because EISDIR is not portable.
  [ruby-core:5001]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 15:32:35 +00:00
seki cd836a0cd2 use raise(exception) [ruby-dev:26164]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 13:28:32 +00:00
nobu e27aaa177e * configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
to get rid of types which might not be defined yet.  [ruby-dev:26165]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 09:56:53 +00:00
akr eebb06165f * lib/pathname.rb (Pathname#unlink): unlink a symlink to a directory
was failed.  [ruby-core:4992]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 05:50:45 +00:00
nobu c23d3e4640 * win32/win32.c (unixtime_to_filetime): deal with DST.
[ruby-talk:141817]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-15 00:57:49 +00:00
ttate a7c5e6bcec Added DL::BUILD_RUBY_PLATFORM,BUILD_RUBY_VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 20:59:07 +00:00
nobu 36e3983a27 * error.c (exc_exception, {exit,name_err,syserr}_initialize): call
Execption#initialize.  fixed: [ruby-talk:142593]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 14:59:53 +00:00
nobu 642ddf7201 * configure.in: Check for the availability of pid_t, gid_t and uid_t and
remove AC_TYPE_UID_T.  fixed: [ruby-core:04745]

* defines.h: Remove pid_t typedef.

* ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with
 the available system types.

* process.c: Change instances of pid_t and gid_t to their rb_*
 counterparts.

* ext/pty/pty.c: Change pid_t to rb_pid_t.

* vms/config.h: Define HAVE_{P,G,U}ID_T to 1.

* win32/Makefile.sub: Remove #define for {g,u}id_t.

* win32/win32.c: Change pid_t to rb_pid_t.

* wince/Makefile.sub: Remove #define for {g,u}id_t.

* wince/sys/types.h: Remove definitions of {p,g,u}id_t.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 14:57:53 +00:00
nobu 9bbb8406cb * 2005-05-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 02:48:27 +00:00
nobu 434e8a3796 * intern.h (ruby_pragma): prototype. [ruby-core:04881]
* parse.y (parser_pragma): parse Emacsen hack.

* parse.y (parser_prepare): deal with specific syntax at the top.

* ruby.c (load_file): read the first line iff it started with shebang.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 02:48:07 +00:00
ocean 2cf330ad77 restored @progress
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 02:23:45 +00:00
nobu 2c716f2b47 * ext/extmk.rb: keep srcdir unexpanded.
* lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary.
  fixed: [ruby-core:04932]

* lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make
  also INSTALL_PROG and INSTALL_DATA system dependent.
  fixed: [ruby-core:04931]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-13 14:44:59 +00:00
nobu 8726077bc1 * eval.c (unknown_node): add volatile directive to prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-13 14:33:02 +00:00
ocean 74eab43d49 * variable.c (generic_ivar_get): rb_attr_get should not warn.
[ruby-dev:26010]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-13 08:56:40 +00:00