
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
EM-Synchrony-Moped is a Moped driver patch for EM-Synchrony. Moped is the MongoDB driver for the Mongoid ORM.
In order to use this driver in an EM-Synchrony environment, simply include the driver.
require "em-synchrony/moped"
EventMachine.synchrony do
node = Moped::Node.new("localhost:27017")
puts node.primary?
EM.stop
end
To use SSL, just pass an SSL config section to the options.
require "em-synchrony/moped"
EventMachine.synchrony do
options = {
:ssl => {
:verify_peer => true, # false to skip peer verification
:verify_cert => "../path-to/ca_cert.pem", # specify a CA certificate to verify against
# or...
:cert_store => OpenSSL::X509::Store.new, # to specify a cached cert store.
:verify_host => "localhost" # Hostname to verify against, if you wish
# to verify the hostname in the certificate.
}
}
node = Moped::Node.new("localhost:27017", options)
puts node.primary?
EM.stop
end
The MIT License - Copyright (c) 2013 Adam Lebsack
FAQs
Unknown package
We found that em-synchrony-moped 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.