drb 2.0.6 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/drb.gemspec +19 -8
- data/lib/drb/version.rb +1 -1
- metadata +5 -12
- data/.gitignore +0 -9
- data/.travis.yml +0 -6
- data/Gemfile +0 -6
- data/README.md +0 -95
- data/Rakefile +0 -17
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a465b570141e500464e651652a7f651fef12b4ac3c1b492fa24a83d9f46e180a
|
4
|
+
data.tar.gz: 37b73880d63b5cc4e7cd807913e7ac43c274ffb592eac3ef0e6e8aaf5592e38f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa689810d7757cd0959a767d4ff1367a622d20062aa5dd97a5444d4dbd18818c1fa45752d9fc27f6dce599cb58ea12c9356583e9398aa68bff8e77d8cdbc927
|
7
|
+
data.tar.gz: 818185d78b2eb0157012cf6c41be04ef1658309bdd6cf7ee0d963c1122fa38a7b48961fe10986f0525178fc83e2382d74ad35dfa1ddcd3545a1194541df6a446
|
data/drb.gemspec
CHANGED
@@ -13,19 +13,30 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = %q{Distributed object system for Ruby}
|
14
14
|
spec.description = %q{Distributed object system for Ruby}
|
15
15
|
spec.homepage = "https://github.com/ruby/drb"
|
16
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
17
17
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
18
18
|
|
19
19
|
spec.metadata["homepage_uri"] = spec.homepage
|
20
20
|
spec.metadata["source_code_uri"] = spec.homepage
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
spec.files = %w[
|
23
|
+
LICENSE.txt
|
24
|
+
drb.gemspec
|
25
|
+
lib/drb.rb
|
26
|
+
lib/drb/acl.rb
|
27
|
+
lib/drb/drb.rb
|
28
|
+
lib/drb/eq.rb
|
29
|
+
lib/drb/extserv.rb
|
30
|
+
lib/drb/extservm.rb
|
31
|
+
lib/drb/gw.rb
|
32
|
+
lib/drb/invokemethod.rb
|
33
|
+
lib/drb/observer.rb
|
34
|
+
lib/drb/ssl.rb
|
35
|
+
lib/drb/timeridconv.rb
|
36
|
+
lib/drb/unix.rb
|
37
|
+
lib/drb/version.rb
|
38
|
+
lib/drb/weakidconv.rb
|
39
|
+
]
|
29
40
|
spec.require_paths = ["lib"]
|
30
41
|
|
31
42
|
spec.add_dependency "ruby2_keywords"
|
data/lib/drb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masatoshi SEKI
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2_keywords
|
@@ -31,14 +31,7 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".gitignore"
|
35
|
-
- ".travis.yml"
|
36
|
-
- Gemfile
|
37
34
|
- LICENSE.txt
|
38
|
-
- README.md
|
39
|
-
- Rakefile
|
40
|
-
- bin/console
|
41
|
-
- bin/setup
|
42
35
|
- drb.gemspec
|
43
36
|
- lib/drb.rb
|
44
37
|
- lib/drb/acl.rb
|
@@ -69,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
62
|
requirements:
|
70
63
|
- - ">="
|
71
64
|
- !ruby/object:Gem::Version
|
72
|
-
version: 2.
|
65
|
+
version: 2.7.0
|
73
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
67
|
requirements:
|
75
68
|
- - ">="
|
76
69
|
- !ruby/object:Gem::Version
|
77
70
|
version: '0'
|
78
71
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.22
|
80
73
|
signing_key:
|
81
74
|
specification_version: 4
|
82
75
|
summary: Distributed object system for Ruby
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
# Distributed Ruby: dRuby
|
2
|
-
|
3
|
-
dRuby is a distributed object system for Ruby. It allows an object in one
|
4
|
-
Ruby process to invoke methods on an object in another Ruby process on the
|
5
|
-
same or a different machine.
|
6
|
-
|
7
|
-
The Ruby standard library contains the core classes of the dRuby package.
|
8
|
-
However, the full package also includes access control lists and the
|
9
|
-
Rinda tuple-space distributed task management system, as well as a
|
10
|
-
large number of samples. The full dRuby package can be downloaded from
|
11
|
-
the dRuby home page (see *References*).
|
12
|
-
|
13
|
-
For an introduction and examples of usage see the documentation to the
|
14
|
-
DRb module.
|
15
|
-
|
16
|
-
## Installation
|
17
|
-
|
18
|
-
Add this line to your application's Gemfile:
|
19
|
-
|
20
|
-
```ruby
|
21
|
-
gem 'drb'
|
22
|
-
```
|
23
|
-
|
24
|
-
And then execute:
|
25
|
-
|
26
|
-
$ bundle install
|
27
|
-
|
28
|
-
Or install it yourself as:
|
29
|
-
|
30
|
-
$ gem install drb
|
31
|
-
|
32
|
-
## Usage
|
33
|
-
|
34
|
-
### dRuby in client/server mode
|
35
|
-
|
36
|
-
This illustrates setting up a simple client-server drb
|
37
|
-
system. Run the server and client code in different terminals,
|
38
|
-
starting the server code first.
|
39
|
-
|
40
|
-
#### Server code
|
41
|
-
|
42
|
-
```
|
43
|
-
require 'drb/drb'
|
44
|
-
|
45
|
-
# The URI for the server to connect to
|
46
|
-
URI="druby://localhost:8787"
|
47
|
-
|
48
|
-
class TimeServer
|
49
|
-
|
50
|
-
def get_current_time
|
51
|
-
return Time.now
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
55
|
-
|
56
|
-
# The object that handles requests on the server
|
57
|
-
FRONT_OBJECT=TimeServer.new
|
58
|
-
|
59
|
-
DRb.start_service(URI, FRONT_OBJECT)
|
60
|
-
# Wait for the drb server thread to finish before exiting.
|
61
|
-
DRb.thread.join
|
62
|
-
```
|
63
|
-
|
64
|
-
#### Client code
|
65
|
-
|
66
|
-
```
|
67
|
-
require 'drb/drb'
|
68
|
-
|
69
|
-
# The URI to connect to
|
70
|
-
SERVER_URI="druby://localhost:8787"
|
71
|
-
|
72
|
-
# Start a local DRbServer to handle callbacks.
|
73
|
-
|
74
|
-
# Not necessary for this small example, but will be required
|
75
|
-
# as soon as we pass a non-marshallable object as an argument
|
76
|
-
# to a dRuby call.
|
77
|
-
|
78
|
-
# Note: this must be called at least once per process to take any effect.
|
79
|
-
# This is particularly important if your application forks.
|
80
|
-
DRb.start_service
|
81
|
-
|
82
|
-
timeserver = DRbObject.new_with_uri(SERVER_URI)
|
83
|
-
puts timeserver.get_current_time
|
84
|
-
```
|
85
|
-
|
86
|
-
## Development
|
87
|
-
|
88
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
89
|
-
|
90
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
91
|
-
|
92
|
-
## Contributing
|
93
|
-
|
94
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/drb.
|
95
|
-
|
data/Rakefile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rake/testtask"
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << "test/lib"
|
6
|
-
t.ruby_opts << "-rhelper"
|
7
|
-
t.test_files = FileList["test/**/test_*.rb"]
|
8
|
-
end
|
9
|
-
|
10
|
-
task :sync_tool do
|
11
|
-
require 'fileutils'
|
12
|
-
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
|
13
|
-
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
14
|
-
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
15
|
-
end
|
16
|
-
|
17
|
-
task :default => :test
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "drb"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|