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

8829 Коммитов

Автор SHA1 Сообщение Дата
matz aeec0f8445 * common.mk (compile.$(OBJEXT)): add config.h to vm.c and
compile.c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 09:39:20 +00:00
matz 0cd337b1f0 * eval.c: remove duplicated global variables rb_cProc and
rb_cBinding.  [ruby-dev:30242]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-02 09:32:28 +00:00
matz 88ca8baef9 * lib/open-uri.rb (OpenURI::OpenURI.open_uri): revert last change to conform RFC3986. [ruby-dev:30230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 06:10:06 +00:00
matz ff95fbdea8 * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator):
add new test.  [ruby-core:10125]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:54:42 +00:00
matz 900546717e * lib/open-uri.rb (OpenURI::OpenURI.open_uri): use user and
password from URI unless http_basic_authentication is specified
  explicitly.  [ruby-core:10114]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:47:33 +00:00
eban f5883fbe87 * 2007-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:43:47 +00:00
nagai 138052edb2 * ext/tk/sample/images/teapot.ppm: fix the broken file. [ruby-dev:30226]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 05:37:31 +00:00
usa 2fc900dac8 * string.c (rb_str_sub_bang): calling rb_str_modify() should be just
before actually modifying the string.
  fixed: [ruby-dev:30211] (originally reported by zunda)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 08:02:30 +00:00
matz 8418ea8bb8 * numeric.c (int_pred): add Integer#pred corresponding
Integer#succ.  [RCR#5]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 04:27:04 +00:00
nobu bfc2a070b1 * mkconfig.rb: autoconf 2.61 support. [ruby-core:10016]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-30 03:06:02 +00:00
nagai dbee7c9072 * ext/tk/sample/tktextio.rb: 'hist_size' option causes error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 19:56:28 +00:00
eban c93ca8ee38 * 2007-01-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 15:42:23 +00:00
matz 24b92a848c * tool/compile.rb: replace YARVCore by VM class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 15:11:32 +00:00
suke 883f34f777 * ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
WIN32OLE_VARIANT#vartype.

* test/win32ole/test_win32ole.rb: add test for WIN32OLE.locale=,
  WIN32OLE.locale.

* test/win32ole/test_win32ole_variant.rb: add test for 
  WIN32OLE_VARIANT#vartype.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 12:41:50 +00:00
matz 024c694c95 * tool/parse.rb: replace YARVCore by VM class.
http://d.hatena.ne.jp/ysano2005/20070128

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-29 05:16:38 +00:00
eban f74039ec51 * 2007-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-28 03:54:19 +00:00
suke 7cc6cded59 * ext/win32ole/win32ole.c: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-27 23:46:27 +00:00
suke 68daaab409 * ext/win32ole/win32ole.c (ole_val2olevariantdata): bug fix.
WIN32OLE_VARIANT.new check that 1st argument should T_ARRAY
  when variant type is VT_ARRAY.

* test/win32ole/test_win32ole_variant.rb: add some test. 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-27 09:46:34 +00:00
eban c91a817032 * 2007-01-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 15:09:43 +00:00
suke bb435c7a6c bug fix of WIN32OLE_VARIANT when variant type is VT_BYREF|VT_VARIANT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 15:03:43 +00:00
nagai 8c74a18161 * ext/tk/lib/tk.rb (TkConfigMethod#__confinfo_cmd,__conv_keyonly_optkeys):
make them private [ruby-dev:30074].
* ext/tk/lib/tk/txtwin_abst.rb: fix typo [ruby-dev:30073].
* ext/tk/lib/tk/canvas.rb (TkCanvas#scan_dragto): lack of an argument.
* ext/tk/lib/tk/canvas.rb: clarify the  including module name [ruby-dev:30080].
* ext/tk/lib/tk/scrollable.rb: change primary name of modules [ruby-dev:30080].
* ext/tk/lib/tkextlib/iwidgets/checkbox.rb: wrong number of arguments 
  [ruby-Bugs-7776].
* ext/tk/lib/tkextlib/iwidgets/radiobox.rb: ditto.
* ext/tk/lib/tkextlib/blt/tile/checkbutton.rb: change primary name of
  class [ruby-dev:30080].
* ext/tk/lib/tkextlib/blt/tile/radiobutton.rb: ditto.
* ext/tk/ChangeLog.tkextlib: update.
* ext/tk/lib/tkextlib/version.rb: update.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-26 03:18:45 +00:00
matz 369b098721 * enumerator.c (enumerator_init_copy): need to copy internal
structure on clone and dup.  [ruby-dev:30192]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-25 22:52:38 +00:00
kou df7c570713 * test/ruby/test_iterator.rb: removed a needless workaround.
approved by ko1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-24 11:35:52 +00:00
matz 14476c3bea * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix
regexp font-lock bug.  [ruby-talk:235758]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-24 09:09:51 +00:00
matz cd8e10d609 * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead
of ===.  [ruby-dev:30176]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 09:27:57 +00:00
usa b696420526 * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat,
setup.mak}: add --with-baseruby configure option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-23 06:41:22 +00:00
matz 06720d45c7 * ext/socket/socket.c: fix errors in socket sample code.
[ruby-core:09992]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-22 06:01:17 +00:00
matz 0fe77cd26b * eval_proc.c (method_receiver): add new method to get the bound
receiver of the method object.  [ruby-talk:234949]

* eval_proc.c (method_name): new method to get the name of a
  method.

* eval_proc.c (method_owner): a new method to get the class or
  module that defines the method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 14:25:07 +00:00
suke 3b5dbc4b06 WIN32OLE.codepage= accepts installed codepage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 12:12:36 +00:00
ser 75ce70d353 Adds a property, rexml:main-repo-version, which tracks
which version the Ruby repo is current with.  This is
temporary until I can get a better way of keeping the
repos in sync.  In particular, I can't easily just use
the Ruby repo as an external resource (svn:externals),
because then I can't use the Trac features that link
into Subversion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 04:01:10 +00:00
ser fa4bfa6af5 Merged from REXML main repository:
Fixes ticket:68.
  NOTE that this involves an API change!  Entity declarations in the doctype
  now generate events that carry two, not one, arguments.

Implements ticket:15, using gwrite's suggestion.  This allows Element to be
subclassed.

Two unrelated changes, because subversion is retarded and doesn't do
block-level commits:

  1) Fixed a typo bug in previous change for ticket:15
  2) Fixed namespaces handling in XPath and element.  

    ***** Note that this is an API change!!! *****

    Element.namespaces() now returns a hash of namespace mappings which are
    relevant for that node.

Fixes a bug in multiple decodings

The changeset 1230:1231 was bad.  The default behavior is *not* to use the
native REXML encodings by default, but rather to use ICONV by default.  I know
that this will piss some people off, but defaulting to the pure Ruby version
isn't the correct solution, and it breaks other encodings, so I've reverted it.

* Fixes ticket:61 (xpath_parser)
* Fixes ticket:63 (UTF-16; UNILE decoding was bad)
* Cleans up some tests, removing opportunities for test corruption
* Improves parsing error messages a little
* Adds the ability to override the encoding detection in Source construction
* Fixes an edge case in Functions::string, where document nodes weren't 
  correctly converted
* Fixes Functions::string() for Element and Document nodes
* Fixes some problems in entity handling

Addresses ticket:66

Fixes ticket:71

Addresses ticket:78
  NOTE: that this also fixes what is technically another bug in REXML.  REXML's
  XPath parser used to allow exponential notation in numbers.  The XPath spec
  is specific about what a number is, and scientific notation is not included.
  Therefore, this has been fixed.

Cross-ported a fix for ticket:88 from CVS.

Fixes ticket:80

Documentation cleanup.  Ticket:84

Applied Kou's fix for an un-trac'ed bug.

------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 03:56:02 +00:00
suke f700c1354f version 0.8.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 02:36:54 +00:00
suke e16e6a66ae modify WIN32OLERuntimeError message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 02:28:49 +00:00
suke b44bd4c6d3 move all test from ext/win32ole/tests test/win32ole
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-20 00:37:35 +00:00
suke 59835fe865 move some test from ext/win32ole/tests to test/win32ole
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-19 15:17:56 +00:00
suke e538fe5703 add WIN32OLE_VARIANT::Empty, WIN32OLE_VARIANT::Null, WIN32OLE_VARIANT::Nothing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-19 08:22:45 +00:00
suke 72cc74655f IN32OLE_VARIANT.new accepts nil as first argument for some VARIANT TYPE. fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-18 22:08:29 +00:00
ko1 dbee678630 * some refactoring around yarvcore and proc.
* eval_proc.c: renamed to proc.c.
* common.mk: ditto.
* yarvcore.h, yarvcore.c: rename or remove some global variables
  removed: mYarvCore, mYarvInsns
  renamed: cYarvISeq -> rb_cISeq,
           cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding
  ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM.
  And change/remove some functions which added with YARV.
* compile.c: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* vm.c: ditto.
* inits.c: rename Init_yarvcore to Init_vm.
* yarvcore.c, proc.c: move some functions and initialization
  from yarvcore.c to proc.c.
* intern.h, proc.c: add global function rb_binding_new(void).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-17 08:48:52 +00:00
ko1 ca46eab090 * vm.c (eval_search_super_klass): rename to search_super_klass() and
use it by th_call_super().
* insns.def: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 08:52:22 +00:00
ko1 5078c85782 * common.mk: fix ruby script path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 08:50:13 +00:00
ko1 63315f6305 * vm.c (invoke_block): fix to specify self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 08:43:18 +00:00
ko1 c22416a87f * env.h: removed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 03:14:26 +00:00
ko1 7eb928624f * eval_proc.c (rb_proc_new): added.
* string.c (sym_to_proc): supported.
* vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support
  rb_proc_new.
* yarvcore.c: add a test code.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-16 03:06:01 +00:00
suke d2907d42be fix memory leak of win32ole.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 14:40:54 +00:00
nobu 77619b3a56 * djgpp/config.status: wrongly revised file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-13 13:24:35 +00:00
nobu 82e937f511 * array.c (rb_ary_replace): use ptr and len of orig instead of
shared.  fixed: [ruby-dev:30116]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 15:11:01 +00:00
shyouhei 42b298560b r11523@ruby: shyouhei | 2007-01-09 15:57:58 +0900
* ext/etc/etc.c (etc_getpwuid, etc_getgrgid): fix to correctly
   convert uid/gid from VALUE.
 
 * ext/etc/etc.c (etc_getpwuid): ditto.
 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 11:52:26 +00:00
usa 61fbdef349 * file.c (rb_find_file): should not call fpath_check() with NULL.
fixed: [ruby-core:09867]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 08:50:04 +00:00
eban ef05955d2f * 2007-01-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-09 02:43:17 +00:00
matz 0143945146 * string.c (rb_str_upto): use RSTRING_LEN().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-08 20:11:40 +00:00