Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
augment by Phil Hagelberg (c) 2007 http://augment.rubyforge.org
== Description
Augment is a framework for gathering metadata from code and displaying it. This metadata would include test failures, test coverage levels, complexity metrics, and others. Display frontends will be pluggable so as to interface with many editors.
== Usage
The +augment+ executable gathers metadata in the form of layers for a given file via a backend. Some backends gather data for a file other than the original one passed in. (The test backend will store data for the test if you pass in the implementation.)
Example:
$ augment test lib/foo.rb # will store metadata for test/test_foo.rb
You can also use the +augment+ executable to display stored metadata. The simplest frontend is +color+ which outputs the layers via ANSI color codes to the shell:
$ augment color test/test_foo.rb
Most other frontends are editor-specific.
== Design
Augment is designed to be generalized; if you want to collect different kinds of data you can just write a new backend. If you want to display the data in an unsupported editor or output format, you can write a new frontend.
=== Backends
Each backend takes a filename or glob and outputs the metadata about that file into the .augment directory, created in the project root. Metadata is stored as layer information in JSON. Each backend also needs an initiator command to kick off the process that gathers the metadata, with the exception of auto-initiating backends like autotest.
=== Frontends
Most frontends are implemented within an editor or IDE. They watch the .augment directory for changes and apply them to the open buffers when they happen. The user can choose what augmentations he wants displayed either globally or on a per-file basis. He can also control when backend initiators should be started, though usually these will be kicked off automatically upon saving a file.
=== Layers
A layer consists of a single piece of metadata about a file. This is expressed in terms of the range it applies to in the file, its color, and the message associated with it.
== Support
Backends:
Frontends:
== Issues
== License
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, write to the Free Software Foundation at this address:
Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA
FAQs
Unknown package
We found that augment 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.