{"id":15032799,"url":"https://github.com/ruby/drb","last_synced_at":"2025-05-15T08:02:32.228Z","repository":{"id":38362490,"uuid":"266090455","full_name":"ruby/drb","owner":"ruby","description":"Distributed object system for Ruby","archived":false,"fork":false,"pushed_at":"2024-10-03T08:04:42.000Z","size":507,"stargazers_count":195,"open_issues_count":6,"forks_count":24,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-04-22T22:19:04.336Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T11:08:56.000Z","updated_at":"2025-04-18T10:16:37.000Z","dependencies_parsed_at":"2023-01-25T16:46:15.420Z","dependency_job_id":"1b667536-7bcb-46ea-a5f3-cb3a7fa8710c","html_url":"https://github.com/ruby/drb","commit_stats":{"total_commits":302,"total_committers":43,"mean_commits":7.023255813953488,"dds":0.8112582781456954,"last_synced_commit":"10fceeaad0b283dda358017f20858a686f74f57d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fdrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/drb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301420,"owners_count":22047901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby"],"created_at":"2024-09-24T20:19:28.631Z","updated_at":"2025-05-15T08:02:32.180Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Distributed Ruby: dRuby\n\ndRuby is a distributed object system for Ruby.  It allows an object in one\nRuby process to invoke methods on an object in another Ruby process on the\nsame or a different machine.\n\nThe Ruby standard library contains the core classes of the dRuby package.\nHowever, the full package also includes access control lists and the\nRinda tuple-space distributed task management system, as well as a\nlarge number of samples.  The full dRuby package can be downloaded from\nthe dRuby home page (see *References*).\n\nFor an introduction and examples of usage see the documentation to the\nDRb module.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'drb'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install drb\n\n## Usage\n\n### dRuby in client/server mode\n\nThis illustrates setting up a simple client-server drb\nsystem.  Run the server and client code in different terminals,\nstarting the server code first.\n\n#### Server code\n\n```rb\nrequire 'drb/drb'\n\n# The URI for the server to connect to\nURI=\"druby://localhost:8787\"\n\nclass TimeServer\n\n  def get_current_time\n    return Time.now\n  end\n\nend\n\n# The object that handles requests on the server\nFRONT_OBJECT=TimeServer.new\n\nDRb.start_service(URI, FRONT_OBJECT)\n# Wait for the drb server thread to finish before exiting.\nDRb.thread.join\n```\n\n#### Client code\n\n```rb\nrequire 'drb/drb'\n\n# The URI to connect to\nSERVER_URI=\"druby://localhost:8787\"\n\n# Start a local DRbServer to handle callbacks.\n\n# Not necessary for this small example, but will be required\n# as soon as we pass a non-marshallable object as an argument\n# to a dRuby call.\n\n# Note: this must be called at least once per process to take any effect.\n# This is particularly important if your application forks.\nDRb.start_service\n\ntimeserver = DRbObject.new_with_uri(SERVER_URI)\nputs timeserver.get_current_time\n```\n\n## Development\n\nAfter 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.\n\nTo 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).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/drb.\n\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fdrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fdrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fdrb/lists"}