
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Simple gem containing Sinatra engine, designed to help you utilize SNS http post service. Use inside Rails (as an engine) or outside - as a standalone application.
Add this line to your application's Gemfile:
gem 'sns_endpoint'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sns_endpoint
Configure using SnsEndpoint.setup, providing block, like this:
SnsEndpoint.setup do |config|
config.topics_list = ['first_topic', 'second_topic'] #list of topics that endpoint should respond to subscription request
config.subscribe_proc = Proc.new { |message| p message } #proc that should be executed when subscribe request got received and responded to, passed argument is message (json object)
config.message_proc = Proc.new { |message| p message } #proc that should be executed when message got send to endpoint
end
for example in Rails initializer.
Use as Rails engine:
mount SnsEndpoint::Core => "/sns_endpoint"
Use as a standalone app: Example script:
require 'rubygems'
require 'sns_endpoint'
SnsEndpoint.setup do |config|
config.topics_list = ['first_topic', 'second_topic'] #list of topics that endpoint should respond to subscription request
config.subscribe_proc = Proc.new { |message| p message } #proc that should be executed when subscribe request got received and responded to, passed argument is message (json object)
config.message_proc = Proc.new { |message| p message } #proc that should be executed when message got send to endpoint
end
SnsEndpoint::Core.run!
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that sns_endpoint 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.