
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Exports all your Sinatra application routes to static files in your public folder.
Add to your Gemfile
:
gem 'sinatra-export'
Setup your Rakefile
:
APP_FILE = 'app.rb'
APP_CLASS = 'Sinatra::Application'
require 'sinatra/export/rake'
Sample Sinatra application building static pages :
require 'sinatra'
require 'sinatra/export'
get '/' do
"<h1>My homepage</h1>"
end
get '/contact' do
"<h1>My contact page<h1>"
end
get '/data.json' do
"{test: 'ok'}"
end
Running your app ex. rake sinatra:export
will automatically generate theses files :
public/index.html -> "<h1>My homepage</h1>"
public/contact/index.html -> "<h1>My contact page<h1>"
public/data.json -> "{test: 'ok'}"
$ rake sinatra:export
Or invoke it manually within ruby code :
App.export!
```
## Other resources
* [capistrano-s3](http://github.com/hooktstudios/capistrano-s3) : build and deploy a static website to Amazon S3
* [sinatra-assetpack](https://github.com/rstacruz/sinatra-assetpack) : package your assets transparently in Sinatra
* [sinatra-static-bp](https://github.com/hooktstudios/sinatra-static-bp) : boilerplate to setup complete static website
## Contributing
See [CONTRIBUTING.md](https://github.com/hooktstudios/sinatra-export/blob/master/CONTRIBUTING.md) for more details on contributing and running test.
## Credits

[sinatra-export](https://rubygems.org/gems/sinatra-export) is maintained and funded by [hooktstudios](https://github.com/hooktstudios)
FAQs
Unknown package
We found that sinatra-export demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.