
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
=Pallet
See COPYRIGHT for distribution terms.
==Description
A Rakefile-based tool to easily build different package types (such as .deb, .gem) from the same source. Currently builds Debian packages and Ruby Gems, but is trivially extensible to provide support for other packaging formats (.tar.gz, .rpm, etc.).
==Usage
Include the pallet library in a new or existing Rakefile for your project. Start by including the pallet library in your Rakefile and defining project information that will be used in both the gem and deb rake packaging task options:
require 'pallet'
Pallet.new('projectname', "0.0.1") do |p| p.author = 'Your Name' p.email = 'your@email.com' p.summary = 'Summary of your project' end
Within the pallet block you can specify options for the gem and deb rake packaging tasks:
... p.packages << Pallet::Gem.new(p) do |gem| gem.depends = ['rake'] gem.requirements = ['fakeroot', 'dpkg-dev'] gem.files.include FileList['share/**/*'] end
p.packages << Pallet::Deb.new(p) do |deb|
deb.architecture = 'all'
deb.depends = ['rake', 'fakeroot', 'dpkg-dev']
deb.files = [InstallSpec['lib', '/usr/lib/ruby/1.8'],
InstallSpec['data', '/usr/share'],
InstallSpec['docs', '/usr/share/docs'],]
deb.commands.document = 'rake doc'
end
...
You should follow the installation policies of your distro when you package a .deb for public use.
==Hacking
Please feel free to contribute code to improve Pallet! Some areas that need attention:
Contact Stephen Touset <stephen@ nospam @ touset.org> with diffs or inquiries.
FAQs
Unknown package
We found that pallet 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.