{"id":31944990,"url":"https://github.com/pubnub/ruby","last_synced_at":"2025-10-14T10:48:48.624Z","repository":{"id":7123449,"uuid":"8418273","full_name":"pubnub/ruby","owner":"pubnub","description":"PubNub Ruby-based APIs","archived":false,"fork":false,"pushed_at":"2025-10-03T18:41:55.000Z","size":25147,"stargazers_count":123,"open_issues_count":13,"forks_count":90,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-10-11T05:11:46.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pubnub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-02-25T21:07:42.000Z","updated_at":"2025-10-05T21:23:45.000Z","dependencies_parsed_at":"2023-10-01T23:38:58.791Z","dependency_job_id":"92638f3f-ad87-415e-9990-3ef9aeb41a7b","html_url":"https://github.com/pubnub/ruby","commit_stats":{"total_commits":698,"total_committers":37,"mean_commits":"18.864864864864863","dds":0.3094555873925502,"last_synced_commit":"d1223fe7ec2a223d44276e53a6a3820d6bb8787a"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/pubnub/ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubnub","download_url":"https://codeload.github.com/pubnub/ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubnub%2Fruby/sbom","scorecard":{"id":749136,"data":{"date":"2024-05-20","repo":{"name":"github.com/pubnub/ruby","commit":"f0816fc7d1d319a93af1c7921590d7d564d8e8c3"},"scorecard":{"version":"v5.0.0-rc2-23-g98ec491a","commit":"98ec491a888a8a0db9d83a3c7d379ae1f46321de"},"score":2.9,"checks":[{"name":"Code-Review","score":9,"reason":"Found 27/30 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#cii-best-practices"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v5.3.4 not signed: https://api.github.com/repos/pubnub/ruby/releases/153245840","Warn: release artifact v5.3.3 not signed: https://api.github.com/repos/pubnub/ruby/releases/138900474","Warn: release artifact v5.3.2 not signed: https://api.github.com/repos/pubnub/ruby/releases/131291194","Warn: release artifact v5.3.1 not signed: https://api.github.com/repos/pubnub/ruby/releases/127846873","Warn: release artifact v5.3.0 not signed: https://api.github.com/repos/pubnub/ruby/releases/125218760","Warn: release artifact v5.3.4 does not have provenance: https://api.github.com/repos/pubnub/ruby/releases/153245840","Warn: release artifact v5.3.3 does not have provenance: https://api.github.com/repos/pubnub/ruby/releases/138900474","Warn: release artifact v5.3.2 does not have provenance: https://api.github.com/repos/pubnub/ruby/releases/131291194","Warn: release artifact v5.3.1 does not have provenance: https://api.github.com/repos/pubnub/ruby/releases/127846873","Warn: release artifact v5.3.0 does not have provenance: https://api.github.com/repos/pubnub/ruby/releases/125218760"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#branch-protection"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":0,"reason":"dangerous workflow patterns detected","details":["Warn: script injection with untrusted input ' startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) ': .github/workflows/commands-handler.yml:20"],"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/commands-handler.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/run-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/run-validations.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vg3r-rm7w-2xgh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: invalid parameter name: .github/workflows/commands-handler.yml:20","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commands-handler.yml:26","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commands-handler.yml:31","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:36","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:41","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:33","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:37","Warn: third-party GitHubAction not pinned by hash: .github/workflows/run-tests.yml:44","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:58","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:60","Warn: third-party GitHubAction not pinned by hash: .github/workflows/run-tests.yml:71","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-tests.yml:87","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-validations.yml:11","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-validations.yml:13","Warn: npmCommand not pinned by hash: .github/workflows/run-tests.yml:83","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/98ec491a888a8a0db9d83a3c7d379ae1f46321de/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-22T19:44:21.952Z","repository_id":7123449,"created_at":"2025-08-22T19:44:21.952Z","updated_at":"2025-08-22T19:44:21.952Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008858,"owners_count":26084518,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-14T10:48:41.301Z","updated_at":"2025-10-14T10:48:46.255Z","avatar_url":"https://github.com/pubnub.png","language":"Ruby","funding_links":[],"categories":["Mobile Development"],"sub_categories":[],"readme":"# PubNub Ruby SDK\r\n\r\n![Tests Status](https://github.com/pubnub/ruby/actions/workflows/run-tests.yml/badge.svg)\r\n\r\nThis is the official PubNub Ruby SDK repository.\r\n\r\nPubNub takes care of the infrastructure and APIs needed for the realtime communication layer of your application. Work on your app's logic and let PubNub handle sending and receiving data across the world in less than 100ms.\r\n\r\n## Get keys\r\n\r\nYou will need the publish and subscribe keys to authenticate your app. Get your keys from the [Admin Portal](https://dashboard.pubnub.com/).\r\n\r\n## Configure PubNub\r\n\r\n1. Integrate PubNub into your project using RubyGems:\r\n\r\n    ```bash\r\n    gem install pubnub\r\n    ```\r\n\r\n1. Create a new `App.rb` file and add the following code.\r\n\r\n    ```ruby\r\n    require 'pubnub'\r\n\r\n    pubnub = Pubnub.new(\r\n        subscribe_key: :mySubscribeKey,\r\n        publish_key: :myPublishKey,\r\n        uuid: :myUniqueUUID\r\n    )\r\n    ```\r\n\r\n    This is the minimum configuration you need to send and receive messages with PubNub.\r\n\r\n## Add event listeners\r\n\r\n```ruby\r\ncallback = Pubnub::SubscribeCallback.new(\r\n    message: -\u003e(envelope) {\r\n        puts \"MESSAGE: #{puts envelope.result[:data][:message]['msg']}\"\r\n    },\r\n    presence: -\u003e(envelope) {\r\n        puts \"PRESENCE: #{envelope.result[:data]}\"\r\n    }\r\n)\r\npubnub.add_listener(callback: callback)\r\n```\r\n\r\n## Publish and subscribe\r\n\r\n```ruby\r\npubnub.subscribe(\r\n    channels: ['my_channel'],\r\n    with_presence: true\r\n)\r\n\r\npubnub.publish(\r\n    channel: 'my_channel',\r\n    message: { text: 'Hello world' }\r\n) do |envelope|\r\n    puts envelope.status\r\nend\r\n```\r\n\r\n## Documentation\r\n\r\n[API reference for Ruby](https://www.pubnub.com/docs/ruby/pubnub-ruby-sdk)\r\n\r\n## Support\r\n\r\nIf you **need help** or have a **general question**, contact \u003csupport@pubnub.com\u003e.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubnub%2Fruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubnub%2Fruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubnub%2Fruby/lists"}