{"id":21684511,"url":"https://github.com/scaledrone/scaledrone-ruby","last_synced_at":"2025-06-17T12:35:54.451Z","repository":{"id":83637890,"uuid":"45311089","full_name":"ScaleDrone/scaledrone-ruby","owner":"ScaleDrone","description":"Ruby library for Scaledrone Realtime Messaging Service","archived":false,"fork":false,"pushed_at":"2016-11-29T06:29:13.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T11:32:54.058Z","etag":null,"topics":["real-time","ruby","scaledrone"],"latest_commit_sha":null,"homepage":"https://www.scaledrone.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScaleDrone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-10-31T17:21:19.000Z","updated_at":"2018-01-10T18:08:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6c8c20a-3913-48f6-b6d5-3d6e06a36bb9","html_url":"https://github.com/ScaleDrone/scaledrone-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScaleDrone/scaledrone-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleDrone%2Fscaledrone-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleDrone%2Fscaledrone-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleDrone%2Fscaledrone-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleDrone%2Fscaledrone-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaleDrone","download_url":"https://codeload.github.com/ScaleDrone/scaledrone-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleDrone%2Fscaledrone-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260359223,"owners_count":22997230,"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":["real-time","ruby","scaledrone"],"created_at":"2024-11-25T16:15:52.719Z","updated_at":"2025-06-17T12:35:49.435Z","avatar_url":"https://github.com/ScaleDrone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scaledrone Ruby API\nOfficial ScaleDrone Ruby pushing library. This is a wrapper around the REST API.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n```\ngem 'scaledrone'\n```\nAnd then execute:\n```\nbundle install\n```\nOr install it directly:\n```\ngem install 'scaledrone'\n```\n\n## Usage\nCreate a new instance of ScaleDrone passing it the `channelId` and `secretKey` that you can find from the channel's page\n```ruby\nrequire 'scaledrone'\n\nsd = ScaleDrone.new({\n  channel_id: 'G3TYvCzoXtrIuEtQ',\n  secret_key: 'M7Oc1DY2FgkCaUh4aQFC3TRV1R3RThPd'\n})\n```\n\n### Publishing a message\n**Please notice that in 1.0.0 the function header changed, when upgrading from 0.X.X you need to switch message and room order.**\n```ruby\nroom = 'notifications'\nmessage = {foo: 'bar'}\nresponse = sd.publish(message, room)\n```\n\n### Publishing the same message to multiple rooms\n```ruby\nrooms = ['notifications', 'lounge']\nmessage = {foo: 'bar'}\nresponse = sd.publish(message, *rooms)\n```\n\n### Channel stats\n```ruby\nresponse = sd.channel_stats()\n```\n\n### Connected users list\n```javascript\nresponse = sd.users_list()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaledrone%2Fscaledrone-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaledrone%2Fscaledrone-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaledrone%2Fscaledrone-ruby/lists"}