
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
BMO is a gem to Push Notifications to iOS (via APNS) and Android (via GCM). It handles TCP & HTTP Proxies.
Project | BMO |
---|---|
Gem Name | bmo |
License | MIT |
Version | ![]() |
Dependency Status | ![]() |
Continuous Integration | ![]() |
Quality Metric | ![]() |
Test Coverage | ![]() |
Homepage | BMO |
Documentation | Rdoc |
I needed to use stunnel (TCP Proxy for encrypting with SSL/TLS) and a HTTP Proxy. The existing gems couldn't.
gem install bmo
In Gemfile :
gem 'bmo'
token = "123456789" # The device token given to you by Apple
data = {aps: {alert: "Hello from BMO!"}}
BMO.send_ios_notification(token, data)
The aps Hash content's is described here :
Default Params :
BMO.configuration do |config|
config.apns.gateway_host = 'gateway.push.apple.com'
config.apns.gateway_port = 2195
config.apns.feedback_host = 'feedback.push.apple.com'
config.apns.feedback_port = 2196
config.apns.cert_path = nil
config.apns.cert_pass = nil
end
If you set a cert_path option it will use a SSL encapsulation otherwise it will use Pure TCP. This option is particularly useful if you use a stunnel.
token = "123456789" # The device token given to you by Apple
data = {message: "Hello from BMO!"}
BMO.send_android_notification(token, data)
The data content's is described here :
http://developer.android.com/google/gcm/server.html
Default Params :
BMO.configuration do |config|
config.gcm.gateway_url = 'https://android.googleapis.com/gcm/send'
config.gcm.api_key = nil
end
You should set the api_key. It uses Faraday internally, so just set your regular http_proxy environment variable if need to configure a proxy.
BMO is released under the MIT License
FAQs
Unknown package
We found that bmo 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 clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.