mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/drb/extserv.rb: remove duplicate code with sample direcotry.
contributed from @vipulnsward. [fix GH-679] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
acd7bd079e
commit
86b38466df
2 changed files with 5 additions and 30 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jul 23 04:04:38 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Tue Jul 22 12:56:24 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_str_count): fix wrong single-byte optimization.
|
* string.c (rb_str_count): fix wrong single-byte optimization.
|
||||||
|
|
|
@ -41,33 +41,3 @@ module DRb
|
||||||
end
|
end
|
||||||
end
|
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
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue