[前][次][番号順一覧][スレッド一覧]

ruby-changes:34818

From: hsbt <ko1@a...>
Date: Wed, 23 Jul 2014 04:06:23 +0900 (JST)
Subject: [ruby-changes:34818] hsbt:r46901 (trunk): * lib/drb/extserv.rb: remove duplicate code with sample direcotry.

hsbt	2014-07-23 04:06:12 +0900 (Wed, 23 Jul 2014)

  New Revision: 46901

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46901

  Log:
    * lib/drb/extserv.rb: remove duplicate code with sample direcotry.
      contributed from @vipulnsward. [fix GH-679]

  Modified files:
    trunk/ChangeLog
    trunk/lib/drb/extserv.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46900)
+++ ChangeLog	(revision 46901)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 23 04:04:38 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/drb/extserv.rb: remove duplicate code with sample direcotry.
+	  contributed from @vipulnsward. [fix GH-679]
+
 Tue Jul 22 12:56:24 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (rb_str_count): fix wrong single-byte optimization.
Index: lib/drb/extserv.rb
===================================================================
--- lib/drb/extserv.rb	(revision 46900)
+++ lib/drb/extserv.rb	(revision 46901)
@@ -41,33 +41,3 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/extserv.rb#L41
     end
   end
 end
-
-# :stopdoc:
-
-if __FILE__ == $0
-  class Foo
-    include DRbUndumped
-
-    def initialize(str)
-      @str = str
-    end
-
-    def hello(it)
-      "#{it}: #{self}"
-    end
-
-    def to_s
-      @str
-    end
-  end
-
-  cmd = ARGV.shift
-  case cmd
-  when 'itest1', 'itest2'
-    front = Foo.new(cmd)
-    manager = DRb::DRbServer.new(nil, front)
-    es = DRb::ExtServ.new(ARGV.shift, ARGV.shift, manager)
-    es.server.thread.join
-  end
-end
-

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]