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

83 Коммитов

Автор SHA1 Сообщение Дата
drbrain 4230682d27 * lib/drb/drb.rb: Replace broken links to the English DRb book.
Patch by Zachary Scott.  [ruby-trunk - Bug #6544]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-13 21:21:11 +00:00
drbrain 3d81b5c848 * lib/observer.rb: Update broken link to the Programming Ruby book.
Patch by Zachary Scott.  [ruby-trunk - Bug #6536]
* lib/drb/drb.rb:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-13 21:18:29 +00:00
akr c2086cc7ff * lib/drb/ssl.rb: generate 1024 bits RSA key instead of 512 bits.
OpenSSL 1.0.1 rejects 512 bits RSA key for TLS1.2 with SHA512.
  http://rt.openssl.org/Ticket/Display.html?id=2769&user=guest&pass=guest
  reported by Bohuslav Kabrda.
  [ruby-core:43844] [ruby-trunk - Bug #6221]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 11:15:35 +00:00
akr e16e961bab * lib/drb/extservm.rb (DRb::ExtServManager): don't use /bin/sh to
invoke service subprocess.  mark detach threads for clean up.

* test/drb/drbtest.rb: clean up the service subprocess in teardown.

* test/drb/test_drb.rb: set @service_name for teardown.

* test/drb/test_drbunix.rb: ditto.

* test/drb/test_drbssl.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-22 11:35:03 +00:00
akr cc19bcf11f * lib/drb/ssl.rb: close accepted TCP socket if SSL accept is failed.
[ruby-dev:45541]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-21 22:52:23 +00:00
akr c852d76f46 * lib/webrick/utils.rb: fix fcntl call.
* lib/drb/unix.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-01 23:17:53 +00:00
drbrain 7c30ffb92d * lib/drb/drb.rb: Hide deprecated toplevel DRb constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:33:36 +00:00
seki 190bc7ae0e fix [Bug #4409]. add DRbServer#here?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-27 15:18:22 +00:00
seki c6a506d04d lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 14:40:15 +00:00
nobu d371e3583e * lib: revert r31635-r31638 and untabify with expand(1).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-19 00:07:25 +00:00
drbrain 7bbf2f3085 * lib: Convert tabs to spaces for ruby files per
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
	  Patch by Steve Klabnik [Ruby 1.9 - Bug #4730]
	  Patch by Jason Dew [Ruby 1.9 - Feature #4718]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:19:18 +00:00
drbrain 366f2c1120 * lib/drb/acl.rb: Add documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 20:50:49 +00:00
marcandre f3e3547407 * lib/*.rb: Remove unused variable warnings.
Patch by Run Paint [ruby-core:30991]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-08 20:59:01 +00:00
marcandre 70510d026f * lib/csv.rb: Fix unused variable warnings.
Patch by Run Paint [ruby-core:30991]

* lib/date.rb: ditto

* lib/debug.rb: ditto

* lib/drb/drb.rb: ditto

* lib/drb/invokemethod.rb: ditto

* lib/irb/ruby-lex.rb: ditto

* lib/irb/slex.rb: ditto

* lib/logger.rb: ditto

* lib/pathname.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-11 16:59:10 +00:00
seki b54b86d898 raise DRbConnError instead of ArgumentError if too many arguments.
[ruby-dev:41481]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 08:52:30 +00:00
mame 5a55683bc6 * lib/drb/drb.rb (DRbServer#stop_service): join killed thread to
ensure service stops.  [ruby-dev:40441]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-18 15:06:06 +00:00
seki e92661e647 * lib/drb/eq.rb: fix circular requrie in drb.
reported by akr. see [ruby-dev:40156] [ruby-core:27661]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-26 11:22:20 +00:00
seki 998217fb3d * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple network
families problem. a patch from Charl Matthee at [ruby-core:21033].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17 17:43:48 +00:00
nobu 287a34ae0d * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
seki 4104010c88 merged a patch from Alessandro Di Maria in [ruby-core:22560].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 15:57:33 +00:00
akr c79dac1c3e * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
detach spawned process.  [ruby-dev:37936]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-08 12:06:42 +00:00
nobu 2478f1caaf * lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
platform names.

* lib/resolv.rb (Resolv::Hosts::DefaultFileName),
  (Resolv::DNS::Config.default_config_hash): tries win32/resolv on
  mswin64 too.

* lib/rubygems/specification.rb (Gem::Specification#ruby_code):
  aded mswin64.

* lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
  spawn is better to start a process in background.

* ext/extmk.rb: uses FNM_SYSCASE.

* instruby.rb: installs win32.h on mswin64 platform.
  [ruby-core:21722]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-01 23:12:52 +00:00
seki 2d549dcfbd fixed NoMethodError problem from NaHi [ruby-dev:37110].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-18 16:24:22 +00:00
matz f07ca6b1c4 * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): should
check method names by symbols, not by strings.  a patch from
  Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 13:42:28 +00:00
ko1 860b40fd63 * compile.c (iseq_compile_each): remove "retry" in block.
("iter{retry}" cause syntax error)
  Currently, "begin; ...; rescue; iter{retry}; end" cause
  syntax error too.
* bootstraptest/test_jump.rb: ditto.
* lib/drb/invokemethod.rb: ditto.
* sample/drb/darrayc.rb: ditto.
* sample/test.rb: ditto.
* test/drb/drbtest.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* sample/test.rb: add a 'test' directory on the SYSTEM test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:46:49 +00:00
seki 724de18989 * lib/drb/extserv.rb (initialize, stop_service): synchronize with
ExtServManager.

	* test/drb/test_drb.rb (TestDRbEval): ignored.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-26 14:24:29 +00:00
seki 6591e38016 merged from ruby_1_8 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-19 18:30:18 +00:00
matz 1eee78b876 * eval.c (rb_f_send): allow send/__send__ to call methods of all
visibility again.  we no longer provide __send, __send!.

* eval.c (rb_invoke_method): new method to honor private
  visibility.  if it's invoked in a function call style, it calls
  private methods as well (previous 1.9 send behavior).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 20:36:20 +00:00
matz 4e183b11ac * test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
  initialize @workdir to stop warning.

* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block): 
  replace funcall by send!.  other files in the distribution as well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-24 09:57:53 +00:00
ko1 a3e1b1ce7e * Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
drbrain 050f637941 Close the socket on SSLError. [ruby-core:7198]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 18:10:34 +00:00
matz c09cea5e1b * object.c (rb_mod_attr): make Module#attr to be an alias to
attr_reader.  [RCR#331]

* ruby.h: export classes/modules to implement sandbox.
  [ruby-core:08283]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-20 17:36:36 +00:00
akr a1dc1d6a8c * ruby.h, lib/drb/drb.rb, lib/drb/invokemethod.rb: remove Values class.
[ruby-dev:28805]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-23 14:39:01 +00:00
drbrain 905cd041c9 RDoc from Hugh Sasse [ruby-core:8012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-19 22:07:42 +00:00
matz cced56ef7c * misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
expression.   [ruby-dev:27868]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-30 04:50:04 +00:00
seki e5857628fc follow change of observer.rb. fixed [ruby-core:6796]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-29 13:50:27 +00:00
ocean 871384c0c5 * lib/drb/ssl.rb (DRb::SSLConfig#accept): fixed typo.
[ruby-dev:27560] [ruby-core:4627]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-08 06:42:15 +00:00
ocean da7d6381c9 * lib/drb/ssl.rb (SSLConfig#accept) sorry, self[:verbose] is inner class's method.
so reverted...


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 04:38:14 +00:00
ocean 0bbbb77d1a * lib/drb/ssl.rb (SSLConfig#accept) fixed "Undefined method verbose"
[ruby-Bugs:1701]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-30 04:32:50 +00:00
seki 6763ac5552 use private_methods and protected_methods instead of respond_to? to check
method visibility. [ruby-dev:26616]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-31 16:19:42 +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
seki d822ffdc04 adhoc patch for [druby-ja:123]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-11 14:48:50 +00:00
seki 42959f5029 * lib/drb/drb.rb: 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]

        * lib/drb/gw.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-28 15:06:10 +00:00
seki 5c293c10e1 (DRbObject#respond_to?) take two arguments. [ruby-dev:25722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 10:00:33 +00:00
ocean 52dca16384 * 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/trunk@7991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-17 11:16:57 +00:00
seki 2681be1eed add safe_leve, default_safe_level ([druby-ja:120])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-13 15:13:54 +00:00
seki 3d7177422d reject :instance_eval, :class_eval, :module_eval [druby-ja:117]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-08 14:51:06 +00:00
seki 2388b9c79b (DRb::DRbObject#respond_to?): check marshal_dump and _dump
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-01 12:57:03 +00:00
seki 0805616b06 (accept) rescue SSLError. [druby-ja:110]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-22 14:10:36 +00:00
seki b0b6e67394 fail if UNIXFileOwner is set. [druby-ja:111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-22 13:37:37 +00:00