
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Mini service discovery in Ruby
I recently extracted MiniDisc from a personal project I've been working on. It offers a single line interface for common patterns in service discovery that I'd been redundantly implementing.
Under the hood it wraps the DNSSD gem and is cross compatible with services using that. It adds helpers for common tasks like matching services by name, dynamically overriding discovery, error handling, logging
To broadcast a service use something like:
require "minidisc"
MiniDisc::Registry.add(:http, 8080, id: "my-service-instance1")
To discover other services use
MiniDisc::Discover.find_all(:http, id: /^my-service/) do |services|
...
end
gem install minidisc
or when Bundler, add this to your Gemfile
gem "minidisc"
Apache 2.0, See LICENSE file
Copyright (c) 2017-2019 Ari Russo
FAQs
Unknown package
We found that minidisc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.